Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
wb.AddPageTitle("","ph1","<lable style='font-size:30px'>下单-基本信息</lable>","")
wb.AddPageFooter("","pf1","<lable style=float:left;color:red;'font-size:20px'>用户名:" & DecryptText(e.Cookies("username"),"123","123") & "</lable>")
wb.AddForm("","form1","Xd_xxxx.htm")
'wb.AddForm("","form1","Test.htm")
With wb.AddInputGroup("form1","ipg1","")
With .AddSelect("合同类型","合同类型","|常规|冲抵|现金")
.A ttribute = "o nchange=""setAjaxOptions('公司','Jl_Lxgsgcwywy.htm','合同类型',false)"""
End With
With .AddSelect("公司","需方名称","")
.A ttribute = "o nchange=""setAjaxOptions('工程名称','Jl_Lxgsgcwywy.htm','合同类型','公司',false)"""
End With
With .AddSelect("工程名称","工程名称","")
.At tribute = "o nchange=""setAjaxOptions('合同','Jl_Lxgsgcwywy.htm','合同类型','公司','工程名称',false)"""
End With
With .AddSelect("合同","合同编号","")
.A ttribute = "o nchange=""setAjaxOptions('浇注部位','Jl_Htbhjzbw.htm','合同',false),setAjaxOptions('需方联系人','Jl_Htbhxflxr.htm','合同',false)"""
End With
.AddSelect("浇注部位","浇注部位","")
.AddSelect("需方联系人","联 系 人","")
End With
wb.InsertHTML("<lable style=float:left;color:blue;'font-size:20px'>提示:浇注部位与联系人可以不选,在下一步中手工录入;如果是冲现合同,在下一步中可以修改需方名称与工程名称.</lable>")
With wb.AddButtonGroup("form1","btg1",False)
.Add("btn1", "下一步", "submit")
.Add("btn2", "返回首页", "", "default.htm")
End With
e.WriteString(wb.Build) '生成网页
Dim e As RequestEventArgs = args(0)
Dim vals As String
If e.PostValues.Count = 1 Then
Dim Filter As String = "[合同类型] = '" & e.PostValues("合同类型") & "' And [执行状态] = '执行中' And [供货完结] = 0"
vals = "|" & _dt销售合同.SQLGetComboListString("公司", Filter)
ElseIf e.PostValues.Count = 2 Then
Dim Filter As String = "公司='" & e.PostValues("公司") & "' And [合同类型] = '" & e.PostValues("合同类型") & "' And [执行状态] = '执行中' And [供货完结] = 0"
vals = "|" & _dt销售合同.SQLGetComboListString("工程名称", Filter)
ElseIf e.PostValues.Count = 3 Then
Dim Filter As String = "公司='" & e.PostValues("公司") & "' And [合同类型] = '" & e.PostValues("合同类型") & "' And [工程名称] = '" & e.PostValues("工程名称") & "' And [执行状态] = '执行中' And [供货完结] = 0"
vals = "|" & _dt销售合同.SQLGetComboListString("合同", Filter)
End If
e.WriteString(vals)