예제 #1
0
 protected void Page_Load(object sender, EventArgs args)
 {
     if (!IsPostBack)
     {
         try
         {
             fillCatalog(CatalogCtrl.Cliente_FillAllLst());
         }
         catch (Exception e)
         {
             ((MstCasc)this.Master).setError = e.Message;
         }
     }
 }
예제 #2
0
        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 oC = new Cliente();
                oC.Id = Id;
                CatalogCtrl.Cliente_changeStatus(oC, status);

                fillCatalog(CatalogCtrl.Cliente_FillAllLst());
            }
            catch (Exception e)
            {
                ((MstCasc)this.Master).setError = e.Message;
            }
        }