private string GetWorkFlowListString() { string ListString = "''"; BLL.BiddingAuditing cbiddingAuditing = new RmsPM.BLL.BiddingAuditing(); cbiddingAuditing.BiddingCode = this.ApplicationCode; DataTable dtba = cbiddingAuditing.GetBiddingAuditings(); for (int i = 0; i < dtba.Rows.Count; i++) { ListString += ",'招标议标评审" + dtba.Rows[i]["BiddingAuditingCode"].ToString() + "'"; } BLL.BiddingFile bf = new RmsPM.BLL.BiddingFile(); bf.BiddingCode = this.ApplicationCode; DataTable dtbf = bf.GetBiddingFiles(); for (int i = 0; i < dtbf.Rows.Count; i++) { ListString += ",'招标文件评审" + dtbf.Rows[i]["BiddingFileCode"].ToString() + "'"; } BLL.BiddingConditionFile bcf = new RmsPM.BLL.BiddingConditionFile(); bcf.BiddingCode = this.ApplicationCode; DataTable dtbcf = bcf.GetBiddings(); for (int i = 0; i < dtbcf.Rows.Count; i++) { ListString += ",'招标技术条件评审" + dtbcf.Rows[i]["BiddingConditionFileCode"].ToString() + "'"; } BLL.BiddingPrejudication bp = new BLL.BiddingPrejudication(); bp.BiddingCode = this.ApplicationCode; DataTable dtp = bp.GetBiddingPrejudications(); for (int i = 0; i < dtp.Rows.Count; i++) { ListString += ",'投标单位评审" + dtp.Rows[i]["BiddingPrejudicationCode"].ToString() + "'"; } BLL.BiddingEmit be = new BLL.BiddingEmit(); be.BiddingCode = this.ApplicationCode; DataTable tb = be.GetBiddingEmits(); for (int z = 0; z < tb.Rows.Count; z++) { ListString += ",'中标单位评审" + tb.Rows[z]["BiddingEmitCode"].ToString() + "'"; } BLL.BiddingMessage bm = new BLL.BiddingMessage(); bm.BiddingCode = this.ApplicationCode; DataTable dtm = bm.GetBiddingMessages(); for (int i = 0; i < dtm.Rows.Count; i++) { ListString += ",'中标通知书评审" + dtm.Rows[i]["BiddingMessageCode"].ToString() + "'"; } return(ListString); }
/// **************************************************************************** /// <summary> /// 数据加载 /// </summary> /// **************************************************************************** private void LoadData(bool Flag) { this.ViewState["BiddingReturnCodeStr"] = ""; if (this.ApplicationCode != "") { BLL.BiddingMessage cBiddingMessage = new BLL.BiddingMessage(); cBiddingMessage.BiddingMessageCode = this.ApplicationCode; this.BiddingCode = cBiddingMessage.BiddingCode; this.ProjectCode = cBiddingMessage.ProjectCode; this.SupplierCode = cBiddingMessage.Supplier; this.ProjectCode = cBiddingMessage.ProjectCode; BLL.Bidding bidding = new BLL.Bidding(); bidding.BiddingCode = cBiddingMessage.BiddingCode; this.ViewState["Money"] = bidding.Money; this.ViewState["mostly"] = bidding.Accessory; this.ViewState["BiddingType"] = bidding.Type; if (Flag) { this.txtProjectCode.InnerHtml = " " + BLL.ProjectRule.GetProjectName(cBiddingMessage.ProjectCode); this.txtContractNember.Value = cBiddingMessage.ContractNember; this.txtContractName.Value = cBiddingMessage.ContractName; this.txtContractType.InnerHtml = " " + BLL.ContractRule.GetContractTypeName(cBiddingMessage.ContractType); //this.txtSupplier.InnerHtml = " "+BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier); this.txtContractDate.Value = cBiddingMessage.ContractDate; this.txtRemark.Value = cBiddingMessage.Remark; DataTable dt = bidding.GetBiddingReturnNoMessage(); foreach (DataRow dr in dt.Select()) { ListItem li = new ListItem(BLL.ProjectRule.GetSupplierName(dr["SupplierCode"].ToString()), dr["SupplierCode"].ToString()); if (!DropSupplier.Items.Contains(li)) { this.DropSupplier.Items.Add(li); } } ListItem lis = new ListItem(BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier), cBiddingMessage.Supplier); this.DropSupplier.Items.Add(lis); this.DropSupplier.SelectedIndex = this.DropSupplier.Items.IndexOf(this.DropSupplier.Items.FindByValue(cBiddingMessage.Supplier)); BoundBiddingDtl(cBiddingMessage.BiddingReturnCode); this.ViewState["BiddingReturnCodeStr"] = cBiddingMessage.BiddingReturnCode; } else { this.tdProjectCode.InnerHtml = " " + BLL.ProjectRule.GetProjectName(cBiddingMessage.ProjectCode); this.tdContractNember.InnerHtml = " " + cBiddingMessage.ContractNember; this.tdContractName.InnerHtml = " " + cBiddingMessage.ContractName; this.tdContractType.InnerHtml = " " + BLL.ContractRule.GetContractTypeName(cBiddingMessage.ContractType); this.tdSupplier.InnerHtml = " " + BLL.ProjectRule.GetSupplierName(cBiddingMessage.Supplier); this.tdBiddingDtl.InnerHtml = this.GetBiddingDtlListStr(cBiddingMessage.BiddingReturnCode, cBiddingMessage.Supplier); this.tdContractDate.InnerHtml = " " + cBiddingMessage.ContractDate; this.tdRemark.InnerHtml = " " + cBiddingMessage.Remark.Replace("\n", "<br>"); } } else { BLL.Bidding bidding = new BLL.Bidding(); bidding.BiddingCode = this.BiddingCode; this.ViewState["Money"] = bidding.Money; this.ViewState["mostly"] = bidding.Accessory; this.ViewState["BiddingType"] = bidding.Type; this.txtProjectCode.InnerHtml = " " + BLL.ProjectRule.GetProjectName(bidding.ProjectCode); this.txtContractType.InnerHtml = " " + BLL.ContractRule.GetContractTypeName(bidding.Type); this.ProjectCode = bidding.ProjectCode; DataTable dt = bidding.GetBiddingReturnNoMessage(); foreach (DataRow dr in dt.Select()) { ListItem li = new ListItem(BLL.ProjectRule.GetSupplierName(dr["SupplierCode"].ToString()), dr["SupplierCode"].ToString()); if (!DropSupplier.Items.Contains(li)) { this.DropSupplier.Items.Add(li); } } BoundBiddingDtl(""); this.txtContractName.Value = bidding.Title; } //构建编号 BLL.BiddingMessage biddingMessage = new BLL.BiddingMessage(); biddingMessage.BiddingCode = this.BiddingCode; System.Data.DataTable BiddingMessagedt = biddingMessage.GetBiddingMessages() as System.Data.DataTable; string CNnum = "0"; if (BiddingMessagedt != null) { CNnum = BiddingMessagedt.Rows.Count.ToString(); } BLL.BiddingPrejudication bp = new BLL.BiddingPrejudication(); bp.BiddingCode = this.BiddingCode; DataTable dtp = bp.GetBiddingPrejudications(); DataRow[] drw = dtp.Select("", "CreateDate desc"); if (drw.Length > 0) { this.ContractNember = drw[0]["Number"].ToString() + "-" + CNnum; } }