Esempio n. 1
0
 public JsonResult _ConfirmBS(int account, string delivery, int type, AccountShipmentInfo accountShipmentInfo)
 {
     try
     {
         var bsList = Session["bsList"] as List <BSDto>;
         if (bsList == null || bsList.Count == 0)
         {
             return(Json(new { error = true, msg = "Session expired" }));
         }
         var order = OrderService.CreateBlindShipmentOrder(bsList, account, delivery, GeneratePO(type), CurrentTenantId, CurrentWarehouseId, CurrentUserId, type, accountShipmentInfo);
         return(null);
     }
     catch (Exception exp)
     {
         return(Json(new { error = true, msg = exp.Message }));
     }
 }
 public bool UpdateDeliveryAddress(AccountShipmentInfo accountShipmentInfo)
 {
     return(OrderService.UpdateDeliveryAddress(accountShipmentInfo));
 }
 public Order CreateBlindShipmentOrder(List <BSDto> bsList, int accountId, string deliveryNumber, string poNumber, int tenantId,
                                       int warehouseId, int userId, int transType, AccountShipmentInfo accountShipmentInfo = null)
 {
     return(PurchaseOrderService.CreateBlindShipmentOrder(bsList, accountId, deliveryNumber, poNumber, tenantId, warehouseId, userId, transType, accountShipmentInfo));
 }
 public OrderProcess GetOrderProcessByDeliveryNumber(int orderId, int transactiontypeId, string deliveryNumber, int userId, DateTime?createdDate, int warehouseId = 0, AccountShipmentInfo shipmentInfo = null)
 {
     return(OrderService.GetOrderProcessByDeliveryNumber(orderId, transactiontypeId, deliveryNumber, userId, createdDate, warehouseId, shipmentInfo));
 }
        public JsonResult UpdateDeliveryAddress(AccountShipmentInfo accountShipmentInfo)
        {
            var status = OrderService.UpdateDeliveryAddress(accountShipmentInfo);

            return(Json(status));
        }