protected void btnGuardar_Click(object sender, EventArgs e)
        {
            try
            {
                tipoarticuloTDA = (TipoArticuloTDA)Session["sellerSelect"];
                if (tipoarticuloTDA == null)
                {
                    tipoarticuloTDA = new TipoArticuloTDA();
                    tipoarticuloTDA.Description = txtDescripcion.Text;
                    int codigo = dba.executeUpdate(tipoarticuloTDA.buildNonQuery(Record.NON_QUERY_INSERT));
                    tipoarticuloTDA.Code = codigo;
                }
                else
                {
                    tipoarticuloTDA.Description = txtDescripcion.Text;
                    dba.executeUpdate(tipoarticuloTDA.buildNonQuery(Record.NON_QUERY_UPDATE));
                }
                Session["Page_Load_Seller"] = false;
                Response.Redirect(Constants.NAV_RULE_LISTA_TIPOARTICULO);
            }
            catch (Exception error)
            {
                lblError.Text = "Se presento un error no controlado [" + error + "].";
                lblError.Visible = true;

            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         lblError.Text = "";
         lblError.Visible = false;
         dba = DataBaseAccess.getInstance();
         //se carga la informacion de la persona
         tipoarticuloTDA = (TipoArticuloTDA)Session["sellerSelect"];
         if (tipoarticuloTDA != null && !(bool)Session["Page_Load_Seller"])
         {
             txtCodigo.Text = tipoarticuloTDA.Code + "";
             txtDescripcion.Text = tipoarticuloTDA.Description;
             //ddlRol.SelectedItem.Value = usuarioTDA.Rol;
             Session["Page_Load_Seller"] = true;
         }
     }
     catch (Exception error)
     {
         lblError.Text = "Se presento un error no controlado [" + error + "].";
         lblError.Visible = true;
     }
 }