|
|
@@ -264,12 +264,10 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
|
|
|
public void GetData()
|
|
|
{
|
|
|
- if (TextBox.Text != "")
|
|
|
- {
|
|
|
DataHelper dh = new DataHelper();
|
|
|
string sql;
|
|
|
//将查询到的结果返回界面
|
|
|
- if (TextBox.Text != null) {
|
|
|
+ if (TextBox.Text != "") {
|
|
|
sql = "select " + BaseUtil.AddField(setValueField) + " from " + tableName + " where " + Name + "='" + TextBox.Text + "'";
|
|
|
}
|
|
|
else {
|
|
|
@@ -290,7 +288,7 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
|
|
|
}
|
|
|
//不允许工单号为空的情况
|
|
|
LockCheckBox.Checked = true;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void fillControl(int i, Control ct)
|