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
@@ -469,6 +469,8 @@ namespace Lskj.PubUserTomodule
this.MainTableElement.ContextMenuStrip = null;
this.BillDetail.ContextMenuStrip = null;
this.MainTableElement.gridControl.ContextMenuStrip = null;
this.BillDetail.gridControl.ContextMenuStrip = null;
//选中模块中的元素信息
if (modelRow != null)
{
@@ -478,7 +480,7 @@ namespace Lskj.PubUserTomodule
this.SetElementTableColumns(this.MainTableElement);
this.MainTableElement.gridControl.DataSource = PowerImpl.GetBasisData(dllcode);
this.MainTableElement.GridView.BestFitColumns();//设置根据内容填充列宽
this.MainTableElement.ContextMenuStrip = contextMenuStrip;
this.MainTableElement.gridControl.ContextMenuStrip = contextMenuStrip;
this.MainTableElement.GridView.CellValueChanged -= GridView_CellValueChanged;
this.MainTableElement.GridView.CellValueChanged += GridView_CellValueChanged;
@@ -501,7 +503,7 @@ namespace Lskj.PubUserTomodule
controlEx.gridControl.DataSource = PowerImpl.GetBasisData(item.UnionModule);
controlEx.GridView.BestFitColumns();//设置根据内容填充列宽
controlEx.GridView.CellValueChanged += GridView_CellValueChanged;
controlEx.ContextMenuStrip = contextMenuStrip;
controlEx.gridControl.ContextMenuStrip = contextMenuStrip;
page.Tag = item.UnionModule;
page.Controls.Add(controlEx);
this.xtc_container.TabPages.Add(page);
@@ -521,7 +523,7 @@ namespace Lskj.PubUserTomodule
//contextMenuStrip.Items.Clear();
//contextMenuStrip.Items.Add(menuItem1Edit);
controlEx.ContextMenuStrip = contextMenuStripEditingMethod;
controlEx.gridControl.ContextMenuStrip = contextMenuStripEditingMethod;
page.Tag = dllcode;
page.Controls.Add(controlEx);
@@ -547,7 +549,7 @@ namespace Lskj.PubUserTomodule
this.SetElementTableColumns(this.BillDetail);
this.BillDetail.gridControl.DataSource = PowerImpl.GetBillDetailData(dllcode);
this.BillDetail.GridView.BestFitColumns();//设置根据内容填充列宽
this.BillDetail.ContextMenuStrip = contextMenuStrip;
this.BillDetail.gridControl.ContextMenuStrip = contextMenuStrip;
this.BillDetail.GridView.CellValueChanged -= GridView_CellValueChanged;
this.BillDetail.GridView.CellValueChanged += GridView_CellValueChanged;
}