/// **************************************************************************** /// <summary> /// 提交数据 /// </summary> /// **************************************************************************** public override string SubmitData() { string Errmsg = ""; try { if (this.TxtBiddingFileName.Value == "") { Errmsg = "招标文件名称不允许为空"; return Errmsg; } else if (this.TxtNumber.Value == "") { Errmsg = "招标文件编号不允许为空"; return Errmsg; } if (this.ApplicationCode != "") { this.BiddingFileCode = this.ApplicationCode; } else if (this.BiddingFileCode != "") { this.ApplicationCode = this.BiddingFileCode; } RmsPM.BLL.BiddingFile cBiddingFile = new RmsPM.BLL.BiddingFile(); cBiddingFile.BiddingFileCode = this.BiddingFileCode + ""; cBiddingFile.BiddingCode = this.BiddingCode + ""; cBiddingFile.BiddingFileNumber = this.TxtNumber.Value; cBiddingFile.Remark = this.TxtBiddingFileName.Value; cBiddingFile.State = "1"; cBiddingFile.BiddingFileAdd(); this.BiddingFileCode = cBiddingFile.BiddingFileCode; this.AttachMentAdd1.SaveAttachMent(this.BiddingFileCode); return Errmsg; } catch (System.Exception ec) { Errmsg = ec.Message; return Errmsg; } }
public string DeleteBiddingFile() { string Errmsg = ""; try { RmsPM.BLL.BiddingFile cBiddingFile = new RmsPM.BLL.BiddingFile(); cBiddingFile.BiddingFileCode = this.BiddingFileCode; //RmsPM.BLL.BiddingFile.DeleteBiddingFile cBiddingFile.BiddingFileDelete(); return Errmsg; } catch (System.Exception ec) { Errmsg = ec.Message; return Errmsg; } }
private void LoadData(bool Flag) { RmsPM.BLL.BiddingFile cBiddingFile = new RmsPM.BLL.BiddingFile(); if (this.BiddingFileCode != "") { cBiddingFile.BiddingFileCode = this.BiddingFileCode; } if (this.BiddingCode != "") { cBiddingFile.BiddingCode = this.BiddingCode; } if (this.BiddingFileState != "") { cBiddingFile.State = this.BiddingFileState; } System.Data.DataTable dtBiddingFile = cBiddingFile.GetBiddingFiles(); if (dtBiddingFile.Rows.Count != 0) { this.BiddingFileCode = dtBiddingFile.Rows[0]["BiddingFileCode"].ToString(); cBiddingFile.BiddingFileCode = this.BiddingFileCode; if (Flag) { string LinkUrl = "<a OnClick=\"javascript:OpenLargeWindow('BiddingFileManage.aspx?BiddingCode=" + cBiddingFile.BiddingCode + "&BiddingFileCode=" + this.BiddingFileCode + "&ProjectCode=" + this.ProjectCode + "');\">" + dtBiddingFile.Rows[0]["Remark"].ToString() + "</a>"; this.tdBiddingFileLink.InnerHtml = LinkUrl; this.tdBiddingFileState.InnerHtml = RmsPM.BLL.BiddingFile.GetBiddingFileStatusName(dtBiddingFile.Rows[0]["State"].ToString()); } else { this.tdBiddingFileLink.InnerHtml = cBiddingFile.Remark; this.tdBiddingFileState.InnerHtml = RmsPM.BLL.BiddingFile.GetBiddingFileStatusName(cBiddingFile.State); } } //调试状态下用admin if ((Session["User"] == null) && (Request["DebugUser"] + "" != "")) { Session["User"] = new User(Request["DebugUser"] + ""); } if ((Session["User"] == null) && (ConfigurationSettings.AppSettings["IsDebug"] == "1") && (ConfigurationSettings.AppSettings["DebugUser"] != "")) { Session["User"] = new User(ConfigurationSettings.AppSettings["DebugUser"]); } if (Session["User"] != null) { this.user = (User)Session["User"]; } if (!this.user.HasRight("210906"))//招标文件编辑 { this.btnEdit.Visible = false; } if (!this.user.HasRight("210905"))//招标文件审核 { this.btnWorkflow.Visible = false; } this.btnEdit.Attributes["OnClick"] = "javascript:OpenLargeWindow('BiddingFileManage.aspx?BiddingCode=" + cBiddingFile.BiddingCode + "&BiddingFileCode=" + cBiddingFile.BiddingFileCode + "&ProjectCode=" + this.ProjectCode + "','BiddingFileInfo');"; this.btnWorkflow.Attributes["OnClick"] = "javascript:OpenLargeWindow('" + this.BiddingFileUrl + "?BiddingCode=" + cBiddingFile.BiddingCode + "&BiddingFileCode=" + cBiddingFile.BiddingFileCode + "&ProjectCode=" + this.ProjectCode + "','BiddingFileInfoWorkflow');"; switch (cBiddingFile.State) { case "7": case "9": case "0": this.btnEdit.Visible = false; this.btnWorkflow.Visible = false; break; default: break; } }
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) { RmsPM.BLL.BiddingFile cBiddingFile = new RmsPM.BLL.BiddingFile(); if (this.ApplicationCode != "") { this.BiddingFileCode = this.ApplicationCode; } else if (this.BiddingFileCode != "") { this.ApplicationCode = this.BiddingFileCode; } //System.Data.DataTable dtBiddingFile = cBiddingFile.GetBiddings(); //if (dtBiddingFile.Rows.Count != 0) //{ // this.BiddingFileCode = dtBiddingFile.Rows[0]["BiddingFileCode"].ToString(); // cBiddingFile.BiddingFileCode = this.BiddingFileCode; if (this.ApplicationCode != "") { EntityData entitydata=RmsPM.BLL.BiddingFile.GetBiddingFileByCode(this.ApplicationCode); if (entitydata.HasRecord()) { this.BiddingFileState = entitydata.GetString("state"); if (Flag) { RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding(); cBidding.BiddingCode = this.BiddingCode; string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ControlBiddingFileModigy3')>" + cBidding.Title + "</a>"; //this.tdBiddingTitle.InnerHtml = cBidding.Title; this.txtBiddingTitle.InnerHtml = LinkUrl; this.txtProjectName.InnerHtml = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode); this.TxtBiddingFileName.Value = entitydata.GetString("Remark"); this.TxtNumber.Value = entitydata.GetString("BiddingFileNumber"); this.tdBiddingFileState1.InnerHtml = RmsPM.BLL.BiddingFile.GetBiddingFileStatusName(BiddingFileState); } else { RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding(); cBidding.BiddingCode = this.BiddingCode; string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ControlBiddingFileModigy1')>" + cBidding.Title + "</a>"; //this.tdBiddingTitle.InnerHtml = cBidding.Title; this.tdBiddingTitle.InnerHtml = LinkUrl; this.tdProjectName.InnerHtml = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode); this.TdBiddingFileName.InnerHtml = entitydata.GetString("Remark"); this.TdNumber.InnerHtml = entitydata.GetString("BiddingFileNumber"); this.tdBiddingFileState2.InnerHtml = RmsPM.BLL.BiddingFile.GetBiddingFileStatusName(BiddingFileState); } } entitydata.Dispose(); } else { RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding(); cBidding.BiddingCode = this.BiddingCode; string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + this.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "','ControlBiddingFileModigy2')> " + cBidding.Title + "</a>"; //this.tdBiddingTitle.InnerHtml = cBidding.Title; this.txtBiddingTitle.InnerHtml = LinkUrl; this.txtProjectName.InnerHtml = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode); } }