コード例 #1
0
        public static string PMApprovalLevel(long CompanyID, long DeptID)
        {
            iApprovalLevelMasterClient ApprovalClient = new iApprovalLevelMasterClient();
            string AppLevel = "";

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                AppLevel = ApprovalClient.GetApprovalLevel(CompanyID, DeptID, profile.DBConnection._constr).ToString();
            }
            catch (System.Exception ex)
            { Login.Profile.ErrorHandling(ex, "Approval Level Master", "PMGetApprovalLevelByObjectName"); }
            finally
            { ApprovalClient.Close(); }

            return(AppLevel);
        }
コード例 #2
0
        public void GetGWCApprovalLevel(long CompanyID, long DeptID)
        {
            iApprovalLevelMasterClient ApprovalClient = new iApprovalLevelMasterClient();
            string AppLevel = "";

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                AppLevel = ApprovalClient.GetApprovalLevel(CompanyID, DeptID, profile.DBConnection._constr).ToString();
                lblApprovalLevel.Text = AppLevel;
            }
            catch (System.Exception ex)
            { Login.Profile.ErrorHandling(ex, "Approval Level Master", "GetGWCApprovalLevel"); }
            finally
            { ApprovalClient.Close(); }

            // return AppLevel;
        }