public static void Set_BiddingState(string state, string BiddingCode) { Bidding bidding = new Bidding(); bidding.BiddingCode = BiddingCode; bidding.State = state; bidding.BiddingSubmit(); }
public static void Set_BiddingState(string state, string BiddingCode, StandardEntityDAO dao) { Bidding bidding = new Bidding(); bidding.BiddingCode = BiddingCode; bidding.dao = dao; bidding.State = state; bidding.BiddingSubmit(); }
public void SubmitBiddingState() { RmsPM.BLL.BiddingPrejudication cBiddingPrejudication = new RmsPM.BLL.BiddingPrejudication(); cBiddingPrejudication.BiddingPrejudicationCode = this.ApplicationCode; cBiddingPrejudication.dao = this.dao; RmsPM.BLL.Bidding bidding = new RmsPM.BLL.Bidding(); bidding.dao = this.dao; bidding.BiddingCode = cBiddingPrejudication.BiddingCode; bidding.State = "1"; bidding.BiddingSubmit(); }
/// <summary> /// 业务审核 /// </summary> public override bool Audit(string pm_sOpinionConfirm) { base.Audit(pm_sOpinionConfirm); try { string ErrMsg = ""; RmsPM.DAL.QueryStrategy.BiddingReturnStrategyBuilder sb = new RmsPM.DAL.QueryStrategy.BiddingReturnStrategyBuilder(); sb.AddStrategy(new Strategy(RmsPM.DAL.QueryStrategy.BiddingReturnStrategyName.BiddingEmitCode, this.ApplicationCode)); string sql = sb.BuildMainQueryString(); EntityData entity = new EntityData("BiddingReturn"); if (this.dao == null) { this.dao = new StandardEntityDAO("BiddingReturn"); } dao.FillEntity(sql, entity); for (int i = 0; i < this.Repeater1.Items.Count; i++) { string _BiddingReturnCode = ((HtmlInputText)this.Repeater1.Items[i].FindControl("txtBiddingReturnCode")).Value.Trim(); string _Design = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioDesign")).SelectedValue; string _Project = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioProject")).SelectedValue; string _Consultant = ((RadioButtonList)this.Repeater1.Items[i].FindControl("RadioConsultant")).SelectedValue; string _State = ((HtmlGenericControl)this.Repeater1.Items[i].FindControl("txtState")).InnerText.Trim(); string _Flag = "0"; if (((HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkAuditing")).Checked) { _Flag = "1"; //string flag="1"; try { string supplier = ((HtmlInputText)this.Repeater1.Items[i].FindControl("hiddenSupplierCode")).Value.Trim(); RmsPM.BLL.BiddingReturn cbiddingReturn = new RmsPM.BLL.BiddingReturn(); cbiddingReturn.dao = this.dao; cbiddingReturn.BiddingReturnCode = _BiddingReturnCode; cbiddingReturn.Flag = "1"; cbiddingReturn.BiddingReturnSubmit(); } catch (Exception ex) { Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message)); } } DataRow[] dr = entity.CurrentTable.Select("BiddingReturnCode=" + _BiddingReturnCode); if (_Design != "" && this.State1 == ModuleState.Operable) { dr[0]["Design"] = _Design; } if (_Project != "" && this.State2 == ModuleState.Operable) { dr[0]["Project"] = _Project; } if (_Consultant != "" && this.State3 == ModuleState.Operable) { dr[0]["Consultant"] = _Consultant; } if (_State != "" && this.State4 == ModuleState.Operable) { dr[0]["State"] = _State; } if (this.SupplierState == ModuleState.Operable) { dr[0]["Flag"] = _Flag; } } dao.SubmitEntity(entity); if (this.SupplierState == ModuleState.Operable) { ErrMsg = this.SubmitBiddingMessage(); if (ErrMsg != "") { Response.Write(Rms.Web.JavaScript.Alert(true, ErrMsg)); return(false); } RmsPM.BLL.Bidding bidding = new RmsPM.BLL.Bidding(); bidding.BiddingCode = this.BiddingCode; bidding.dao = this.dao; bidding.State = "42"; bidding.BiddingSubmit(); } if (SetAttachList1 == ModuleState.Operable) { this.AttachMentAdd1.SaveAttachMent(this.ApplicationCode); } if (SetAttachList2 == ModuleState.Operable) { this.AttachMentAdd2.SaveAttachMent(this.ApplicationCode); } if (ErrMsg != "") { Response.Write(Rms.Web.JavaScript.Alert(true, ErrMsg)); return(false); } return(true); } catch (Exception ex) { RmsPM.Web.ApplicationLog.WriteLog(this.ToString(), ex, ""); Response.Write(Rms.Web.JavaScript.Alert(true, "业务审核出错:" + ex.Message)); throw ex; } }
/// **************************************************************************** /// <summary> /// 提交数据 /// </summary> /// **************************************************************************** public override string SubmitData() { try { string ErrMsg = ""; if (txtNumber.Value == "") { //Response.Write(Rms.Web.JavaScript.Alert(true,"合同编号不能为空")); ErrMsg = "编号不能为空"; return(ErrMsg); } if (!this.UCBiddingSupplierList1.SelectedSupplierFlag && this.State1 == ModuleState.Operable) { ErrMsg = "请选择预审通过单位"; return(ErrMsg); } if (this.State == ModuleState.Operable) { RmsPM.BLL.Bidding cBidding = new RmsPM.BLL.Bidding(); cBidding.BiddingCode = this.BiddingCode; cBidding.ConfirmDate = this.TxtEmitDate.Text; cBidding.BiddingSubmit(); RmsPM.BLL.BiddingPrejudication cBiddingPrejudication = new RmsPM.BLL.BiddingPrejudication(); cBiddingPrejudication.BiddingPrejudicationCode = this.ApplicationCode; cBiddingPrejudication.BiddingCode = this.BiddingCode; cBiddingPrejudication.Number = this.txtNumber.Value; cBiddingPrejudication.UserCode = this.UserCode; cBiddingPrejudication.CreateDate = DateTime.Now.ToShortDateString(); cBiddingPrejudication.State = ""; cBiddingPrejudication.Flag = ""; cBiddingPrejudication.dao = this.dao; cBiddingPrejudication.BiddingPrejudicationSubmit(); if (this.ApplicationCode == "") { RmsPM.BLL.BiddingSupplier cBiddingSupplier = new RmsPM.BLL.BiddingSupplier(); cBiddingSupplier.BiddingPrejudicationCode = this.ViewState["tempCode"].ToString(); cBiddingSupplier.dao = dao; EntityData entity = cBiddingSupplier._GetBiddingSuppliers(); for (int i = 0; i < entity.CurrentTable.Rows.Count; i++) { entity.CurrentTable.Rows[i]["BiddingPrejudicationCode"] = cBiddingPrejudication.BiddingPrejudicationCode; } dao.SubmitEntity(entity); this.ApplicationCode = cBiddingPrejudication.BiddingPrejudicationCode; RmsPM.BLL.BiddingSystem.UpDataPrejudicationCode(cBiddingPrejudication.BiddingPrejudicationCode, this.ViewState["tempCode"].ToString()); } } if (SetAttachList1 == ModuleState.Operable) { this.AttachMentAdd1.SaveAttachMent(this.ApplicationCode); } if (SetAttachList2 == ModuleState.Operable) { this.AttachMentAdd2.SaveAttachMent(this.ApplicationCode); } if (SetAttachList3 == ModuleState.Operable) { this.AttachMentAdd3.SaveAttachMent(this.ApplicationCode); } if (this.State1 == ModuleState.Operable) { //this.BiddingPrejudicationModify1.ApplicationCode = this.ApplicationCode; //this.BiddingPrejudicationModify1.dao = dao; //this.SubmitBiddingState(); this.UCBiddingSupplierList1.BiddingPrejudicationCode = this.ApplicationCode; } if (this.UCBiddingSupplierList1.CanModify) { this.UCBiddingSupplierList1.dao = this.dao; this.UCBiddingSupplierList1.ModifyData(); } if (this.UCBiddingSupplierList1.CanSelect) { this.UCBiddingSupplierList1.dao = this.dao; this.UCBiddingSupplierList1.SaveData(); } //DataGridShowState(); UCBiddingSupplierList1.UpdateDepartMentSelect(); //ErrMsg += this.BiddingSupplierGrade1.SubmitGradeData(); return(ErrMsg); } catch (Exception ex) { ApplicationLog.WriteLog(this.ToString(), ex, ""); Response.Write(Rms.Web.JavaScript.Alert(true, "保存出错:" + ex.Message)); throw ex; } }