private void FillUsersTo() { this.ddlUserTo.DataSource = Region_BLL1.GetUsersForDropdownByDepartmentCode(this.ddlDepartmentTo.SelectedValue); this.ddlUserTo.DataValueField = "UserId"; this.ddlUserTo.DataTextField = "CustomUserName"; this.ddlUserTo.DataBind(); this.ddlUserTo.Items.Insert(0, new ListItem("Select One", "")); }
private void FillOfficeTo() { this.ddlOfficeTo.DataSource = Region_BLL1.GetOfficesByRegionCode(this.ddlRegionTo.SelectedValue); this.ddlOfficeTo.DataValueField = "OfficeCode"; this.ddlOfficeTo.DataTextField = "OfficeName"; this.ddlOfficeTo.DataBind(); this.ddlOfficeTo.Items.Insert(0, new ListItem("Select One", "")); }
private void FillRegionTo() { this.ddlRegionTo.DataSource = Region_BLL1.GetAllRegions(); this.ddlRegionTo.DataValueField = "RegionCode"; this.ddlRegionTo.DataTextField = "RegionName"; this.ddlRegionTo.DataBind(); this.ddlRegionTo.Items.Insert(0, new ListItem("Select One", "")); }
private void FillDepartmentsTo() { this.ddlDepartmentTo.DataSource = Region_BLL1.GetDepartmentsByOfficeCode(this.ddlOfficeTo.SelectedValue); this.ddlDepartmentTo.DataValueField = "DepartmentCode"; this.ddlDepartmentTo.DataTextField = "DepartmentName"; this.ddlDepartmentTo.DataBind(); this.ddlDepartmentTo.Items.Insert(0, new ListItem("Select One", "")); }