feat: 新增主界面模块功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user