示例#1
0
        public IActionResult OnGet(string companyId, string refOrderId, string type)
        {
            vm_Main.往来号  = companyId;
            vm_Main.关联单号 = refOrderId;
            vm_Main.小类   = type;
            vm_Main.类型   = "收款";

            var set = _context.list_收付待收(vm_Main.往来号);

            if (string.IsNullOrEmpty(refOrderId))
            {
                foreach (var item in set)
                {
                    vm_Details.Add(_mapper.Map <vm_收款单D>(item));
                }
            }
            else
            {
                foreach (var item in set.Where(m => m.单号 == refOrderId))
                {
                    vm_Details.Add(_mapper.Map <vm_收款单D>(item));
                }
            }


            return(Page());
        }
        public IActionResult OnGet(string companyId, string refOrderId, string type)
        {
            vm_Main.往来号  = companyId;
            vm_Main.关联单号 = refOrderId;
            vm_Main.小类   = type;
            vm_Main.类型   = "收款";

            var records = _context.list_收付待收().Where(m => m.往来号 == vm_Main.往来号 && m.单号 == refOrderId);

            foreach (var item in records)
            {
                vm_Details.Add(_mapper.Map <vm_收款单D>(item));
            }

            return(Page());
        }
 //[HttpGet("收付待收")]
 //[HttpGet("金额待收")]
 public IEnumerable <object> 收付待收()
 {
     return(_pinhua2.list_收付待收());
 }
示例#4
0
 public IEnumerable <object> 收付待收(string customerId)
 {
     return(_pinhua2.list_收付待收(customerId));
 }