void txtBelongCompany_GetDataSourced(ServiceStationClient.ComponentUI.TextBox.TextChooser tc, string sqlString) { sqlString = string.Format("select * from sys_user where user_name like '%{0}%' and enable_flag=1 and status=1", txtcreate_by.Text); DataTable dvt = CommonFuncCall.GetDataSource(sqlString); tc.SetDataSource(dvt); if (dvt != null) { tc.Search(); } }
void txtparent_id_GetDataSourced(ServiceStationClient.ComponentUI.TextBox.TextChooser tc, string sqlString) { sqlString = string.Format("select * from v_dictionaries where dic_name like '%{0}%' and enable_flag=1 ", txtparent_id.Text); DataTable dvt = CommonFuncCall.GetDataSource(sqlString); tc.SetDataSource(dvt); if (dvt != null) { tc.Search(); } }