Ejemplo n.º 1
0
        /// <summary>
        /// 查询单条数据,用于新增编辑
        /// </summary>
        /// <param name="id">主键编号</param>
        /// <returns></returns>
        public OrderMainItemModel QueryItem(string id)
        {
            OrderMainItemModel model = new OrderMainItemModel();

            model.CurrentModel = handler.GetData(id);
            model.Id           = id;
            return(model);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 根据订单编号获取数据信息
        /// </summary>
        /// <param name="orderNo"></param>
        /// <returns></returns>
        public OrderMainItemModel QueryOrderDetials(string orderNo)
        {
            OrderMainItemModel model  = new OrderMainItemModel();
            MOrderMain         entity = new MOrderMain();

            entity.OrderNo     = orderNo;
            model.CurrentModel = handler.GetDataListByTemplate("getOrderDetailsByOrderNo", entity).FirstOrDefault();
            model.Id           = orderNo;
            return(model);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 预览详细信息页面
        /// </summary>
        /// <param name="id">主键编号</param>
        /// <returns></returns>
        public ActionResult Details(string id)
        {
            //获取订单信息
            OrderMainItemModel orderModel = OrderMainService.Instance.QueryOrderDetials(id);
            //获取发货信息
            List <MOrderDelivery> deliveryList = OrderDeliveryService.Instance.QueryDeliveryListByOrderNo(id);
            //获取通知信息
            List <MOrderNotify> notifyList = OrderNotifyService.Instance.QueryNotifyListByOrderNo(id);

            ViewBag.DeliveryList = deliveryList;
            ViewBag.NotifyList   = notifyList;
            return(View(orderModel));
        }