Пример #1
0
 internal void GuardarVentaDetalle(int detalleID)
 {
     #region GuardarVentaDetalle
     try
     {
         foreach (DataRow fila in dtVentas.Rows)
         {
             operacion = new BLLOperacion();
             operacion._ventaDetalle.DetalleID      = detalleID;
             operacion._ventaDetalle.ArticuloID     = fila["Clave"].ToString();
             operacion._ventaDetalle.Descripcion    = fila["Descripcion"].ToString();
             operacion._ventaDetalle.MarcaID        = fila["Marca"].ToString();
             operacion._ventaDetalle.PrecioUnitario = Convert.ToDouble(fila["Precio"]);
             operacion.GuardaVentaDetalleBLL();
         }
     }
     catch (Exception)
     {
         throw;
     }
     #endregion
 }