internal void GetRelatedUserRoleRecord(EmployeeSetup objEmployeeSetup, ListBox targetListBox)
 {
     try
     {
         ClsListBoxController.LoadListBox(this.ConnectionString, this.SQLGetRelatedUserRoleRecord(objEmployeeSetup), targetListBox, "RelatedToText", "RoleID");
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void GetUserRoleRecord(EmployeeSetup objEmployeeSetup, UserPermission objUserPermission, ListBox targetListBox)
 {
     try
     {
         ClsListBoxController.LoadListBox(this.ConnectionString, this.SQLGetUserRoleRecord(objEmployeeSetup, objUserPermission), targetListBox, "RoleName", "RoleID");
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void LoadStandardOrgElements(ListBox listBoxStandardOrgElements)
 {
     try
     {
         ClsListBoxController.LoadListBox(this.ConnectionString, this.SqlGetStandardOrgElements(), listBoxStandardOrgElements, "OrgElementName", "OrgElementID");
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
Example #4
0
 internal void LoadRelatedUserRoleLB(ListBox givenListBoxID, CompanySetup objCompanySetup)
 {
     try
     {
         ClsListBoxController.LoadListBox(this.ConnectionString, this.SqlForRelatedUserRole(objCompanySetup), givenListBoxID, "RelatedToText", "RelatedToID");
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void LoadOrganizationalElements(OrganizationalChartSetup objOrganizationalChartSetup, ListBox listBoxOrganizationElements)
 {
     try
     {
         ClsListBoxController.LoadListBox(this.ConnectionString, SqlGetOrganizationalElements(objOrganizationalChartSetup),
                                          listBoxOrganizationElements, "OrgElementName", "OrgElementID");
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }