Vars("text") = "日常费用支付管理"
'Vars("text") = Forms("主窗口").Controls("TabControl1").SelectedPage.text
Dim Filter As String
Filter = "[表名称] = '" & Vars("text") & "'"
Dim r As Row = Tables(Vars("text")).Current
If r IsNot Nothing Then
Dim dr As DataRow = DataTables("审核流程管理").SQLFind("表名称 = '" & Vars("text") & "'")
If dr IsNot Nothing Then '如果找到的话
Dim dr1 As DataRow = DataTables("审核流程管理").SQLFind("表名称 = '" & Vars("text") & "' And 审批状态 = '" & r("审批状态") & "'")
If dr1 IsNot Nothing Then '如果找到的话
Dim frm As WinForm.Form = e.Form
Dim i As Integer = 0
Dim ajm As List(of DataRow) = DataTables("审核流程管理").sqlS elect(Filter,"","流程编号") '用sql又排序就必须Top 可选参数,指定返回的行数
'绘制整个流程的图
For Each aj2 As DataRow In ajm
Dim aj As String = aj2("审核人角色") And
Dim abc As WinForm.Button
abc = frm.CreateControl(aj, ControlTypeEnum.Button)
Dim ds1 As DataRow = DataTables("审核意见表").SQLFind("表名称 = '" & Vars("text") & "' And 审核部门 = '" & aj & "' And ID = '" & r("ID") & "'")
.......