Foxtable(狐表)用户栏目专家坐堂 → [求助]


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

主题:[求助]

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


加好友 发短信
等级:小狐 帖子:341 积分:3400 威望:0 精华:0 注册:2013/5/17 10:55:00
[求助]  发帖心情 Post By:2016/3/14 9:22:00 [只看该作者]

相同的代码,在2015版中正常执行,升级2016后,红色部分代执行不了,BIN目录清空也不行
forms("附属信息").Text= _cdckxz & "--" & Tables("基本信息").current("姓名") & "--" & Tables("基本信息").Current("档案编号")
Dim tblUser As Table = e.Form.Controls("Table1").Table
Dim strSQL As String="s elect * f rom {" & _cdckxz & "} where 身份证号码 ='" & Tables("基本信息").current("身份证号码") & "'"
'msgbox(strSQL)
tblUser.Fill(strSQL,"rsgl",False)
MessageBox.show(_cdckxz)
MessageBox.show(tbluser.Rows.count)
If _cdckxz = "年度考核" Then
    If tbluser.Rows.Count > 0 Then
        e.Form.controls("Button1").Visible = False
    Else
        e.Form.controls("Button1").Visible = True
        e.Form.Controls("Button1").Left = 592
        e.Form.Controls("Button1").Top = 11
    End If
    e.Form.controls("Button3").Visible = False
    If Tables("基本信息").Current.Isnull("参加工作时间") = False Then
        Dim y As Integer = Tables("基本信息").Current("参加工作时间").year
        If y > 1993 Then
            For i As Integer = 1993 To y -1
                tbluser.Cols.Remove("年度" & i)
            Next
        End If
        
    End If
End If
tblUser.ExtendLastCol = True
tbluser.Cols.Remove("姓名") '移除编辑者列,避免用户直接修改此列
tbluser.Cols.Remove("身份证号码") '移除编辑者列,避免用户直接修改此列
tblUser.AllowEdit=True
Dim rgd As WinForm.RecordGrid = e.Form.Controls("RecordGrid1")
rgd.Table = Tables("附属信息_Table1") '指定绑定表

rgd.Build() '
Dim g = e.Form.Controls("RecordGrid1").Basecontrol
g.AutoSizeRows
g.styles.EmptyArea.BackColor = color.fromargb(231, 237, 243)  '记录窗口空余地颜色背景
Tables("附属信息_Table1") .DataTable.SysStyles("EmptyArea").BackColor = Color.fromargb(231, 237, 243)
Vars("blnOpened")=True
Dim sp3 As WinForm.SplitContainer = e.Form.Controls("SplitContainer3")
Dim aa As WinForm.SplitPanel = sp3.Panel2
aa.basecontrol.backcolor= color.fromargb(231, 237, 243)
[此贴子已经被作者于2016/3/14 12:50:23编辑过]

 回到顶部
总数 13 1 2 下一页