// 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 ScrapVM( IFuelController fuelMainController, IScrapServiceWrapper scrapServiceWrapper, ICompanyServiceWrapper companyServiceWrapper) : this() { this.fuelMainController = fuelMainController; this.scrapServiceWrapper = scrapServiceWrapper; this.companyServiceWrapper = companyServiceWrapper; }