SVN r367
SVN-Revision: r367
This commit is contained in:
@@ -180,6 +180,8 @@ namespace Lskj.Control
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.txtEdit.Text = "";
|
this.txtEdit.Text = "";
|
||||||
|
_lookUpForm.EditText = "";
|
||||||
|
_lookUpForm.EditValue = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -414,31 +416,4 @@ namespace Lskj.Control
|
|||||||
string sqlValue = string.Empty;
|
string sqlValue = string.Empty;
|
||||||
if (this.ControlObj != null)
|
if (this.ControlObj != null)
|
||||||
{
|
{
|
||||||
sqlValue = this.ControlObj.ReplaceControlValue(Model.SourceSql);
|
sqlValue = this.Co
|
||||||
sqlValue = sqlValue.Replace("#", "");
|
|
||||||
_lookUpForm.DataSource = MainImpl.GetDataTableResult(sqlValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
DialogResult result = _lookUpForm.ShowDialog();
|
|
||||||
if (result == DialogResult.OK)
|
|
||||||
{
|
|
||||||
string value = Model.FieldType == ControlType.LabMultiSelectValue || Model.FieldType == ControlType.LabCheckMultiSelectValue || Model.FieldType == ControlType.LabMultiSelectValueParam ? _lookUpForm.EditValue : _lookUpForm.EditText;
|
|
||||||
|
|
||||||
this.EditValue = value;
|
|
||||||
this.TextEdit.Text = _lookUpForm.EditText;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
||||||
MessageUtil.Show(Message, ex.Message);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user