/// <summary>
        /// 在流程中初始化,并返回 审批表的 Code
        /// </summary>
        /// <param name="WorkFlowToolbar1"></param>
        /// <returns>BiddingPrejudicationCode</returns>
        public string InitOnWorkFlow(RmsPM.Web.WorkFlowControl.WorkFlowToolbar WorkFlowToolbar1)
        {
            ApplicationCode = WorkFlowToolbar1.ApplicationCode;
            State           = WorkFlowToolbar1.GetModuleState("申请表");
            State1          = WorkFlowToolbar1.GetModuleState("SupplierSelect");
            UserCode        = ((User)Session["User"]).UserCode;
            BiddingCode     = Request["BiddingCode"] + "";
            InitControl();


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

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

            if (ApplicationCode == "")
            {
                BiddingPrejudicationCode = tempCode;
            }
            else
            {
                BiddingPrejudicationCode = ApplicationCode;
            }
            StateControlForWorkFlow(WorkFlowToolbar1);
            return(BiddingPrejudicationCode);
        }
Beispiel #2
0
        public static void OpinionDataSubmit(StandardEntityDAO dao, WorkFlowToolbar up_Toolbar, System.Web.UI.Page up_Page, int up_iProposerCount, int up_iDepartmentCount, int up_iDirectorCount)
        {
            try
            {
                string ud_sProposerControlName, ud_sDepartmentControlName, ud_sDirectorControlName;
                int    i;

                ud_sProposerControlName   = "wfoProposer";
                ud_sDepartmentControlName = "wfoDepartment";
                ud_sDirectorControlName   = "wfoDirector";

                for (i = 1; i <= up_iProposerCount; i++)
                {
                    RmsPM.Web.WorkFlowControl.WorkFlowOpinion ud_wfoContraol;
                    ud_wfoContraol = (RmsPM.Web.WorkFlowControl.WorkFlowOpinion)up_Page.FindControl(ud_sProposerControlName + i.ToString());

                    if (ud_wfoContraol.State == ModuleState.Operable)
                    {
                        ud_wfoContraol.ApplicationCode = up_Toolbar.ApplicationCode;
                        ud_wfoContraol.dao             = dao;
                        ud_wfoContraol.SubmitData();
                    }
                }

                for (i = 1; i <= up_iDepartmentCount; i++)
                {
                    RmsPM.Web.WorkFlowControl.WorkFlowOpinion ud_wfoContraol;
                    ud_wfoContraol = (RmsPM.Web.WorkFlowControl.WorkFlowOpinion)up_Page.FindControl(ud_sDepartmentControlName + i.ToString());

                    if (ud_wfoContraol.State == ModuleState.Operable)
                    {
                        ud_wfoContraol.ApplicationCode = up_Toolbar.ApplicationCode;
                        ud_wfoContraol.dao             = dao;
                        ud_wfoContraol.SubmitData();
                    }
                }

                for (i = 1; i <= up_iDirectorCount; i++)
                {
                    RmsPM.Web.WorkFlowControl.WorkFlowOpinion ud_wfoContraol;
                    ud_wfoContraol = (RmsPM.Web.WorkFlowControl.WorkFlowOpinion)up_Page.FindControl(ud_sDirectorControlName + i.ToString());

                    if (ud_wfoContraol.State == ModuleState.Operable)
                    {
                        ud_wfoContraol.ApplicationCode = up_Toolbar.ApplicationCode;
                        ud_wfoContraol.dao             = dao;
                        ud_wfoContraol.SubmitData();
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #3
0
 virtual protected void SetBaseControl()
 {
     WorkFlowToolbar1  = (WorkFlowToolbar)Page.FindControl("WorkFlowToolbar1");
     ucCheckControl    = (RmsPM.Web.WorkFlowOperation.CheckControl)Page.FindControl("ucCheckControl");
     WorkFlowOpinion1  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion1");
     WorkFlowOpinion2  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion2");
     WorkFlowOpinion3  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion3");
     WorkFlowOpinion4  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion4");
     WorkFlowOpinion5  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion5");
     WorkFlowOpinion6  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion6");
     WorkFlowOpinion7  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion7");
     WorkFlowOpinion8  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion8");
     WorkFlowOpinion9  = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion9");
     WorkFlowOpinion10 = (RmsPM.Web.WorkFlowControl.WorkFlowFormOpinion)Page.FindControl("WorkFlowOpinion10");
 }
Beispiel #4
0
 public void InitOnWorkFlow(RmsPM.Web.WorkFlowControl.WorkFlowToolbar WorkFlowToolbar1)
 {
     ApplicationCode     = WorkFlowToolbar1.ApplicationCode;
     State               = WorkFlowToolbar1.GetModuleState("SupplierSelect");
     State1              = WorkFlowToolbar1.GetModuleState("Select1");
     State2              = WorkFlowToolbar1.GetModuleState("Select2");
     State3              = WorkFlowToolbar1.GetModuleState("Select3");
     State4              = WorkFlowToolbar1.GetModuleState("Select4");
     State5              = WorkFlowToolbar1.GetModuleState("Select5");
     SetAgreementMessage = WorkFlowToolbar1.GetModuleState("合约部");
     SetProjectMessage   = WorkFlowToolbar1.GetModuleState("工程部");
     SetAdviserMessage   = WorkFlowToolbar1.GetModuleState("顾问公司");
     BiddingCode         = Request["BiddingCode"] + "";
     UserCode            = ((User)Session["User"]).UserCode;
     InitControl();
 }
Beispiel #5
0
        public static void Init_CaseState(WorkFlowCaseState up_CaseState, WorkFlowToolbar up_Toolbar, RmsPM.Web.User up_User)
        {
            try
            {
                /**************************************************************************************/
                //流程状态查看
                up_CaseState.ActCode         = up_Toolbar.ActCode;
                up_CaseState.ApplicationCode = up_Toolbar.ApplicationCode;
                up_CaseState.FlowName        = up_Toolbar.FlowName;
                up_CaseState.UserCode        = up_User.UserCode;
                up_CaseState.Scout           = up_Toolbar.Scout;
                up_CaseState.ControlDataBind();

                /**************************************************************************************/
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #6
0
        public static void Init_Toolbar(WorkFlowToolbar up_Toolbar, string up_sFlowName, RmsPM.Web.User up_User, object ApplicationCode, string actCode, bool BtnDeleteVisible)
        {
            try
            {
                if (ApplicationCode != null)
                {
                    up_Toolbar.ApplicationCode = ApplicationCode.ToString();
                }

                /**************************************************************************************/
                up_Toolbar.ActCode        = actCode;         //工具栏设置
                up_Toolbar.FlowName       = up_sFlowName;
                up_Toolbar.SystemUserCode = up_User.UserCode;
                up_Toolbar.SourceUrl      = "../WorkFlowControl/";
                up_Toolbar.ToolbarDataBind();
                up_Toolbar.BtnDeleteVisible = BtnDeleteVisible;
                /**************************************************************************************/
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #7
0
 virtual protected void SetBaseControl()
 {
     wftToolbar     = (WorkFlowToolbar)Page.FindControl("wftToolbar");
     wfcCaseState   = (WorkFlowCaseState)Page.FindControl("wfcCaseState");
     ucCheckControl = (RmsPM.Web.WorkFlowOperation.CheckControl)Page.FindControl("ucCheckControl");
 }
 protected void StateControlForWorkFlow(RmsPM.Web.WorkFlowControl.WorkFlowToolbar WorkFlowToolbar1)
 {
     SetAttachList1 = WorkFlowToolbar1.GetModuleState("附件1");
     SetAttachList2 = WorkFlowToolbar1.GetModuleState("附件2");
     SetAttachList3 = WorkFlowToolbar1.GetModuleState("附件3");
 }