Example #1
0
        public void AlteraStatusFuncioanrio(int codigo, string status)
        {
            DBBase bd       = new DBBase();
            var    strQuery = "";

            strQuery += "UPDATE Funcionario SET status = '" + status + "'  WHERE Id = " + codigo;
            bd.ExecuteInstrucoesNaBase(strQuery);
        }
Example #2
0
        public void Inserir(string nome, string cpf, string rg, DateTime datanascimento, string email, string telefone, string celular, string rua, string turno, string funcao,
                            string status, int numero, string bairro, string cidade, string cep, string uf)
        {
            DBBase bd       = new DBBase();
            string strQuery = "INSERT INTO Funcionario VALUES ('" + nome + "' , '" + cpf + "', '" + rg + "', '" + datanascimento + "' , '" + email + "' , '" + telefone + "' , " +
                              " '" + celular + "' , '" + rua + "' , '" + turno + "' , '" + funcao + "' , '" + status + "' , " + numero + " , '" + bairro + "' , '" + cidade + "' , '" + cep + "' , '" + uf + "')";

            bd.ExecuteInstrucoesNaBase(strQuery);
        }
Example #3
0
        public void InserirVeiculos(string categoria, string marca, string modelo, string placa, int anoModelo, int anoFabricacao
                                    , string propriedade, string status, string cor, string renavan, int km)
        {
            DBBase bd       = new DBBase();
            var    strQuery = "";

            strQuery += "INSERT INTO Veiculo (categoria, marca, modelo,placa, ano_modelo, ano_fabricacao, propriedade, status, cor, renavam, km)";
            strQuery += "VALUES ('" + categoria + "' , '" + marca + "', '" + modelo + "', '" + placa + "' , " + anoModelo + " , " + anoFabricacao + " , " +
                        " '" + propriedade + "' , '" + status + "' , '" + cor + "' , '" + renavan + "' , " + km + ")";
            bd.ExecuteInstrucoesNaBase(strQuery);
        }
Example #4
0
        public void RegistrarViagem(string ruapartida, int numpartida, string bairropartida, string cidadepartida, string ufpartida, string cepPartida
                                    , string ruadestino, int numdestino, string bairrodestino, string cidadedestino, string ufdestino, string cepdestino
                                    , string km, string combustivel, string estacionamento)
        {
            DBBase bd       = new DBBase();
            var    strQuery = "";

            strQuery += "INSERT INTO Viagem (rua_Partida, numero_Partida, bairro_Partida, cidade_Partida, uf_Partida, cep_Partida," +
                        " rua_Destino, numero_Destino, bairro_destino, cidade_Destino, uf_Destino, cep_Destino," +
                        "km, combustivel, estacionamento)";
            strQuery += "VALUES ('" + ruapartida + "' , " + numpartida + " , '" + bairropartida + "' , '" + cidadepartida + "' , '" + ufpartida + "' , '" + cepPartida + "' , " +
                        "'" + ruadestino + "' , " + numdestino + " , '" + bairrodestino + "' , '" + cidadedestino + "' , '" + ufdestino + "' , '" + cepdestino + "' , " +
                        "'" + km + "' , '" + combustivel + "' , '" + estacionamento + "')";
            bd.ExecuteInstrucoesNaBase(strQuery);
        }