Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                confirm = false;
                this.ResourceManager1.DirectMethodNamespace = "CompanyX";

                if (!X.IsAjaxRequest)
                {
                    COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
                    if (configLogic.VentanasCargarDatos == true)
                    {
                        this.SociosSt_Reload(null, null);
                    }

                    this.ImportarSociosBtn.Hidden = !configLogic.SociosImportacion;
                }

                string loggedUsr = Session["username"] as string;
                this.LoggedUserHdn.Text = loggedUsr;
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al cargar pagina de socios.", ex);
                throw;
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                confirm = false;
                this.ResourceManager1.DirectMethodNamespace = "CompanyX";

                if (!X.IsAjaxRequest)
                {
                    COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
                    if (configLogic.VentanasCargarDatos == true)
                    {
                        this.SociosSt_Reload(null, null);
                    }

                    this.ImportarSociosBtn.Hidden = !configLogic.SociosImportacion;
                }

                string loggedUsr = Session["username"] as string;
                this.LoggedUserHdn.Text = loggedUsr;
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al cargar pagina de socios.", ex);
                throw;
            }
        }
Esempio n. 3
0
 protected void RolDS_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     try
     {
         if (!this.IsPostBack)
         {
             COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
             if (configLogic.VentanasCargarDatos == true)
                 e.Cancel = false;
             else
                 e.Cancel = true;
         }
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al cargar roles.", ex);
         throw;
     }
 }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!X.IsAjaxRequest)
                {
                    COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
                    if (configLogic.VentanasCargarDatos == true)
                    {
                        this.stLog_OnRefreshData(null, null);
                    }
                }

                string loggedUsr = Session["username"] as string;
                this.LoggedUserHdn.Text = loggedUsr;
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al cargar pagina de bitacora de aplicacion.", ex);
                throw;
            }
        }
Esempio n. 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!X.IsAjaxRequest)
                {
                    COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
                    if (configLogic.VentanasCargarDatos == true)
                    {
                        this.PrestamosSt_Reload(null, null);
                    }
                }

                string loggedUsr = Session["username"] as string;
                this.LoggedUserHdn.Text = loggedUsr;
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al cargar pagina de tipos de prestamo.", ex);
                throw;
            }
        }
Esempio n. 6
0
 protected void NotasDS_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     try
     {
         if (!this.IsPostBack)
         {
             COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
             if (configLogic.VentanasCargarDatos == true)
             {
                 e.Cancel = false;
             }
             else
             {
                 e.Cancel = true;
             }
         }
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al cargar notas de peso.", ex);
         throw;
     }
 }
Esempio n. 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         this.RM1.DirectMethodNamespace = "DirectX";
         SociosSt_Reload(null, null);
         if (!X.IsAjaxRequest)
         {
             COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic configLogic = new COCASJOL.LOGIC.Configuracion.ConfiguracionDeSistemaLogic(this.docConfiguracion);
             if (configLogic.VentanasCargarDatos == true)
             {
                 this.SolicitudesSt_Reload(null, null);
             }
         }
         string loggedUsr = Session["username"] as string;
         this.LoggedUserHdn.Text = loggedUsr;
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al cargar pagina de prestamos aprobados.", ex);
         throw;
     }
 }