예제 #1
0
 public RequestService(IUnitOfWork unitOfWork, IRequestHeaderRepository requestHeaderRepository, IRequestRepository requestRepository, IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _requestHeaderRepository = requestHeaderRepository;
     _requestRepository       = requestRepository;
     _mapper = mapper;
 }
예제 #2
0
        public EFormIntegrated() : base()
        {
            var dbSource = DbContextSelector.getInstance().getDbFactory(DbContextSelector.DbName.Workflow);

            requestHeaderRepo  = new RequestHeaderRepository(dbSource);
            formIntegratedRepo = new SimpleRepository <TicketFormIntegrated>(dbSource);
        }
예제 #3
0
 public StockService(IManagementService managementService,
                     IRequestHeaderRepository requestHeaderRepository,
                     IPurchaseService purchaseService,
                     IRequestService requestService,
                     IRequestRepository requestRepository,
                     IPurchaseRepository purchaseRepository,
                     IPurchaseHeaderRepository purchaseHeaderRepository,
                     IInStockHeaderRepository inStockHeaderRepository,
                     IInStockRepository inStockRepository,
                     IOutStockHeaderRepository outStockHeaderRepository,
                     IOutStockRepository outStockRepository,
                     IMapper mapper)
 {
     _managementService        = managementService;
     _requestHeaderRepository  = requestHeaderRepository;
     _purchaseService          = purchaseService;
     _requestService           = requestService;
     _requestRepository        = requestRepository;
     _purchaseRepository       = purchaseRepository;
     _purchaseHeaderRepository = purchaseHeaderRepository;
     _inStockHeaderRepository  = inStockHeaderRepository;
     _inStockRepository        = inStockRepository;
     _outStockHeaderRepository = outStockHeaderRepository;
     _outStockRepository       = outStockRepository;
     _mapper = mapper;
 }
예제 #4
0
 public PurchaseService(IPurchaseApplicationHeaderRepository purchaseApplicationHeaderRepository,
                        IPurchaseApplicationRepository purchaseApplicationRepository,
                        IPurchaseHeaderRepository purchaseHeaderRepository,
                        IPurchaseRepository purchaseRepository,
                        IRequestHeaderRepository requestHeaderRepository,
                        IRequestService requestService,
                        IManagementService managementService,
                        IInStockRepository inStockRepository,
                        IMapper mapper)
 {
     _purchaseApplicationHeaderRepository = purchaseApplicationHeaderRepository;
     _purchaseApplicationRepository       = purchaseApplicationRepository;
     _purchaseHeaderRepository            = purchaseHeaderRepository;
     _purchaseRepository      = purchaseRepository;
     _requestHeaderRepository = requestHeaderRepository;
     _requestService          = requestService;
     _managementService       = managementService;
     _inStockRepository       = inStockRepository;
     _mapper = mapper;
 }
예제 #5
0
        public AbstractRequestFormBC(IDbFactory dbFactory, IDbFactory dbDocFactory)
        {
            this._transactionHistoryRepository = new TransactionHistoryRepository(dbFactory);
            this._documentRepository           = new DocumentRepository(dbFactory);

            this.requestHeaderRepository   = new RequestHeaderRepository(dbFactory);
            this.activityHistoryRepository = new ActivityHistoryRepository(dbFactory);
            this._wlRepo                   = new WMRepository(dbFactory);
            this.employeeRepository        = new EmployeeRepository(dbFactory);
            this.unitOfWork                = new UnitOfWork(dbFactory);
            this.fileAttachementRepository = new AttachementRepository <FileTemp>(dbDocFactory);
            this.repository                = new Repository();

            //Adding by default since all work flow get view activity for users
            AddActivities(new DefaultActivity <E>(FORM_VIEW));

            REQ_APP            = _wlRepo.GetReqAppByCode(GetRequestCode());
            REQ_CODE           = REQ_APP.RequestCode;
            ActivityList       = _wlRepo.GetActivitiesByReqCode(REQ_APP.RequestCode);
            _processFolderName = ConfigurationManager.AppSettings["ProcessFolderName"] ?? "Nagaworld\\";
            InitActivityConfiguration();
        }
예제 #6
0
        public RequestHeaderService()
        {
            IDbFactory dbFactory = DbContextSelector.getInstance().getDbFactory(DbContextSelector.DbName.Workflow);

            requestHeaderRepo = new RequestHeaderRepository(dbFactory);
        }