SVN-Revision: r345
This commit is contained in:
cyf
2025-03-19 02:31:41 +00:00
parent 9351b3ebf5
commit 1e7896d445
+26 -3
View File
@@ -205,6 +205,7 @@ namespace Lskj.PubProductSysMge
{
InitializeComponent();
this.Model = model != null ? model : null;
splitControlContainer.Panel1.BackColor = Color.White;
}
/// <summary>
/// 初始化事件绑定
@@ -508,6 +509,7 @@ namespace Lskj.PubProductSysMge
// Check if the remaining text starts with 'select'
return cleanedText.StartsWith("select", StringComparison.OrdinalIgnoreCase);
}
/// <summary>
/// <para>说明:设置动态控件显示刷新</para>
/// <para>创建人:唐德馨</para>
@@ -520,10 +522,25 @@ namespace Lskj.PubProductSysMge
/// <param name="where">The where key.</param>
private void SetDynamicControl(TreeNode treeNode)
{
this.pl_Top.Controls.Clear();
splitControlContainer.Panel1.Controls.Remove(this.pl_Top);
this.pl_Top.Dispose();
this.pl_Top = new XtraScrollableControl();
this.pl_Top.BackColor = Color.White;
this.pl_Top.Dock = DockStyle.Fill;
splitControlContainer.Panel1.Controls.Add(this.pl_Top);
//this.TopControlObj.ParentPanel.Dispose();
//this.TopControlObj.ParentPanel = pl_Top;
this.TopControlObj = new MyControl()
{
ParentPanel = this.pl_Top
};
this.ControlList.Clear();
try
{
if (projectComBoEdit.SelectedItem == "" || treeNode == null) return;
string projectId = (projectComBoEdit.SelectedItem as ComboBoxModel).Value;
if (treeNode != null && !string.IsNullOrEmpty(projectId))
{
@@ -565,6 +582,7 @@ namespace Lskj.PubProductSysMge
labelAutoTextEdit.TextEdit.TextChanged += new EventHandler(OnTextEditTextChanged);
//labelAutoTextEdit.ReadOnly = setModel.ProhibitEdited;
baseControl = labelAutoTextEdit;
break;
//多选框控件
case "3":
@@ -675,9 +693,12 @@ namespace Lskj.PubProductSysMge
//thread.Start();
}
}
catch (Exception)
catch (Exception ex)
{
}
}
/// <summary>
/// 延迟加载数据源
@@ -1618,7 +1639,9 @@ namespace Lskj.PubProductSysMge
//this.treeLeftViewEx.TreeView.SelectedNode = foundNodes[0];
this.SetDynamicControl(foundNodes[0]);
}
//中间部分控件赋值
this.MainControlObj.SetAllControlValue(focusRow);
//上方控件赋值
List<BaseUserControl> modelControls = this.pl_Top.Controls.Cast<BaseUserControl>().Where(n => !string.IsNullOrEmpty((n.Tag as SysSetModel).DbName)).OrderBy(n => (n.Tag as SysSetModel).OrderId).ToList();
foreach (BaseUserControl item in modelControls)
{