public ActionResult ETShippingListCreateList(string kevin)
        {
            string test = kevin;
            List <Entities.ExportTransportation> jsonlist = JsonHelper.DeserializeJsonToList <Entities.ExportTransportation>(test);

            //  Entities.ImportTrans_main_record model = new Entities.ImportTrans_main_record();
            foreach (Entities.ExportTransportation u in jsonlist)
            {
                var model = _exportTransportationService.getById(u.Id);
                model.Project    = u.Project;
                model.Applier    = u.Applier;
                model.OfGoods    = u.OfGoods;
                model.TotalGw    = u.TotalGw;
                model.TotalNo    = u.TotalNo;
                model.TradeTerms = u.TradeTerms;
                model.Carrier    = u.Carrier;
                model.PickDriver = u.PickDriver;
                model.DriverCard = u.DriverCard;
                //model.Project = u.Project;
                _exportTransportationService.updateExportTransportation(model);
                //u就是jsonlist里面的一个实体类
            }
            AjaxData.Status  = true;
            AjaxData.Message = "OK";
            return(Json(AjaxData));
        }
        public ActionResult ETDeliveryStatusInputList(string kevin)
        {
            string test = kevin;
            List <Entities.ExportTransportation> jsonlist = JsonHelper.DeserializeJsonToList <Entities.ExportTransportation>(test);

            //  Entities.ImportTrans_main_record model = new Entities.ImportTrans_main_record();
            foreach (Entities.ExportTransportation u in jsonlist)
            {
                var model = _exportTransportationService.getById(u.Id);
                model.CuttingLoadTime = u.CuttingLoadTime;
                if (u.Booking != "")
                {
                    model.Booking = u.Booking;
                }
                model.PortDate             = u.PortDate;
                model.TranMode             = u.TranMode;
                model.Awb                  = u.Awb;
                model.ShipmentPort         = u.ShipmentPort;
                model.DestinationPort      = u.DestinationPort;
                model.DepartureDate        = u.DepartureDate;
                model.EstimatedArrivalDate = u.EstimatedArrivalDate;
                model.RealArrivalDate      = u.RealArrivalDate;
                model.DeliveryDate         = u.DeliveryDate;
                _exportTransportationService.updateExportTransportation(model);
                //u就是jsonlist里面的一个实体类
            }
            AjaxData.Status  = true;
            AjaxData.Message = "OK";
            return(Json(AjaxData));
        }
Beispiel #3
0
        public ActionResult ETCPAInventoryInputList(string kevin)
        {
            string test = kevin;
            List <Entities.ExportTransportation> jsonlist = JsonHelper.DeserializeJsonToList <Entities.ExportTransportation>(test);

            //  Entities.ImportTrans_main_record model = new Entities.ImportTrans_main_record();
            foreach (Entities.ExportTransportation u in jsonlist)
            {
                var model = _exportTransportationService.getById(u.Id);
                model.NuclearNote     = u.NuclearNote;
                model.LicensePlateNo  = u.LicensePlateNo;
                model.ManufactureDate = u.ManufactureDate;

                //model.Project = u.Project;
                _exportTransportationService.updateExportTransportation(model);
                //u就是jsonlist里面的一个实体类
            }
            AjaxData.Status  = true;
            AjaxData.Message = "OK";
            return(Json(AjaxData));
        }
Beispiel #4
0
        public IActionResult EditETShippingApplicationInput(int?id, string returnUrl = null)
        {
            ViewBag.ReturnUrl = Url.IsLocalUrl(returnUrl) ? returnUrl : Url.RouteUrl("etShippingApplicationInput");
            var customizedList = _sysCustomizedListService.getByAccount("发运情况");

            ViewData["DeliverySituationlist"] = new SelectList(customizedList, "CustomizedValue", "CustomizedValue");
            var customizedList2 = _sysCustomizedListService.getByAccount("付费方式");

            ViewData["PaymentMethodlist"] = new SelectList(customizedList2, "CustomizedValue", "CustomizedValue");

            if (id != null)
            {
                var model = _exportTransportationService.getById(id.Value);

                if (model == null)
                {
                    return(Redirect(ViewBag.ReturnUrl));
                }
                return(View(model));
            }
            return(View());
        }