public BaseService(CosDbContext dbContext) { this.DbContext = dbContext; this.MailingAddressRepository = RepositoryFactory.CreateObj <MailingAddressRepository>(dbContext); this.ExchangeRepository = RepositoryFactory.CreateObj <ExchangeRepository>(dbContext); this.ExchangeExamineRepository = RepositoryFactory.CreateObj <ExchangeExamineRepository>(dbContext); this.CooperationRepository = RepositoryFactory.CreateObj <CooperationRepository>(dbContext); this.ImgRepository = RepositoryFactory.CreateObj <ImgRepository>(dbContext); this.ExchangeReplyRepository = RepositoryFactory.CreateObj <ExchangeReplyRepository>(dbContext); this.CooperationReplyRepository = RepositoryFactory.CreateObj <CooperationReplyRepository>(dbContext); this.ExchangePersonRepository = RepositoryFactory.CreateObj <ExchangePersonRepository>(dbContext); this.MemberRepository = RepositoryFactory.CreateObj <MemberRepository>(dbContext); this.RechargeRecordRepository = RepositoryFactory.CreateObj <RechargeRecordRepository>(dbContext); this.SysParaRepository = RepositoryFactory.CreateObj <SysParaRepository>(dbContext); this.ExchangeEventRepository = RepositoryFactory.CreateObj <ExchangeEventRepository>(dbContext); this.DepositControlRepository = RepositoryFactory.CreateObj <DepositControlRepository>(dbContext); this.LogisticRepository = RepositoryFactory.CreateObj <LogisticRepository>(dbContext); this.LoginCodeRepository = RepositoryFactory.CreateObj <LoginCodeRepository>(dbContext); this.ShipperCompanyRepository = RepositoryFactory.CreateObj <ShipperCompanyRepository>(dbContext); this.AdminMemberRepository = RepositoryFactory.CreateObj <AdminMemberRepository>(dbContext); this.CooperationClassRepository = RepositoryFactory.CreateObj <CooperationClassRepository>(dbContext); this.RefundRepository = RepositoryFactory.CreateObj <RefundRepository>(dbContext); this.QuickNavigationRepository = RepositoryFactory.CreateObj <QuickNavigationRepository>(dbContext); this.PostageRepository = RepositoryFactory.CreateObj <PostageRepository>(dbContext); this.CosFileStatRepository = RepositoryFactory.CreateObj <CosFileStatRepository>(dbContext); this.ExchangeClassRepository = RepositoryFactory.CreateObj <ExchangeClassRepository>(dbContext); this.VoucherRepository = RepositoryFactory.CreateObj <VoucherRepository>(dbContext); this.LoginIpRepository = RepositoryFactory.CreateObj <LoginIPRepository>(dbContext); this.IntegralChangeRepository = RepositoryFactory.CreateObj <IntegralChangeRepository>(dbContext); this.LoggingRepository = RepositoryFactory.CreateObj <LoggingRepository>(dbContext); this.MemberRegisterRepository = RepositoryFactory.CreateObj <MemberRegisterRepository>(dbContext); this.VersionNotesRepository = RepositoryFactory.CreateObj <VersionNotesRepository>(dbContext); }
public ReceivePartModified() { StandardKernel Kernal = new StandardKernel(); Kernal.Load(Assembly.GetExecutingAssembly()); _serviceSettings = Kernal.Get <SettingRepository>(); _serviceTaskMgrJob = Kernal.Get <TaskMgrJobsRepository>(); _serviceTaskMgrXml = Kernal.Get <TaskMgrXmlRepository>(); _serviceJobWorkFlow = Kernal.Get <JobWorkflowRepository>(); _serviceIncomingData = Kernal.Get <IncomingDataRepository>(); _serviceJobStackErrorLog = Kernal.Get <JobStackErrorLogRepository>(); _serviceTransactionLog = Kernal.Get <TransactionLogRepository>(); _serviceInbox = Kernal.Get <InboxRepository>(); _servicePipeline = Kernal.Get <PipelineRepository>(); _serviceDataset = Kernal.Get <metadataDatasetRepository>(); _serviceNomStatus = Kernal.Get <NominationStatusRepository>(); _applicationLogs = Kernal.Get <ApplicationLogRepository>(); _serviceBatch = Kernal.Get <BatchRepository>(); _serviceNomination = Kernal.Get <NominationsRepository>(); _serviceMetadatCycle = Kernal.Get <metadataCycleRepository>(); unitOfWork = Kernal.Get <UnitOfWork>(); modalFactory = Kernal.Get <ModalFactory>(); _serviceShipperCompany = Kernal.Get <ShipperCompanyRepository>(); _serviceFileSysIncomingData = Kernal.Get <FileSysIncomingDataRepository>(); _serviceSqtsOpPerTransaction = Kernal.Get <SQTSOPPerTransactionRepository>(); #region get nmqr services _serviceNmqrPerTransaction = Kernal.Get <NMQRPerTransactionRepository>(); #endregion #region get sqts service _serviceSqtsTrackOnNom = Kernal.Get <SQTSTrackOnNomRepository>(); _serviceSqtsFile = Kernal.Get <SQTSFileRepository>(); _serviceSqtsPerTransaction = Kernal.Get <SQTSPerTransactionRepository>(); #endregion #region get email service emailTempalteService = Kernal.Get <EmailTemplateRepository>(); emailQueueService = Kernal.Get <EmailQueueRepository>(); appLogService = Kernal.Get <ApplicationLogRepository>(); #endregion var path = Path.Combine(HostingEnvironment.MapPath("~/App_Data"), "SQTSReductionReasons.xml"); FileInfo fileInfo = new FileInfo(path); XmlDocument xmlRedReason = new XmlDocument(); if (System.IO.File.Exists(path) && !IsFileLocked(fileInfo)) { try { xmlRedReason.Load(path); var redResonNode = xmlRedReason.GetElementsByTagName("Reason"); if (redResonNode != null) { redReasonList = redResonNode.Cast <XmlNode>(); } } catch (Exception ex) { } } }
public DashboardService(INMQRPerTransactionRepository NMQRPerTransactionRepository, IPipelineRepository pipelinesRepository, INominationsRepository nominationRepository, IShipperCompanyRepository shipperCompanyRepository, IUnitOfWork unitOfWork) { this.pipelinesRepository = pipelinesRepository; this.nominationRepository = nominationRepository; this.shipperCompanyRepository = shipperCompanyRepository; this.unitOfWork = unitOfWork; this.NMQRPerTransactionRepository = NMQRPerTransactionRepository; }