Esempio n. 1
0
 public ActionResult Edit()
 {
     string orderNum = WebUtil.GetQueryStringValue<string>("OrderNum", string.Empty);
     Bill<ReturnOrderEntity, ReturnDetailEntity> bill = new ReturnOrder();
     ReturnOrderEntity entity = new ReturnOrderEntity();
     entity.OrderNum = orderNum;
     entity = bill.GetOrder(entity);
     entity = entity.IsNull() ? new ReturnOrderEntity() : entity;
     ViewBag.Entity = entity;
     ViewBag.ReturnType = EnumHelper.GetOptions<EReturnType>(entity.ReturnType, "请选择出库单类型");
     ViewBag.ProductType = EnumHelper.GetOptions<EProductType>(entity.ProductType, "请选择出库产品类型");
     return View();
 }
Esempio n. 2
0
        public ActionResult Detail()
        {
            string orderNum = WebUtil.GetQueryStringValue<string>("OrderNum", string.Empty);
            string flag = WebUtil.GetQueryStringValue<string>("flag", string.Empty);
            Bill<ReturnOrderEntity, ReturnDetailEntity> bill = new ReturnOrder();
            ReturnOrderEntity entity = new ReturnOrderEntity();
            entity.OrderNum = orderNum;
            entity = bill.GetOrder(entity);
            entity = entity.IsNull() ? new ReturnOrderEntity() : entity;
            ViewBag.Entity = entity;
            ViewBag.ReturnType = EnumHelper.GetEnumDesc<EReturnType>(entity.ReturnType);
            ViewBag.Status = EnumHelper.GetEnumDesc<EAudite>(entity.Status);

            ReturnDetailEntity detail = new ReturnDetailEntity();
            detail.OrderNum = orderNum;
            List<ReturnDetailEntity> list = bill.GetOrderDetail(detail);
            list = list.IsNull() ? new List<ReturnDetailEntity>() : list;
            ViewBag.Detail = list;
            ViewBag.Flag = flag;
            return View();
        }