Exemple #1
0
        public void Gravar()
        {
            string strQuery;

            strQuery  = ("INSERT INTO Teste");
            strQuery += (" Values ");
            strQuery += ("(");

            strQuery += ("'" + _cod + "',");
            strQuery += ("'" + _desc + "'");

            strQuery += (")");



            cldBancoDeDados objcldBancoDados = new cldBancoDeDados();

            objcldBancoDados.ExecutaComando(strQuery);
        }
Exemple #2
0
        public void AnotarExtintor()
        {
            string strQuery;

            strQuery  = ("INSERT INTO Servico");
            strQuery += (" Values ");
            strQuery += ("(");

            strQuery += (" seqServico.nextval ");
            strQuery += (",'" + _codExt + "'");
            strQuery += (",'" + _numSelo + "'");
            strQuery += (",'" + _numCliente + "'");
            strQuery += (",'" + _nivel + "'");
            strQuery += (",'" + _pintura + "'");
            strQuery += (")");
            cldBancoDeDados objcldBancoDados = new cldBancoDeDados();

            objcldBancoDados.ExecutaComando(strQuery);
        }