SVN r1143

SVN-Revision: r1143
This commit is contained in:
cyf
2026-03-20 01:38:59 +00:00
parent 9f018f1fbc
commit d735d3faad
+15 -10
View File
@@ -293,6 +293,7 @@ namespace Lskj.BaseInfo
this.CreateBaseInfoControl();
this.BindTab();
this.InitPrint();
this.InitCommonTools();
}
#endregion
/// <summary>
@@ -626,16 +627,20 @@ namespace Lskj.BaseInfo
/// </summary>
private void InitCommonTools()
{
DataTable toolsMenu = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode, ModuleType.BillDetail);
foreach (DataRow item in toolsMenu.Rows)
{
BarButtonItem itemCommon = new BarButtonItem();
itemCommon.Caption = item["menuname"] + "";
itemCommon.Tag = item;
itemCommon.ItemClick += new ItemClickEventHandler(itemCommon_ItemClick);
this.pMenu.AddItem(itemCommon);
}
this.drop_tools.Enabled = toolsMenu.Rows.Count > 0;
string text = Business.Impl.LanguageTranslation.Translatable ? Business.Impl.LanguageTranslation.GetTranslatedText("附件") : "附件";
this.btnFile.Text = text + "(" + AttachImpl.GetFileCount(this._baseInfoModelObj.MenuDirId + "", this.SysModel.PrimaryValue) + ")";
//DataTable toolsMenu = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode, ModuleType.BillDetail);
//foreach (DataRow item in toolsMenu.Rows)
//{
// BarButtonItem itemCommon = new BarButtonItem();
// itemCommon.Caption = item["menuname"] + "";
// itemCommon.Tag = item;
// itemCommon.ItemClick += new ItemClickEventHandler(itemCommon_ItemClick);
// this.pMenu.AddItem(itemCommon);
//}
//this.drop_tools.Enabled = toolsMenu.Rows.Count > 0;
}
/// <summary>
/// <para>说明:常用工具点击</para>