Ejemplo n.º 1
0
        public static String getRegiao(String regiao, Boolean cadastro)
        {
            String msg  = "Código da região não encontrado";
            String vSQL = String.Format("select ds_regiao from regiao where cd_regiao = {0};", regiao);

            return(Valida.getValidated(vSQL, msg, cadastro));
        }
Ejemplo n.º 2
0
        public static String getEstado(String estado, Boolean cadastro)
        {
            String msg  = "Código do estado não encontrado";
            String vSQL = String.Format("select ds_estado from estado where cd_estado = {0};", estado);

            return(Valida.getValidated(vSQL, msg, cadastro));
        }
Ejemplo n.º 3
0
        public static String getPais(String pais, Boolean cadastro)
        {
            String msg  = "Código do país não encontrado";
            String vSQL = String.Format("select ds_pais from pais where cd_pais = {0};", pais);

            return(Valida.getValidated(vSQL, msg, cadastro));
        }