public BiddingSystem CreateBiddingSystem(BiddingSystem biddingSystem, int?systemToCopyId = null) { db.BiddingSystems.Add(biddingSystem); if (systemToCopyId.HasValue) { var systemToCopy = db.BiddingSystems.Find(systemToCopyId.Value); foreach (var bss in systemToCopy.BiddingSystemSequences) { biddingSystem.AddBiddingSequence(bss.BiddingSequence); } } db.SaveChanges(); return(biddingSystem); }
public override string RestoreStatus() { try { base.RestoreStatus(); string ErrMsg = ""; BiddingSystem.Set_BiddingState("3", this.BiddingCode); return(ErrMsg); } catch (Exception ex) { ApplicationLog.WriteLog(this.ToString(), ex, ""); Response.Write(Rms.Web.JavaScript.Alert(true, "恢复业务数据状态出错:" + ex.Message)); throw ex; } }
public override string ChangeStatusWhenSend(StandardEntityDAO dao) { try { base.ChangeStatusWhenSend(dao); string ErrMsg = ""; if (this.State == ModuleState.Operable && this.SupplierState != ModuleState.Operable) { BiddingSystem.Set_BiddingState("5", this.BiddingCode, this.dao); } return(ErrMsg); } catch (Exception ex) { RmsPM.Web.ApplicationLog.WriteLog(this.ToString(), ex, ""); Response.Write(Rms.Web.JavaScript.Alert(true, "改变业务数据状态出错:" + ex.Message)); throw ex; } }
/// **************************************************************************** /// <summary> /// 数据加载 /// </summary> /// **************************************************************************** private void LoadData(bool Flag) { RmsPM.BLL.BiddingManage bm = new RmsPM.BLL.BiddingManage(); RmsPM.BLL.BiddingReturn cBiddingReturn = new RmsPM.BLL.BiddingReturn(); if (this.ApplicationCode != "") { cBiddingReturn.BiddingEmitCode = this.ApplicationCode; RmsPM.BLL.BiddingEmit cBiddingEmit = new RmsPM.BLL.BiddingEmit(); cBiddingEmit.BiddingEmitCode = cBiddingReturn.BiddingEmitCode; this.BiddingCode = cBiddingEmit.BiddingCode; } else { bm.BiddingCode = this.BiddingCode; this.ApplicationCode = bm.GetLastBiddingEmitCode(); cBiddingReturn.BiddingEmitCode = this.ApplicationCode; } //主体信息 RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding(); cBidding.BiddingCode = this.BiddingCode; string LinkUrl = "<a onclick=OpenLargeWindow('../BiddingManage/biddingmodify.aspx?BiddingCode=" + cBidding.BiddingCode + "&State=edit&ProjectCode=" + cBidding.ProjectCode + "')>" + cBidding.Title + "</a>"; this.tdBiddingTitleTop.InnerHtml = LinkUrl; this.ApplicationTitle = cBidding.Title; this.tdProjectNameTop.InnerHtml = RmsPM.BLL.ProjectRule.GetProjectName(cBidding.ProjectCode) + " "; this.tdContractNemberTop.InnerHtml = BiddingSystem.GetContractNemberByBiddingCode(this.BiddingCode) + " "; //if (this.State == ModuleState.Operable) //{ // this.trOperple.Visible = true; // this.txtMeetingContent.Text = cBidding.ContentMeeting.Replace("\n", "<br>").Replace("\r", " "); //} //else //{ // this.trEyeable.Visible = true; // this.tdMeetingContent.InnerHtml = cBidding.ContentMeeting.Replace("\n", "<br>").Replace("\r", " "); //} this.ViewState["Money"] = cBidding.Money; this.ViewState["mostly"] = cBidding.Accessory; this.ViewState["BiddingType"] = cBidding.Type; this.ProjectCode = bm.ProjectCode; DataTable dt = cBiddingReturn.GetBiddingReturns(); //获取最后的压价信息 dt = RmsPM.BLL.BiddingSystem.GetAuditingMessage(dt, this.BiddingCode, this.ApplicationCode); DataView dv1 = new DataView(dt); //按价格排 DataView dv2 = new DataView(dt); dv2.Sort = "BiddingDtlCode,Money"; int le = dv1.Table.Rows.Count; //DataRow dr dv1.Table.Columns.Add("myState", System.Type.GetType("System.String")); int j = 0; int k = 0; foreach (DataRowView drv2 in dv2) { j++; foreach (DataRowView drv1 in dv1) { if (drv2["BiddingReturnCode"] == drv1["BiddingReturnCode"] && drv2["BiddingDtlCode"] == drv1["BiddingDtlCode"]) { drv1["myState"] = drv2["State"]; break; } } } j = 0; k = 0; decimal tempMoney = 0; foreach (DataRowView drv2 in dv2) { j++; foreach (DataRowView drv1 in dv1) { if (drv2["BiddingReturnCode"] == drv1["BiddingReturnCode"] && drv2["BiddingDtlCode"] == drv1["BiddingDtlCode"]) { drv1["myState"] = drv2["State"]; if (System.Convert.ToDecimal(drv1["Money"]) > tempMoney) { this.ViewState["MaxMoney"] = drv1["Money"].ToString(); tempMoney = System.Convert.ToDecimal(drv1["Money"]); } break; } } } this.Repeater1.DataSource = dv1; this.Repeater1.DataBind(); for (int i = 0; i < this.Repeater1.Items.Count; i++) { if (this.SupplierState == ModuleState.Operable) { ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).Visible = false; ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Checked = (dt.Rows[i]["Flag"].ToString() == "1"); } else { ((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Visible = false; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanAuditing")).InnerHtml = this.SpanText("1", dt.Rows[i]["Flag"].ToString()); } if (this.State1 == ModuleState.Operable) { for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items.Count; k++) { ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items[k]; if (ud_Item.Value == dt.Rows[i]["Design"].ToString()) { ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Items[k].Selected = true; break; } } // ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).SelectedValue = dt.Rows[i]["Design"].ToString(); ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible = false; } else { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).InnerHtml = this.SpanText("2", dt.Rows[i]["Design"].ToString()); ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).Visible = false; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible = true; } if (this.State2 == ModuleState.Operable) { for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items.Count; k++) { ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items[k]; if (ud_Item.Value == dt.Rows[i]["Design"].ToString()) { ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Items[k].Selected = true; break; } } ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible = false; } else { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).InnerHtml = this.SpanText("2", dt.Rows[i]["Project"].ToString()); ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).Visible = false; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible = true; } if (this.State3 == ModuleState.Operable) { for (k = 0; k < ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items.Count; k++) { ListItem ud_Item = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items[k]; if (ud_Item.Value == dt.Rows[i]["Design"].ToString()) { ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Items[k].Selected = true; break; } } ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible = false; } else { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).InnerHtml = this.SpanText("2", dt.Rows[i]["Consultant"].ToString()); ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).Visible = false; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible = true; } if (this.State4 == ModuleState.Operable) { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).Visible = true; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).Visible = false; } else { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).Visible = false; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).Visible = true; } //商务标报价是否显示 if (this.State5 == ModuleState.Sightless) { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).InnerHtml = " "; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanState")).InnerHtml = " "; ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spMoney")).InnerHtml = " "; } //显示评选结果 if (this.SetAgreementMessage == ModuleState.Sightless) { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanDesign")).Visible = false; } if (this.SetProjectMessage == ModuleState.Sightless) { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanProject")).Visible = false; } if (this.SetAdviserMessage == ModuleState.Sightless) { ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("spanConsultant")).Visible = false; } } dt.Dispose(); }
/// **************************************************************************** /// <summary> /// 初始化 /// </summary> /// **************************************************************************** override protected void InitPage() { /**************************************************************************************/ if (Request["ApplicationCode"] != null && Request["ApplicationCode"].ToString() != "") { this.btnSave.Visible = false; this.btnUpdate.Visible = true; this.BiddingAuditing1.ApplicationCode = Request["ApplicationCode"].ToString(); this.BiddingAuditing1.State = ModuleState.Eyeable; this.BiddingAuditing1.State1 = ModuleState.Eyeable; this.BiddingAuditing1.State2 = ModuleState.Eyeable; this.BiddingAuditing1.State3 = ModuleState.Eyeable; this.BiddingAuditing1.State4 = ModuleState.Eyeable; this.BiddingAuditing1.State5 = ModuleState.Eyeable; if (Request["BiddingCode"] != null && Request["BiddingCode"].ToString() != "") { this.BiddingAuditing1.BiddingCode = Request["BiddingCode"] + ""; } else { this.BiddingAuditing1.BiddingCode = ""; } this.BiddingAuditing1.UserCode = user.UserCode; BiddingAuditing1.SetAgreementMessage = ModuleState.Sightless; BiddingAuditing1.SetProjectMessage = ModuleState.Sightless; BiddingAuditing1.SetAdviserMessage = ModuleState.Sightless; } else { this.btnSave.Visible = true; this.btnUpdate.Visible = false; this.BiddingAuditing1.ApplicationCode = ""; this.BiddingAuditing1.State = ModuleState.Operable; this.BiddingAuditing1.State1 = ModuleState.Operable; this.BiddingAuditing1.State2 = ModuleState.Operable; this.BiddingAuditing1.State3 = ModuleState.Operable; this.BiddingAuditing1.State4 = ModuleState.Operable; this.BiddingAuditing1.State5 = ModuleState.Operable; if (Request["BiddingCode"] != null && Request["BiddingCode"].ToString() != "") { this.BiddingAuditing1.BiddingCode = Request["BiddingCode"] + ""; } else { this.BiddingAuditing1.BiddingCode = ""; } this.BiddingAuditing1.UserCode = user.UserCode; BiddingAuditing1.SetAgreementMessage = ModuleState.Operable; BiddingAuditing1.SetProjectMessage = ModuleState.Operable; BiddingAuditing1.SetAdviserMessage = ModuleState.Operable; } this.BiddingAuditing1.InitControl(); this.BiddingTop1.BiddingCode = this.BiddingAuditing1.BiddingCode; this.BiddingTop1.ContractNember = BiddingSystem.GetContractNemberByBiddingCode(this.BiddingAuditing1.BiddingCode); this.BiddingTop1.InitControl(); /************************************************************************************** * this.LeavePass1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;//同意按钮组 * * this.LeavePass1.State = this.WorkFlowToolbar1.GetModuleState("PassBtn"); * this.LeavePass1.InitControl(); * /**************************************************************************************/ /**************************************************************************************/ base.InitPage(); }
/// **************************************************************************** /// <summary> /// 初始化 /// </summary> /// **************************************************************************** override protected void InitPage() { string actCode = Request["ActCode"] + ""; string caseCode = Request["CaseCode"] + ""; if (Request["frameType"] != null) //判断是否为流程监控状态 { if (Request["frameType"].ToString() == "List") { /*if(!user.HasOperationRight("130105")) * { * Response.Redirect( "../RejectAccess.aspx" ); * Response.End(); * }*/ WorkFlowToolbar1.Scout = true; } } if (Request["ApplicationCode"] != null) { WorkFlowToolbar1.ApplicationCode = Request["ApplicationCode"].ToString(); } /**************************************************************************************/ WorkFlowToolbar1.ActCode = actCode; //工具栏设置 WorkFlowToolbar1.CaseCode = caseCode; WorkFlowToolbar1.FlowName = "中标单位评审"; WorkFlowToolbar1.SystemUserCode = this.user.UserCode; WorkFlowToolbar1.SourceUrl = "../WorkFlowControl/"; WorkFlowToolbar1.ProjectCode = Request["ProjectCode"] + ""; WorkFlowToolbar1.ToolbarDataBind(); bool tempDeleteFlag = false; if (this.WorkFlowToolbar1.GetModuleState("DeleteFlag") == ModuleState.Operable) { tempDeleteFlag = true; } WorkFlowToolbar1.BtnDeleteVisible = tempDeleteFlag; /**************************************************************************************/ this.BiddingAuditing1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode; this.BiddingAuditing1.MainState = this.WorkFlowToolbar1.GetModuleState("BaseWrite"); this.BiddingAuditing1.Attachstate = this.WorkFlowToolbar1.GetModuleState("附件"); this.BiddingAuditing1.State = this.WorkFlowToolbar1.GetModuleState("SupplierSelect"); this.BiddingAuditing1.State1 = this.WorkFlowToolbar1.GetModuleState("Select1"); this.BiddingAuditing1.State2 = this.WorkFlowToolbar1.GetModuleState("Select2"); this.BiddingAuditing1.State3 = this.WorkFlowToolbar1.GetModuleState("Select3"); this.BiddingAuditing1.State4 = this.WorkFlowToolbar1.GetModuleState("Select4"); this.BiddingAuditing1.State5 = this.WorkFlowToolbar1.GetModuleState("Select5"); this.BiddingAuditing1.BiddingCode = Request["BiddingCode"] + ""; this.BiddingAuditing1.UserCode = user.UserCode; this.BiddingAuditing1.InitControl(); this.BiddingTop1.BiddingCode = this.BiddingAuditing1.BiddingCode; this.BiddingTop1.ContractNember = BiddingSystem.GetContractNemberByBiddingCode(this.BiddingAuditing1.BiddingCode); this.BiddingTop1.InitControl(); /************************************************************************************** * this.LeavePass1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;//同意按钮组 * this.LeavePass1.State = this.WorkFlowToolbar1.GetModuleState("PassBtn"); * this.LeavePass1.InitControl(); * /**************************************************************************************/ BiddingAuditing1.SetAgreementMessage = this.WorkFlowToolbar1.GetModuleState("合约部"); BiddingAuditing1.SetProjectMessage = this.WorkFlowToolbar1.GetModuleState("工程部"); BiddingAuditing1.SetAdviserMessage = this.WorkFlowToolbar1.GetModuleState("顾问公司"); /**************************************************************************************/ //流程状态查看 this.WorkFlowCaseState1.ActCode = this.WorkFlowToolbar1.ActCode; this.WorkFlowCaseState1.CaseCode = this.WorkFlowToolbar1.CaseCode; this.WorkFlowCaseState1.Toobar = this.WorkFlowToolbar1; this.WorkFlowCaseState1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode; this.WorkFlowCaseState1.FlowName = this.WorkFlowToolbar1.FlowName; this.WorkFlowCaseState1.UserCode = this.user.UserCode; this.WorkFlowCaseState1.Scout = this.WorkFlowToolbar1.Scout; this.WorkFlowCaseState1.ControlDataBind(); base.InitPage(); string ud_sConfirmOpinionList = ""; //控制意见是否可以操作 string ud_sOpinionControlName = "WorkFlowOpinion"; for (int i = 1; i <= 10; i++) { RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion ud_wfoControl; ud_wfoControl = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion) this.Page.FindControl(ud_sOpinionControlName + i.ToString()); ud_wfoControl.IsRdoCheck = false; ud_wfoControl.IsUseTemplateOpinion = true; ud_wfoControl.IsUseTextArea = true; } OpinionControlInit("推荐意见", "SM_BA_建筑设计部", "Opinion1", base.WorkFlowOpinion1, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_工程部", "Opinion2", base.WorkFlowOpinion2, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_合约部", "Opinion3", base.WorkFlowOpinion3, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_项目总监", "Opinion4", base.WorkFlowOpinion4, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_总部总监1", "Opinion5", base.WorkFlowOpinion5, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_总部总监2", "Opinion6", base.WorkFlowOpinion6, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_董事长1", "Opinion7", base.WorkFlowOpinion7, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_董事长2", "Opinion8", base.WorkFlowOpinion8, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_董事长3", "Opinion9", base.WorkFlowOpinion9, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); OpinionControlInit("推荐意见", "SM_BA_董事长4", "Opinion10", base.WorkFlowOpinion10, ud_sConfirmOpinionList, out ud_sConfirmOpinionList); ViewState["_ConfirmOpinionList"] = ud_sConfirmOpinionList; //会签部门表单初始化 /**************************************************************************************/ DataTable ud_dtSendItems = GetSendItemsByCasePropertyValue("会签部门"); if (ud_dtSendItems.Rows.Count > 0) { rptMeetSign.DataSource = ud_dtSendItems; rptMeetSign.DataBind(); } else { this.WorkFlow4.Visible = true; } PageControlInit(); }
/// **************************************************************************** /// <summary> /// 工具栏事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// **************************************************************************** override protected void WorkFlowToolbar1_ToolbarCommand(object sender, System.EventArgs e) { /****************************************************************************/ using (StandardEntityDAO dao = new StandardEntityDAO("Leave")) { dao.BeginTrans(); try { /***********************************************************/ //签收 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.SignIn) { WorkFlowToolbar1.SignIn(dao); if (this.WorkFlowToolbar1.GetModuleState("Opinion4") == ModuleState.Operable) { WorkFlowToolbar1.SaveCasePropertyValue("用户类别", user.GetOperationType()); } if (WorkFlowToolbar1.GetModuleState("BaseWrite") == ModuleState.Operable) { BiddingSystem.Set_BiddingState("3", this.BiddingAuditing1.BiddingCode); } InitPage(); } //发送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Send) { if (!this.BiddingAuditing1.SupplierSelectedFlag && this.BiddingAuditing1.State == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择中标单位!');</script>"); return; } DataSubmit(dao); /// //Bll.Bidding bidding = new Bidding(); //bidding..BiddingCode //更新bidding 为评标状态 if (WorkFlowToolbar1.GetModuleState("BaseWrite") == ModuleState.Operable) { BiddingSystem.Set_BiddingState("5", this.BiddingAuditing1.BiddingCode); } WorkFlowToolbar1.Send(); } //退回 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Back) { DataSubmit(dao); WorkFlowToolbar1.Back(); //if(WorkFlowToolbar1.GetModuleState("BaseWrite")==ModuleState.Operable) //{ // BiddingSystem.Set_BiddingState("3"); //} } //收回 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Return) { WorkFlowToolbar1.Return(); } //送经办人 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.BackTop) { DataSubmit(dao); WorkFlowToolbar1.BackTop(); } //保存意见 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Opinion) { WorkFlowToolbar1.SaveOpinion(); this.WorkFlowCaseState1.ControlDataBind(); } //保存 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Save) { if (!this.BiddingAuditing1.SupplierSelectedFlag && this.BiddingAuditing1.State == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择中标单位!');</script>"); return; } DataSubmit(dao); WorkFlowToolbar1.Save(); WorkFlowPropertySave(); if (!this.WorkFlowToolbar1.IsNew) { Response.Write(Rms.Web.JavaScript.ScriptStart); Response.Write(Rms.Web.JavaScript.OpenerReload(false)); Response.Write(Rms.Web.JavaScript.WinClose(false)); Response.Write(Rms.Web.JavaScript.ScriptEnd); } //更新bidding 为评标状态 if (WorkFlowToolbar1.GetModuleState("BaseWrite") == ModuleState.Operable) { BiddingSystem.Set_BiddingState("3", this.BiddingAuditing1.BiddingCode); } } //完成 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.TaskFinish) { if (!this.BiddingAuditing1.SupplierSelectedFlag && this.BiddingAuditing1.State == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择中标单位!');</script>"); return; } DataSubmit(dao); WorkFlowToolbar1.TaskFinish(); } //结束 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Finish) { if (!this.BiddingAuditing1.SupplierSelectedFlag && this.BiddingAuditing1.State == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择中标单位!');</script>"); return; } this.BiddingAuditing1.State = this.WorkFlowToolbar1.GetModuleState("SupplierSelect"); DataSubmit(dao); WorkFlowToolbar1.Finish(); } //抄送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.MakeCopy) { DataSubmit(dao); WorkFlowToolbar1.MakeCopy(); } /*******************************************************/ dao.CommitTrans(); } catch (Exception ex) { dao.RollBackTrans(); throw ex; } } /*******************************************************************/ }
// PUT: api/BiddingSystem/5 public BiddingSystem Put(int id, [FromBody] BiddingSystem biddingSystem) { return(biddingRepository.CreateBiddingSystem(biddingSystem)); }
public BiddingSystem Post([FromBody] BiddingSystem biddingSystem, int?systemToCopyId = null) { return(biddingRepository.CreateBiddingSystem(biddingSystem, systemToCopyId)); }
public void LoadEditData() { dgListState(); //ShowDgListColumn(BiddingSystem.DepartMentName name); Bind_dgList(BiddingSystem.Get_All_BiddingSupplier(this.ViewState["BiddingPrejudicationCode"].ToString())); }