public ActionResult DetailWareHouse(int id = -1)
        {
            tblWarehouse warehouse = new tblWarehouse();

            if (id != -1)
            {
                warehouse = _wareHouseServices.SelectByWarehouseID(id);
            }
            return(View(warehouse));
        }
示例#2
0
        public ActionResult AddNewShipment(int destinationId, int warehouseId)
        {
            string          startCode = Lib.Business.Common.ServiceHelper.GetDestionationCodeById(destinationId);
            ShipmentViewDTO model     = new ShipmentViewDTO
            {
                LstPackage    = new List <PackageViewDTO>(),
                Destination   = destinationId,
                ShipmentCode  = $"{startCode}{DateTime.Now.ToString("yyMMdd")}{(_shipmentService.Admin_CountShipmentOnDateByDestination(destinationId) + 1)}",
                TotalWeight   = 0,
                WarehouseId   = warehouseId,
                WarehouseName = _warehouseService.SelectByWarehouseID(warehouseId)?.Warehouse
            };
            CustomJsonResult result = new CustomJsonResult();

            result.Result = model;
            return(Json(result));
        }