SVN r763
SVN-Revision: r763
This commit is contained in:
@@ -1073,7 +1073,8 @@ namespace Lskj.PubBill
|
||||
dtBaseGridRowColors = BaseModuleImpl.GetBaseGridRowColors("BILLDETAIL_" + this.BillModel.FormKey);
|
||||
}
|
||||
this.gcMain.SetGridRowColors(dtBaseGridRowColors);
|
||||
|
||||
//触发右键回调
|
||||
this.gcMain.OnAfterLinkCilk += OnAfterLinkCilkCall;
|
||||
if (!dataCaches.GetValue(gcMain, "BaseGridRightMenus", out DataTable dtBaseGridRightMenus))
|
||||
{
|
||||
dtBaseGridRightMenus = BaseModuleImpl.GetBaseGridRightMenus("BILLDETAIL_" + this.SysModel.ModuleCode);
|
||||
@@ -1131,7 +1132,18 @@ namespace Lskj.PubBill
|
||||
this.gcMain.GridControl.DataSourceChanged += OnGcMainDataSourceChanged;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 表格触发右键功能
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnAfterLinkCilkCall(object sender, EventArgs e)
|
||||
{
|
||||
string unioright = sender + "";
|
||||
DataRow rightrowitem = this.gcMain.gridViewRightMenu.MenuTable.Rows.Cast<DataRow>().FirstOrDefault(x => (x["orderid"] + "").Equals(unioright));
|
||||
CommonMenu menu = new CommonMenu(this.SysModel, null, this.gcMain);
|
||||
menu.Apply(rightrowitem);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:数据绑定后判断是否是右键打开模块赋值</para>
|
||||
|
||||
Reference in New Issue
Block a user