public CatPlaceService(IContextBase <CatPlace> repository,
                        ICacheServiceBase <CatPlace> cacheService,
                        IMapper mapper,
                        IStringLocalizer <CatalogueLanguageSub> localizer,
                        ICurrentUser user,
                        //ICatCountryService country,
                        IContextBase <CatArea> areaRepo,
                        IContextBase <CatCountry> countryRepo) : base(repository, cacheService, mapper)
 {
     stringLocalizer = localizer;
     currentUser     = user;
     //countryService = country;
     areaRepository    = areaRepo;
     countryRepository = countryRepo;
     SetChildren <CatCountry>("Id", "CountryId");
     SetChildren <CatPlace>("Id", "ProvinceId");
     SetChildren <CatPlace>("Id", "DistrictId");
     SetChildren <CsTransaction>("Id", "Pol");
     SetChildren <CsTransaction>("Id", "Pod");
     SetChildren <CsTransactionDetail>("Id", "Pol");
     SetChildren <CsTransactionDetail>("Id", "Pod");
     SetChildren <OpsTransaction>("Id", "Pol");
     SetChildren <OpsTransaction>("Id", "Pod");
     SetChildren <OpsTransaction>("Id", "WarehouseId");
     SetChildren <CsManifest>("Id", "Pol");
     SetChildren <CsManifest>("Id", "Pod");
     //SetChildren<CsShippingInstruction>("Id", "Pod");
     //SetChildren<CsShippingInstruction>("Id", "Pol");
 }
Пример #2
0
 public SysMenuService(IContextBase <SysMenu> repository, IMapper mapper,
                       IContextBase <SysUserPermission> userpermissionRepo,
                       IContextBase <SysUserPermissionGeneral> permissionGeneralRepo) : base(repository, mapper)
 {
     userpermissionRepository    = userpermissionRepo;
     permissionGeneralRepository = permissionGeneralRepo;
 }
Пример #3
0
 public CsDimensionDetailService(IContextBase <CsDimensionDetail> repository, IMapper mapper,
                                 ICurrentUser currUser,
                                 IContextBase <CsTransactionDetail> detailRepo) : base(repository, mapper)
 {
     currentUser      = currUser;
     detailRepository = detailRepo;
 }
        public static InvalidPluginExecutionException ErrorMessage(this IContextBase context, string message,
                                                                   params object[] args)
        {
            var errorMessage = String.Format(message, args);

            return(new InvalidPluginExecutionException(errorMessage));
        }
Пример #5
0
 public CatSalemanService(IContextBase <CatSaleman> repository, IMapper mapper, IStringLocalizer <CatalogueLanguageSub> localizer, ICurrentUser user, IContextBase <SysUser> sysUserRepo, IContextBase <CatPartner> partnerRepo) : base(repository, mapper)
 {
     stringLocalizer      = localizer;
     currentUser          = user;
     sysUserRepository    = sysUserRepo;
     catPartnerRepository = partnerRepo;
 }
 public CatPartnerService(IContextBase <CatPartner> repository,
                          ICacheServiceBase <CatPartner> cacheService,
                          IMapper mapper,
                          IStringLocalizer <LanguageSub> localizer,
                          ICurrentUser user,
                          IContextBase <SysUser> sysUserRepo,
                          ICatPlaceService place,
                          ICatCountryService country,
                          IContextBase <CatSaleman> salemanRepo, IOptions <WebUrl> url,
                          IContextBase <SysOffice> officeRepo) : base(repository, cacheService, mapper)
 {
     stringLocalizer   = localizer;
     currentUser       = user;
     placeService      = place;
     salemanRepository = salemanRepo;
     sysUserRepository = sysUserRepo;
     countryService    = country;
     webUrl            = url;
     officeRepository  = officeRepo;
     SetChildren <CsTransaction>("Id", "ColoaderId");
     SetChildren <CsTransaction>("Id", "AgentId");
     SetChildren <SysUser>("Id", "PersonIncharge");
     SetChildren <OpsTransaction>("Id", "CustomerId");
     SetChildren <OpsTransaction>("Id", "SupplierId");
     SetChildren <OpsTransaction>("Id", "AgentId");
     SetChildren <CatPartnerCharge>("Id", "PartnerId");
     //SetChildren<CsShippingInstruction>("Id", "Shipper");
     //SetChildren<CsShippingInstruction>("Id", "Supplier");
     //SetChildren<CsShippingInstruction>("Id", "ConsigneeId");
     //SetChildren<CsShippingInstruction>("Id", "ActualShipperId");
     //SetChildren<CsShippingInstruction>("Id", "ActualConsigneeId");
     SetChildren <CsManifest>("Id", "Supplier");
     SetChildren <CatSaleman>("Id", "PartnerId");
 }
Пример #7
0
 public SysPermissionSampleSpecialService(IContextBase <SysPermissionSampleSpecial> repository,
                                          IMapper mapper,
                                          IContextBase <SysMenu> menuRepo,
                                          IContextBase <SysPermissionSpecialAction> specialActionRepo) : base(repository, mapper)
 {
     menuRepository          = menuRepo;
     specialActionRepository = specialActionRepo;
 }
Пример #8
0
 public ProfileService(IAuthenUserService service,
                       ISysEmployeeService emService,
                       IContextBase <SysUserLevel> userLevelRepo
                       )
 {
     authenUserService   = service;
     employeeService     = emService;
     userLevelRepository = userLevelRepo;
 }
 public CatCommodityGroupService(IContextBase <CatCommodityGroup> repository,
                                 ICacheServiceBase <CatCommodityGroup> cacheService,
                                 IMapper mapper,
                                 IStringLocalizer <CatalogueLanguageSub> localizer,
                                 ICurrentUser user) : base(repository, cacheService, mapper)
 {
     stringLocalizer = localizer;
     currentUser     = user;
     SetChildren <CatCommodity>("Id", "CommodityGroupId");
 }
Пример #10
0
 public CatStageService(IContextBase <CatStage> repository,
                        ICacheServiceBase <CatStage> cacheService,
                        IMapper mapper,
                        IStringLocalizer <CatalogueLanguageSub> localizer,
                        IContextBase <CatDepartment> departmentRepo) : base(repository, cacheService, mapper)
 {
     stringLocalizer      = localizer;
     departmentRepository = departmentRepo;
     SetChildren <OpsStageAssigned>("Id", "StageId");
 }
Пример #11
0
 public CatDepartmentService(IContextBase <CatDepartment> repository, IMapper mapper, IContextBase <SysOffice> sysOffice, IContextBase <SysCompany> sysCompany, ICurrentUser user, IContextBase <SysUser> sysUser) : base(repository, mapper)
 {
     sysOfficeRepo  = sysOffice;
     sysCompanyRepo = sysCompany;
     //Id is primarykey of table CatDepartment, DepartmentId is forgekey of table SysGroup
     SetChildren <SysGroup>("Id", "DepartmentId");
     SetChildren <SysUserLevel>("Id", "DepartmentId");
     currentUser = user;
     sysUserRepo = sysUser;
 }
 public SysImageService(IContextBase <SysImage> repository,
                        IMapper mapper,
                        IHostingEnvironment hostingEnvironment,
                        ICurrentUser currUser,
                        IOptions <WebUrl> url) : base(repository, mapper)
 {
     _hostingEnvironment = hostingEnvironment;
     currentUser         = currUser;
     webUrl = url;
 }
 public CatUnitService(IContextBase <CatUnit> repository,
                       ICacheServiceBase <CatUnit> cacheService,
                       IMapper mapper,
                       ICurrentUser user) : base(repository, cacheService, mapper)
 {
     currentUser = user;
     SetChildren <CatCharge>("Id", "UnitId");
     SetChildren <CsMawbcontainer>("Id", "ContainerTypeId");
     SetChildren <CsMawbcontainer>("Id", "UnitOfMeasureId");
     SetChildren <CsShipmentSurcharge>("Id", "UnitId");
 }
Пример #14
0
 public CatChargeDefaultService(IContextBase <CatChargeDefaultAccount> repository,
                                ICacheServiceBase <CatChargeDefaultAccount> cacheService,
                                IMapper mapper,
                                IStringLocalizer <LanguageSub> localizer,
                                ICurrentUser user,
                                IContextBase <CatCharge> chargeRepo) : base(repository, cacheService, mapper)
 {
     stringLocalizer  = localizer;
     currentUser      = user;
     chargeRepository = chargeRepo;
 }
 public SysUserPermissionService(IContextBase <SysUserPermission> userPermissionRepo,
                                 IContextBase <SysUserPermissionGeneral> permissionGeneralRepo,
                                 IContextBase <SysUserPermissionSpecial> permissionSpecialRepo,
                                 IContextBase <SysAuthorization> authorizeRepo
                                 )
 {
     userPermissionRepository    = userPermissionRepo;
     permissionGeneralRepository = permissionGeneralRepo;
     permissionSpecialRepository = permissionSpecialRepo;
     authorizationRepository     = authorizeRepo;
 }
Пример #16
0
 public EcusConnectionService(IContextBase <SetEcusconnection> repository,
                              ICacheServiceBase <SetEcusconnection> cacheService,
                              IMapper mapper,
                              ICurrentUser user,
                              IContextBase <SysUser> userRepo,
                              IContextBase <SysEmployee> employeeRepo) : base(repository, cacheService, mapper)
 {
     userRepository     = userRepo;
     employeeRepository = employeeRepo;
     currentUser        = user;
 }
 public CsShippingInstructionService(IContextBase <CsShippingInstruction> repository,
                                     IMapper mapper,
                                     IContextBase <CatPartner> partnerRepo,
                                     IContextBase <CatPlace> placeRepo,
                                     IContextBase <SysUser> userRepo,
                                     IContextBase <CsMawbcontainer> containerRepo,
                                     IContextBase <CatUnit> unitRepo) : base(repository, mapper)
 {
     partnerRepository   = partnerRepo;
     placeRepository     = placeRepo;
     userRepository      = userRepo;
     containerRepository = containerRepo;
     unitRepository      = unitRepo;
 }
Пример #18
0
 public OpsStageAssignedService(IContextBase <OpsStageAssigned> repository, IMapper mapper,
                                ICatStageApiService stageApi,
                                ICurrentUser user,
                                ICatDepartmentApiService departmentApi,
                                IContextBase <OpsTransaction> opsTransRepo,
                                IContextBase <SysUser> userRepo, IContextBase <CsTransaction> csTransactionRepo) : base(repository, mapper)
 {
     catStageApi              = stageApi;
     currentUser              = user;
     catDepartmentApi         = departmentApi;
     opsTransRepository       = opsTransRepo;
     userRepository           = userRepo;
     csTransactionReporsitory = csTransactionRepo;
 }
 public CatCountryService(IContextBase <CatCountry> repository,
                          ICacheServiceBase <CatCountry> cacheService,
                          IMapper mapper,
                          IStringLocalizer <LanguageSub> localizer,
                          ICurrentUser user) : base(repository, cacheService, mapper)
 {
     stringLocalizer = localizer;
     currentUser     = user;
     SetChildren <CatPlace>("Id", "CountryId");
     SetChildren <CatPartner>("Id", "CountryId");
     SetChildren <CatPartner>("Id", "CountryShippingId");
     SetChildren <CsTransactionDetail>("Id", "OriginCountryId");
     SetChildren <CsTransactionDetail>("Id", "OriginCountryId");
 }
Пример #20
0
 public UserBaseService(
     IContextBase <SysUser> repository,
     IMapper mapper,
     IContextBase <SysUserLevel> sysUserLevel,
     IContextBase <SysGroup> sysGroup,
     IContextBase <CatDepartment> catDepartment,
     IContextBase <SysEmployee> sysEmployee,
     IContextBase <SysOffice> sysOffice) : base(repository, mapper)
 {
     sysUserLevelRepo  = sysUserLevel;
     sysGroupRepo      = sysGroup;
     catDepartmentRepo = catDepartment;
     sysEmployeeRepo   = sysEmployee;
     sysOfficeRepo     = sysOffice;
 }
Пример #21
0
 public SysOfficeService(
     IContextBase <SysOffice> repository,
     IMapper mapper,
     IContextBase <SysCompany> sysBuRepo,
     IDistributedCache distributedCache,
     IContextBase <SysUserLevel> userLevelRepo,
     ICurrentUser icurrentUser) : base(repository, mapper)
 {
     sysBuRepository    = sysBuRepo;
     cache              = distributedCache;
     currentUser        = icurrentUser;
     sysLevelRepository = userLevelRepo;
     SetChildren <CatDepartment>("Id", "BranchId");
     SetChildren <SysUserLevel>("Id", "OfficeId");
 }
Пример #22
0
 //private readonly ICurrentUser currentUser;
 public SysCompanyService(
     IContextBase <SysCompany> repository,
     IMapper mapper,
     IContextBase <SysUserLevel> userLevelRepo,
     ICurrentUser icurrentUser,
     IContextBase <SysUser> userRepo) : base(repository, mapper)
 {
     currentUser = icurrentUser;
     //currentUser = user;
     sysLevelRepository = userLevelRepo;
     userRepository     = userRepo;
     SetChildren <SysCompany>("ID", "BUID");
     SetChildren <SysOffice>("Id", "BuId");
     SetChildren <SysUserLevel>("Id", "CompanyId");
 }
 public SysGroupService(IContextBase <SysGroup> repository,
                        IMapper mapper,
                        IContextBase <CatDepartment> departmentRepo,
                        ICatDepartmentService deptService,
                        IContextBase <SysUserLevel> userLevelRepo,
                        ICurrentUser currUser,
                        IContextBase <SysUser> userRepo) : base(repository, mapper)
 {
     SetChildren <SysUserLevel>("Id", "GroupId");
     departmentRepository = departmentRepo;
     departmentService    = deptService;
     currentUser          = currUser;
     sysLevelRepository   = userLevelRepo;
     userRepository       = userRepo;
 }
Пример #24
0
 public CsAirWayBillService(IContextBase <CsAirWayBill> repository,
                            IMapper mapper,
                            ICsDimensionDetailService dimensionService,
                            ICsShipmentOtherChargeService otherChargeService,
                            ICurrentUser currUser,
                            IContextBase <CatPlace> catPlace,
                            IContextBase <CsTransaction> csTransaction,
                            IContextBase <CatPartner> catPartner) : base(repository, mapper)
 {
     dimensionDetailService     = dimensionService;
     shipmentOtherChargeService = otherChargeService;
     currentUser       = currUser;
     catPlaceRepo      = catPlace;
     csTransactionRepo = csTransaction;
     catPartnerRepo    = catPartner;
 }
 public CatCurrencyService(IContextBase <CatCurrency> repository,
                           ICacheServiceBase <CatCurrency> cacheService,
                           IMapper mapper,
                           ICurrentUser currUser) : base(repository, cacheService, mapper)
 {
     currentUser = currUser;
     SetChildren <CatCharge>("Id", "CurrencyId");
     SetChildren <CatCurrencyExchange>("Id", "CurrencyFromId");
     SetChildren <CatCurrencyExchange>("Id", "CurrencyToId");
     //SetChildren<AcctSoa>("Id", "CurrencyId");
     SetChildren <CatCharge>("Id", "CurrencyId");
     SetChildren <CsShipmentSurcharge>("Id", "CurrencyId");
     //SetChildren<AcctCdnote>("Id", "CurrencyId");
     //SetChildren<AcctSoa>("Id", "Currency");
     SetChildren <CatCharge>("Id", "Currency");
 }
Пример #26
0
 public SysUserService(IContextBase <SysUser> repository, IMapper mapper,
                       IContextBase <SysEmployee> employeeRepo,
                       IContextBase <SysUserLevel> userlevelRepo, IDistributedCache distributedCache, IStringLocalizer <SystemLanguageSub> localizer,
                       ISysEmployeeService employeeService,
                       ICurrentUser currUser,
                       ISysCompanyService sysCompanyRepo,
                       ISysOfficeService sysOfficeRepo) : base(repository, mapper)
 {
     employeeRepository  = employeeRepo;
     userlevelRepository = userlevelRepo;
     cache                = distributedCache;
     stringLocalizer      = localizer;
     sysEmployeeService   = employeeService;
     currentUser          = currUser;
     sysCompanyRepository = sysCompanyRepo;
     sysOfficeRepository  = sysOfficeRepo;
 }
 public CsMawbcontainerService(IContextBase <CsMawbcontainer> repository,
                               IContextBase <OpsTransaction> opsTransRepo,
                               IContextBase <CsTransaction> csTransRepo,
                               IMapper mapper, ICurrentUser user,
                               IStringLocalizer <LanguageSub> localize,
                               IContextBase <CsTransactionDetail> detailRepo,
                               IContextBase <CatUnit> unitRepo,
                               IContextBase <CatCommodity> catCommodityRepo) : base(repository, mapper)
 {
     stringLocalizer        = localize;
     currentUser            = user;
     opsTransRepository     = opsTransRepo;
     csTransRepository      = csTransRepo;
     detailRepository       = detailRepo;
     catUnitRepository      = unitRepo;
     catCommodityRepository = catCommodityRepo;
 }
Пример #28
0
 public CatChargeService(IContextBase <CatCharge> repository,
                         ICacheServiceBase <CatCharge> cacheService,
                         IMapper mapper,
                         IStringLocalizer <LanguageSub> localizer,
                         ICurrentUser user,
                         IContextBase <CatChargeDefaultAccount> chargeDefaultRepo,
                         ICatCurrencyService currService,
                         ICatUnitService unitService) : base(repository, cacheService, mapper)
 {
     stringLocalizer         = localizer;
     chargeDefaultRepository = chargeDefaultRepo;
     currencyService         = currService;
     currentUser             = user;
     catUnitService          = unitService;
     SetChildren <CsShipmentSurcharge>("Id", "ChargeId");
     SetChildren <CatPartnerCharge>("Id", "ChargeId");
 }
 public CsManifestService(IContextBase <CsManifest> repository,
                          IMapper mapper,
                          IContextBase <CsTransactionDetail> transactionDetailRepo,
                          IContextBase <CatPlace> placeRepo,
                          ICsMawbcontainerService contService,
                          ICsTransactionService transactionService,
                          IContextBase <CsTransaction> transactionRepo,
                          IContextBase <CatUnit> unitRepo,
                          ICurrentUser currUser) : base(repository, mapper)
 {
     transactionDetailRepository = transactionDetailRepo;
     placeRepository             = placeRepo;
     containerService            = contService;
     csTransactionService        = transactionService;
     transactionRepository       = transactionRepo;
     unitRepository = unitRepo;
     currentUser    = currUser;
 }
Пример #30
0
 public TariffService(IContextBase <SetTariff> repository,
                      IMapper mapper,
                      ICurrentUser user,
                      IContextBase <SetTariffDetail> setTariffDetail,
                      IContextBase <CatCharge> catCharge,
                      IContextBase <CatCommodityGroup> catCommodityGroup,
                      IContextBase <CatPartner> catPartner,
                      IContextBase <SysUser> userRepo,
                      IContextBase <CatPlace> catPlace) : base(repository, mapper)
 {
     currentUser           = user;
     setTariffDetailRepo   = setTariffDetail;
     catChargeRepo         = catCharge;
     catCommodityGroupRepo = catCommodityGroup;
     catPartnerRepo        = catPartner;
     catPlaceRepo          = catPlace;
     userRepository        = userRepo;
 }