feat: 新增主界面模块功能

This commit is contained in:
cyf
2026-08-28 23:32:47 +08:00
parent b33c847b27
commit 98a119ed25
10 changed files with 942 additions and 30 deletions
+17 -3
View File
@@ -157,6 +157,7 @@ namespace Lskj.PubModuleDetail
string guid = this.Tag + "";
if (string.IsNullOrWhiteSpace(guid))
{
this.CloseExecution();
this.mControl.ReleaseResourcesForDispose();
return;
}
@@ -186,20 +187,33 @@ namespace Lskj.PubModuleDetail
// confirmed; waiting for FrmMain.Dispose leaves GDI handles alive
// between module cycles.
if (!e.Cancel)
{
this.CloseExecution();
this.mControl.ReleaseResourcesForDispose();
}
}
private void CloseExecution()
{
try
{
if (!string.IsNullOrEmpty(this.mControl.SysModel.FrmCloseStored))
{
string sql = this.mControl.SysModel.FrmCloseStored;
if (this.mControl.SearchObj!=null) sql=this.mControl.SearchObj.ReplaceControlValue(sql);
if (this.mControl.SearchObj != null) sql = this.mControl.SearchObj.ReplaceControlValue(sql);
sql = ReplaceHelper.ReplaceUserInfo(sql);
string result = SqlHelper.ExecuteScalar(sql) + "";
if (!string.IsNullOrEmpty(result)) MessageUtil.Show(result);
}
this.mControl.ReleaseResourcesForDispose();
}
catch (Exception ex)
{
}
}
/// <summary>
/// <para>说明:拿到底部表格数据</para>
/// <para>创建人:龚宇超</para>