コード例 #1
0
ファイル: InvoiceListVM.cs プロジェクト: hatefi-arman/Modules
        // 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();
        }
コード例 #2
0
ファイル: ScrapVM.cs プロジェクト: hatefi-arman/Modules
 public ScrapVM(
     IFuelController fuelMainController,
     IScrapServiceWrapper scrapServiceWrapper,
     ICompanyServiceWrapper companyServiceWrapper)
     : this()
 {
     this.fuelMainController = fuelMainController;
     this.scrapServiceWrapper = scrapServiceWrapper;
     this.companyServiceWrapper = companyServiceWrapper;
 }