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 = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -309,8 +311,8 @@ namespace Lskj.Control
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
base.ReadOnly = value;
|
base.ReadOnly = value;
|
||||||
this.txtEdit.Properties.ReadOnly = value|| this.ProhibitInput;
|
this.txtEdit.Properties.ReadOnly = value || this.ProhibitInput;
|
||||||
this.lblText.ForeColor = value|| this.ProhibitInput ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelForceColor : base.DefaultLabelForceColor;
|
this.lblText.ForeColor = value || this.ProhibitInput ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelForceColor : base.DefaultLabelForceColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -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