feat: 更新业务、控件及单据功能

This commit is contained in:
cyf
2026-08-10 09:59:46 +08:00
parent c07220bbf0
commit 000a69ce15
29 changed files with 919 additions and 359 deletions
@@ -247,11 +247,10 @@ namespace Lskj.Control.MultiModelLookUp
{
try
{
string width = IniHelper.Read(string.Format("base_width_{0}", this.UnionModuleCodel));//通过Key获取Value值
string width = IniHelper.Read(string.Format("FrmModelLookUp_width_{0}", this.UnionModuleCodel));//通过Key获取Value值
if (!string.IsNullOrEmpty(width))
{
this.splitMain.SplitterPosition = Convert.ToInt32(width);
}
}
catch (Exception ex)
@@ -777,6 +776,7 @@ namespace Lskj.Control.MultiModelLookUp
private void PositionChange(object sender, EventArgs e)
{
PositionSplitter = this.splitMain_Right.SplitterPosition;
IniHelper.Write(string.Format("FrmModelLookUp_height_{0}", this.UnionModuleCodel), PositionSplitter + "");
}
#endregion
#region
@@ -1034,6 +1034,17 @@ namespace Lskj.Control.MultiModelLookUp
this.Width = this.SysModel.ModuleFrameWidth;
}
string height = IniHelper.Read(string.Format("FrmModelLookUp_height_{0}", this.UnionModuleCodel));//通过Key获取Value值
if (!string.IsNullOrEmpty(height))
{
this.splitMain_Right.SplitterPosition = Convert.ToInt32(height);
}
else if (this.SysModel.BottomHeight > 0)
{
this.splitMain_Right.SplitterPosition = Convert.ToInt32(this.splitMain_Right.Height - this.SysModel.BottomHeight);
}
switch (this.SysModel.MenuType)
{
case 1: // 左侧为树节点
@@ -1057,7 +1068,7 @@ namespace Lskj.Control.MultiModelLookUp
this.splitMain.PanelVisibility = SplitPanelVisibility.Panel2;
break;
}
this.splitMain.SplitterPositionChanged += SplitMain_SplitterPositionChanged;
}
else
{
@@ -1067,6 +1078,12 @@ namespace Lskj.Control.MultiModelLookUp
}
return false;
}
private void SplitMain_SplitterPositionChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("FrmModelLookUp_width_{0}", this.UnionModuleCodel), this.splitMain.SplitterPosition + "");
}
#endregion
@@ -28,11 +28,11 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.splitMain = new DevExpress.XtraEditors.SplitContainerControl();
this.pl_left = new DevExpress.XtraEditors.PanelControl();
this.pl_left_main = new System.Windows.Forms.Panel();
this.pl_gridandtree_container = new DevExpress.XtraEditors.PanelControl();
this.treeLeft = new Lskj.Control.TreeViewEx();
this.gridLeft = new Lskj.Control.GridControlEx();
this.pl_left_top = new DevExpress.XtraEditors.PanelControl();
this.splitMain_Right = new DevExpress.XtraEditors.SplitContainerControl();
@@ -44,12 +44,11 @@
this.btn_selectAll = new DevExpress.XtraEditors.SimpleButton();
this.btn_cancelAll = new DevExpress.XtraEditors.SimpleButton();
this.btnOk = new DevExpress.XtraEditors.SimpleButton();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
this.tsmi_all = new System.Windows.Forms.ToolStripMenuItem();
this.tsmi_reserve = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tsmi_cancel = new System.Windows.Forms.ToolStripMenuItem();
this.treeLeft = new Lskj.Control.TreeViewEx();
((System.ComponentModel.ISupportInitialize)(this.splitMain)).BeginInit();
this.splitMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_left)).BeginInit();
@@ -118,6 +117,16 @@
this.pl_gridandtree_container.Size = new System.Drawing.Size(260, 454);
this.pl_gridandtree_container.TabIndex = 9;
//
// treeLeft
//
this.treeLeft.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeLeft.Location = new System.Drawing.Point(0, 0);
this.treeLeft.Margin = new System.Windows.Forms.Padding(4);
this.treeLeft.Name = "treeLeft";
this.treeLeft.Size = new System.Drawing.Size(260, 454);
this.treeLeft.TabIndex = 7;
this.treeLeft.Visible = false;
//
// gridLeft
//
this.gridLeft.AdapterObj = null;
@@ -218,7 +227,7 @@
this.btnCancel.Location = new System.Drawing.Point(772, 5);
this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(79, 35);
this.btnCancel.Size = new System.Drawing.Size(76, 35);
this.btnCancel.TabIndex = 24;
this.btnCancel.Text = "取消(&C)";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
@@ -297,16 +306,6 @@
this.tsmi_cancel.Size = new System.Drawing.Size(100, 22);
this.tsmi_cancel.Text = "取消";
//
// treeLeft
//
this.treeLeft.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeLeft.Location = new System.Drawing.Point(0, 0);
this.treeLeft.Margin = new System.Windows.Forms.Padding(4);
this.treeLeft.Name = "treeLeft";
this.treeLeft.Size = new System.Drawing.Size(260, 454);
this.treeLeft.TabIndex = 7;
this.treeLeft.Visible = false;
//
// FrmModelLookUp2
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
@@ -266,12 +266,12 @@ namespace Lskj.Control.MultiModelLookUp
{
try
{
string width = IniHelper.Read(string.Format("base_width_{0}", this.UnionModuleCodel));//通过Key获取Value值
string width = IniHelper.Read(string.Format("FrmModelLookUp2_width_{0}", this.UnionModuleCodel));//通过Key获取Value值
if (!string.IsNullOrEmpty(width))
{
this.splitMain.SplitterPosition = Convert.ToInt32(width);
}
}
catch (Exception ex)
{
@@ -805,6 +805,7 @@ namespace Lskj.Control.MultiModelLookUp
private void PositionChange(object sender, EventArgs e)
{
PositionSplitter = this.splitMain_Right.SplitterPosition;
IniHelper.Write(string.Format("FrmModelLookUp2_height_{0}", this.UnionModuleCodel), PositionSplitter + "");
}
#endregion
#region
@@ -1137,7 +1138,15 @@ namespace Lskj.Control.MultiModelLookUp
this.Width = this.SysModel.ModuleFrameWidth;
}
string height = IniHelper.Read(string.Format("FrmModelLookUp2_height_{0}", this.UnionModuleCodel));//通过Key获取Value值
if (!string.IsNullOrEmpty(height))
{
this.splitMain_Right.SplitterPosition = Convert.ToInt32(height);
}
else if (this.SysModel.BottomHeight > 0)
{
this.splitMain_Right.SplitterPosition = Convert.ToInt32(this.splitMain_Right.Height - this.SysModel.BottomHeight);
}
switch (this.SysModel.MenuType)
{
@@ -1162,7 +1171,7 @@ namespace Lskj.Control.MultiModelLookUp
this.splitMain.PanelVisibility = SplitPanelVisibility.Panel2;
break;
}
this.splitMain.SplitterPositionChanged += SplitMain_SplitterPositionChanged;
}
else
{
@@ -1172,6 +1181,11 @@ namespace Lskj.Control.MultiModelLookUp
}
return false;
}
private void SplitMain_SplitterPositionChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("FrmModelLookUp2_width_{0}", this.UnionModuleCodel), this.splitMain.SplitterPosition + "");
}
#endregion
//设置选中框的值