Foxtable(狐表)用户栏目专家坐堂 → 选择RadioButton输入不同的表


  共有8045人关注过本帖平板打印复制链接

主题:选择RadioButton输入不同的表

帅哥哟,离线,有人找我吗?
yangwenghd
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2701 积分:17999 威望:0 精华:0 注册:2013/4/9 10:41:00
  发帖心情 Post By:2016/8/26 11:23:00 [只看该作者]

没有道理啊 

If e.Form.Controls("RadioButton1").checked Then
    Dim ndrb As DataRow = DataTables("表A").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("去向") = e.Form.controls("RadioButton5").Text
    If e.Form.Controls("RadioButton6").Checked Then
    ElseIf e.Form.Controls("RadioButton7").Checked Then
    ElseIf e.Form.Controls("RadioButton8").Checked Then
    End If
End If

If e.Form.Controls("RadioButton2").checked Then
    Dim ndrb As DataRow = DataTables("表B").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("去处") = e.Form.controls("RadioButton5").Text
    If e.Form.Controls("RadioButton6").Checked Then
    ElseIf e.Form.Controls("RadioButton7").Checked Then
    ElseIf e.Form.Controls("RadioButton8").Checked Then
    End If
End If
If e.Form.Controls("RadioButton3").checked Then
    Dim ndrb As DataRow = DataTables("表C").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("去向") = e.Form.controls("RadioButton1").Text
    If e.Form.Controls("RadioButton2").Checked Then
    ElseIf e.Form.Controls("RadioButton3").Checked Then
    ElseIf e.Form.Controls("RadioButton4").Checked Then
    End If
End If
If e.Form.Controls("RadioButton4").checked Then
    Dim ndrb As DataRow = DataTables("表D").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("去向") = e.Form.controls("RadioButton5").Text
    If e.Form.Controls("RadioButton6").Checked Then
    ElseIf e.Form.Controls("RadioButton7").Checked Then
    ElseIf e.Form.Controls("RadioButton8").Checked Then
    End If
End If

If e.Form.Controls("RadioButton5").checked Then
    Dim ndrb As DataRow = DataTables("表A").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("来源") = e.Form.controls("RadioButton1").Text
    If e.Form.Controls("RadioButton2").Checked Then
    ElseIf e.Form.Controls("RadioButton3").Checked Then
    ElseIf e.Form.Controls("RadioButton4").Checked Then
    End If
End If
If e.Form.Controls("RadioButton6").checked Then
    Dim ndrb As DataRow = DataTables("表B").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("提取处") = e.Form.controls("RadioButton1").Text
    If e.Form.Controls("RadioButton2").Checked Then
    ElseIf e.Form.Controls("RadioButton3").Checked Then
    ElseIf e.Form.Controls("RadioButton4").Checked Then
    End If
End If
If e.Form.Controls("RadioButton7").checked Then
    Dim ndrb As DataRow = DataTables("表C").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("来源") = e.Form.controls("RadioButton1").Text
    If e.Form.Controls("RadioButton2").Checked Then
    ElseIf e.Form.Controls("RadioButton3").Checked Then
    ElseIf e.Form.Controls("RadioButton4").Checked Then
    End If
End If
If e.Form.Controls("RadioButton8").checked Then
    Dim ndrb As DataRow = DataTables("表D").AddNew
    ndrb("金额") = e.Form.controls("TextBox1").text
    ndrb("来源") = e.Form.controls("RadioButton1").Text
    If e.Form.Controls("RadioButton2").Checked Then
    ElseIf e.Form.Controls("RadioButton3").Checked Then
    ElseIf e.Form.Controls("RadioButton4").Checked Then
    End If
End If

 回到顶部
总数 96 1 2 3 4 5 6 7 8 9 10 下一页