Esempio n. 1
0
        //订单详情
        public ActionResult OrderDetail(int?Id)
        {
            ViewBag.users = new List <SelectListItem>()
            {
                new SelectListItem()
                {
                    Value = Sys.CurrentUser.UID, Text = Sys.CurrentUser.UserName
                }
            };
            var obj = new VwOrder();

            if (!Id.IsNullOrEmpty())
            {
                obj = BaseService <VwOrder> .FindById(Id);

                if (!string.IsNullOrEmpty(obj.IndentOrderId))
                {
                    var orderDis = BaseService <OrderDistribution> .FindList(o => o.IndentOrderId == obj.IndentOrderId).OrderByDescending(o => o.DistributionBatch).FirstOrDefault();

                    if (orderDis != null)
                    {
                        obj.DistributionBatch = orderDis.DistributionBatch;
                        obj.Memo = orderDis.Memo;
                    }
                }
            }
            var details = MsppBLL.LoadDetailList(obj.IndentOrderId);

            ViewData["Updated"]     = details.ToJson();
            Session["orderdetails"] = details;
            return(View(obj.IsNullThrow()));
        }
Esempio n. 2
0
        public ActionResult LoadDeliveryRecordList(string orderId, string barcode)
        {
            int count = 0;
            var list  = MsppBLL.LoadDeliveryRecordList(orderId, barcode, out count);

            return(ToDataGrid(list, count));
        }
Esempio n. 3
0
        public ActionResult OrderDeliveryList()
        {
            int count = 0;
            var list  = MsppBLL.FindPageList(Request.Params, out count);

            return(ToDataGrid(list, count));
        }
Esempio n. 4
0
        public ActionResult OrderDetail(string indentOrderId, string updated, string updated2, string disBatch, string disMemo)
        {
            var op = MsppBLL.Save(indentOrderId, updated, updated2, disBatch, disMemo);

            return(Content(op.ToJson()));
        }