Example #1
0
 // ILog _log = LogManager.GetLogger("InventoryWorkflow");
  public InventoryWorkflow(ICostCentreRepository costCentreRepository, IProductRepository productRepository, IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository)
  {
      _productRepository = productRepository;
      _inventoryRepository = inventoryRepository;
      _costCentreRepository = costCentreRepository;
      _inventoryTransactionRepository = inventoryTransactionRepository;
  }
Example #2
0
        //protected IBankRepository _bankRepository;
        //protected IBankBranchRepository _bankBranchRepository;
        #region Constructors

        public InsertTestData(IOutletVisitReasonsTypeRepository visitReasonsTypeRepository,IActivityTypeRepository activityTypeRepository,IContainerTypeRepository containerTypeRepository, IRetireDocumentSettingRepository retireDocumentSettingRepository, IOutletPriorityRepository outletPriorityRepository,
        IOutletVisitDayRepository outletVisitDayRepository, IAssetStatusRepository assetStatusRepository,
        IAssetCategoryRepository assetCategoryRepository, IUserGroupRepository userGroupRepository, IUserGroupRolesRepository userGroupRolesRepository, ISalesmanRouteRepository salesmanRouteRepository, IProductTypeRepository productTypeRepository, IProductBrandRepository productBrandRepository, IProductFlavourRepository productFlavourRepository, IProductPackagingRepository productPackagingRepository, IProductPackagingTypeRepository productPackagingTypeRepository, IProductRepository productRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IProductPricingRepository pricingRepository,
        IVATClassRepository vatClassRepository, IVATClassFactory vatClassFactory, ICountryRepository countryRepository,
        IProductPricingFactory productPricingFactory, IProductPricingTierRepository productPricingTierRepository,
        IOutletTypeRepository outletTypeRepository, IUserRepository userRepository, IOutletRepository outletRepository,
        IRouteRepository routeRepository, IRouteFactory routeFactory, ITransporterRepository transporterRepository,
        IProductFactory productFactory, IDistributorSalesmanRepository distributorSalesmanRepository,
        IProducerRepository producerRepository,  IDocumentFactory documentFactory,
        ISocioEconomicStatusRepository socioEconomicStatusRepository, IClientMasterDataTrackerRepository clientMasterDataTrackerRepository,
        IDistributorRepository distributorrepository, IOutletCategoryRepository outletCategoryRepository, 
        ITerritoryRepository territoryRepository, 
         IAreaRepository areaRepository,
        IContactRepository contactRepository, IAccountRepository accountRepository, IAccountTransactionRepository accountTransactionRepository,
        IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository,
        ICostCentreApplicationRepository costCentreApplicationRepository, IChannelPackagingRepository channelPackagingRepository,
        ICompetitorRepository competitorRepository, ICompetitorProductsRepository competitorProductRepository, IAssetRepository coolerRepository,
        IAssetTypeRepository coolerTypeRepository, IDistrictRepository districtRepository, IProvincesRepository provinceRepository,
        IReOrderLevelRepository reorderLevelRepository, ITargetPeriodRepository targetPeriodRepository, ITargetRepository targetRepository,
        IProductDiscountFactory productDiscountFactory, IProductDiscountRepository productDiscountRepository, ISaleValueDiscountFactory saleValueDiscountFactory,
        ISaleValueDiscountRepository saleValueDiscountRepository, IBankRepository bankRepository, IBankBranchRepository bankBranchRepository,
        ISupplierRepository supplierRepository, ICreatePaymentNoteCommandHandler createLossCommandHandler, IAddPaymentNoteLineItemCommandHandler addLossLineItemCommandHandler, IConfirmPaymentNoteCommandHandler confirmLossCommandHandler,
        IContactTypeRepository contactTypeRepository, IDiscountGroupRepository discountGroupRepository, IProductDiscountGroupFactory productDiscountGroupFactory,
        ICertainValueCertainProductDiscountFactory certainValueCertainProductDiscountFactory,
        ICustomerDiscountFactory customerDiscountFactory,
        IPromotionDiscountFactory promotionDiscountFactory,
        IProductDiscountGroupRepository productDiscountGroupRepository,
        IPromotionDiscountRepository promotionDiscountRepository,
        IFreeOfChargeDiscountRepository freeOfChargeDiscountRepository,
        ICertainValueCertainProductDiscountRepository certainValueCertainProductDiscountRepository,
        ITargetItemRepository targetItemRepository, ISettingsRepository settingsRepository, 
        ICentreRepository centreRepository, ICentreTypeRepository centreTypeRepository, 
        ICommoditySupplierRepository commoditySupplierRepository, ICommodityOwnerTypeRepository commodityOwnerTypeRepository, 
        ICommodityOwnerRepository commodityOwnerRepository, ICommodityProducerRepository commodityProducerRepository, 
        ICommodityRepository commodityRepository, ICommodityTypeRepository commodityTypeRepository,
        IEquipmentRepository equipmentRepository, IMasterDataAllocationRepository masterDataAllocationRepository,IVehicleRepository vehicleRepository,IHubRepository hubRepository,
        IPurchasingClerkRouteRepository purchasingClerkRouteRepository,IInfectionRepository infectionRepository,ISeasonRepository seasonRepository,IServiceProviderRepository serviceProviderRepository,IServiceRepository serviceRepository,IShiftRepository shiftRepository,ISalesmanSupplierRepository salesmanSupplierRepository
            )
        {
            _salesmanSupplierRepository = salesmanSupplierRepository;
            _productTypeRepository = productTypeRepository;
            _productBrandRepository = productBrandRepository;
            _productFlavourRepository = productFlavourRepository;
            _productPackagingRepository = productPackagingRepository;
            _productPackagingTypeRepository = productPackagingTypeRepository;
            _productRepository = productRepository;
            _regionRepository = regionRepository;
            _costCentreRepository = costCentreRepository;
            _costCentreFactory = costCentreFactory;
            _pricingRepository = pricingRepository;
            _vatClassRepository = vatClassRepository;
            _vatClassFactory = vatClassFactory;
            _countryRepository = countryRepository;
            _productPricingFactory = productPricingFactory;
            _ProductPricingTierRepository = productPricingTierRepository;
            _outletTypeRepository = outletTypeRepository;
            _userRepository = userRepository;
            _outletRepository = outletRepository;
            _routeRepository = routeRepository;
            _routeFactory = routeFactory;
            _transporterRepository = transporterRepository;
            _productFactory = productFactory;
            _distributorSalesmanRepository = distributorSalesmanRepository;
            _producerRepository = producerRepository;
            _documentFactory = documentFactory;
            _socioEconomicStatusRepository = socioEconomicStatusRepository;
            _clientMasterDataTrackerRepository = clientMasterDataTrackerRepository;
            _distributorrepository = distributorrepository;
            _outletCategoryRepository = outletCategoryRepository;
            //_createOrderCommandHandler = createOrderCommandHandler;
            _territoryRepository = territoryRepository;
            _areaRepository = areaRepository;
            _contactRepository = contactRepository;
            _accountRepository = accountRepository;
            _accountTransactionRepository = accountTransactionRepository;
            _inventoryRepository = inventoryRepository;
            _inventoryTransactionRepository = inventoryTransactionRepository;
            _costCentreApplicationRepository = costCentreApplicationRepository;
            _channelPackagingRepository = channelPackagingRepository;
            _competitorRepository = competitorRepository;
            _competitorProductRepository = competitorProductRepository;
            _coolerRepository = coolerRepository;
            _coolerTypeRepository = coolerTypeRepository;
            _districtRepository = districtRepository;
            _provinceRepository = provinceRepository;
            _reorderLevelRepository = reorderLevelRepository;
            _targetPeriodRepository = targetPeriodRepository;
            _targetRepository = targetRepository;
            _productDiscountFactory = productDiscountFactory;
            _productDiscountRepository = productDiscountRepository;
            _saleValueDiscountFactory = saleValueDiscountFactory;
            _saleValueDiscountRepository = saleValueDiscountRepository;
            _salesmanRouteRepository = salesmanRouteRepository;
            _userGroupRepository = userGroupRepository;
            _userGroupRolesRepository = userGroupRolesRepository;
            _bankRepository = bankRepository;
            _bankBranchRepository = bankBranchRepository;
            _supplierRepository = supplierRepository;
            _createLossCommandHandler = createLossCommandHandler;
            _addLossLineItemCommandHandler = addLossLineItemCommandHandler;
            _confirmLossCommandHandler = confirmLossCommandHandler;
           
            _contactTypeRepository = contactTypeRepository;
            _assetCategoryRepository = assetCategoryRepository;
            _assetStatusRepository = assetStatusRepository;
            _discountGroupRepository = discountGroupRepository;
            _productDiscountGroupFactory = productDiscountGroupFactory;
            _certainValueCertainProductDiscountFactory = certainValueCertainProductDiscountFactory;
            _customerDiscountFactory = customerDiscountFactory;
            _promotionDiscountFactory = promotionDiscountFactory;
            _productDiscountGroupRepository = productDiscountGroupRepository;
            _promotionDiscountRepository = promotionDiscountRepository;
            _freeOfChargeDiscountRepository = freeOfChargeDiscountRepository;
            _certainValueCertainProductDiscountRepository = certainValueCertainProductDiscountRepository;
            _outletPriorityRepository = outletPriorityRepository;
            _outletVisitDayRepository = outletVisitDayRepository;
            _targetItemRepository = targetItemRepository;
            _settingsRepository = settingsRepository;
            _retireDocumentSettingRepository = retireDocumentSettingRepository;
            _commodityOwnerTypeRepository = commodityOwnerTypeRepository;
            _commodityOwnerRepository = commodityOwnerRepository;
            _commoditySupplierRepository = commoditySupplierRepository;
            _centreTypeRepository = centreTypeRepository;
            _centreRepository = centreRepository;
            _commodityProducerRepository = commodityProducerRepository;
            _commodityRepository = commodityRepository;
            _commodityTypeRepository = commodityTypeRepository;
            _equipmentRepository = equipmentRepository;
            _masterDataAllocationRepository = masterDataAllocationRepository;
            _containerTypeRepository = containerTypeRepository;
            _hubRepository = hubRepository;
            _vehicleRepository = vehicleRepository;
            _purchasingClerkRouteRepository = purchasingClerkRouteRepository;
            _ShiftRepository = shiftRepository;
            _SeasonRepository = seasonRepository;
            _ServiceProviderRepository = serviceProviderRepository;
            _ServiceRepository = serviceRepository;
            _InfectionRepository = infectionRepository;
            _activityTypeRepository = activityTypeRepository;
            _outletVisitReasonsTypeRepository = visitReasonsTypeRepository;
        }
Example #3
0
 public InventoryController()
 {
     repo = new RepositoryFactory().InventoryTransactionRepository();
     repo.InitRepository(GlobalInstance.Instance.SboComObject, GlobalInstance.Instance.SqlObject);
 }
Example #4
0
        public InsertPHDTestData(IOutletPriorityRepository outletPriorityRepository,
         IOutletVisitDayRepository outletVisitDayRepository, IProductDiscountGroupFactory productDiscountGroupFactory,
         ICertainValueCertainProductDiscountFactory certainValueCertainProductDiscountFactory,
         ICustomerDiscountFactory customerDiscountFactory,
         IPromotionDiscountFactory promotionDiscountFactory,
         IProductDiscountGroupRepository productDiscountGroupRepository,
         IPromotionDiscountRepository promotionDiscountRepository,
         IFreeOfChargeDiscountRepository freeOfChargeDiscountRepository,
         ICertainValueCertainProductDiscountRepository certainValueCertainProductDiscountRepository,IDiscountGroupRepository discountGroupRepository,IAssetStatusRepository assetStatusRepository,
        IAssetCategoryRepository assetCategoryRepository,
IProductTypeRepository productTypeRepository, IProductBrandRepository productBrandRepository, IProductFlavourRepository productFlavourRepository, IProductPackagingRepository productPackagingRepository, IProductPackagingTypeRepository productPackagingTypeRepository, IProductRepository productRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IProductPricingRepository pricingRepository, IVATClassRepository vatClassRepository, IVATClassFactory vatClassFactory, ICountryRepository countryRepository, IProductPricingFactory productPricingFactory, IProductPricingTierRepository productPricingTierRepository, IOutletTypeRepository outletTypeRepository, IUserRepository userRepository, IOutletRepository outletRepository, IRouteRepository routeRepository, IRouteFactory routeFactory, ITransporterRepository transporterRepository, IProductFactory productFactory, IDistributorSalesmanRepository distributorSalesmanRepository, IProducerRepository producerRepository,  IDocumentFactory documentFactory, ISocioEconomicStatusRepository socioEconomicStatusRepository, IClientMasterDataTrackerRepository clientMasterDataTrackerRepository, IDistributorRepository distributorrepository, IOutletCategoryRepository outletCategoryRepository,  ITerritoryRepository territoryRepository,    IAreaRepository areaRepository, IContactRepository contactRepository, IAccountRepository accountRepository, IAccountTransactionRepository accountTransactionRepository, IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository, ICostCentreApplicationRepository costCentreApplicationRepository, IChannelPackagingRepository channelPackagingRepository, ICompetitorRepository competitorRepository, ICompetitorProductsRepository competitorProductRepository, IAssetRepository coolerRepository, IAssetTypeRepository coolerTypeRepository, IDistrictRepository districtRepository, IProvincesRepository provinceRepository, IReOrderLevelRepository reorderLevelRepository, ITargetPeriodRepository targetPeriodRepository, ITargetRepository targetRepository, IProductDiscountFactory productDiscountFactory, IProductDiscountRepository productDiscountRepository, ISaleValueDiscountFactory saleValueDiscountFactory, ISaleValueDiscountRepository saleValueDiscountRepository/*, IContainmentRepository containmentRepository*/, ISalesmanRouteRepository salesmanRouteRepository, IUserGroupRepository userGroupRepository, IUserGroupRolesRepository userGroupRolesRepository,IContactTypeRepository contactTypeRepository)
        {
            _productTypeRepository = productTypeRepository;
            _productBrandRepository = productBrandRepository;
            _productFlavourRepository = productFlavourRepository;
            _productPackagingRepository = productPackagingRepository;
            _productPackagingTypeRepository = productPackagingTypeRepository;
            _productRepository = productRepository;
            _regionRepository = regionRepository;
            _costCentreRepository = costCentreRepository;
            _costCentreFactory = costCentreFactory;
            _pricingRepository = pricingRepository;
            _vatClassRepository = vatClassRepository;
            _vatClassFactory = vatClassFactory;
            _countryRepository = countryRepository;
            _productPricingFactory = productPricingFactory;
            _ProductPricingTierRepository = productPricingTierRepository;
            _outletTypeRepository = outletTypeRepository;
            _userRepository = userRepository;
            _outletRepository = outletRepository;
            _routeRepository = routeRepository;
            _routeFactory = routeFactory;
            _transporterRepository = transporterRepository;
            _productFactory = productFactory;
            _distributorSalesmanRepository = distributorSalesmanRepository;
            _producerRepository = producerRepository;
            _documentFactory = documentFactory;
            _socioEconomicStatusRepository = socioEconomicStatusRepository;
            _clientMasterDataTrackerRepository = clientMasterDataTrackerRepository;
            _distributorrepository = distributorrepository;
            _outletCategoryRepository = outletCategoryRepository;
            _territoryRepository = territoryRepository;
            
            _areaRepository = areaRepository;
            _contactRepository = contactRepository;
            _accountRepository = accountRepository;
            _accountTransactionRepository = accountTransactionRepository;
            _inventoryRepository = inventoryRepository;
            _inventoryTransactionRepository = inventoryTransactionRepository;
            _costCentreApplicationRepository = costCentreApplicationRepository;
            _channelPackagingRepository = channelPackagingRepository;
            _competitorRepository = competitorRepository;
            _competitorProductRepository = competitorProductRepository;
            _coolerRepository = coolerRepository;
            _coolerTypeRepository = coolerTypeRepository;
            _districtRepository = districtRepository;
            _provinceRepository = provinceRepository;
            _reorderLevelRepository = reorderLevelRepository;
            _targetPeriodRepository = targetPeriodRepository;
            _targetRepository = targetRepository;
            _productDiscountFactory = productDiscountFactory;
            _productDiscountRepository = productDiscountRepository;
            _saleValueDiscountFactory = saleValueDiscountFactory;
            _saleValueDiscountRepository = saleValueDiscountRepository;
            //_containmentRepository = containmentRepository;
            _salesmanRouteRepository = salesmanRouteRepository;
            _userGroupRepository = userGroupRepository;
            _userGroupRolesRepository = userGroupRolesRepository;
           
            _contactTypeRepository = contactTypeRepository;
            _assetCategoryRepository = assetCategoryRepository;
            _assetStatusRepository = assetStatusRepository;
            _discountGroupRepository = discountGroupRepository; 
            _discountGroupRepository = discountGroupRepository;
            _productDiscountGroupFactory = productDiscountGroupFactory;
            _certainValueCertainProductDiscountFactory = certainValueCertainProductDiscountFactory;
            _customerDiscountFactory = customerDiscountFactory;
            _promotionDiscountFactory = promotionDiscountFactory;
            _productDiscountGroupRepository = productDiscountGroupRepository;
            _productDiscountGroupRepository = productDiscountGroupRepository;
            _freeOfChargeDiscountRepository = freeOfChargeDiscountRepository;
            _certainValueCertainProductDiscountRepository = certainValueCertainProductDiscountRepository;
            _outletPriorityRepository = outletPriorityRepository;
            _outletVisitDayRepository = outletVisitDayRepository;

        }
        /// <summary>
        /// 外卖明细(存放bill相关表中)2013/11/5
        /// </summary>
        //public static ITakeOutDishRepository TakeOutDishRepository
        //{
        //    get
        //    {
        //        return takeOutDishRepository;
        //    }
        //}
        //public static int GetCurrentUserId()
        //{
        //    try
        //    {
        //        HttpCookie emp = HttpContext.Current.Request.Cookies["employee"];
        //        if (emp != null)
        //        {
        //            return int.Parse(emp["Id"]);
        //        }
        //    }
        //    catch (Exception)
        //    {
        //    }
        //    return 0;
        //}
        //public static string GetCurrentUserLoginName()
        //{
        //    try
        //    {
        //        HttpCookie emp = HttpContext.Current.Request.Cookies["employee"];
        //        if (emp != null)
        //        {
        //            return HttpUtility.UrlDecode(emp["Name"]);
        //        }
        //    }
        //    catch (Exception)
        //    {
        //    }
        //    return string.Empty;
        //}
        //public static string GetCurrentUserSiteName()
        //{
        //    try
        //    {
        //        HttpCookie emp = HttpContext.Current.Request.Cookies["employee"];
        //        if (emp != null)
        //        {
        //            return HttpUtility.UrlDecode(emp["SiteName"]);
        //        }
        //    }
        //    catch (Exception)
        //    {
        //    }
        //    return string.Empty;
        //}

        #endregion

        //PremiumStratetyRepository

        /*
         * public static IBlockRepository BlockRepository
         * {
         *  get { return blockRepository; }
         * }
         * public static IBlockBranchRepository BlockBranchRepository
         * {
         *  get { return blockBranchRepository; }
         * }
         * public static IBlockDatabaseRepository BlockDatabaseRepository
         * {
         *  get { return blockDatabaseRepository; }
         * }*/

        static JoyeonContext()
        {
            var sInstance = DataHelper.SpringApplicationContext.Instance;

            weixinConfigRepository     = sInstance.GetObject <IWeixinConfigRepository>("WeixinConfigRepository");
            messageRepository          = sInstance.GetObject <IMessageRepository>("MessageRepository");
            surveyRepository           = sInstance.GetObject <ISurveyRepository>("SurveyRepository");
            cookbookRepository         = sInstance.GetObject <ICookbookRepository>("CookbookRepository");
            cookbookcategoryRepository = sInstance.GetObject <ICookbookCategoryRepository>("CookbookCategoryRepository");
            cardRepository             = sInstance.GetObject <ICardRepository>("CardRepository");
            customerRepository         = sInstance.GetObject <ICustomerRepository>("CustomerRepository");
            groupRepository            = sInstance.GetObject <IGroupRepository>("GroupRepository");
            tableRepository            = sInstance.GetObject <ITableRepository>("TableRepository");
            tableCategoryRepository    = sInstance.GetObject <ITableCategoryRepository>("TableCategoryRepository");
            frameRepository            = sInstance.GetObject <IFrameRepository>("FrameRepository");
            employeeRepository         = sInstance.GetObject <IEmployeeRepository>("EmployeeRepository");
            //厨师菜品设置 by chenpan  20160823
            employeeDishRepository   = sInstance.GetObject <IEmployeeDishRepository>("EmployeeDishRepository");
            jobRepository            = sInstance.GetObject <IJobRepository>("JobRepository");
            branchRepository         = sInstance.GetObject <IBranchRepository>("BranchRepository");
            dishRepository           = sInstance.GetObject <IDishRepository>("DishRepository");
            reportRepository         = new ReportRepository();
            permissionRepository     = sInstance.GetObject <IPermissionRepository>("PermissionRepository");
            businessRepository       = sInstance.GetObject <IBusinessRepository>("BusinessRepository");
            versionControlRepository = sInstance.GetObject <IVersionControlRepository>("VersionControlRepository");
            departmentRepository     = sInstance.GetObject <IDepartmentRepository>("DepartmentRepository");
            bookRepository           = sInstance.GetObject <IBookRepository>("BookRepository");
            posterRepostory          = sInstance.GetObject <IPosterRepository>("PosterRepository");
            mposterRepostory         = sInstance.GetObject <IMPosterRepository>("MPosterRepository");
            promotionRepository      = sInstance.GetObject <IPromotionRepository>("PromotionRepository");
            tasteRepository          = sInstance.GetObject <ITasteRepository>("TasteRepository");
            practiceRepository       = sInstance.GetObject <IPracticeRepository>("PracticeRepository");
            SortNumberStep           = AppSettings.Instance.SortNumberStep;

            vendorRepository = sInstance.GetObject <IVendorRepository>("VendorRepository");

            vendorCategoryRepository = sInstance.GetObject <IVendorCategoryRepository>("VendorCategoryRepository");

            warehouseRepository = sInstance.GetObject <IWarehouseRepository>("WarehouseRepository");

            #region ticket

            //           ticketRepository = sInstance.GetObject<ITicketRepository>("TicketRepository");
            //           ticketHeaderRepository = sInstance.GetObject<TicketHeaderRepository>("TicketHeaderRepository");
            //           ticketLineRepository = sInstance.GetObject<TicketLineRepository>("TicketLineRepository");
            //ticketViewRepository = sInstance.GetObject<ITicketViewRepository>("TicketViewRepository");

            #endregion

            #region 采购订单
            purchaseOrderRepository       = sInstance.GetObject <IPurchaseOrderRepository>("PurchaseOrderRepository");
            purchaseOrderHeaderRepository = sInstance.GetObject <IPurchaseOrderHeaderRepository>("PurchaseOrderHeaderRepository");
            purchaseOrderLineRepository   = sInstance.GetObject <IPurchaseOrderLineRepository>("PurchaseOrderLineRepository");
            #endregion

            #region 申请
            purchaseRequisitionRepository       = sInstance.GetObject <IPurchaseRequisitionRepository>("PurchaseRequisitionRepository");
            purchaseRequisitionHeaderRepository = sInstance.GetObject <IPurchaseRequisitionHeaderRepository>("PurchaseRequisitionHeaderRepository");
            purchaseRequisitionLineRepository   = sInstance.GetObject <IPurchaseRequisitionLineRepository>("PurchaseRequisitionLineRepository");
            #endregion

            #region 出入库单据
            inventoryTicketRepository       = sInstance.GetObject <IInventoryTicketRepository>("InventoryTicketRepository");
            inventoryTicketHeaderRepository = sInstance.GetObject <IInventoryTicketHeaderRepository>("InventoryTicketHeaderRepository");
            inventoryTicketLineRepository   = sInstance.GetObject <IInventoryTicketLineRepository>("InventoryTicketLineRepository");
            #endregion

            #region 交易记录
            inventoryTransactionRepository = sInstance.GetObject <IInventoryTransactionRepository>("InventoryTransactionRepository");
            #endregion

            #region 库存数量
            branchInventoryRepository = sInstance.GetObject <IBranchInventoryRepository>("BranchInventoryRepository");
            #endregion

            #region 盘点
            countingRepository       = sInstance.GetObject <ICountingRepository>("CountingRepository");
            countingHeaderRepository = sInstance.GetObject <ICountingHeaderRepository>("CountingHeaderRepository");
            countingLineRepository   = sInstance.GetObject <ICountingLineRepository>("CountingLineRepository");
            #endregion

            #region 日结
            dailyProcessRepository = sInstance.GetObject <IDailyProcessRepository>("DailyProcessRepository");
            #endregion

            #region 月结
            monthlyProcessRepository = sInstance.GetObject <IMonthlyProcessRepository>("MonthlyProcessRepository");
            #endregion

            #region 结算单
            settlementRepository       = sInstance.GetObject <ISettlementRepository>("SettlementRepository");
            settlementHeaderRepository = sInstance.GetObject <ISettlementHeaderRepository>("SettlementHeaderRepository");
            settlementLineRepository   = sInstance.GetObject <ISettlementLineRepository>("SettlementLineRepository");
            #endregion

            ticketTypeRepository = sInstance.GetObject <ITicketTypeRepository>("TicketTypeRepository");
            //loggerRepository = sInstance.GetObject<ILoggerRepository>("LoggerRepository");
            discountRepository        = sInstance.GetObject <IDiscountRepository>("DiscountRepository");
            cooperationRepository     = sInstance.GetObject <ICooperationRepository>("CooperationRepository");
            freeRepository            = sInstance.GetObject <IFreeRepository>("FreeRepository");
            evaluateRepository        = sInstance.GetObject <IEvaluateRepository>("EvaluateRepository");
            shortCardRepository       = sInstance.GetObject <IShortCardRepository>("ShortCardRepository");
            businessHoursRepository   = sInstance.GetObject <IBusinessHoursRepository>("BusinessHoursRepository");
            paymentTypeRepository     = sInstance.GetObject <IPaymentTypeRepository>("PaymentTypeRepository");
            paymentOrderRepository    = sInstance.GetObject <IPaymentOrderRepository>("PaymentOrderRepository");
            settingRepository         = sInstance.GetObject <ISettingRepository>("SettingRepository");
            messageTemplateRepository = sInstance.GetObject <IMessageTemplateRepository>("MessageTemplateRepository");
            customPrintBillRepository = sInstance.GetObject <ICustomPrintBillRepository>("CustomPrintBillRepository");
            realTimeRepository        = sInstance.GetObject <IRealTimeRepository>("RealTimeRepository");
            mbillRepository           = sInstance.GetObject <IMBillRepository>("MBillRepository");
            queueRepository           = sInstance.GetObject <IQueueRepository>("QueueRepository");

            materialRepository         = sInstance.GetObject <IMaterialRepository>("MaterialRepository");
            materialCategoryRepository = sInstance.GetObject <IMaterialCategoryRepository>("MaterialCategoryRepository");
            queueNumberRepository      = sInstance.GetObject <IQueueNumberRepository>("QueueNumberRepository");
            recipeRepository           = sInstance.GetObject <IRecipeRepository>("RecipeRepository");
            bookTableRepository        = sInstance.GetObject <IBookTableRepository>("BookTableRepository");

            premiumStratetyRepository = sInstance.GetObject <IPremiumStratetyRepository>("PremiumStratetyRepository");
            distributionRepository    = sInstance.GetObject <IDistributionRepository>("DistributionRepository");

            serialNumberRepository = sInstance.GetObject <ISerialNumberRepository>("SerialNumberRepository");

            branchDistributionRepository =
                sInstance.GetObject <IBranchDistributionRepository>("BranchDistributionRepository");

            autoSaleSetting = sInstance.GetObject <IAutoSaleSetting>("AutoSaleSettingRepository");

            tableZoneRepository = sInstance.GetObject <ITableZoneRepository>("TableZoneRepository");
            //groupRepository = sInstance.GetObject<IGroupRepository>("GroupRepository");
            adminRepository      = sInstance.GetObject <IAdminRepository>("AdminRepository");
            noticeRepostory      = sInstance.GetObject <INoticeRepository>("NoticeRepository");
            invitationRepository = sInstance.GetObject <IInvitationRepository>("InvitationRepository");

            //外卖
            takeOutRepository = sInstance.GetObject <ITakeOutRepository>("TakeOutRepository");
            //售后
            afterSaleServiceRepository =
                sInstance.GetObject <IAfterSaleServiceRepository>(
                    "AfterSaleServiceRepository");

            provinceRepository = sInstance.GetObject <IProvinceRepository>("ProvinceRepository");
            cityRepository     = sInstance.GetObject <ICityRepository>("CityRepository");
            //区/县
            regionRepository = sInstance.GetObject <IRegionRepository>("RegionRepository");
            //商圈
            mallRepository = sInstance.GetObject <IMallRepository>("MallRepository");

            //微信管理
            weiXinAccountRepository = sInstance.GetObject <IWeiXinAccountRepository>("WeiXinAccountRepository");
            //移动支付账户管理
            paymentAccountRepository = sInstance.GetObject <IPaymentAccountRepository>("PaymentAccountRepository");
            //移动支付-支付订单
            mpaymentRepository = sInstance.GetObject <IMPaymentRepository>("MPaymentRepository");

            baseDdlRepository = sInstance.GetObject <IBaseDdlRepository>("BaseDdlRepository");

            /*blockRepository = sInstance.GetObject<IBlockRepository>("BlockRepository");
             * blockBranchRepository = sInstance.GetObject<IBlockBranchRepository>("BlockBranchRepository");
             * blockDatabaseRepository = sInstance.GetObject<IBlockDatabaseRepository>("BlockDatabaseRepository");
             * */

            //食材 by xutao20161017
            ingredientsRepository = sInstance.GetObject <IIngredientsRepository>("IngredientsRepository");
            //味型 by xutao20161017

            flavorRepository = sInstance.GetObject <IFlavorRepository>("FlavorRepository");

            promotionCouponRepository       = sInstance.GetObject <IPromotionCouponRepository>("PromotionCouponRepository");             // by chenpan 20161213
            promotionCouponRecordRepository = sInstance.GetObject <IPromotionCouponRecordRepository>("PromotionCouponRecordRepository"); // by chenpan 20161213
            promotionRechargeGiftRepository = sInstance.GetObject <IPromotionRechargeGiftRepository>("PromotionRechargeGiftRepository"); // by chenpan 20161220
        }
        //protected IBankRepository _bankRepository;
        //protected IBankBranchRepository _bankBranchRepository;
        #region Constructors
        public InsertDeploymentData(IOutletPriorityRepository outletPriorityRepository,
                                    IOutletVisitDayRepository outletVisitDayRepository, IAssetStatusRepository assetStatusRepository,
                                    IAssetCategoryRepository assetCategoryRepository, IUserGroupRepository userGroupRepository, IUserGroupRolesRepository userGroupRolesRepository, ISalesmanRouteRepository salesmanRouteRepository, ISalesmanSupplierRepository salesmanSupplierRepository, IProductTypeRepository productTypeRepository, IProductBrandRepository productBrandRepository, IProductFlavourRepository productFlavourRepository, IProductPackagingRepository productPackagingRepository, IProductPackagingTypeRepository productPackagingTypeRepository, IProductRepository productRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IProductPricingRepository pricingRepository,
                                    IVATClassRepository vatClassRepository, IVATClassFactory vatClassFactory, ICountryRepository countryRepository,
                                    IProductPricingFactory productPricingFactory, IProductPricingTierRepository productPricingTierRepository,
                                    IOutletTypeRepository outletTypeRepository, IUserRepository userRepository, IOutletRepository outletRepository,
                                    IRouteRepository routeRepository, IRouteFactory routeFactory, ITransporterRepository transporterRepository,
                                    IProductFactory productFactory, IDistributorSalesmanRepository distributorSalesmanRepository,
                                    IProducerRepository producerRepository, IDocumentFactory documentFactory,
                                    ISocioEconomicStatusRepository socioEconomicStatusRepository, IClientMasterDataTrackerRepository clientMasterDataTrackerRepository,
                                    IDistributorRepository distributorrepository, IOutletCategoryRepository outletCategoryRepository,
                                    ITerritoryRepository territoryRepository,
                                    IAreaRepository areaRepository,
                                    IContactRepository contactRepository, IAccountRepository accountRepository, IAccountTransactionRepository accountTransactionRepository,
                                    IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository,
                                    ICostCentreApplicationRepository costCentreApplicationRepository, IChannelPackagingRepository channelPackagingRepository,
                                    ICompetitorRepository competitorRepository, ICompetitorProductsRepository competitorProductRepository, IAssetRepository coolerRepository,
                                    IAssetTypeRepository coolerTypeRepository, IDistrictRepository districtRepository, IProvincesRepository provinceRepository,
                                    IReOrderLevelRepository reorderLevelRepository, ITargetPeriodRepository targetPeriodRepository, ITargetRepository targetRepository,
                                    IProductDiscountFactory productDiscountFactory, IProductDiscountRepository productDiscountRepository, ISaleValueDiscountFactory saleValueDiscountFactory,
                                    ISaleValueDiscountRepository saleValueDiscountRepository, IBankRepository bankRepository, IBankBranchRepository bankBranchRepository,
                                    ISupplierRepository supplierRepository, ICreatePaymentNoteCommandHandler createLossCommandHandler, IAddPaymentNoteLineItemCommandHandler addLossLineItemCommandHandler, IConfirmPaymentNoteCommandHandler confirmLossCommandHandler,
                                    IContactTypeRepository contactTypeRepository, IDiscountGroupRepository discountGroupRepository, IProductDiscountGroupFactory productDiscountGroupFactory,
                                    ICertainValueCertainProductDiscountFactory certainValueCertainProductDiscountFactory,
                                    ICustomerDiscountFactory customerDiscountFactory,
                                    IPromotionDiscountFactory promotionDiscountFactory,
                                    IProductDiscountGroupRepository productDiscountGroupRepository,
                                    IPromotionDiscountRepository promotionDiscountRepository,
                                    IFreeOfChargeDiscountRepository freeOfChargeDiscountRepository,
                                    ICertainValueCertainProductDiscountRepository certainValueCertainProductDiscountRepository, ITargetItemRepository targetItemRepository, ISettingsRepository settingsRepository
                                    )
        {
            _productTypeRepository          = productTypeRepository;
            _productBrandRepository         = productBrandRepository;
            _productFlavourRepository       = productFlavourRepository;
            _productPackagingRepository     = productPackagingRepository;
            _productPackagingTypeRepository = productPackagingTypeRepository;
            _productRepository            = productRepository;
            _regionRepository             = regionRepository;
            _costCentreRepository         = costCentreRepository;
            _costCentreFactory            = costCentreFactory;
            _pricingRepository            = pricingRepository;
            _vatClassRepository           = vatClassRepository;
            _vatClassFactory              = vatClassFactory;
            _countryRepository            = countryRepository;
            _productPricingFactory        = productPricingFactory;
            _ProductPricingTierRepository = productPricingTierRepository;
            _outletTypeRepository         = outletTypeRepository;
            _userRepository                    = userRepository;
            _outletRepository                  = outletRepository;
            _routeRepository                   = routeRepository;
            _routeFactory                      = routeFactory;
            _transporterRepository             = transporterRepository;
            _productFactory                    = productFactory;
            _distributorSalesmanRepository     = distributorSalesmanRepository;
            _producerRepository                = producerRepository;
            _documentFactory                   = documentFactory;
            _socioEconomicStatusRepository     = socioEconomicStatusRepository;
            _clientMasterDataTrackerRepository = clientMasterDataTrackerRepository;
            _distributorrepository             = distributorrepository;
            _outletCategoryRepository          = outletCategoryRepository;
            _territoryRepository               = territoryRepository;
            _areaRepository                    = areaRepository;
            _contactRepository                 = contactRepository;
            _accountRepository                 = accountRepository;
            _accountTransactionRepository      = accountTransactionRepository;
            _inventoryRepository               = inventoryRepository;
            _inventoryTransactionRepository    = inventoryTransactionRepository;
            _costCentreApplicationRepository   = costCentreApplicationRepository;
            _channelPackagingRepository        = channelPackagingRepository;
            _competitorRepository              = competitorRepository;
            _competitorProductRepository       = competitorProductRepository;
            _coolerRepository                  = coolerRepository;
            _coolerTypeRepository              = coolerTypeRepository;
            _districtRepository                = districtRepository;
            _provinceRepository                = provinceRepository;
            _reorderLevelRepository            = reorderLevelRepository;
            _targetPeriodRepository            = targetPeriodRepository;
            _targetRepository                  = targetRepository;
            _productDiscountFactory            = productDiscountFactory;
            _productDiscountRepository         = productDiscountRepository;
            _saleValueDiscountFactory          = saleValueDiscountFactory;
            _saleValueDiscountRepository       = saleValueDiscountRepository;
            _salesmanRouteRepository           = salesmanRouteRepository;
            _salesmanSupplierRepository        = salesmanSupplierRepository;
            _userGroupRepository               = userGroupRepository;
            _userGroupRolesRepository          = userGroupRolesRepository;
            _bankRepository                    = bankRepository;
            _bankBranchRepository              = bankBranchRepository;
            _supplierRepository                = supplierRepository;
            _createLossCommandHandler          = createLossCommandHandler;
            _addLossLineItemCommandHandler     = addLossLineItemCommandHandler;
            _confirmLossCommandHandler         = confirmLossCommandHandler;

            _contactTypeRepository       = contactTypeRepository;
            _assetCategoryRepository     = assetCategoryRepository;
            _assetStatusRepository       = assetStatusRepository;
            _discountGroupRepository     = discountGroupRepository;
            _productDiscountGroupFactory = productDiscountGroupFactory;
            _certainValueCertainProductDiscountFactory = certainValueCertainProductDiscountFactory;
            _customerDiscountFactory        = customerDiscountFactory;
            _promotionDiscountFactory       = promotionDiscountFactory;
            _productDiscountGroupRepository = productDiscountGroupRepository;
            _promotionDiscountRepository    = promotionDiscountRepository;
            _freeOfChargeDiscountRepository = freeOfChargeDiscountRepository;
            _certainValueCertainProductDiscountRepository = certainValueCertainProductDiscountRepository;
            _outletPriorityRepository = outletPriorityRepository;
            _outletVisitDayRepository = outletVisitDayRepository;
            _targetItemRepository     = targetItemRepository;
            _settingsRepository       = settingsRepository;
        }