Beispiel #1
0
        public static string GetApproveStepText(ApproveStep inStep)
        {
            string strResult = "";

            switch (inStep)
            {
            case ApproveStep.Wait:
                strResult = "WAIT";
                break;

            case ApproveStep.Approve:
                strResult = "APPROVE";
                break;

            case ApproveStep.Reject:
                strResult = "REJECT";
                break;

            case ApproveStep.Pass:
                strResult = "PASS";
                break;

            case ApproveStep.Post:
                strResult = "POST";
                break;
            }
            return(strResult);
        }
Beispiel #2
0
        public static ApproveStep GetApproveStep(string inKey)
        {
            ApproveStep oResult = ApproveStep.Wait;

            if (inKey == SysDef.gc_APPROVE_STEP_WAIT)
            {
                oResult = ApproveStep.Wait;
            }
            else if (inKey == SysDef.gc_APPROVE_STEP_APPROVE)
            {
                oResult = ApproveStep.Approve;
            }
            else if (inKey == SysDef.gc_APPROVE_STEP_POST)
            {
                oResult = ApproveStep.Post;
            }
            else if (inKey == SysDef.gc_APPROVE_STEP_REJECT)
            {
                oResult = ApproveStep.Reject;
            }
            else if (inKey == SysDef.gc_APPROVE_STEP_REVISE)
            {
                oResult = ApproveStep.Revise;
            }

            return(oResult);
        }