internal void LoadTeamDDL(DropDownList ddlTeam, SectionSetup objSectionSetup)
 {
     try
     {
         _objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.LoadTeamDDL(ddlTeam, objSectionSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void LoadSectionDDL(DropDownList ddlSection, DepartmentSetup objDepartmentSetup)
 {
     try
     {
         _objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.LoadSectionDDL(ddlSection, objDepartmentSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void LoadDepartmentDDL(DropDownList ddlDepartment, BranchSetup objBranchSetup)
 {
     try
     {
         _objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.LoadDepartmentDDL(ddlDepartment, objBranchSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void LoadBranchDDL(DropDownList ddlBranch, CompanySetup objCompanySetup)
 {
     try
     {
         _objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.LoadBranchDDL(ddlBranch, objCompanySetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 internal void GetOrganizationElementsGV(GridView gridViewOrganizationalChart, OrganizationalChartSetup objOrganizationalChartSetup)
 {
     try
     {
         OrganizationalChartSetupController objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         objOrganizationalChartSetupController.LoadOrganizationalElementsWithCompany(objOrganizationalChartSetup, gridViewOrganizationalChart);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 private void DeleteCompanyChart(CompanyDetailsSetup objCompanyDetailsSetup)
 {
     try
     {
         _objOrganizationalChartSetup           = new OrganizationalChartSetup();
         _objOrganizationalChartSetup.EntityID  = objCompanyDetailsSetup.CompanyID;
         _objOrganizationalChartSetupController = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.DeleteChart(_objOrganizationalChartSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 private void UpdateCompanyChart(CompanyDetailsSetup objCompanyDetailsSetup)
 {
     try
     {
         _objOrganizationalChartSetup               = new OrganizationalChartSetup();
         objCompanyDetailsSetup.EntryUserName       = "******";
         _objOrganizationalChartSetup.EntityID      = objCompanyDetailsSetup.CompanyID;
         _objOrganizationalChartSetup.EntityName    = objCompanyDetailsSetup.CompanyName;
         _objOrganizationalChartSetup.EntryUserName = objCompanyDetailsSetup.EntryUserName;
         _objOrganizationalChartSetupController     = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.UpdateChart(_objOrganizationalChartSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 private void SaveCompanyChart(CompanyDetailsSetup objCompanyDetailsSetup)
 {
     try
     {
         _objOrganizationalChartSetup                = new OrganizationalChartSetup();
         objCompanyDetailsSetup.EntryUserName        = "******";
         _objOrganizationalChartSetup.CompanyID      = objCompanyDetailsSetup.CompanyID;
         _objOrganizationalChartSetup.ParentEntityID = 111;
         _objOrganizationalChartSetup.EntityID       = objCompanyDetailsSetup.CompanyID;
         _objOrganizationalChartSetup.AddressTag     = "N";
         _objOrganizationalChartSetup.AddressID      = objCompanyDetailsSetup.CompanyID;
         _objOrganizationalChartSetup.EntityName     = objCompanyDetailsSetup.CompanyName;
         _objOrganizationalChartSetup.EntityTypeID   = 1;
         _objOrganizationalChartSetup.EntryUserName  = objCompanyDetailsSetup.EntryUserName;
         _objOrganizationalChartSetupController      = new OrganizationalChartSetupController();
         _objOrganizationalChartSetupController.SaveChart(_objOrganizationalChartSetup);
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }