/// **************************************************************************** /// <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); InitPage(); if (WorkFlowToolbar1.GetModuleState("Opinion4") == ModuleState.Operable) { WorkFlowToolbar1.SaveCasePropertyValue("用户类别", user.GetOperationType()); } } //发送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Send) { //Response.Write(Rms.Web.JavaScript.WriteJS("ggggg")); try { DataSubmit(dao); //如果为发起,则将状态改为"中标单位审批中" if (WorkFlowToolbar1.GetModuleState("BaseWrite") == ModuleState.Operable) { BLL.BiddingSystem.Set_BiddingState("41", this.BiddingMessageModify1.BiddingCode); } if (WorkFlowToolbar1.GetModuleState("End") == ModuleState.Eyeable) { BLL.BiddingSystem.Set_BiddingState("42", this.BiddingMessageModify1.BiddingCode); } } catch (Exception ex) { Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message)); } WorkFlowToolbar1.Send(); } //退回 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Back) { DataSubmit(dao); WorkFlowToolbar1.Back(); } //收回 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) { 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); } } //完成 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.TaskFinish) { DataSubmit(dao); if (WorkFlowToolbar1.GetModuleState("End") == ModuleState.Eyeable) { BLL.BiddingSystem.Set_BiddingState("42", this.BiddingMessageModify1.BiddingCode); } WorkFlowToolbar1.TaskFinish(); } //结束 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Finish) { DataSubmit(dao); if (WorkFlowToolbar1.GetModuleState("End") == ModuleState.Eyeable) { BLL.BiddingSystem.Set_BiddingState("42", this.BiddingMessageModify1.BiddingCode); } WorkFlowToolbar1.Finish(); } //抄送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.MakeCopy) { DataSubmit(dao); WorkFlowToolbar1.MakeCopy(); } //删除 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Delete) { WorkFlowToolbar1.Delete(); BLL.BiddingSystem.Set_BiddingState("3", this.BiddingMessageModify1.BiddingCode, dao); } /*******************************************************/ dao.CommitTrans(); } catch (Exception ex) { dao.RollBackTrans(); throw ex; } } /*******************************************************************/ }
/// **************************************************************************** /// <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; } } /*******************************************************************/ }
/// **************************************************************************** /// <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()); } InitPage(); this.DataGridShowState(); UCBiddingSupplierList1.LoadEditData(); } //发送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Send) { //this.RegisterStartupScript("","<script>alert('请选择预审通过单位!');</script>"); if (!this.UCBiddingSupplierList1.SelectedSupplierFlag && this.BiddingPrejudicationModify1.State1 == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择预审通过单位!');</script>"); return; } try { DataSubmit(dao); //UCBiddingSupplierList1.UpdateDepartMentSelect(); } catch (Exception ex) { Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message)); } WorkFlowToolbar1.Send(); } //退回 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Back) { DataSubmit(dao); WorkFlowToolbar1.Back(); } //收回 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(); //UCBiddingSupplierList1.UpdateDepartMentSelect(); } //保存 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Save) { ///if(!this.UCBiddingSupplierList1.SelectedSupplierFlag && this.BiddingPrejudicationModify1.State1 == ModuleState.Operable) //{ // this.RegisterStartupScript("","<script>alert('请选择预审通过单位!');</script>"); // return; //} try { DataSubmit(dao); //UCBiddingSupplierList1.UpdateDepartMentSelect(); } catch (Exception ex) { Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message)); } 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); } } //完成 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.TaskFinish) { if (!this.UCBiddingSupplierList1.SelectedSupplierFlag && this.BiddingPrejudicationModify1.State1 == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择预审通过单位!');</script>"); return; } DataSubmit(dao); WorkFlowToolbar1.TaskFinish(); } //结束 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Finish) { if (!this.UCBiddingSupplierList1.SelectedSupplierFlag && this.BiddingPrejudicationModify1.State1 == ModuleState.Operable) { this.RegisterStartupScript("", "<script>alert('请选择预审通过单位!');</script>"); return; } DataSubmit(dao); WorkFlowToolbar1.Finish(); } //抄送 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.MakeCopy) { DataSubmit(dao); WorkFlowToolbar1.MakeCopy(); } //删除 if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Delete) { WorkFlowToolbar1.Delete(); UCBiddingSupplierList1.DeleteAll(dao); } /*******************************************************/ dao.CommitTrans(); } catch (Exception ex) { dao.RollBackTrans(); throw ex; } } /*******************************************************************/ }