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); }
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; }