public ActionResult EnviarAviso(List<Lote> lote) { List<Lote> listLote = new List<Lote>(); foreach (Lote l in lote) { Lote lot = LoteService.ReadLoteById(l.Id); AvisoPrueba aviso = new AvisoPrueba(); aviso.NoProveedor = 8448; aviso.FamiliaId = "FALO"; aviso.UnidadId = "Kg"; aviso.Pedido = "Particular"; aviso.Partida = 0; aviso.Cantidad = lot.CantidadProducida; aviso.Costo = 0; aviso.Moneda = "MX"; aviso.Iva = 16; aviso.Destino = "Almacen Santa Catarina"; aviso.Observaciones = "-"; aviso.DescProducto = "Transformador"; aviso.ProductoId = (long)lot.ProductoId; aviso.LoteId = lot.Id; AvisoPruebaService.CreateAvisoPrueba(aviso); lot.Activo = false; LoteService.UpdateLote(lot); } return Json(JSON_SUCCESS, JsonRequestBehavior.AllowGet); }
public AvisoPruebaViewModel(AvisoPrueba avisoPrueba) { AvisoPrueba = avisoPrueba; }
public void CreateAvisoPrueba(AvisoPrueba aviso) { AvisoPruebaRepository.CreateAvisoPrueba(aviso); }