//// // GET: /Sales/Delivery/ public DeliveryController() { var dbfactory = new DatabaseFactory(); _DeliveryService = new DeliveryService(new DeliveryRepository(dbfactory), new DeliveryDetailRepository(dbfactory), new SalesOrderDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _DeliveryDetailsService = new DeliveryDetailsService(new DeliveryDetailsRepository(dbfactory), new ChartOfProductRepository(dbfactory), new UnitOfMeasurementRepository(dbfactory), new DeliveryRepository(dbfactory), new SalesOrderDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory)); _salesOrderService = new SalesOrderService(new SalesOrderRepository(dbfactory), new SalesOrderDetailRepository(dbfactory), new SalesOrderApprovalRepository(dbfactory), new NotificationRepository(dbfactory), new NotificationDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _officeService = new OfficeService(new OfficeRepository(dbfactory), new UnitOfWork(dbfactory)); _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), new UnitOfWork(dbfactory)); _objRptInvoiceService = new RptInvoiceService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); _objChallenReportService = new ChallenReportService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); }
public SalesReportController() { var dbfactory = new DatabaseFactory(); _objCollectionEntryMoneyReceiptReportService = new CollectionEntryService(new CollectionEntryRepository(dbfactory), new UnitOfWork(dbfactory)); _objPartyListReportService = new PartyListReportService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory)); _ChartOfProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), new UnitOfWork(dbfactory)); _objProductPriceReportService = new ProductPriceReportService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory)); _objFreeProductReportService = new FreeProductReportService(new FreeProductRepository(dbfactory), new UnitOfWork(dbfactory)); _objDailySalesReportService = new DailySalesReportService(new SalesOrderRepository(dbfactory), new UnitOfWork(dbfactory)); _objChallenReportService = new ChallenReportService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); _objTargetNAchievementReportService = new TargetNAchievementReportService(new SalesOrderRepository(dbfactory), new UnitOfWork(dbfactory)); _objRptInvoiceService = new RptInvoiceService(new DistributorRepository(dbfactory), new UnitOfWork(dbfactory)); _objSalesOrderListReportService = new SalesOrderListReportService(new SalesOrderRepository(dbfactory), new UnitOfWork(dbfactory)); _objStockBalanceReportService = new StockBalanceReportService(new InvStoreOpeningRepository(dbfactory), new UnitOfWork(dbfactory)); _objSalesCommissionReportService = new SalesCommissionReportService(new InvStoreOpeningRepository(dbfactory), new UnitOfWork(dbfactory)); _objPartyCreditReportService = new PartyCreditReportService(new InvStoreOpeningRepository(dbfactory), new UnitOfWork(dbfactory)); _objSalesReturnListReportService = new SalesReturnListReportService(new SalesReturnRepository(dbfactory), new UnitOfWork(dbfactory)); _objProductService = new ProductReportService(new ProductRepository(dbfactory), new UnitOfWork(dbfactory)); _objCollectionReportService = new CollectionReportService(new CollectionReportRepository(dbfactory), new UnitOfWork(dbfactory)); _objPartyLedgerReportService = new PartyLedgerReportService(new InvStoreOpeningRepository(dbfactory), new UnitOfWork(dbfactory)); _objSalesTargetReportService = new RptSalesTargetService(new RptSalesTargetRepository(dbfactory), new UnitOfWork(dbfactory)); }