Exemple #1
0
        public void localizar()
        {
            try
            {
                objDAL = new SubGrupoDAL();
                this.sg_codigo = objDAL.localizar(this.sg_codigo);
                objDAL = null;
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #2
0
        public DataTable localizarComRetorno(String descricao, String atributo)
        {
            try
            {
                DataTable tab;
                objDAL = new SubGrupoDAL();
                tab = objDAL.localizar(descricao, atributo);
                objDAL = null;
                return tab;
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #3
0
        public void localizar(String descricao, String atributo)
        {

            try
            {
                DataTable tab;
                objDAL = new SubGrupoDAL();
                tab = objDAL.localizar(descricao, atributo);
                if (tab.Rows.Count > 0)
                {
                    this.sg_codigo = int.Parse(tab.Rows[0]["sg_codigo"].ToString());
                    this.sg_descricao = tab.Rows[0]["sg_descricao"].ToString();
                    this.sg_grupo = int.Parse(tab.Rows[0]["sg_grupo"].ToString());
                }
                objDAL = null;
            }
            catch (Exception)
            {
                throw;
            }
        }