protected void btn_find_by_click(object sender, EventArgs args)
 {
     try
     {
         fillCatalog(CatalogCtrl.Cliente_mercanciafillEvenInactive(Convert.ToInt32(hfFkey.Value), hf_buscar.Value));
     }
     catch (Exception e)
     {
         ((MstCasc)this.Master).setError = e.Message;
     }
 }
 protected void Page_Load(object sender, EventArgs args)
 {
     if (!IsPostBack)
     {
         try
         {
             hfFkey.Value = Request["fKey"];
             setCliente();
             fillCatalog(CatalogCtrl.Cliente_mercanciafillEvenInactive(Convert.ToInt32(hfFkey.Value)));
         }
         catch (Exception e)
         {
             ((MstCasc)this.Master).setError = e.Message;
         }
     }
 }
        protected void lnk_change_status_click(object sender, CommandEventArgs args)
        {
            try
            {
                int Id = 0;
                int.TryParse(args.CommandName, out Id);
                bool status = false;
                bool.TryParse(args.CommandArgument.ToString(), out status);

                Cliente_mercancia o = new Cliente_mercancia();
                o.Id = Id;
                CatalogCtrl.Cliente_mercanciaChangeStatus(o, status);
                fillCatalog(CatalogCtrl.Cliente_mercanciafillEvenInactive(Convert.ToInt32(hfFkey.Value)));
            }
            catch (Exception e)
            {
                ((MstCasc)this.Master).setError = e.Message;
            }
        }