示例#1
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
         {
         }
     }
 }
示例#2
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);
 }
示例#3
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
         {
         }
     }
 }