Example #1
0
        public JsonResult LoadDeliverBillByNo(string strDeliverBillNo)
        {
            string strErrText;
            DeliverSystem deliver = new DeliverSystem();
            DeliverBill data = deliver.LoadDeliverBillByNo(strDeliverBillNo, LoginAccountId, LoginStaffName, out strErrText);
            if (data == null)
            {
                return Json(null, JsonRequestBehavior.AllowGet);
            }
            else
            {
                var ret = new
                {
                    Id = data.Id,
                    PlanId = data.PlanId,
                    CarrierName = data.CarrierName,
                    CarNo = data.CarNo,
                    CarType = data.CarType,
                    TotalTunnages = data.TotalTunnages,
                    TotalPiles = data.TotalPiles,
                    ShipmentBillTotalTunnages = data.ShipmentBillTotalTunnages,
                    ShipmentBillTotalPiles = data.ShipmentBillTotalPiles,
                    TransportPrice = data.TransportPrice
                };

                return Json(ret, JsonRequestBehavior.AllowGet);
            }
        }