Esempio n. 1
0
 public IHttpActionResult GetRmaShippingPrintedByPack([FromUri] RmaExpressRequest request, [UserId] int uid)
 {
     return(DoFunction(() =>
     {
         _shippingSaleService.UserId = uid;
         return _shippingSaleService.GetRmaShippingPrintedByPack(request);
     }, "查询退货单信息失败"));
 }
Esempio n. 2
0
 public IHttpActionResult GetRmaCashByExpress([FromUri] RmaExpressRequest request, [UserId] int uid)
 {
     return(DoFunction(() =>
     {
         _rmaService.UserId = uid;
         return _rmaService.GetRmaCashByExpress(request);
     }, "查询退货单信息失败"));
 }
Esempio n. 3
0
        public PageResult <RMADto> GetRmaReturnByExpress(RmaExpressRequest dto)
        {
            dto.StartDate = dto.StartDate.Date;
            dto.EndDate   = dto.EndDate.Date.AddDays(1);
            var rep = (IRMARepository)_repository;

            rep.SetCurrentUser(_accountService.GetByUserID(UserId));
            PageResult <RMADto> lst = rep.GetRmaReturnByExpress(dto.OrderNo, dto.StartDate, dto.EndDate, dto.pageIndex, dto.pageSize);

            return(lst);
        }
Esempio n. 4
0
        public PageResult <RMADto> GetRmaCashByExpress(RmaExpressRequest dto)
        {
            dto.StartDate = dto.StartDate.Date;
            dto.EndDate   = dto.EndDate.Date.AddDays(1);
            var rep = (IRMARepository)_repository;

            rep.SetCurrentUser(_accountService.GetByUserID(UserId));
            PageResult <RMADto> lst = rep.GetByPackPrintPress(dto.OrderNo, "", dto.StartDate, dto.EndDate, EnumRMAStatus.ShipVerifyPass.AsId(), dto.pageIndex, dto.pageSize);

            return(lst);
        }
Esempio n. 5
0
        public IHttpActionResult GetRmaShippingByPackPrintPress([FromUri] RmaExpressRequest request, [UserId] int uid, [UserProfile] UserProfile userProfile)
        {
            //return DoFunction(() =>
            //{
            //    _shippingSaleService.UserId = uid;
            //    return _shippingSaleService.GetRmaByPackPrintPress(request);
            //}, "查询退货单信息失败");

            var req = Mapper.Map <RmaExpressRequest, GetShippingSaleOrderRequest>(request);

            req.Status = EnumRmaShippingStatus.NoPrint.AsId();

            return(GetList4ShippingPageResult(req, userProfile));
        }
Esempio n. 6
0
        public IHttpActionResult GetRmaReturnByExpress([FromUri] RmaExpressRequest request, [UserProfile] UserProfile userProfile)
        {
            //return DoFunction(() =>
            //{
            //    _rmaService.UserId = uid;
            //    return _rmaService.GetRmaReturnByExpress(request);
            //}, "查询退货单信息失败");
            //退货时间
            var req = Mapper.Map <RmaExpressRequest, RmaQueryRequest>(request);

            req.Status = EnumRMAStatus.ShipVerifyPass.AsId();

            return(GetRmaList4PageResult(req, userProfile));
        }
        public PageResult <ShippingSaleDto> GetRmaShippingPrintedByPack(RmaExpressRequest request)
        {
            request.FormateDate();
            _shippingSaleRepository.SetCurrentUser(_accountService.GetByUserID(UserId));
            var lst = _shippingSaleRepository.GetByOrderNo(request.OrderNo, request.StartDate, request.EndDate, request.pageIndex,
                                                           request.pageSize, EnumRmaShippingStatus.Printed.AsId());

            IList <ShippingSaleDto> lstDtos = new List <ShippingSaleDto>();

            foreach (var shippingSale in lst.Result)
            {
                var o = AutoMapper.Mapper.Map <OPC_ShippingSale, ShippingSaleDto>(shippingSale);
                EnumRmaShippingStatus rmaShippingStatus = (EnumRmaShippingStatus)shippingSale.ShippingStatus;
                o.PrintStatus = rmaShippingStatus.GetDescription();
                lstDtos.Add(o);
            }
            return(new PageResult <ShippingSaleDto>(lstDtos, lst.TotalCount));
        }
Esempio n. 8
0
        public IHttpActionResult GetRmaPrintByExpress([FromUri] RmaExpressRequest request, [UserId] int uid, [UserProfile] UserProfile userProfile)
        {
            return(GetRmaList4PageResult(new RmaQueryRequest
            {
                ReceiptStartDate = request.StartDate,
                ReceiptEndDate = request.EndDate,
                OrderNo = request.OrderNo,
                Page = request.pageIndex,
                PageSize = request.pageSize,
                Statuses = PrintByExpressStatus
            }, userProfile));

            //return DoFunction(() =>
            //{
            //    _rmaService.UserId = uid;
            //    return _rmaService.GetRmaPrintByExpress(request);
            //}, "查询退货单信息失败");
        }