--
Dim Filter As String = "1=1"
With e.Form.Controls("comboBox15")
If .Value IsNot Nothing Then
Filter &= " and 年度 = \'" & .Value & "\'"
End If
End With
With e.Form.Controls("StarDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "接收处理日期 >= #" & .Value & "#"
End If
End With
With e.Form.Controls("EndDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "接收处理日期 <= #" & .Value & "#"
End If
End With
With e.Form.Controls("comboBox16")
If .Value IsNot Nothing Then
Filter &= " and 受伤害职工姓名 = \'" & .Value & "\'"
End If
End With
If e.Form.Controls("yja1").Checked = True \' 如果付款状态选择了"已付"
Filter = Filter & " and 是否结案 = true"
End If
If e.Form.Controls("wja1").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否结案 = false"
End If
If e.Form.Controls("ydc1").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否调查 = True"
End If
If e.Form.Controls("wdc1").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否调查 = false"
End If
If e.Form.Controls("fq").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否放弃 = True"
End If
If e.Form.Controls("wfq").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否放弃 = false"
End If
If e.Form.Controls("wt").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否委托 = True"
End If
If e.Form.Controls("ysl").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 是否受理 = true"
End If
\'If e.Form.Controls("wsl").Checked = True \' 如果付款状态选择了"未付"
\'Filter = Filter & " and 是否受理 = false"
\'End If
If e.Form.Controls("ybz").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 已补正 = true"
End If
If e.Form.Controls("xbz").Checked = True \' 如果付款状态选择了"未付"
Filter = Filter & " and 需补正 = true"
End If
\'msgbox(filter)
If Filter > "" Then
Dim str As String = Tables("工伤认定申请表_table1").DataTable.GetComboListString("_Identify", filter)
Tables("工伤认定申请表_table1").Filter = "_Identify in (-1," & str.replace("|", ",") & ")"
End If
\'If Filter > "" Then
\'Tables("工伤认定申请表_table1").Filter = Filter
\'End If
\'
Tables("工伤认定申请表_table1").Sort = "申请时间"
\'
\'\'Dim xm As WinForm.ComboBox = e.Form.Controls("combobox16")
\'\'Tables("工伤认定申请表_table1").Filter="受伤害职工姓名 = \'" & xm.text & "\'"
\'\'
\'Dim Filter As String
\'With e.Form.Controls("comboBox15")
\'If .Value IsNot Nothing Then
\'Filter = "年度 = \'" & .Value & "\'"
\'End If
\'End With
\'
\'With e.Form.Controls("comboBox1")
\'If .Value IsNot Nothing Then
\'Filter = "月份 = \'" & .Value & "\'"
\'End If
\'End With
\'
\'\'With e.Form.Controls("comboBox2")
\'\'If .Value IsNot Nothing Then
\'\'Filter = "认定月份 = \'" & .Value & "\'"
\'\'End If
\'\'End With
\'\'
\'With e.Form.Controls("comboBox16")
\'If .Value IsNot Nothing Then
\'Filter = "受伤害职工姓名 = \'" & .Value & "\'"
\'End If
\'End With
\'
\'If e.Form.Controls("yja1").Checked = True \' 如果付款状态选择了"已付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否结案 = true"
\'End If
\'If e.Form.Controls("wja1").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否结案 = false"
\'End If
\'If e.Form.Controls("ydc1").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否调查 = True"
\'End If
\'
\'If e.Form.Controls("wdc1").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否调查 = false"
\'End If
\'If e.Form.Controls("fq").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否放弃 = True"
\'End If
\'If e.Form.Controls("wfq").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否放弃 = false"
\'End If
\'
\'If e.Form.Controls("wt").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "是否委托 = True"
\'End If
\'
\'If e.Form.Controls("bsl").Checked = True \' 如果付款状态选择了"未付"
\'If Filter >"" Then
\'Filter = Filter & " And "
\'End If
\'Filter = Filter & "不受理 = false"
\'End If
\'
\'If Filter > "" Then
\'Dim str As String = Tables("工伤认定申请表_table1").DataTable.GetComboListString("_Identify", filter)
\'Tables("工伤认定申请表_table1").Filter = "_Identify in (" & str.replace("|", ",") & ")"
\'End If
\'
\'\'If Filter > "" Then
\'\'Tables("工伤认定申请表_table1").Filter = Filter
\'\'End If
\'\'
\'Tables("工伤认定申请表_table1").Sort = "申请时间"