SVN r801
SVN-Revision: r801
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user