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; }
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 { } } }
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; }
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; } } }
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 { } } }
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); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { U = mast.U; L = mast.L; S = mast.S; if (S.Equals("E") || S.Equals("A")) { mst.redir("MISC/Buscar.aspx"); } bdGEN = new BDGEN(); dic = new Diccionario(L, S); colocarNombres(); } mst = (mast)Master; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { U = mast.U; L = mast.L; S = mast.S; bdGEN = new BDGEN(); dic = new Diccionario(L, S); colocarNombres(); llenarAreas(); llenarMeses(); llenarTS(); llenarTiposAfil(); configurarSiEmp(); } mst = (mast)Master; }
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; }
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 { } } }
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); }