Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         vista = mast.vista;
         dic   = new Diccionario(L, S);
         try
         {
             llenarElementos();
             DataTable dt   = BDF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             if (vista)
             {
                 cargarConSeguridad();
             }
         }
         catch
         {
         }
     }
     mst = (mast)Master;
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mst = (mast)Master;
     if (!IsPostBack)
     {
         try
         {
             bdTS  = new BDTS();
             bdGEN = new BDGEN();
             BDF   = new BDFamilia();
             F     = mast.F;
             S     = mast.S;
             U     = mast.U;
             L     = mast.L;
             vista = mast.vista;
             dic   = new Diccionario(L, S);
             llenarElementos();
             if (vista)
             {
                 cargarConSeguridad();
             }
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         vista = mast.vista;
         try
         {
             DataTable dt   = BDF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             dic             = new Diccionario(L, S);
             cargarPgnVisitas();
             cargarConSeguridad();
         }
         catch
         {
         }
     }
     mst = (mast)Master;
     mst.contentCallEvent += new EventHandler(eliminarVisita);
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bdTS  = new BDTS();
                bdGEN = new BDGEN();
                BDF   = new BDFamilia();
                F     = mast.F;
                S     = mast.S;
                U     = mast.U;
                L     = mast.L;
                dic   = new Diccionario(L, S);
                try
                {
                    llenarElementos();
                    visibilizarPestaña(pnlReporte, lnkReporte);
                }
                catch
                {
                }
            }
            DataTable dtTS = bdGEN.obtenerTS(S);

            mst = (mast)Master;
        }
Ejemplo n.º 5
0
 protected void iniciarElementos()
 {
     mst = (mast)Master;
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         dic   = new Diccionario(L, S);
         llenarElementos();
         if (Session["AsignoTSGrupo"] != null)
         {
             String asigno = (String)Session["AsignoTSGrupo"];
             if (asigno.Equals("SI"))
             {
                 mst.mostrarMsjNtf(dic.msjSeHaActualizado);
             }
             else
             {
                 mst.mostrarMsjMdl(dic.msjNoSeRealizoExcp + asigno + ".");
             }
             Session["AsignoTSGrupo"] = null;
         }
     }
 }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mst = (mast)Master;
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         vista = mast.vista;
         dic   = new Diccionario(L, S);
         año   = (DateTime.Now.Year + 1) + "";
         try
         {
             llenarGdvMiembros();
             DataTable dt   = BDF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblDirec.Text   = dic.direccion + ":";
             lblTelef.Text   = dic.telefono + ":";
             lblTS.Text      = dic.trabajadorS + ":";
             lblClasif.Text  = dic.clasificacion + ":";
             lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             btnGuardar.Text = dic.guardar;
             if (vista)
             {
                 cargarConSeguridad();
             }
             if (gdvMiembros.Rows.Count == 0)
             {
                 if (L.Equals("es"))
                 {
                     mst.mostrarMsjStc("Esta familia no tiene miembros aptos para registrar NADFAS.");
                 }
                 else
                 {
                     mst.mostrarMsjStc("This family has no members eligible to register NADFAS.");
                 }
             }
             else
             {
             }
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         vista = mast.vista;
         dic   = new Diccionario(L, S);
         mst   = (mast)Master;
         año   = (DateTime.Now.Year) + "";
         try
         {
             llenarGdvMiembros();
             llenarElementos();
             edadMiembro = 20;
             DataTable dt   = BDF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblVDirec.Text  = rowF["Address"].ToString() + " " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             if (gdvMiembros.Rows.Count == 0)
             {
                 if (L.Equals("es"))
                 {
                     mst.mostrarMsjStc("Esta familia no tiene miembros aptos para registrar Años Escolares.");
                 }
                 else
                 {
                     mst.mostrarMsjStc("This family has no members eligible to register School Years.");
                 }
             }
             else
             {
                 if (vista)
                 {
                     cargarConSeguridad();
                 }
             }
         }
         catch
         {
         }
     }
     mst = (mast)Master;
     mst.contentCallEvent += new EventHandler(eliminarAñoEscolar);
 }
Ejemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mst       = (mast)Master;
     año       = DateTime.Now.Year;
     cantMeses = 4;
     if (!IsPostBack)
     {
         soloUltimas = 0;
         asignaColores();
         U    = mast.U;
         S    = mast.S;
         L    = mast.L;
         F    = mast.F;
         bdTS = new BDTS();
         bdF  = new BDFamilia();
         dic  = new Diccionario(L, S);
         try
         {
             DataTable dt   = bdF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             llenarNombres();
             pnlContenedor.Visible = false;
             try
             {
                 buscar();
                 visibilizarPestaña(pnlInfoGeneral, lnkInfoGeneral);
             }
             catch (Exception ex)
             {
                 mst.mostrarMsjStc(dic.msjNoSeRealizoExcp + ex.Message.ToString() + ".");
             }
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         dic   = new Diccionario(L, S);
         try
         {
             llenarElementos();
         }
         catch
         {
         }
     }
     mst = (mast)Master;
 }
Ejemplo n.º 10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mst = (mast)Master;
     mst.contentCallEvent += new EventHandler(eliminarAnalisis);
     if (!IsPostBack)
     {
         try
         {
             bdTS         = new BDTS();
             bdGEN        = new BDGEN();
             BDF          = new BDFamilia();
             F            = mast.F;
             S            = mast.S;
             U            = mast.U;
             L            = mast.L;
             dic          = new Diccionario(L, S);
             postAnalisis = false;
             llenarElementos();
             if (!String.IsNullOrEmpty(F))
             {
                 try
                 {
                     familia = F;
                     llenarPnlRegistroAnalisis();
                     pnlAsignarClasif.Visible = true;
                     pnlFamilias.Visible      = false;
                 }
                 catch (Exception ex)
                 {
                     mst.mostrarMsjMdl(dic.msjNoSeRealizoExcp + ex.ToString() + ".");
                 }
             }
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         asignaColores();
         bdTS  = new BDTS();
         bdGEN = new BDGEN();
         BDF   = new BDFamilia();
         F     = mast.F;
         S     = mast.S;
         U     = mast.U;
         L     = mast.L;
         vista = mast.vista;
         dic   = new Diccionario(L, S);
         area  = "TS";
         try
         {
             llenarElementos();
             visibilizarPestaña(pnlOpciones, lnkOpciones);
             DataTable dt   = BDF.obtenerDatos(S, F, L);
             DataRow   rowF = dt.Rows[0];
             lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
             lblVClasif.Text = rowF["Classification"].ToString();
             lblVTS.Text     = rowF["TS"].ToString();
             lblVTelef.Text  = rowF["Phone"].ToString();
             if (vista)
             {
                 cargarConSeguridad();
             }
         }
         catch
         {
         }
     }
     mst = (mast)Master;
     mst.contentCallEvent += new EventHandler(eliminarAviso);
 }
Ejemplo n.º 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            M     = mast.M;
            L     = mast.L;
            S     = mast.S;
            F     = mast.F;
            U     = mast.U;
            vista = mast.vista;
            mst   = (mast)Master;
            mst.contentCallEvent += new EventHandler(modificar);
            dic = new Diccionario(L, S);

            if (!IsPostBack)
            {
                BDF  = new BDFamilia();
                BDM  = new BDMiembro();
                bdTS = new BDTS();
                dic  = new Diccionario(L, S);
                try
                {
                    valoresiniciales();
                    DataTable dt   = BDF.obtenerDatos(S, F, L);
                    DataRow   rowF = dt.Rows[0];
                    lblVDirec.Text  = rowF["Address"].ToString() + ", " + rowF["Area"].ToString();
                    lblVClasif.Text = rowF["Classification"].ToString();
                    lblVTS.Text     = rowF["TS"].ToString();
                    lblVTelef.Text  = rowF["Phone"].ToString();
                    if (vista)
                    {
                        cargarConSeguridad();
                    }
                }
                catch
                {
                }
            }
        }