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");
 }
Example #2
0
        protected override System.Linq.Expressions.Expression <Func <MES_M201_Plan_Daily, bool> > ReadExpression()
        {
            ICacheServiceBase appCacheService = Unity.Instance.GetService <ICacheServiceBase>();
            tb_Sys_User       tempUser        = appCacheService.GetItem("user") as tb_Sys_User;

            return(i => i.CompCode == tempUser.CompCode);
        }
Example #3
0
        protected override System.Linq.Expressions.Expression <Func <ERP_M002_BOM_Material, bool> > ReadExpression()
        {
            ICacheServiceBase appCacheService = Unity.Instance.GetService <ICacheServiceBase>();
            tb_Sys_User       tempUser        = appCacheService.GetItem("user") as tb_Sys_User;

            return(i => i.CompCode == tempUser.CompCode);
        }
        protected override System.Linq.Expressions.Expression <Func <SUPP_M001_PurPlan_Material, bool> > ReadExpression()
        {
            ICacheServiceBase appCacheService = Unity.Instance.GetService <ICacheServiceBase>();
            var compCode = appCacheService.GetItem("Company") as string;

            return(i => i.CompCode == compCode);
        }
Example #5
0
        protected override System.Linq.Expressions.Expression <Func <ERP_C005_Employee, bool> > ReadExpression()
        {
            ICacheServiceBase appCacheService = Unity.Instance.GetService <ICacheServiceBase>();
            var compCode = appCacheService.GetItem("Company") as string;

            return(i => i.CompCode == compCode);
        }
 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");
 }
Example #7
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");
 }
 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");
 }
Example #9
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 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");
 }
Example #11
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 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");
 }
 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");
 }
Example #14
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 CatAreaService(IContextBase <CatArea> repository, ICacheServiceBase <CatArea> cacheService, IMapper mapper) : base(repository, cacheService, mapper)
 {
 }