public static List <mTerritory> PMGetDepartmentList(long CompanyID) { List <mTerritory> TerritoryList = new List <mTerritory>(); try { UC_Territory uc_territory = new UC_Territory(); TerritoryList = uc_territory.GetDepartmentList(CompanyID).ToList(); } catch { } finally { } return(TerritoryList); }
public static List <mTerritory> PMFillddlLevel(long level, long parentID) { List <mTerritory> TerritoryList = new List <mTerritory>(); try { UC_Territory uc_territory = new UC_Territory(); TerritoryList = uc_territory.GetTerritoryList(level, parentID).ToList(); } catch { } finally { } return(TerritoryList); }
public void FillDept(long CompanyID) { List <mTerritory> TerritoryList = new List <mTerritory>(); try { UC_Territory uc_territory = new UC_Territory(); TerritoryList = uc_territory.GetDepartmentList(CompanyID).ToList(); ddldepartment.DataSource = TerritoryList; ddldepartment.DataBind(); ListItem lst = new ListItem { Text = "-Select-", Value = "0" }; ddldepartment.Items.Insert(0, lst); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Role Master", "FillDept"); } finally { } }