SVN-Revision: r801
This commit is contained in:
cyf
2025-06-27 07:49:43 +00:00
parent 39a388b0f4
commit 13f2022d1a
9 changed files with 466 additions and 47 deletions
+50
View File
@@ -65,6 +65,56 @@ namespace Lskj.Control
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
}
public FrmComboxPopup(GridColumnModel model)
{
try
{
InitializeComponent();
this.mControlModel = new ControlModel();
this.mControlModel.SourceSql = model.SqlSource;
this.mControlModel.ValueMember = model.ValueMember;
this.mControlModel.TextMember = model.TextMember;
this.Text = model.FieldText + "选择";
if (this.ListBoxFontSize > 0)
{
foreach (System.Windows.Forms.Control ctrol in this.panel3.Controls)
{
if (ctrol is SimpleButton)
{
SimpleButton simpleButton = ctrol as SimpleButton;
Font oldFont = simpleButton.Font;
simpleButton.Font = new Font(oldFont.Name, ListBoxFontSize);
}
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
public void OnLoadnew(string sql)
{
this.mSourceTable = BaseImpl.GetDataTableResult(sql);
this.InitControl();
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
}
public void VisableControl()
{
for (int i = 0; i < this.plContainer.Controls.Count; i++)