Exemplo n.º 1
0
 // GET: api/PurchaseLineExtend
 public PurchaseLineExtendController(IRepositorySageX3Extend <PurchaseLineExtend> repo,
                                     IRepositoryDapperSageX3 <PurchaseRequestLinePureViewModel> repoPrLinePure,
                                     IMapper mapper,
                                     IHelperService helper,
                                     JsonSerializerService jsonService) : base(repo, mapper, helper, jsonService)
 {
     this.repositoryPrLinePure = repoPrLinePure;
 }
Exemplo n.º 2
0
 public BankController(IRepositorySageX3 <Bank> repo,
                       IRepositoryDapperSageX3 <CustomerViewModel> repoCustomer,
                       IRepositoryDapperSageX3 <BranchViewModel> repoBranch,
                       IRepositoryDapperSageX3 <PartnerViewModel> repoPartner,
                       IMapper mapper) : base(repo, mapper)
 {
     this.repositoryBranch   = repoBranch;
     this.repositoryCustomer = repoCustomer;
     this.repositoryPartner  = repoPartner;
 }
 // GET: api/PurchaseExtends
 public PurchaseExtendsController(IRepositorySageX3Extend <PurchaseExtend> repo,
                                  IRepositorySageX3Extend <PurchaseLineExtend> repoPurchaseLine,
                                  IRepositoryDapperSageX3 <PurchaseRequestPureViewModel> repoPrPure,
                                  IRepositoryDapperSageX3 <PrOutStandingViewModel> repoPrOutStanding,
                                  IMapper mapper,
                                  IHelperService helper,
                                  JsonSerializerService jsonService) : base(repo, mapper, helper, jsonService)
 {
     this.repositoryPurchaseLine = repoPurchaseLine;
     this.repositoryPrPure       = repoPrPure;
     // Dapper
     this.repositoryPrOutStanding = repoPrOutStanding;
 }
 public InvoiceController(
     IRepositoryDapperSageX3 <InvoiceSupBPViewModel> repoInvoice,
     IRepositoryDapperSageX3 <Journal2ViewModel> repoJournal2,
     IRepositoryDapperSageX3 <InvoiceOutStandingViewModel> repoInvOutStand,
     IHelperService helperService)
 {
     // Repository
     this.repositoryInvoice     = repoInvoice;
     this.repositoryJournal2    = repoJournal2;
     this.repositoryInvOutStand = repoInvOutStand;
     // Helper
     this.helperService = helperService;
 }
Exemplo n.º 5
0
 // GET: api/Miscellaneous
 public MiscellaneousController(
     IRepositorySageX3 <Stojou> repo,
     IRepositoryDapperSageX3 <MiscAndAcountViewModel> repoMiscAndAcc,
     IRepositoryDapperSageX3 <IssueViewModel> repoIssue,
     IRepositoryDapperSageX3 <JournalViewModel> repoJournal,
     IHelperService _helperService,
     IMapper mapper)
     : base(repo, mapper)
 {
     //Repository
     this.repositoryMiscAndAcc = repoMiscAndAcc;
     this.repositoryIssue      = repoIssue;
     this.repositoryJournal    = repoJournal;
     //Helper
     this.helperService = _helperService;
 }
Exemplo n.º 6
0
 public StockMovementController(IRepositorySageX3 <Stojou> repo,
                                IRepositorySageX3 <Preceiptd> repoReceipt,
                                IRepositoryDapperSageX3 <StockMovementViewModel> repoStock,
                                IRepositoryDapperSageX3 <StockMovement2ViewModel> repoStock2,
                                IHelperService helperService,
                                IHostingEnvironment hosting,
                                IMapper mapper, SageX3Context x3Context) : base(repo, mapper)
 {
     // Repoistory
     this.repositoryReceipt = repoReceipt;
     this.repositoryStock   = repoStock;
     this.repositoryStock2  = repoStock2;
     // Helper
     this.helperService = helperService;
     // Host
     this.hosting = hosting;
     // Context
     this.sageContext = x3Context;
 }
 public PaymentController(IRepositorySageX3 <Paymenth> repo,
                          IRepositoryDapperSageX3 <PaymentViewModel> repoPayment,
                          IRepositoryDapperSageX3 <PaymentRetentionViewModel> repoRetention,
                          IRepositoryDapperSageX3 <PaymentSubConViewModel> repoPaymentSub,
                          IRepositorySageX3 <Bank> repoBank,
                          ExcelWorkBookService exWbService,
                          IHelperService _helperService,
                          IHostingEnvironment hosting,
                          IMapper mapper) : base(repo, mapper)
 {
     this.repositoryBank = repoBank;
     // DapperSageX3
     this.repositoryPayment    = repoPayment;
     this.repositoryRetention  = repoRetention;
     this.repositoryPaymentSub = repoPaymentSub;
     // Helper
     this.excelWbService = exWbService;
     this.helperService  = _helperService;
     this.hosting        = hosting;
 }