SVN-Revision: r356
This commit is contained in:
tdx
2025-03-19 08:43:07 +00:00
parent c9dd16d81f
commit 3df85ff51f
3 changed files with 50 additions and 21 deletions
+25
View File
@@ -33,6 +33,7 @@ using System.IO;
using Lskj.Business;
using Lskj.Main.Model;
using System.Threading.Tasks;
using Lskj.Core;
namespace Lskj.PubBill
{
@@ -83,6 +84,19 @@ namespace Lskj.PubBill
{
this.Text = this.billModule1.BillModel.TypeName;
if (this.SysModel.BillDetailSql.StartsWith("*"))
{
string rightid = this.SysModel.BillDetailSql.TrimStart('*');
string sqlValue = "select AllowNullExec,* from p_systempopupmenu ";
sqlValue = $"{sqlValue} where id = '{rightid}'";
DataRow rowItem = BaseImpl.GetDataRowResult(sqlValue);
if (rowItem != null)
{
CommonMenu menu = new CommonMenu(this.SysModel, this.billModule1.ControlObj,this.billModule1.gcMainDetilObj);
menu.DynamicLinkAfter += new CommonToolAfterDynamicLinkEventHandler(OnDynamicLinkAfter);
menu.Apply(rowItem);
}
}
}
this.FormClosing += new FormClosingEventHandler(OnClose);
}
@@ -105,6 +119,17 @@ namespace Lskj.PubBill
WaitForm.HideForm();
}
}
/// <summary>
/// 执行完成后若是取消状态则关闭当前界面
/// </summary>
/// <param name="e"></param>
private void OnDynamicLinkAfter(ApplyArgs e)
{
if(e.DialogModel!= null && e.DialogModel.PubDialogType== DialogType.Pubcolsed)
{
this.Close();
}
}
/// <summary>