Ejemplo n.º 1
0
        public List <FrayteAddOnRateCard> GetZoneAddOnRate(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string ParcelType, string PackageType, string ModuleType)
        {
            List <FrayteAddOnRateCard> _addonrate = new List <FrayteAddOnRateCard>();

            _addonrate = new BaseRateCardRepository().GetAddOnRate(OperationZoneId, LogisticType, CourierCompany, RateType, ParcelType, PackageType, ModuleType);
            return(_addonrate);
        }
Ejemplo n.º 2
0
        public FrayteResult UpdateLogisticSerice(LogisticServiceDuration obj)
        {
            FrayteResult result = new FrayteResult();

            if (obj != null)
            {
                result = new BaseRateCardRepository().UpdateLogisticSerice(obj);
            }
            else
            {
                result.Status = false;
            }
            return(result);
        }
Ejemplo n.º 3
0
        public List <FrayteZoneBaseRateCard> GetZoneBaseRateCard(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string PackageType, string ParcelType, string DocType, string ModuleType)
        {
            List <FrayteZoneBaseRateCard> list = null;

            if (LogisticType == FrayteLogisticType.UKShipment)
            {
                list = new BaseRateCardRepository().GetUKBaseRate(OperationZoneId, LogisticType, CourierCompany, RateType, PackageType, ParcelType, ModuleType);
            }
            else if (LogisticType == FrayteLogisticType.EUExport || LogisticType == FrayteLogisticType.EUImport)
            {
                list = new BaseRateCardRepository().GetEUBaseRate(OperationZoneId, LogisticType, CourierCompany, RateType, ModuleType);
            }
            else if (LogisticType == FrayteLogisticType.Import ||
                     LogisticType == FrayteLogisticType.Export ||
                     LogisticType == FrayteLogisticType.ThirdParty)
            {
                list = new BaseRateCardRepository().GetBaseRate(OperationZoneId, LogisticType, CourierCompany, RateType, DocType, ModuleType);
            }
            return(list);
        }
Ejemplo n.º 4
0
        public List <FrayteOperationZoneCurrency> GetOperationZoneCurrencyCode(int OperationZoneId, string exchangeType)
        {
            var list = new BaseRateCardRepository().OperationZoneCurrencyCode(OperationZoneId, exchangeType);

            return(list);
        }
Ejemplo n.º 5
0
        public IHttpActionResult EditZoneBaseRateCard(List <FrayteZoneBaseRateCard> _ratecard)
        {
            FrayteResult result = new BaseRateCardRepository().EditZoneRateCard(_ratecard);

            return(Ok(result));
        }
Ejemplo n.º 6
0
        public IHttpActionResult SaveDimensionBaseRate(List <FrayteDimensionBaseRateCard> _baseRateCardLimit)
        {
            FrayteResult result = new BaseRateCardRepository().SaveDimensionBaseRate(_baseRateCardLimit);

            return(Ok(result));
        }
Ejemplo n.º 7
0
        public IHttpActionResult SaveZoneBaseRateCardLimit(List <FryateZoneBaseRateCardLimit> _baseRateCardLimit)
        {
            FrayteResult result = new BaseRateCardRepository().SaveZoneBaseRateCardLimit(_baseRateCardLimit);

            return(Ok(result));
        }
Ejemplo n.º 8
0
        public List <FryateZoneBaseRateCardLimit> GetZoneBaseRateCardLimit(int OperationZoneId, string LogisticType, string CourierComapny, string RateType, string PackageType, string ParcelType, string ModuleType)
        {
            List <FryateZoneBaseRateCardLimit> lstLimitCard = new BaseRateCardRepository().GetZoneBaseRateCardLimit(OperationZoneId, LogisticType, CourierComapny, RateType, PackageType, ParcelType, ModuleType);

            return(lstLimitCard);
        }
Ejemplo n.º 9
0
        public LogisticServiceDuration GetLogisrticServiceDuration(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string ModuleType)
        {
            LogisticServiceDuration logisticSericeDuration = new BaseRateCardRepository().GetLogisticSericeDuration(OperationZoneId, LogisticType, CourierCompany, RateType, ModuleType);

            return(logisticSericeDuration);
        }
Ejemplo n.º 10
0
        public FrayteResult GetAddOnRateIdValid(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string PackageType, string ParcelType, string ModuleType)
        {
            FrayteResult result = new BaseRateCardRepository().ValidAddOnRateId(OperationZoneId, LogisticType, CourierCompany, RateType, ParcelType, PackageType, ModuleType);

            return(result);
        }
Ejemplo n.º 11
0
        public IHttpActionResult UpdateAddOnRate(List <FrayteAddRate> _addrate)
        {
            FrayteResult result = new BaseRateCardRepository().UpdateAddOnRate(_addrate);

            return(Ok(result));
        }
Ejemplo n.º 12
0
        public List <LogisticShipmentType> GetShipmentType(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string ModuleType)
        {
            var list = new BaseRateCardRepository().GetShipmentType(OperationZoneId, LogisticType, CourierCompany, RateType, ModuleType);

            return(list);
        }
Ejemplo n.º 13
0
        public List <FrayteCourierAccount> GetCourierAccount(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string ModuleType)
        {
            var list = new BaseRateCardRepository().GetCourierAccount(OperationZoneId, LogisticType, CourierCompany, RateType, ModuleType);

            return(list);
        }
Ejemplo n.º 14
0
        public List <FrayteOperationZone> GetOperationZone()
        {
            var list = new BaseRateCardRepository().GetOperationZone();

            return(list);
        }
Ejemplo n.º 15
0
        public List <FrayteLogisticWeight> GetWeight(int OperationZoneId, string LogisticType, string CourierCompany, string RateType, string PackageType, string ParcelType, string ModuleType)
        {
            var list = new BaseRateCardRepository().GetLogisticWeight(OperationZoneId, LogisticType, CourierCompany, RateType, PackageType, ParcelType, ModuleType);

            return(list);
        }