예제 #1
0
        public DataTable Localizar(string Valor) {

            DALTp_Combustivel DALObj = new DALTp_Combustivel(conexao);
            return DALObj.Localizar(Valor);


        }
예제 #2
0
        public void Incluir(Modelo_Tp_Combustivel modelo) {

            if (modelo.TipTipo.Trim().Length == 0)
            {
                throw new Exception("O tipo é necessario");
            }

            if (modelo.TipValor == 0)
            {
                throw new Exception("O valor é necessario");
            }

            DALTp_Combustivel DALObj = new DALTp_Combustivel(conexao);
            DALObj.Incluir(modelo);

        }
예제 #3
0
        public Modelo_Tp_Combustivel CarregaModelo_Tp_Combustivel(int Codigo) {

            DALTp_Combustivel DALObj = new DALTp_Combustivel(conexao);
            return DALObj.CarregaModelo_Tp_Combustivel(Codigo);

        }
예제 #4
0
        public void Excluir(int Codigo) {

            DALTp_Combustivel DALObj = new DALTp_Combustivel(conexao);
            DALObj.Excluir(Codigo);

        }