/// **************************************************************************** /// <summary> /// 业务数据操作 /// </summary> /// **************************************************************************** override protected Boolean DataSubmit(StandardEntityDAO dao) { this.WorkFlowCaseState1.SubmitData(); if (this.BiddingPrejudicationModify1.State == ModuleState.Operable) { this.BiddingPrejudicationModify1.ApplicationCode = WorkFlowToolbar1.ApplicationCode; this.BiddingPrejudicationModify1.dao = dao; this.BiddingPrejudicationModify1.SubmitData(); //this.UCBiddingSupplierList1.InsertDepartMent(); WorkFlowToolbar1.ApplicationCode = this.BiddingPrejudicationModify1.ApplicationCode; } if (this.BiddingPrejudicationModify1.State1 == ModuleState.Operable) { this.BiddingPrejudicationModify1.ApplicationCode = WorkFlowToolbar1.ApplicationCode; this.BiddingPrejudicationModify1.dao = dao; this.BiddingPrejudicationModify1.SubmitBiddingState(); } if (this.UCBiddingSupplierList1.CanModify) { this.UCBiddingSupplierList1.dao = dao; this.UCBiddingSupplierList1.ModifyData(); } if (this.UCBiddingSupplierList1.CanSelect) { this.UCBiddingSupplierList1.dao = dao; this.UCBiddingSupplierList1.SaveData(); } //DataGridShowState(); UCBiddingSupplierList1.UpdateDepartMentSelect(); SaveMeetMessage(dao, this.rptMeetSign); return(base.DataSubmit(dao)); //OpinionDataSubmit(dao); }
/// **************************************************************************** /// <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; } }