// 拆单 页面 public ActionResult split(string orderCode) { try { MyBll Bll = new MyBll(); List <MyOrderInfoDto> myOrderInfoDtoList = new List <MyOrderInfoDto>(); IList <MyOrderSkuInfoEntity> orderCodeList = Bll.GetMyOrderInfoByParentOrderCode(orderCode); foreach (MyOrderSkuInfoEntity i in orderCodeList) { if (string.IsNullOrEmpty(i.OrderCode)) { return(this.HandleError("订单编号不能为空!")); } var model = Bll.GetMyOrderInfo(base.LoginUser.UserID, base.DeliveryRegion, base.language, i.OrderCode); myOrderInfoDtoList.Add(model); if (model.SkuInfos.Sum(s => s.RefundQuantity) > 0) { ViewBag.RefundStatus = true; } } return(View(myOrderInfoDtoList)); } catch (Exception ex) { return(this.HandleError(ex)); } }