//, IProductServiceWrapper service) public MainWindowVM(IFuelController controller) { DisplayName = "سامانه"; this.controller = controller; UserState = controller.CurrentUserState; //this.service = service; }
public InvoiceItemVM(IFuelController appController, IInvoiceServiceWrapper invoiceServiceWrapper, IGoodServiceWrapper goodServiceWrapper) { mainController = appController; serviceWrapper = invoiceServiceWrapper; Entity = new InvoiceItemDto(); DisplayName = "ویرایش ایتم های صورتحساب "; }
public FuelReportInventoryOperationVM(IFuelController mainController) : this() { this.mainController = mainController; this.RequestClose += FuelReportVM_RequestClose; }
// vesselServiceWrapper must be added *********************** public InvoiceListVM(IInvoiceController controller, IFuelController mainController, IInvoiceServiceWrapper serviceWrapper, ICompanyServiceWrapper companyServiceWrapper, IUserServiceWrapper userServiceWrapper, // EnumVM<InvoiceTypeEnum> InvoiceTypeEnum IApprovalFlowServiceWrapper approcalServiceWrapper) { this.controller = controller; this.serviceWrapper = serviceWrapper; this.mainController = mainController; this.companyServiceWrapper = companyServiceWrapper; this.userServiceWrapper = userServiceWrapper; this.approcalServiceWrapper = approcalServiceWrapper; // InvoiceTypesVM = new EnumVM<InvoiceTypeEnum>(); DisplayName = "صورتحساب"; Data = new PagedSortableCollectionView<InvoiceDto>(); Data.PageChanged += Data_PageChanged; //filters CompaniesFilter = new List<CompanyDto>(); InvoiceCreatorsFilter = new ObservableCollection<UserDto>(); FromDateFilter = DateTime.Now.AddMonths(-2); ToDateFilter = DateTime.Now; Load(); }
public InvoiceAdditionalPriceVM(IFuelController appController, IInvoiceServiceWrapper invoiceServiceWrapper) { mainController = appController; serviceWrapper = invoiceServiceWrapper; Entity = new InvoiceAdditionalPriceDto(); DisplayName = "ویرایش عوامل تاثیر گذار "; }
public InvoiceReferenceLookUpVM(IInvoiceController controller, IFuelController mainController, IInvoiceServiceWrapper serviceWrapper) { this.controller = controller; this.mainController = mainController; this.serviceWrapper = serviceWrapper; DisplayName = "انتخاب صورتحساب "; AvailableInvoices = new PagedSortableCollectionView<InvoiceDto>(); }
public VoyageVM(IFuelController mainController, IFuelReportServiceWrapper serviceWrapper, IVoyageServiceWrapper voyageServiceWrapper) : this() { this.mainController = mainController; this.serviceWrapper = serviceWrapper; this.voyageServiceWrapper = voyageServiceWrapper; this.DisplayName = "سفر"; }
public ApprovmentVM(IFuelController mainController, IApprovalFlowServiceWrapper serviceWrapper) : this() { this.mainController = mainController; this.serviceWrapper = serviceWrapper; Entity = new ApprovmentDto(); DisplayName = "تایید/لغو عملیات "; this.RequestClose += ApprovmentVM_RequestClose; }
public ScrapVM( IFuelController fuelMainController, IScrapServiceWrapper scrapServiceWrapper, ICompanyServiceWrapper companyServiceWrapper) : this() { this.fuelMainController = fuelMainController; this.scrapServiceWrapper = scrapServiceWrapper; this.companyServiceWrapper = companyServiceWrapper; }
public CharterItemVM(IFuelController fuelController, ICharterInServiceWrapper charterInServiceWrapper, ICharterOutServiceWrapper charterOutServiceWrapper) { this._fuelController = fuelController; this._charterInServiceWrapper = charterInServiceWrapper; this._charterOutServiceWrapper = charterOutServiceWrapper; Entity = new CharterItemDto(); Entity.Good = new GoodDto(); Entity.TankDto = new TankDto(); GoodDtos = new ObservableCollection<GoodDto>(); CurrencyDtos = new ObservableCollection<CurrencyDto>(); TankDtos = new ObservableCollection<TankDto>(); SelectedVesselId = 1; }
public FuelReportDetailVM(IFuelController appController, IFuelReportServiceWrapper fuelReportServiceWrapper, IGoodServiceWrapper goodServiceWrapper) { this.mainController = appController; this.serviceWrapper = fuelReportServiceWrapper; this._goodServiceWrapper = goodServiceWrapper; //var gg = Enum.GetValues(typeof(CorrectionTypeEnum)) as CorrectionTypeEnum[]; this.FuelReportTransferReferenceNoDtos = new ObservableCollection<FuelReportTransferReferenceNoDto>(); UnitDtos = new ObservableCollection<GoodUnitDto>(); setEntity(new FuelReportDetailDto()); DisplayName = "جزئیات گزارش "; }
public OrderVM(IFuelController mainController, IOrderServiceWrapper serviceWrapper) { Entity = new OrderDto { Id = -1 }; this.mainController = mainController; this.serviceWrapper = serviceWrapper; Suppliers = new List<CompanyDto>(); Receivers = new List<CompanyDto>(); Transporters = new List<CompanyDto>(); DisplayName = "افزودن/اصلاح سفارش "; RequestClose += OrderVM_RequestClose; this.Entity.PropertyChanged += EntityPropertyChanged; }
public OrderReferenceLookUpVM(IOrderController controller, IFuelController mainController, OrderListVM invoiceListVM, IOrderServiceWrapper serviceWrapper) { OrderListVM = invoiceListVM; // OrderListVM.IsVisibleFilter = false; this.controller = controller; this.mainController = mainController; this.serviceWrapper = serviceWrapper; DisplayName = "انتخاب سفارش "; AvailableOrders = new PagedSortableCollectionView<OrderDto>() { PageSize = 10 }; SelectedOrders = new PagedSortableCollectionView<OrderDto>(); AvailableOrders.PageChanged += DataPageChanged; }
public OrderItemVM(IFuelController appController, IOrderServiceWrapper orderServiceWrapper, IGoodServiceWrapper goodServiceWrapper) { this.mainController = appController; this.serviceWrapper = orderServiceWrapper; setEntity(new OrderItemDto()); Entity.Good = new GoodDto(); Entity.Good.Unit = new GoodUnitDto(); UnitDtos = new ObservableCollection<GoodUnitDto>(); GoodDtos = new ObservableCollection<GoodDto>(); DisplayName = "افزودن/اصلاح سفارش "; _goodServiceWrapper = goodServiceWrapper; this.PropertyChanged += OrderItemVM_PropertyChanged; }
public OffhireDetailVM( IFuelController fuelMainController, IOffhireServiceWrapper offhireServiceWrapper, //ICompanyServiceWrapper companyServiceWrapper, IGoodServiceWrapper goodServiceWrapper) : this() { this.fuelMainController = fuelMainController; this.offhireServiceWrapper = offhireServiceWrapper; //this.companyServiceWrapper = companyServiceWrapper; this.goodServiceWrapper = goodServiceWrapper; }
//private void Save() //{ // if (!this.Entity.Validate()) // { // return; // } // this.ShowBusyIndicator(); // this.serviceWrapper.Update((res, exp) => this.mainController.BeginInvokeOnDispatcher(() => // { // this.HideBusyIndicator(); // if (exp != null) // { // this.mainController.HandleException(exp); // } // else // { // this.Entity = res; // this.mainController.Publish(new FuelReportListChangeArg()); // this.mainController.Close(this); // } // this.Entity = res; // }), this.Entity); //} //public void Load(VoyageDto ent) //{ // this.ShowBusyIndicator("درحال دریافت اطلاعات گزارش"); // this.serviceWrapper.GetById((res, exp) => this.mainController.BeginInvokeOnDispatcher(() => // { // if (exp == null) // { // this.Entity = res; // //this.ReportType = this.Entity.FuelReportType.ToString(); // //this.GetVoyages(); // } // else // { // this.mainController.HandleException(exp); // } // this.HideBusyIndicator(); // }), // ent.Id); //} public void SetMainController(IFuelController fuelController) { this.mainController = fuelController; }
public ScrapDetailListVM(IFuelController fuelMainController, IScrapServiceWrapper scrapServiceWrapper) { this.fuelMainController = fuelMainController; this.scrapServiceWrapper = scrapServiceWrapper; }