public void BindDivision() { DataTable dtWorkDiv = WorkUnitBLL.GetDivision(); ddldivision.DataSource = dtWorkDiv; ddldivision.DataTextField = "Description"; ddldivision.DataValueField = "ID"; ddldivision.DataBind(); //ddlSWorkUnit.DataSource = dtWorkUnit; //ddlSWorkUnit.DataTextField = "Description"; //ddlSWorkUnit.DataValueField = "ID"; //ddlSWorkUnit.DataBind(); }
//public void BindWorkUnit() //{ // DataTable dtWorkUnit = WorkUnitBLL.GetWorkUnit(); // ddlWorkUnit.DataSource = dtWorkUnit; // ddlWorkUnit.DataTextField = "Description"; // ddlWorkUnit.DataValueField = "ID"; // ddlWorkUnit.DataBind(); // ddlSWorkUnit.DataSource = dtWorkUnit; // ddlSWorkUnit.DataTextField = "Description"; // ddlSWorkUnit.DataValueField = "ID"; // ddlSWorkUnit.DataBind(); //} public void BindDivision() { DataTable dtWorkDiv = WorkUnitBLL.GetDivision(); ddldivision.DataSource = dtWorkDiv; ddldivision.DataTextField = "Description"; ddldivision.DataValueField = "ID"; ddldivision.DataBind(); //ecxlookup.ECXLookup lkp = new ecxlookup.ECXLookup(); //DataTable dt = lkp.GetActiveDivisionsAsync(); //ddlSWorkUnit.DataSource = dtWorkUnit; //ddlSWorkUnit.DataTextField = "Description"; //ddlSWorkUnit.DataValueField = "ID"; //ddlSWorkUnit.DataBind(); }