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