Ejemplo 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));
            }
        }
Ejemplo 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);
     }
 }
Ejemplo 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();
 }
Ejemplo n.º 4
0
        /// ****************************************************************************
        /// <summary>
        /// 初始化
        /// </summary>
        /// ****************************************************************************
        private void InitPage()
        {
            string actCode = Request["ActCode"] + "";

            /********************************* 工具栏设置 **********************************/
            if (Request["frameType"] != null)           //判断是否为流程监控状态
            {
                if (Request["frameType"].ToString() == "List")
                {
                    WorkFlowToolbar1.Scout = true;
                }
            }

            if (Request["ApplicationCode"] != null)
            {
                WorkFlowToolbar1.ApplicationCode = Request["ApplicationCode"].ToString();
            }

            WorkFlowToolbar1.ActCode        = actCode;     //工具栏设置
            WorkFlowToolbar1.FlowName       = "合同申请审核";
            WorkFlowToolbar1.SystemUserCode = this.user.UserCode;
            WorkFlowToolbar1.SourceUrl      = "../WorkFlowControl/";
            WorkFlowToolbar1.ToolbarDataBind();
            /******************************************************************************/

            /********************************* 合同信息设置 ********************************/
            this.ContractInfoControl1.ContractCode = this.WorkFlowToolbar1.ApplicationCode;
            //this.ContractInfoControl1.ProjectCode = this.project.ProjectCode;
            this.ContractInfoControl1.UserCode = this.user.UserCode;
            this.ContractInfoControl1.State    = this.WorkFlowToolbar1.GetModuleState("Base");
            this.ContractInfoControl1.InitControl();
            /******************************************************************************/

            /********************************* 合同修改设置 ********************************/
            this.ContractModifyButtonControl1.ContractCode = this.WorkFlowToolbar1.ApplicationCode;
            this.ContractModifyButtonControl1.ProjectCode  = this.ContractInfoControl1.ProjectCode;
            this.ContractModifyButtonControl1.State        = this.WorkFlowToolbar1.GetModuleState("Modify");
            this.ContractModifyButtonControl1.ActCode      = this.WorkFlowToolbar1.ActCode;
            this.ContractModifyButtonControl1.InitControl();
            /******************************************************************************/

            /********************************* 合同费用项设置 ********************************/
            this.ContractAuditingControl1.ContractCode = this.WorkFlowToolbar1.ApplicationCode;
            this.ContractAuditingControl1.ProjectCode  = this.ContractInfoControl1.ProjectCode;
            this.ContractAuditingControl1.State        = this.WorkFlowToolbar1.GetModuleState("Money");
            this.ContractAuditingControl1.InitControl();
            /*******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion1.OpinionName     = "部门经理意见";
            this.WorkFlowOpinion1.OpinionType     = "ContractOpinion1";
            this.WorkFlowOpinion1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion1.State           = this.WorkFlowToolbar1.GetModuleState("UM1");
            this.WorkFlowOpinion1.IsTextBox       = false;
            this.WorkFlowOpinion1.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("UMD1");
            this.WorkFlowOpinion1.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion2.OpinionName     = "设计部意见";
            this.WorkFlowOpinion2.OpinionType     = "ContractOpinion2";
            this.WorkFlowOpinion2.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            if (this.WorkFlowToolbar1.GetModuleState("DUM1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion2.State = this.WorkFlowToolbar1.GetActorModuleState("DUM1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion2.State = this.WorkFlowToolbar1.GetModuleState("DUM1");
            }
            this.WorkFlowOpinion2.IsTextBox = false;
            if (this.WorkFlowToolbar1.GetModuleState("DUMD1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion2.DISPLAY = this.WorkFlowToolbar1.GetActorModuleState("DUMD1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion2.DISPLAY = this.WorkFlowToolbar1.GetModuleState("DUMD1");
            }
            this.WorkFlowOpinion2.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion3.OpinionName     = "物资部意见";
            this.WorkFlowOpinion3.OpinionType     = "ContractOpinion3";
            this.WorkFlowOpinion3.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            if (this.WorkFlowToolbar1.GetModuleState("MUM1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion3.State = this.WorkFlowToolbar1.GetActorModuleState("MUM1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion3.State = this.WorkFlowToolbar1.GetModuleState("MUM1");
            }
            this.WorkFlowOpinion3.IsTextBox = false;
            if (this.WorkFlowToolbar1.GetModuleState("MUMD1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion3.DISPLAY = this.WorkFlowToolbar1.GetActorModuleState("MUMD1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion3.DISPLAY = this.WorkFlowToolbar1.GetModuleState("MUMD1");
            }
            this.WorkFlowOpinion3.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion4.OpinionName     = "工程部意见";
            this.WorkFlowOpinion4.OpinionType     = "ContractOpinion4";
            this.WorkFlowOpinion4.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            if (this.WorkFlowToolbar1.GetModuleState("SUM1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion4.State = this.WorkFlowToolbar1.GetActorModuleState("SUM1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion4.State = this.WorkFlowToolbar1.GetModuleState("SUM1");
            }
            this.WorkFlowOpinion4.IsTextBox = false;
            if (this.WorkFlowToolbar1.GetModuleState("SUMD1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion4.DISPLAY = this.WorkFlowToolbar1.GetActorModuleState("SUMD1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion4.DISPLAY = this.WorkFlowToolbar1.GetModuleState("SUMD1");
            }
            this.WorkFlowOpinion4.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion5.OpinionName     = "配套部意见";
            this.WorkFlowOpinion5.OpinionType     = "ContractOpinion5";
            this.WorkFlowOpinion5.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            if (this.WorkFlowToolbar1.GetModuleState("WUM1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion5.State = this.WorkFlowToolbar1.GetActorModuleState("WUM1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion5.State = this.WorkFlowToolbar1.GetModuleState("WUM1");
            }
            this.WorkFlowOpinion5.IsTextBox = false;
            if (this.WorkFlowToolbar1.GetModuleState("WUMD1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion5.DISPLAY = this.WorkFlowToolbar1.GetActorModuleState("WUMD1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion5.DISPLAY = this.WorkFlowToolbar1.GetModuleState("WUMD1");
            }
            this.WorkFlowOpinion5.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion6.OpinionName     = "预决算部意见";
            this.WorkFlowOpinion6.OpinionType     = "ContractOpinion6";
            this.WorkFlowOpinion6.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            if (this.WorkFlowToolbar1.GetModuleState("PUM1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion6.State = this.WorkFlowToolbar1.GetActorModuleState("PUM1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion6.State = this.WorkFlowToolbar1.GetModuleState("PUM1");
            }
            this.WorkFlowOpinion6.IsTextBox = false;
            if (this.WorkFlowToolbar1.GetModuleState("PUMD1") == ModuleState.Unbeknown)
            {
                this.WorkFlowOpinion6.DISPLAY = this.WorkFlowToolbar1.GetActorModuleState("PUMD1", this.user.UserCode);
            }
            else
            {
                this.WorkFlowOpinion6.DISPLAY = this.WorkFlowToolbar1.GetModuleState("PUMD1");
            }
            this.WorkFlowOpinion6.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion7.OpinionName     = "法务部意见";
            this.WorkFlowOpinion7.OpinionType     = "ContractOpinion7";
            this.WorkFlowOpinion7.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion7.State           = this.WorkFlowToolbar1.GetModuleState("CUM1");
            this.WorkFlowOpinion7.IsTextBox       = false;
            this.WorkFlowOpinion7.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("CUMD1");
            this.WorkFlowOpinion7.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion8.OpinionName     = "项目经理审核";
            this.WorkFlowOpinion8.OpinionType     = "ContractOpinion8";
            this.WorkFlowOpinion8.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion8.State           = this.WorkFlowToolbar1.GetModuleState("UM2");
            this.WorkFlowOpinion8.IsTextBox       = false;
            this.WorkFlowOpinion8.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("UMD2");
            this.WorkFlowOpinion8.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion9.OpinionName     = "项目总监审核";
            this.WorkFlowOpinion9.OpinionType     = "ContractOpinion9";
            this.WorkFlowOpinion9.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion9.State           = this.WorkFlowToolbar1.GetModuleState("PMUM1");
            this.WorkFlowOpinion9.IsTextBox       = false;
            this.WorkFlowOpinion9.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("PMUMD1");
            this.WorkFlowOpinion9.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion10.OpinionName     = "董事长总经理意见";
            this.WorkFlowOpinion10.OpinionType     = "ContractOpinion10";
            this.WorkFlowOpinion10.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion10.State           = this.WorkFlowToolbar1.GetModuleState("BUM1");
            this.WorkFlowOpinion10.IsTextBox       = false;
            this.WorkFlowOpinion10.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("BUMD1");
            this.WorkFlowOpinion10.InitControl();
            /******************************************************************************/

            /******************************************************************************/
            this.WorkFlowOpinion11.OpinionName     = "办公室意见";
            this.WorkFlowOpinion11.OpinionType     = "ContractOpinion11";
            this.WorkFlowOpinion11.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.WorkFlowOpinion11.State           = this.WorkFlowToolbar1.GetModuleState("OUM1");
            this.WorkFlowOpinion11.IsTextBox       = false;
            this.WorkFlowOpinion11.DISPLAY         = this.WorkFlowToolbar1.GetModuleState("OUMD1");
            this.WorkFlowOpinion11.InitControl();
            /******************************************************************************/

            string action = Request["action"] + "";          //流程状态查看

            if (action == "View")
            {
                this.WorkFlowCaseState1.ActCode = actCode;
            }
            else
            {
                this.WorkFlowCaseState1.ActCode = "";
            }
        }
Ejemplo n.º 5
0
        /// ****************************************************************************
        /// <summary>
        /// 工具栏事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// ****************************************************************************
        protected void WorkFlowToolbar1_ToolbarCommand(object sender, System.EventArgs e)
        {
            /****************************************************************************/
            using (StandardEntityDAO dao = new StandardEntityDAO("Standard_WorkFlowProcedure"))
            {
                dao.BeginTrans();
                try
                {
                    /***********************************************************/
                    //签收
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.SignIn)
                    {
                        WorkFlowToolbar1.SignIn(dao);
                        InitPage();
                    }
                    //发送
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Send)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.Send();
                    }
                    //保存
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Save)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.Save();
                        WorkFlowPropertySave();

                        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);
                        WorkFlowToolbar1.TaskFinish();
                    }
                    //结束
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Finish)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.Finish();
                        ContractControlBase.ContractAuditing(WorkFlowToolbar1.ApplicationCode);
                    }
                    //抄送
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.MakeCopy)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.MakeCopy();
                    }
                    /*******************************************************/
                    dao.CommitTrans();
                }
                catch (Exception ex)
                {
                    dao.RollBackTrans();
                    throw ex;
                }
            }
            /*******************************************************************/
        }
Ejemplo n.º 6
0
        /// ****************************************************************************
        /// <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();
        }
Ejemplo 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());
                        }
                        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;
                }
            }
            /*******************************************************************/
        }
Ejemplo n.º 8
0
        /// ****************************************************************************
        /// <summary>
        /// 初始化

        /// </summary>
        /// ****************************************************************************
        private 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.ToolbarDataBind();
            if (this.WorkFlowToolbar1.GetModuleState("Delete") == ModuleState.Operable)
            {
                this.WorkFlowToolbar1.BtnDeleteVisible = true;
            }
            else
            {
                this.WorkFlowToolbar1.BtnDeleteVisible = false;
            }
            /**************************************************************************************/

            /**************************************************************************************/
            this.DesignDocument1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.DesignDocument1.State           = this.WorkFlowToolbar1.GetModuleState("业务填写");
            this.DesignDocument1.ProjectCode     = this.project.ProjectCode;
            this.DesignDocument1.UserCode        = user.UserCode;
            if (this.WorkFlowToolbar1.ApplicationCode == "")
            {
                this.DesignDocument1.ApplicationCode = Request["DesignDocumentCode"] + "";
            }
            this.DesignDocument1.InitControl();
            /**************************************************************************************/

            /**************************************************************************************/
            this.LoadOpinionControl(this.Workflowformopinion1, "项目部经理意见:", "YR_SGSJ_项目部经理", this.WorkFlowToolbar1.ApplicationCode, "项目部经理");
            this.LoadOpinionControl(this.Workflowformopinion2, "工程技术部会签意见:", "YR_SGSJ_工程技术部", this.WorkFlowToolbar1.ApplicationCode, "工程技术部");
            this.LoadOpinionControl(this.Workflowformopinion3, "物资采购部会签意见:", "YR_SGSJ_物资采购部", this.WorkFlowToolbar1.ApplicationCode, "物资采购部");
            this.LoadOpinionControl(this.Workflowformopinion4, "财务部会签意见:", "YR_SGSJ_财务部", this.WorkFlowToolbar1.ApplicationCode, "财务部");
            this.LoadOpinionControl(this.Workflowformopinion5, "销售部会签意见:", "YR_SGSJ_销售部", this.WorkFlowToolbar1.ApplicationCode, "销售部");
            this.LoadOpinionControl(this.Workflowformopinion6, "总工程师意见:", "YR_SGSJ_总工程师", this.WorkFlowToolbar1.ApplicationCode, "总工程师");
            this.LoadOpinionControl(this.Workflowformopinion7, "常务副总意见:", "YR_SGSJ_常务副总", this.WorkFlowToolbar1.ApplicationCode, "常务副总");
            this.LoadOpinionControl(this.Workflowformopinion8, "总经理意见:", "YR_SGSJ_总经理", this.WorkFlowToolbar1.ApplicationCode, "总经理");
            /**************************************************************************************/

            /**************************************************************************************/
            this.WorkFlowCaseState1.ActCode         = this.WorkFlowToolbar1.ActCode;
            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();
            /**************************************************************************************/
        }
Ejemplo n.º 9
0
        /// ****************************************************************************
        /// <summary>
        /// 工具栏事件

        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// ****************************************************************************
        protected void WorkFlowToolbar1_ToolbarCommand(object sender, System.EventArgs e)
        {
            /****************************************************************************/
            using (StandardEntityDAO dao = new StandardEntityDAO("DesignDocument"))
            {
                dao.BeginTrans();
                try
                {
                    /***********************************************************/
                    //签收
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.SignIn)
                    {
                        WorkFlowToolbar1.SignIn(dao);
                        InitPage();
                    }
                    //发送

                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Send)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.Send();
                    }
                    //保存
                    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);
                        WorkFlowToolbar1.TaskFinish();
                    }
                    //结束
                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.Finish)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.Finish();
                    }
                    //抄送

                    if (WorkFlowToolbar1.CommandType == ToolbarCommandType.MakeCopy)
                    {
                        DataSubmit(dao);
                        WorkFlowToolbar1.MakeCopy();
                    }
                    /*******************************************************/

                    //退回

                    if (this.WorkFlowToolbar1.CommandType == ToolbarCommandType.Back)
                    {
                        DataSubmit(dao);
                        this.WorkFlowToolbar1.Back();
                    }
                    //送经办人
                    if (this.WorkFlowToolbar1.CommandType == ToolbarCommandType.BackTop)
                    {
                        DataSubmit(dao);
                        this.WorkFlowToolbar1.BackTop();
                    }
                    //收回
                    if (this.WorkFlowToolbar1.CommandType == ToolbarCommandType.Return)
                    {
                        DataSubmit(dao);
                        this.WorkFlowToolbar1.Return();
                    }
                    //保存意见
                    if (this.WorkFlowToolbar1.CommandType == ToolbarCommandType.Opinion)
                    {
                        DataSubmit(dao);
                        this.WorkFlowToolbar1.SaveOpinion();
                        this.WorkFlowCaseState1.ControlDataBind();
                    }
                    dao.CommitTrans();
                }
                catch (Exception ex)
                {
                    dao.RollBackTrans();
                    throw ex;
                }
            }
            /*******************************************************************/
        }
Ejemplo n.º 10
0
        /// ****************************************************************************
        /// /// <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.BiddingMessageModify1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            this.BiddingMessageModify1.State           = this.WorkFlowToolbar1.GetModuleState("BaseWrite");
            this.BiddingMessageModify1.MoneyState      = this.WorkFlowToolbar1.GetModuleState("ShowMoney");
            this.BiddingMessageModify1.BiddingCode     = Request["BiddingCode"] + "";
            this.BiddingMessageModify1.UserCode        = user.UserCode;
            this.BiddingMessageModify1.InitControl();

            if (this.BiddingMessageModify1.State == ModuleState.Operable)
            {
                this.WorkFlowToolbar1.ScriptCheck = "javascript:if(BiddingMessageSubmitCheck()) ";
            }
            ///是否显示Money;
            Control_BiddingEmitMoney1.State       = this.WorkFlowToolbar1.GetModuleState("ShowMoney");
            Control_BiddingEmitMoney1.BiddingCode = this.BiddingMessageModify1.BiddingCode;
            //Control_BiddingEmitMoney1.InitPage();
            /**************************************************************************************/
            /*************************************************************************************/
            BiddingMessageModify1.SetAttachList = this.WorkFlowToolbar1.GetModuleState("附件1");



            /**************************************************************************************
             * this.LeavePass1.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;//同意按钮组
             * this.LeavePass1.State = this.WorkFlowToolbar1.GetModuleState("PassBtn");
             * this.LeavePass1.InitControl();
             * /**************************************************************************************/

            /**************************************************************************************/
            //流程状态查看
            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_BM_建筑设计部", "Opinion1", base.WorkFlowOpinion1, ud_sConfirmOpinionList, out ud_sConfirmOpinionList);

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

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

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

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

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

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

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