示例#1
0
 public ReadOnlyObservableCollection<CommandViewModel> CreatMenu()
 {
     MenuHelper menuHelper = new MenuHelper(controller);
     /*menuHelper.AddMenuItem(new MenuItem<IStorageSpaceTypeController>("انواع انبار", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IGoodTypeController>("انواع کالا", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IUnitController>("واحدها", "ShowUnits"));
     menuHelper.AddMenuItem(new MenuItem<IEffectiveFactorController>("عوامل موثر", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IGoodController>("کالاها", "ShowGoods"));
     menuHelper.AddMenuItem(new MenuItem<IReceiptTypeController>("انواع رسید", "ShowReceiptType"));
     menuHelper.AddMenuItem(new MenuItem<IBrandController>("برندها", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IIssueTypeController>("انواع حواله", "ShowIssueType"));*/
     menuHelper.AddMenuItem(new MenuItem<ICharterController>("Charter In", "ShowCharterInList"));
     menuHelper.AddMenuItem(new MenuItem<IOrderController>("سفارشات", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IFuelReportController>("گزارش سوخت", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IInvoiceController>("صورت حساب", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IVoyageController>("گزارش سفرها", "Show"));
     menuHelper.AddMenuItem(new MenuItem<IOffhireController>("Offhire", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<IScrapController>("Scrap", "ShowList"));
     menuHelper.AddMenuItem(new MenuItem<ICharterController>("Charter Out", "ShowCharterOutList"));
     return menuHelper.ExcuteMenu();
 }
示例#2
0
 public ReadOnlyObservableCollection<CommandViewModel> CreatReportMenu()
 {
     MenuHelper menuHelper = new MenuHelper(controller);
     menuHelper.AddMenuItem(new MenuItem<ICardexReportController>("کاردکس", "ShowReport"));
     return menuHelper.ExcuteMenu();
 }