SVN-Revision: r367
This commit is contained in:
wyf
2025-03-21 04:16:46 +00:00
parent 60c3c93729
commit 8d5468f734
@@ -180,6 +180,8 @@ namespace Lskj.Control
else
{
this.txtEdit.Text = "";
_lookUpForm.EditText = "";
_lookUpForm.EditValue = "";
}
}
}
@@ -309,8 +311,8 @@ namespace Lskj.Control
set
{
base.ReadOnly = value;
this.txtEdit.Properties.ReadOnly = value|| this.ProhibitInput;
this.lblText.ForeColor = value|| this.ProhibitInput ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelForceColor : base.DefaultLabelForceColor;
this.txtEdit.Properties.ReadOnly = value || this.ProhibitInput;
this.lblText.ForeColor = value || this.ProhibitInput ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelForceColor : base.DefaultLabelForceColor;
}
}
/// <summary>
@@ -414,31 +416,4 @@ namespace Lskj.Control
string sqlValue = string.Empty;
if (this.ControlObj != null)
{
sqlValue = this.ControlObj.ReplaceControlValue(Model.SourceSql);
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);
}
}
}
}
sqlValue = this.Co