コード例 #1
0
 protected void InicializarFormulario()
 {
     try
     {
         BFESCALA objES = new BFESCALA();
         objWEB.LlenaDDL(ref ddlEscalas, objES.GetESCALAAll(objSession.RutEmpresa).Cast <DomainObject>().ToList(), "CODESCALA", "NOMESCALA");
     }
     catch (Exception ex)
     {
         Log log = new Log();
         log.EscribirLog(ex);
         litCatchError.Visible = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "modal", "Menu('0');", true);
     }
 }
コード例 #2
0
 protected void Cargar()
 {
     try
     {
         BFESCALA objBFES = new BFESCALA();
         objWEB.LlenaGrilla(ref grdResultados, objBFES.GetESCALAAll(objSession.RutEmpresa).Cast <DomainObject>().ToList(), 20);
     }
     catch (Exception ex)
     {
         Log log = new Log();
         log.EscribirLog(ex);
         litCatchError.Visible = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "modal", "Menu('0');", true);
     }
 }