Exemplo n.º 1
0
        /// ****************************************************************************
        /// <summary>
        /// 保存流程属性数据

        /// </summary>
        /// ****************************************************************************
        private void WorkFlowPropertySave()
        {
            if (this.DesignDocument1.State == ModuleState.Operable)
            {
                WorkFlowToolbar1.SaveCasePropertyValue("申请部门", this.DesignDocument1.Unit);
                WorkFlowToolbar1.SaveCasePropertyValue("申请人", user.UserCode);
                WorkFlowToolbar1.SaveCasePropertyValue("主题", this.DesignDocument1.Title);
                WorkFlowToolbar1.SaveCasePropertyValue("项目代码", this.DesignDocument1.ProjectCode);
                WorkFlowToolbar1.SaveCasePropertyValue("项目部门", RmsPM.BLL.ProjectRule.GetUnitByProject(this.DesignDocument1.ProjectCode));
            }
        }
Exemplo n.º 2
0
 /// ****************************************************************************
 /// <summary>
 /// 保存流程属性数据
 /// </summary>
 /// ****************************************************************************
 override protected void WorkFlowPropertySave()
 {
     base.WorkFlowPropertySave();
     if (this.BiddingPrejudicationModify1.State == ModuleState.Operable)
     {
         WorkFlowToolbar1.SaveCasePropertyValue("估计金额", this.BiddingPrejudicationModify1.Money);
         WorkFlowToolbar1.SaveCasePropertyValue("申请人", user.UserCode);
         WorkFlowToolbar1.SaveCasePropertyValue("主题", this.BiddingPrejudicationModify1.BiddingTitle);
         WorkFlowToolbar1.SaveCasePropertyValue("业务类别", BLL.SystemGroupRule.GetSystemGroupSortIDByGroupCode(this.BiddingPrejudicationModify1.BiddingType));
         WorkFlowToolbar1.SaveCasePropertyValue("主要标段", this.BiddingPrejudicationModify1.mostly);
         WorkFlowToolbar1.SaveCasePropertyValue("用户类别", user.GetOperationType());
         WorkFlowToolbar1.SaveCasePropertyValue("项目部门", BLL.ProjectRule.GetUnitByProject(this.BiddingPrejudicationModify1.ProjectCode));
         WorkFlowToolbar1.SaveCasePropertyValue("项目代码", this.BiddingPrejudicationModify1.ProjectCode);
     }
 }
Exemplo n.º 3
0
 /// ****************************************************************************
 /// <summary>
 /// 保存流程属性数据
 /// </summary>
 /// ****************************************************************************
 override protected void WorkFlowPropertySave()
 {
     //WorkFlowToolbar1.SaveCasePropertyValue("申请部门",this.LeaveInfo1.LeaveUnit);
     if (this.WorkFlowToolbar1.GetModuleState("SaveProperty") == ModuleState.Operable)
     {
         WorkFlowToolbar1.SaveCasePropertyValue("申请人", user.UserCode);
         WorkFlowToolbar1.SaveCasePropertyValue("主题", this.BiddingTop1.Title);
         WorkFlowToolbar1.SaveCasePropertyValue("估计金额", this.BiddingTop1.Money);
         WorkFlowToolbar1.SaveCasePropertyValue("业务类别", BLL.SystemGroupRule.GetSystemGroupSortIDByGroupCode(this.BiddingTop1.BiddingType));
         WorkFlowToolbar1.SaveCasePropertyValue("主要标段", this.BiddingTop1.mostly);
         WorkFlowToolbar1.SaveCasePropertyValue("用户类别", user.GetOperationType());
         WorkFlowToolbar1.SaveCasePropertyValue("项目部门", BLL.ProjectRule.GetUnitByProject(this.BiddingAuditing1.ProjectCode));
         WorkFlowToolbar1.SaveCasePropertyValue("项目代码", this.BiddingAuditing1.ProjectCode);
         WorkFlowToolbar1.SaveCasePropertyValue("最后报价", this.BiddingAuditing1.MaxMoney);
     }
     base.WorkFlowPropertySave();
 }
Exemplo n.º 4
0
        /// ****************************************************************************
        /// <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;
                }
            }
            /*******************************************************************/
        }
Exemplo n.º 5
0
 /// ****************************************************************************
 /// <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;
         }
     }
     /*******************************************************************/
 }
Exemplo n.º 6
0
        /*override protected void SetBaseControl()
         * {
         *  base.WorkFlowToolbar1 = this.WorkFlowToolbar1;
         *  //base.wfcCaseState = this.WorkFlowCaseState1;
         *  base.ucCheckControl = this.ucCheckControl;
         *  //base.ucOperationControl = this.ucOperationControl;
         * }*/
        /// ****************************************************************************
        /// <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;
            }
            if (this.WorkFlowToolbar1.GetModuleState("开始") == ModuleState.Operable)
            {
                tempDeleteFlag = true;
            }
            WorkFlowToolbar1.BtnDeleteVisible = tempDeleteFlag;
            /**************************************************************************************/

            this.BiddingPrejudicationModify1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.BiddingPrejudicationModify1.State           = this.WorkFlowToolbar1.GetModuleState("BaseWrite");
            this.BiddingPrejudicationModify1.State1          = this.WorkFlowToolbar1.GetModuleState("SupplierSelect");
            this.BiddingPrejudicationModify1.UserCode        = user.UserCode;
            this.BiddingPrejudicationModify1.BiddingCode     = Request["BiddingCode"] + "";
            this.BiddingPrejudicationModify1.InitControl();


            ModuleState state = this.WorkFlowToolbar1.GetModuleState("金额设置");//世茂功能 添加金额

            //ModuleState state = ModuleState.Operable;
            if (state == ModuleState.Operable)
            {
                this.btnAddPrice.Visible = true;
                this.btnAddPrice.Attributes.Add("onclick", "javascript:OpenFullWindow('biddingmodify.aspx?ApplicationCode=" + this.BiddingPrejudicationModify1.BiddingCode + "','');");
                this.spMoney.Visible   = true;
                this.spMoney.InnerHtml = this.BiddingPrejudicationModify1.Money.ToString();

                WorkFlowToolbar1.SaveCasePropertyValue("估计金额", this.BiddingPrejudicationModify1.Money);
            }
            else if (state == ModuleState.Eyeable)
            {
                this.btnAddPrice.Visible = false;
                this.spMoney.Visible     = true;
                this.spMoney.InnerHtml   = this.BiddingPrejudicationModify1.Money.ToString();
            }
            else
            {
                this.btnAddPrice.Visible = false;
                this.spMoney.Visible     = false;
            }



            if (this.BiddingPrejudicationModify1.State == ModuleState.Operable)
            {
                this.WorkFlowToolbar1.ScriptCheck = "javascript:if(BiddingPrejudicationCheckSubmit()) ";
            }

            //*** UCBiddingSupplierList(参加资格预审的单位名单) 控件初始化 **************************************************************************
            string BiddingPrejudicationCode = "";

            if (this.BiddingPrejudicationModify1.ApplicationCode == "")
            {
                BiddingPrejudicationCode = this.BiddingPrejudicationModify1.tempCode;
            }
            else
            {
                BiddingPrejudicationCode = this.BiddingPrejudicationModify1.ApplicationCode;
            }

            this.UCBiddingSupplierList1.BiddingPrejudicationCode = BiddingPrejudicationCode;
            this.UCBiddingSupplierList1.CanSelect = this.BiddingPrejudicationModify1.SelectState;
            this.UCBiddingSupplierList1.CanModify = this.BiddingPrejudicationModify1.EditState;

            //*****************************************************************************

            //*** UCBiddingSupplierModify 控件初始化 **************************************************************************
            this.UCBiddingSupplierModify1.BiddingPrejudicationCode = BiddingPrejudicationCode;
            this.UCBiddingSupplierModify1.BiddingSupplierCode      = "";
            this.UCBiddingSupplierModify1.DoType = "SingleModify";
            this.UCBiddingSupplierModify1.IniControl();
            this.UCBiddingSupplierModify1.Visible = this.BiddingPrejudicationModify1.EditState;
            //*****************************************************************************


            /**************************************************************************************/

            /*********************************************************************************
             *
             *
             ****************************************************************************
             *
             *
             *
             * /**************************************************************************************
             * this.LeavePass1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;//同意按钮组
             * this.LeavePass1.State = this.WorkFlowToolbar1.GetModuleState("PassBtn");
             * this.LeavePass1.InitControl();
             * /**************************************************************************************/
            BiddingPrejudicationModify1.SetAttachList1 = this.WorkFlowToolbar1.GetModuleState("附件1");
            BiddingPrejudicationModify1.SetAttachList2 = this.WorkFlowToolbar1.GetModuleState("附件2");
            BiddingPrejudicationModify1.SetAttachList3 = this.WorkFlowToolbar1.GetModuleState("附件3");



            /**************************************************************************************/
            //流程状态查看
            this.WorkFlowCaseState1.ActCode         = this.WorkFlowToolbar1.ActCode;
            this.WorkFlowCaseState1.Toobar          = this.WorkFlowToolbar1;
            this.WorkFlowCaseState1.CaseCode        = this.WorkFlowToolbar1.CaseCode;
            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();
            /**************************************************************************************/
            DataGridShowState();
            this.UCBiddingSupplierList1.IniControl();
            this.UCBiddingSupplierList1.LoadData();

            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_BP_建筑设计部", "Opinion1", base.WorkFlowOpinion1, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_工程部", "Opinion2", base.WorkFlowOpinion2, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_合约部", "Opinion3", base.WorkFlowOpinion3, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_项目总监", "Opinion4", base.WorkFlowOpinion4, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_总部总监1", "Opinion5", base.WorkFlowOpinion5, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_总部总监2", "Opinion6", base.WorkFlowOpinion6, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_董事长1", "Opinion7", base.WorkFlowOpinion7, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

            OpinionControlInit("推荐意见", "SM_BP_董事长2", "Opinion8", base.WorkFlowOpinion8, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);
            OpinionControlInit("推荐意见", "SM_BP_董事长3", "Opinion9", base.WorkFlowOpinion9, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);
            OpinionControlInit("推荐意见", "SM_BP_董事长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();
        }
Exemplo n.º 7
0
        /// ****************************************************************************
        /// <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;
                }
            }
            /*******************************************************************/
        }