protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //������������ddl TableFlagDB CNB = new TableFlagDB(); List<Detail_OA_SWFTABLEFLAG> DCAList = CNB.GetApplyInfo(); //ѡ���ѱ�����WorkFlow�е�tableflag������Щ��װ����ddl�� List<SWFVersion> SVList = WF.SelectWFVersionList(); ddlApplyItem.Items.Add(new ListItem("-��ѡ��-", "0")); for (int i = 0; i < DCAList.Count; i++) { bool IsExit = false; //�ж��Ƿ��Ѿ����� for (int j = 0; j < SVList.Count; j++) { if (DCAList[i].TABLEFLAG == SVList[j].TableFlag) IsExit = true; } if (!IsExit) ddlApplyItem.Items.Add(new ListItem(DCAList[i].TABLENAME, DCAList[i].TABLEFLAG + "#" + DCAList[i].PAGEURL2)); } hidTableFlag.Value = ""; hidBackUserIDList.Value = ""; } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string VersionGuid = Request.QueryString["VersionGuid"].ToString(); SWFVersion WFV = WF.SelectWFVersion(VersionGuid); //������������ddl TableFlagDB CNB = new TableFlagDB(); List<Detail_OA_SWFTABLEFLAG> DCAList = CNB.GetApplyInfo(); //ѡ���ѱ�����WorkFlow�е�tableflag������Щ��װ����ddl�� List<SWFVersion> SVList = WF.SelectWFVersionList(); ddlApplyItem.Items.Add(new ListItem("-��ѡ��-", "0")); for (int i = 0; i < DCAList.Count; i++) { bool IsExit = false; //�ж��Ƿ��Ѿ����� for (int j = 0; j < SVList.Count; j++) { if (DCAList[i].TABLEFLAG == SVList[j].TableFlag) IsExit = true; } if (!IsExit) ddlApplyItem.Items.Add(new ListItem(DCAList[i].TABLENAME, DCAList[i].TABLEFLAG + "#" + DCAList[i].PAGEURL2)); } ddlApplyItem.Items.Add(new ListItem(WFV.TableName, WFV.TableFlag + "#" + WFV.FormUrl)); ddlApplyItem.SelectedItem.Text = WFV.TableName; txtFormUrl.Text = WFV.FormUrl; txtFunDescription.Text = WFV.FunDescription; txtVersionName.Text = WFV.VersionName; txtVersionNo.Text = WFV.VersionNo; chbIsEnable.Checked = WFV.IsEnable; txtBackUserNameList.Text = WFV.ADUserNameList; hidBackUserIDList.Value = WFV.ADUserIDList; } }