Esempio n. 1
0
    /// <param name="po_sConfirmOpinionList">控件名1,控件名2,控件名3,</param>
    /// <param name="pm_sInputType">Text,TextArea,TextAreaEsay,TextNum</param>
    protected ModuleState[] OpinionControlInit(string pm_sOpinionTitle, string pm_sOpinionType, string pm_sModuleName,
                                               WorkFlowFormOpinion pm_wfoOpinion, string pm_sUserCode, object pm_oInputType)
    {
        int ud_iOpinionStateCount = 2;

        ModuleState[] ud_wfmaWorkFlowModuleState = new ModuleState[ud_iOpinionStateCount];

        for (int i = 0; i < ud_iOpinionStateCount; i++)
        {
            ud_wfmaWorkFlowModuleState[i] = this.up_wftToolbar.GetModuleState(pm_sModuleName, i);
        }

        if (ud_wfmaWorkFlowModuleState[1] == ModuleState.Operable)
        {
            this.ConfirmOpinionList += pm_wfoOpinion.UniqueID + ",";
        }

        switch (pm_oInputType.ToString().ToLower())
        {
        case "text":
            pm_wfoOpinion.ControlType = "Text";
            break;

        case "textarea":
            pm_wfoOpinion.ControlType = "TextArea";
            break;

        case "textareaesay":
            pm_wfoOpinion.ControlType = "TextAreaEsay";
            break;

        case "textnum":
            pm_wfoOpinion.ControlType = "TextNum";
            break;

        default:
            break;
        }
        pm_wfoOpinion.Title           = pm_sOpinionTitle;
        pm_wfoOpinion.OpinionType     = pm_sOpinionType;
        pm_wfoOpinion.ApplicationCode = this.up_wftToolbar.ApplicationCode;
        pm_wfoOpinion.CaseCode        = this.up_wftToolbar.CaseCode;
        pm_wfoOpinion.State           = ud_wfmaWorkFlowModuleState[0];
        pm_wfoOpinion.StateConfirm    = ud_wfmaWorkFlowModuleState[1];
        pm_wfoOpinion.ProjectCode     = this.up_wftToolbar.ProjectCode;

        if (pm_sUserCode.Trim() != "")
        {
            pm_wfoOpinion.OpinionUserCode = pm_sUserCode;
        }

        pm_wfoOpinion.InitControl();

        if (ud_wfmaWorkFlowModuleState[1] == ModuleState.Operable)
        {
            this.up_wftToolbar.IsAudit = true;
        }

        return(ud_wfmaWorkFlowModuleState);
    }
Esempio n. 2
0
    protected ModuleState ImageSignControlInit(string pm_sOpinionType, string pm_sModuleName,
                                               WorkFlowFormOpinion pm_wfsImageSign, string pm_sUserCode)
    {
        int ud_iOpinionStateCount = 2;

        ModuleState[] ud_wfmaWorkFlowModuleState = new ModuleState[ud_iOpinionStateCount];

        for (int i = 0; i < ud_iOpinionStateCount; i++)
        {
            ud_wfmaWorkFlowModuleState[i] = this.up_wftToolbar.GetModuleState(pm_sModuleName, i);
        }



        pm_wfsImageSign.OpinionType     = pm_sOpinionType;
        pm_wfsImageSign.ApplicationCode = this.up_wftToolbar.ApplicationCode;
        pm_wfsImageSign.CaseCode        = this.up_wftToolbar.CaseCode;
        pm_wfsImageSign.State           = ud_wfmaWorkFlowModuleState[0];

        if (pm_sUserCode.Trim() != "")
        {
            pm_wfsImageSign.OpinionUserCode = pm_sUserCode;
        }

        pm_wfsImageSign.InitControl();

        return(ud_wfmaWorkFlowModuleState[0]);
    }
Esempio n. 3
0
        /// <param name="po_sConfirmOpinionList">控件名1,控件名2,控件名3,</param>
        /// <param name="pm_sInputType">Text,TextArea,TextAreaEsay,TextNum</param>
        protected WorkFlowControl.ModuleState[] OpinionControlInit(string pm_sOpinionTitle, string pm_sOpinionType, string pm_sModuleName,
                                                                   WorkFlowFormOpinion pm_wfoOpinion, string pm_sUserCode, string pm_sConfirmOpinionList, out string po_sConfirmOpinionList, string pm_sInputType)
        {
            int ud_iOpinionStateCount = 2;

            WorkFlowControl.ModuleState[] ud_wfmaWorkFlowModuleState = new ModuleState[ud_iOpinionStateCount];

            for (int i = 0; i < ud_iOpinionStateCount; i++)
            {
                ud_wfmaWorkFlowModuleState[i] = this.WorkFlowToolbar1.GetModuleState(pm_sModuleName, i);
            }

            if (ud_wfmaWorkFlowModuleState[1] == ModuleState.Operable)
            {
                pm_sConfirmOpinionList += pm_wfoOpinion.UniqueID + ",";
            }

            po_sConfirmOpinionList = pm_sConfirmOpinionList;

            switch (pm_sInputType.ToLower())
            {
            case "text":
                pm_wfoOpinion.ControlType = "Text";
                break;

            case "textarea":
                pm_wfoOpinion.ControlType = "TextArea";
                break;

            case "textareaesay":
                pm_wfoOpinion.ControlType = "TextAreaEsay";
                break;

            case "textnum":
                pm_wfoOpinion.ControlType = "TextNum";
                break;

            default:
                break;
            }
            pm_wfoOpinion.Title           = pm_sOpinionTitle;
            pm_wfoOpinion.OpinionType     = pm_sOpinionType;
            pm_wfoOpinion.ApplicationCode = this.WorkFlowToolbar1.ApplicationCode;
            pm_wfoOpinion.CaseCode        = this.WorkFlowToolbar1.CaseCode;
            pm_wfoOpinion.State           = ud_wfmaWorkFlowModuleState[0];
            pm_wfoOpinion.StateConfirm    = ud_wfmaWorkFlowModuleState[1];

            if (pm_sUserCode.Trim() != "")
            {
                pm_wfoOpinion.OpinionUserCode = pm_sUserCode;
            }

            pm_wfoOpinion.InitControl();

            return(ud_wfmaWorkFlowModuleState);
        }
Esempio n. 4
0
        /// ****************************************************************************
        /// <summary>
        /// 意见输入框加载

        /// </summary>
        /// <param name="OpinionCase">输入框</param>
        /// <param name="Title">标题</param>
        /// <param name="Type">类型</param>
        /// <param name="ApplicationCode">业务代码</param>
        /// <param name="StateName">状态配置名称</param>
        /// ****************************************************************************
        private void LoadOpinionControl(WorkFlowFormOpinion OpinionCase, string Title, string Type, string ApplicationCode, string StateName)
        {
            OpinionCase.Title           = Title;
            OpinionCase.OpinionType     = Type;
            OpinionCase.ApplicationCode = ApplicationCode;
            OpinionCase.CaseCode        = this.WorkFlowToolbar1.CaseCode;
            OpinionCase.State           = this.WorkFlowToolbar1.GetModuleState(StateName);
            if (this.WorkFlowToolbar1.GetModuleState(StateName, 1) == ModuleState.Operable)
            {
                OpinionCase.StateConfirm         = ModuleState.Operable;
                this.ViewState["ConfirmControl"] = OpinionCase.ID;
            }
            OpinionCase.InitControl();
        }