public static void Update(tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow row)
        {
            if (row.RowState == DataRowState.Detached)
            {
                ((tsa_CotizacionesDetDataset.tsa_CotizacionesDetDataTable)row.Table).Addtsa_CotizacionesDetRow(row);
            }

            Update(row.Table);
        }
        /// <summary>
        /// Envia los cambios del tsa_CotizacionesDetRow a la base de datos realizando una validacin previa.
        /// </summary>
        public static void UpdateWithValidation(tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow row)
        {
            ApplicationAssert.Check(row != null, "El argumento row no debe ser nulo.", ApplicationAssert.LineNumber);

            if (RowIsValid(row))
            {
                Update(row);
            }
        }
        /// <summary>
        /// Envia los cambios del tsa_CotizacionesDetRow a la base de datos.
        /// </summary>
        public static void Update(tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow row)
        {
            ApplicationAssert.Check(row != null, "El argumento row no debe ser nulo.", ApplicationAssert.LineNumber);

            mz.erp.dataaccess.tsa_CotizacionesDet.Update(row);
        }
        /// <summary>
        /// Establece los valores por defecto de tsa_CotizacionesDetRow.
        /// </summary>
        public static tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow SetRowDefaultValues(tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow row)
        {
            row.IdCotizacion                 = 0;
            row.Renglon                      = 0;
            row.IdProducto                   = string.Empty;
            row.Cantidad                     = 0;
            row.PrecioFinal                  = 0;
            row.IdMoneda                     = 0;
            row.IdFuenteDeCambio             = 0;
            row.FechaCreacion                = DateTime.Now;
            row.IdConexionCreacion           = Security.IdConexion;
            row.UltimaModificacion           = null;
            row.IdConexionUltimaModificacion = Security.IdConexion;
            row.IdReservado                  = 0;
            row.RowId      = Guid.Empty;
            row.IdSucursal = 0;
            row.IdEmpresa  = 0;

            return(row);
        }
        /// <summary>
        /// Valida un tsa_CotizacionesDetRow.
        /// </summary>
        public static bool RowIsValid(tsa_CotizacionesDetDataset.tsa_CotizacionesDetRow row)
        {
            ApplicationAssert.Check(row != null, "El argumento row no debe ser nulo.", ApplicationAssert.LineNumber);


            if (!IdCotizacionIsValid(row.IdCotizacion))
            {
                return(false);
            }

            if (!RenglonIsValid(row.Renglon))
            {
                return(false);
            }

            if (!IdProductoIsValid(row.IdProducto))
            {
                return(false);
            }

            if (!CantidadIsValid(row.Cantidad))
            {
                return(false);
            }

            if (!PrecioFinalIsValid(row.PrecioFinal))
            {
                return(false);
            }

            if (!IdMonedaIsValid(row.IdMoneda))
            {
                return(false);
            }

            if (!IdFuenteDeCambioIsValid(row.IdFuenteDeCambio))
            {
                return(false);
            }

            if (!FechaCreacionIsValid(row.FechaCreacion))
            {
                return(false);
            }

            if (!IdConexionCreacionIsValid(row.IdConexionCreacion))
            {
                return(false);
            }

            if (!UltimaModificacionIsValid(row.UltimaModificacion))
            {
                return(false);
            }

            if (!IdConexionUltimaModificacionIsValid(row.IdConexionUltimaModificacion))
            {
                return(false);
            }

            if (!IdReservadoIsValid(row.IdReservado))
            {
                return(false);
            }

            if (!RowIdIsValid(row.RowId))
            {
                return(false);
            }

            if (!IdSucursalIsValid(row.IdSucursal))
            {
                return(false);
            }

            if (!IdEmpresaIsValid(row.IdEmpresa))
            {
                return(false);
            }
            ;

            return(true);
        }