示例#1
0
        public void ActualizarFactura()
        {
            string sql_insert = "";

            sql_insert = string.Format("insert into Factura values({0},'{1}',{2},{3},{4},'{5}')", new string[] { NumeroFactura.ToString(), FechaFactura.ToString(), ID_Hotel.ToString(), ID_TipoDocumento.ToString(), NumDocumento.ToString(), NombreHuesped });
            DB.Grabar_Modificar_Eliminar(sql_insert);

            this.DB.consultaDB("select * from Factura where num_factu=" + NumeroFactura.ToString());
        }
示例#2
0
        //INSERTAR GRABAR
        public void Grabar_tipoServicio()
        {
            string SqlInsert = "";

//            SqlInsert = @" INSERT INTO TipoServicio
//                         ( id_tipo_servicio,desc_tipo_servicio,costo)
//                        VALUES ('" +
//                          this._idTipo.ToString() + "', '" +
//                         this._descripcion_tipo.ToString() + "', '" +
//                         this._costo.ToString() +
//                          "')";

            //    cmd  = new SqlCommand(string.Format("insert into Perfiles Values ({0},'{1}')", new string[] { id, nombre }), cnn);
            SqlInsert = string.Format("INSERT INTO TipoServicio VALUES({0},'{1}',{2})", new string[] { this._idTipo.ToString(), this._descripcion_tipo, this._costo.ToString() });
            //MessageBox.Show("Los datos Ingresados son \n" + SqlInsert);

            DB.Grabar_Modificar_Eliminar(SqlInsert);
        }
示例#3
0
        //INSERTAR GRABAR
        public void Grabar_Huesped()
        {
            string SqlInsert = "";

            SqlInsert = @" INSERT INTO Huesped
                         ( id_tipoDoc,num_doc,nombre_huesped,apellido_huesped,num_tarjeta)
                        VALUES ('" +
                        this.id_tipoDocumento.ToString() + "','" +
                        this.num_dni.ToString() + "', '" +
                        this.nombre + "', '" +
                        this.apellido + "', '" +
                        this.num_tarjeta.ToString() +
                        "')";

            //MessageBox.Show("Los datos Ingresados son \n" + SqlInsert);

            DB.Grabar_Modificar_Eliminar(SqlInsert);
        }
示例#4
0
        //public validar_Estados.Estado_Validacion validar_Empleado(Control.ControlCollection controles)
        //{
        //    validar_Estados validacion = new validar_Estados();
        //    return validacion.Validar_Caja_vacia(controles);
        //}


        //*************************************************************************************+

        //INSERTAR GRABAR
        public void GrabarEmpleado()
        {
            string SqlInsert = "";

            SqlInsert = @" INSERT INTO Empleado
                         ( legajo,nombre,apellido,fecha_ingreso,id_puesto,id_hotel)
                        VALUES ('" +
                        this.legajo_e.ToString() + "', '" +
                        this.nombre_e + "', '" +
                        this.apellido_e + "', '" +
                        this.fecha_ingreso_e + "', '" +
                        this.id_puesto_e.ToString() + "', '" +
                        this.id_hotel_e.ToString() +
                        "')";

            MessageBox.Show("Los datos Ingresados son \n" + SqlInsert);

            DB.Grabar_Modificar_Eliminar(SqlInsert);
        }
示例#5
0
文件: Hotel.cs 项目: arielZarate/Pav1
        //***********************************++

        public void Registar_Hotel()
        {
            string sql_reg = string.Format("update Hotel set nombre='{1}',descripcion='{2}',Registrado='{3}' where id_hotel={0}", new string[] { this._id_hotel.ToString(), this._nombre, this._descripcion, this._registrado });

            _BD.Grabar_Modificar_Eliminar(sql_reg);
        }