diff --git a/插件库/Lskj.BaseInfo/FrmMain.cs b/插件库/Lskj.BaseInfo/FrmMain.cs
index 04347a0..f1ae6e2 100644
--- a/插件库/Lskj.BaseInfo/FrmMain.cs
+++ b/插件库/Lskj.BaseInfo/FrmMain.cs
@@ -293,6 +293,7 @@ namespace Lskj.BaseInfo
this.CreateBaseInfoControl();
this.BindTab();
this.InitPrint();
+ this.InitCommonTools();
}
#endregion
///
@@ -626,16 +627,20 @@ namespace Lskj.BaseInfo
///
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;
}
///
/// 说明:常用工具点击