/// <summary> ///SQL字段名称必须as Code,CodeInfo /// </summary> public static void BindListControlBySql(ListControl listControl, string SQL, bool isAddSpaceItem) { SundriesBFP bfpSundries = new SundriesBFP(); DataTable dtCode_CodeInfo = bfpSundries.GetDTBySql(SQL).Result; BindListControlByDataTable(listControl, dtCode_CodeInfo, isAddSpaceItem); }
public static void BindListControl(ListControl listControl, CodeType codeType, bool isKeyValue, bool isAddSpaceItem) { SundriesBFP bfpSundries = new SundriesBFP(); DataTable dtCode_CodeInfo = bfpSundries.GetCode_CodeInfo(codeType, isKeyValue).Result; BindListControlByDataTable(listControl, dtCode_CodeInfo, isAddSpaceItem); }
protected void Page_Load(object sender, EventArgs e) { sundriesBFP = new SundriesBFP(); if (!IsPostBack) { label1.Text = WorkUser.UserName.ToString(); } }