Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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();
            }
        }