/// <summary> /// load dropdownlist /// </summary> /// <param name="ddl">System.Web.UI.WebControls.DropDownList ddl</param> public static void fillDropDownItems(System.Web.UI.WebControls.DropDownList ddl) { try { //if (Branch.dropDownItems.Count < 1) //{ // new BranchSelectDataByUser().getBranchDropDownItemsByUser(-1); //} Company _c = new Company(); new CompanySelect().CompanyDropDownList(_c._dropDownList); ddl.DataSource = _c._dropDownList; ddl.DataTextField = "Name"; ddl.DataValueField = "Value"; ddl.DataBind(); } catch (Exception ex) { throw ex; } finally { ddl = null; } }
/// <summary> /// load dropdownlist /// </summary> /// <param name="ddl">System.Web.UI.WebControls.DropDownList ddl</param> public static void fillDropDownItems(System.Web.UI.WebControls.DropDownList ddl) { try { Company _c = new Company(); new CompanySelect().CompanyDropDownList(_c._dropDownList); ddl.DataSource = _c._dropDownList; ddl.DataTextField = "Name"; ddl.DataValueField = "Value"; ddl.DataBind(); } catch (Exception ex) { throw ex; } finally { ddl = null; } }
public companyParams(Company _company) { this._company = _company; build(); }
public makecompanyParam(Company _company) { this._company = _company; build(); }