按照该方法为何不行?问题出在哪儿?求指教。
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=100104&skin=0
dim bmmc as string
Case "立项申请-申请.htm"
wb.AddForm("","form1","立项申请-申请.htm")
With wb.AddInputGroup("form1","ipg1","基本信息")
.AddInput("合同甲方","合同甲方","text")
.AddInput("项目名称","项目名称","text")
With .AddSelect("申请部门","申请部门","|" & DataTables("字典管理").SqlGetComboListString("部门名称"))
.Attribute = """
End With
.AddSelect("合同乙方","合同乙方","|" & DataTables("字典管理").SqlGetComboListString("合同乙方"))
.AddSelect("会计核算部门","会计核算部门","|" & DataTables("字典管理").SqlGetComboListString("部门名称"))
.AddSelect("立项依据","立项依据","书面委托|中标通知|合同协议")
.AddInput("已签合同额","已签合同额","number")
.AddInput("未签合同额","未签合同额","number")
.AddSelect("指定借款人","指定借款人",DataTables("人员管理").SqlGetComboListString("员工姓名","部门名称='" & bmmc & "'"))
.AddInput("开工日期","开工日期","date")
.AddInput("合同工期","合同工期","date")
.AddSelect("项目地区","项目地区","|" & DataTables("字典管理").SqlGetComboListString("项目地区"))
.AddSelect("行业类别","行业类别","|" & DataTables("字典管理").SqlGetComboListString("行业类别"))
.AddSelect("业务类型","业务类型","|" & DataTables("字典管理").SqlGetComboListString("业务类型"))
.AddInput("备注","备注","text")
End With
With wb.AddInputGroup("form1","ipg2","审批信息")
With .AddInput("申请人","申请人","text")
.Value = _username
.Readonly= True
End With
With .AddInput("申请日期","申请日期","date")
.value=Date.Now
.readonly=True
End With
.AddSelect("申请部门领导","申请部门领导",DataTables("字典管理").SqlGetComboListString("部门领导","部门名称='" & bmmc & "'"))
.AddInput("复核日期","复核日期","date").readonly=True
.AddSelect("成本科领导","成本科领导","|" & DataTables("字典管理").SqlGetComboListString("部门领导","部门名称='财务部'"))
.AddInput("审核日期","审核日期","date").readonly=True
.AddSelect("财务部领导","财务部领导",DataTables("字典管理").SqlGetComboListString("部门领导","部门名称='财务部'"))
.AddInput("审批日期","审批日期","date").readonly=True
.AddSelect("公司分管领导","公司分管领导",DataTables("字典管理").SqlGetComboListString("分管领导","部门名称='" & bmmc & "'"))
.AddInput("批转日期","批转日期","date").readonly=True
.AddSelect("财务部受理","财务部受理",DataTables("字典管理").SqlGetComboListString("财务人员","部门名称='" & bmmc & "'"))
.AddInput("受理日期","受理日期","date").readonly=True
End With
With wb.AddButtonGroup("form1","btg1",True)
.Add("btnok","确定")
End With
Case "部门名称.htm"
bmmc = e.PostValues("申请部门")