Example #1
0
 public Boolean updatedetalle(clsDetalleNotaSalida detalle)
 {
     try
     {
         return(Mnota.updatedetalle(detalle));
     }
     catch (Exception ex)
     {
         DevComponents.DotNetBar.MessageBoxEx.Show("Se encontró el siguiente problema: " + ex.Message,
                                                   "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return(false);
     }
 }
Example #2
0
        private void añadedetalleNS(DataGridViewRow fila)
        {
            clsDetalleNotaSalida deta = new clsDetalleNotaSalida();

            deta.CodProducto     = Convert.ToInt32(fila.Cells[codproducto.Name].Value);
            deta.CodNotaSalida   = Convert.ToInt32(NS.CodNotaSalida);
            deta.CodAlmacen      = transfer.CodAlmacenOrigen;
            deta.CodAlmacen      = Convert.ToInt32(txtCodAlmacen.Text);
            deta.UnidadIngresada = Convert.ToInt32(fila.Cells[codunidad.Name].Value);
            deta.SerieLote       = fila.Cells[serielote.Name].Value.ToString();
            deta.Cantidad        = Convert.ToDouble(fila.Cells[cantidad.Name].Value);
            deta.PrecioUnitario  = Convert.ToDouble(fila.Cells[preciounit.Name].Value);
            deta.Subtotal        = Convert.ToDouble(fila.Cells[importe.Name].Value);
            deta.Descuento1      = Convert.ToDouble(fila.Cells[dscto1.Name].Value);
            deta.Descuento2      = Convert.ToDouble(fila.Cells[dscto2.Name].Value);
            deta.Descuento3      = Convert.ToDouble(fila.Cells[dscto3.Name].Value);
            deta.Igv             = Convert.ToDouble(fila.Cells[igv.Name].Value);
            deta.Importe         = Convert.ToDouble(fila.Cells[precioventa.Name].Value);
            deta.PrecioReal      = Convert.ToDouble(fila.Cells[precioreal.Name].Value);
            deta.ValoReal        = Convert.ToDouble(fila.Cells[valoreal.Name].Value);
            deta.ValorPromedio   = Convert.ToDouble(fila.Cells[valorpromedio.Name].Value);
            deta.CodUser         = frmLogin.iCodUser;
            detalleNS.Add(deta);
        }