勾选的人员的集合怎么写呢
Dim e As object = args(0)
Dim wb As New weui
wb.AppendHTML("<link rel='stylesheet' href='./weui/exweui.css'/>", True)
wb.AppendHTML("<script src='./weui/exweui.js' ></script>", True)
If e.PostValues.Count = 0 Then
wb.AddForm("","form1","Rename_checking.htm")
With wb.AddInputGroup("form1","考勤日期","请选择考勤日期")
With .AddInput("考勤日期","考勤日期","date")
End With
End With
Dim cdg As ExWeUI.ExCheckGroup = ExWeUI.WebUI.AddCheckGroup("", "在岗人员", "请选择考勤人员")
Dim drs As List(of DataRow) = DataTables("实名制管理").SQLSelect("项目名称 = '" & _Userxmmc & "' and 在岗状态 = '在岗'")
If drs.Count > 0 Then
For Each dr As DataRow In drs
Dim s As String = dr("姓名")
If s.Length = 2 Then
Dim s1 As String = s.PadRight(3)
cdg.add(dr("_Identify"),s1 & " ")
Else
cdg.add(dr("_Identify"),s)
End If
Next
wb.InsertHTML("form1", cdg.BuildHtml)
wb.AppendHTML("<script>initExWeUI();</script>") '需要注意的是,这里不需要使用true参数
'添加底部返回及保存按钮
wb.InsertHTML("<div style='height:50px'></div>")
wb.AddPage("form1","page1").Attribute = "style='position: fixed;bottom: 0;right: 0;left: 0'" '增加两个page
With wb.AddButtonGroup("page1","btg1", False)
.Add("btn1", "返回", ,"", "Rename.htm")
.Add("btn2", "保存", "button").Attribute = "" '调用js函数上传
End With
e.WriteString(wb.Build)
Else
With wb.AddMsgPage("","msgpage","提示","该项目还未添加实名制登记人员,不能上报考勤数据!")
.icon = "info" '改变图标"success","info","warn",对应的图标分别是
.AddButton("btn1","返回").Attribute = ""
End With
e.WriteString(wb.Build)
Return Nothing '必须返回
End If
Else
Dim d As Date = e.PostValues("考勤日期")
If d = Nothing Then
Return Nothing '必须返回
End If
For Each r As WinForm.ListViewRow In lvw.Rows
Dim dr As DataRow = DataTables("实名制考勤").SQLFind("项目名称 = '" & _Userxmmc & "' and 年 = '" & d.Year & "' and 月 = '" & d.Month & "'")
If dr Is Nothing Then
dr = DataTables("实名制考勤").AddNew
dr("年") = d.Year
dr("月") = d.Month
If r.Checked = True
dr("日" & d.Day) = "√"
Else
dr("日" & d.Day) = "×"
End If
End If
Next
End If