public override bool add()
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.detallesalidaTableAdapter ta = new dsGimnasioTableAdapters.detallesalidaTableAdapter();
                ta.add(idProducto,CostoUnitario,idSalida);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }
示例#2
0
        // Metodo que agrega un registro
        public override bool add()
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.detallesalidaTableAdapter ta = new dsGimnasioTableAdapters.detallesalidaTableAdapter();
                ta.add(idProducto, CostoUnitario, idSalida);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }