SVN r356
SVN-Revision: r356
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user