Esempio n. 1
0
 public void llenarIds()
 {
     if (!String.IsNullOrEmpty(F))
     {
         pnlMiembroSel.Visible = false;
         pnlFamiliaSel.Visible = true;
         lblFamiliaSel.Text    = "<b>" + dic.familia + ":</b>";
         lnkFamiliaSel.Text    = S + F;
         DataTable dtFaro = new BDFamilia().obtenerDatos(S, F, L);
         if (dtFaro.Rows.Count > 0)
         {
             String faro = dtFaro.Rows[0]["RFaroNumber"].ToString();
             if (!String.IsNullOrEmpty(faro) && !faro.Equals("0"))
             {
                 lblFaroSel.Text    = "&nbsp;<b>" + "Faro" + ":</b>&nbsp;" + faro;
                 lblFaroSel.Visible = true;
             }
         }
     }
     if (!String.IsNullOrEmpty(M))
     {
         DataTable dtMiembro = new BDMiembro().obtenerDatos(S, M, L);;
         lblMiembroSel.Text = "<b>" + dic.miembro + ":</b>";
         String nombreCompleto = dtMiembro.Rows[0]["FirstNames"].ToString() + " " + dtMiembro.Rows[0]["LastNames"].ToString();
         lblNombreMiembroSel.Text = nombreCompleto;
         lnkMiembroSel.Text       = M;
         pnlMiembroSel.Visible    = true;
         F = dtMiembro.Rows[0]["FamilyId"].ToString();
         lblFamiliaSel.Text    = "<b>" + dic.familia + ":</b>";
         lnkFamiliaSel.Text    = S + F;
         pnlFamiliaSel.Visible = true;
     }
 }
        //////////////////////////////////////////////////////////////-EVENTOS-////////////////////////////////////////////////////////

        protected void Page_Load(object sender, EventArgs e)
        {
            M   = mast.M;
            L   = mast.L;
            S   = mast.S;
            F   = mast.F;
            U   = mast.U;
            BDM = new BDMiembro();
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            mst = (mast)Master;
            mst.contentCallEvent += new EventHandler(accionar);

            if (!IsPostBack)
            {
                try
                {
                    traducir();
                    LlenarCombos();
                    LlenarHistorial(S);
                }
                catch (Exception ex)
                {
                }
            }
        }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     mst = (mast)Master;
     dic = new Diccionario(L, S);
     mst.contentCallEvent += new EventHandler(accionar);
     if (!IsPostBack)
     {
         BDM = new BDMiembro();
         APD = new BDAPAD();
         dic = new Diccionario(L, S);
         try
         {
             valoresiniciales();
         }
         catch (Exception ex)
         {
         }
     }
     else
     {
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            M = mast.M;
            L = mast.L;
            S = mast.S;
            F = mast.F;
            U = mast.U;

            mst = (mast)Master;
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            BDM = new BDMiembro();
            // mst.contentCallEvent += new EventHandler(accionar);
            if (!IsPostBack)
            {
                dtAsistenciasAux = new DataTable();
                dtAsistencias    = new DataTable();
                mst = (mast)Master;
                BDM = new BDMiembro();
                APD = new BDAPAD();
                try
                {
                    ValoresIniciales();
                }
                catch (Exception ex)
                {
                    mst.mostrarMsjAdvNtf(ex.Message);
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            M = mast.M;
            L = mast.L;
            S = mast.S;
            F = mast.F;
            U = mast.U;

            mst = (mast)Master;
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            BDM = new BDMiembro();
            // mst.contentCallEvent += new EventHandler(accionar);
            if (!IsPostBack)
            {
                mst = (mast)Master;
                BDM = new BDMiembro();
                APD = new BDAPAD();
                try
                {
                    if (string.IsNullOrEmpty(M))
                    {
                        pnltodo.Visible = false;
                    }
                    else
                    {
                        ValoresIniciales();
                    }
                }
                catch (Exception ex)
                {
                    mst.mostrarMsjAdvNtf(ex.Message);
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     BDM = new BDMiembro();
     APD = new BDAPAD();
     dic = new Diccionario(L, S);
     mst = (mast)Master;
     if (!IsPostBack)
     {
         try
         {
             Traducir();
             llenarhistorial();
             llenarcombos();
             llenarmese();
         }
         catch (Exception ex)
         {
             mst.mostrarMsjAdvNtf(ex.Message);
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     BDM = new BDMiembro();
     APD = new BDAPAD();
     dic = new Diccionario(L, S);
     mst = (mast)Master;
     mst.contentCallEvent += new EventHandler(accionar);
     if (!IsPostBack)
     {
         if (!mst.verificarFuncion("BAP"))
         {
             Ingreso.Visible = false;
         }
         if (!mst.verificarFuncion("CIAP") == false)
         {
             gvhistorial.Visible = false;
         }
         try
         {
             traducir();
             llenarcombos();
         }
         catch (Exception ex)
         {
         }
     }
 }
Esempio n. 8
0
 protected void iniciarComponentes()
 {
     MBD                        = new BDMiembro();
     U                          = Request.ServerVariables["AUTH_USER"].ToString();
     L                          = UBD.consultarIdioma(U);
     S                          = UBD.consultarSitio(U);
     M                          = (String)Session["M"];
     F                          = (String)Session["F"];
     P                          = (String)Session["P"];
     vista                      = false;
     lblUsuario.Text            = U;
     dic                        = new Diccionario(L, S);
     imgCommonHopeLogo.ImageUrl = "~/Images/FamiliasdeEsperanza_Logo_RGBHeader.png";
     lblBuscar.Text             = dic.buscar;
     lblMenu.Text               = dic.menu;
     lblRepetir.Text            = dic.repetir;
     lblSitio.Text              = UBD.consultarSNombre(U);
     lnkChanPref.Text           = dic.cambiarPref;
     lnkChanPsw.Text            = dic.cambiarPsw;
     lnkLogout.Text             = dic.cerrarSesion;
     //colorMsj = System.Drawing.ColorTranslator.FromHtml("#179cd8");
     colorMsjAdv = System.Drawing.ColorTranslator.FromHtml("#909090");
     colorMsj    = System.Drawing.ColorTranslator.FromHtml("#0285c2");
     llenarMenu();
     llenarIds();
     seguridad();
 }
Esempio n. 9
0
        //////////////////////////////////////////////////////////////-EVENTOS-////////////////////////////////////////////////////////
        protected void Page_Load(object sender, EventArgs e)
        {
            M = mast.M;
            L = mast.L;
            S = mast.S;
            F = mast.F;
            U = mast.U;

            BDM = new BDMiembro();
            APD = new BDAPAD();
            dic = new Diccionario(L, S);

            //carpeta = locacion;
            mst = (mast)Master;
            if (!IsPostBack)
            {
                try
                {
                    if (string.IsNullOrEmpty(M))
                    {
                        tbfiltro.Visible = false;
                        ingreso.Visible  = false;
                    }
                    else
                    {
                        Site   = S;
                        Member = M;
                        valoresiniciales(Site, Member);
                    }
                }
                catch (Exception ex)
                {
                }
            }
        }
Esempio n. 10
0
        protected void lblBuscar_Click(object sender, EventArgs e)
        {
            String memberId = txbMemberId.Text;
            String familyId = txbFamilyId.Text;
            String faroId   = txbFaroId.Text;

            if (!String.IsNullOrEmpty(memberId) && String.IsNullOrEmpty(familyId) && String.IsNullOrEmpty(faroId))
            {
                DataTable dtMiembro = new BDMiembro().obtenerDatos(S, memberId, L);
                if (dtMiembro.Rows.Count > 0)
                {
                    Session["M"] = memberId;
                    Response.Redirect("~/MISC/PerfilMiembro.aspx");
                }
                else
                {
                    mst.mostrarMsjAdvNtf(dic.msjNoEncontroMiembro);
                }
            }
            else if (String.IsNullOrEmpty(memberId) && !String.IsNullOrEmpty(familyId) && String.IsNullOrEmpty(faroId))
            {
                DataTable dtFamilia = new BDFamilia().obtenerDatos(S, familyId, L);
                if (dtFamilia.Rows.Count > 0)
                {
                    Session["F"] = familyId;
                    Response.Redirect("~/MISC/PerfilFamilia.aspx");
                }
                else
                {
                    mst.mostrarMsjAdvNtf(dic.msjNoEncontroFamilia);
                }
            }
            else if (String.IsNullOrEmpty(memberId) && String.IsNullOrEmpty(familyId) && !String.IsNullOrEmpty(faroId))
            {
                String familyIdFaro = "";
                familyIdFaro = (new BDFamilia().obtenerIdAPartirDeFaro(S, faroId)) + "";
                DataTable dtFamilia = new BDFamilia().obtenerDatos(S, familyIdFaro, L);
                if (dtFamilia.Rows.Count > 0)
                {
                    Session["F"] = familyIdFaro;
                    Response.Redirect("~/MISC/PerfilFamilia.aspx");
                }
                else
                {
                    mst.mostrarMsjAdvNtf(dic.msjNoEncontroFamilia);
                }
            }
            else
            {
                mst.mostrarMsjAdvNtf(dic.msjDebeingresarUno);
            }
        }
Esempio n. 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     M = mast.M;
     L = mast.L;
     S = mast.S;
     F = mast.F;
     if (S.Equals("E") || S.Equals("A"))
     {
         tblAfiliacion.Visible = false;
         gdvPadres.Visible     = false;
         gdvPadrinos.Visible   = false;
         tblEduc.Visible       = false;
         pnlAvisos.Visible     = false;
     }
     if (!IsPostBack)
     {
         mst = (mast)Master;
         try
         {
             BDM = new BDMiembro();
             dic = new Diccionario(L, S);
             string consulta   = "SELECT COUNT(*) conteo FROM dbo.Member WHERE Project='" + S + "' AND RecordStatus=' ' AND MemberId='" + M + "' AND AffiliationStatus='AFIL' ";
             int    apadrinado = ObtenerEntero(consulta, "conteo");
             if (apadrinado == 1)
             {
                 agregaPalabras();
                 agregaInfoGen();
                 agregaDerechos();
                 agregaAvisos();
                 agregaPadrinos();
                 agregaPadres();
             }
             else
             {
                 agregaPalabras();
                 agregaInfoGen();
                 agregaDerechos();
                 agregaAvisos();
                 agregaPadres();
                 //tblAfiliacion.Visible = false;
                 pnlPadrinos.Visible = false;
             }
         }
         catch
         {
         }
     }
 }
Esempio n. 12
0
 //////////////////////////////////////////////////////////////-EVENTOS-////////////////////////////////////////////////////////
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     P   = mast.P;
     dic = new Diccionario(L, S);
     P   = (String)Session["P"];
     mst = (mast)Master;
     APD = new BDAPAD();
     mst.contentCallEvent += new EventHandler(accionar);
     if (String.IsNullOrEmpty(P))
     {
         string notiene;
         if (L == "es")
         {
             notiene = "No has seleccionado ningún padrino";
         }
         else
         {
             notiene = "You have not selected any sponsors";
         }
         numAccion = 1;
         mst.mostrarMsjOpcionMdl(notiene);
     }
     else
     {
         if (!IsPostBack)
         {
             try
             {
                 BDM = new BDMiembro();
                 APD = new BDAPAD();
                 traducir();
                 llenarhistorial();
                 apadrinado();
             }
             catch (Exception ex)
             {
                 mst.mostrarMsjAdvNtf("Error: " + ex.Message);
             }
         }
     }
 }
Esempio n. 13
0
        //////////////////////////////////////////////////////////////-EVENTOS-////////////////////////////////////////////////////////

        protected void Page_Load(object sender, EventArgs e)
        {
            M = mast.M;
            L = mast.L;
            S = mast.S;
            F = mast.F;
            U = mast.U;

            mst = (mast)Master;
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            BDM = new BDMiembro();
            mst.contentCallEvent += new EventHandler(accionar);
            if (!IsPostBack)
            {
                mst = (mast)Master;
                BDM = new BDMiembro();
                APD = new BDAPAD();
                try
                {
                    if (string.IsNullOrEmpty(M))
                    {
                        gvhistorial.Visible = false;
                        tbregistro.Visible  = false;
                        tbfiltros.Visible   = false;
                    }
                    else
                    {
                        Site   = S;
                        Member = M;
                        valoresiniciales(Site, Member);
                    }
                }
                catch (Exception ex)
                {
                    mst.mostrarMsjAdvNtf(ex.Message);
                }
            }
        }
Esempio n. 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     P   = mast.P;
     P   = (String)Session["P"];
     mst = (mast)Master;
     BDM = new BDMiembro();
     APD = new BDAPAD();
     dic = new Diccionario(L, S);
     mst.contentCallEvent += new EventHandler(accionar);
     if (string.IsNullOrEmpty(P))
     {
         string notiene;
         if (L == "es")
         {
             notiene = "No has seleccionado ningún padrino";
         }
         else
         {
             notiene = "You have not selected any sponsors";
         }
         numAccion = 1;
         mst.mostrarMsjOpcionMdl(notiene);
     }
     if (!Page.IsPostBack)
     {
         try
         {
             valoresiniciales();
         }
         catch (Exception ex)
         {
         }
     }
 }
Esempio n. 15
0
        protected void btnGuardar_Click(object sender, EventArgs e)
        {
            String memberId = txbMiembro.Text;
            String familyId = txbFamilia.Text;

            if (!String.IsNullOrEmpty(memberId) && String.IsNullOrEmpty(familyId))
            {
                DataTable dtMiembro = new BDMiembro().obtenerDatos(S, memberId, L);
                if (dtMiembro.Rows.Count > 0)
                {
                    guardar(memberId);
                }
                else
                {
                    mst.mostrarMsjAdvNtf(dic.msjNoEncontroMiembro);
                }
            }
            else if (String.IsNullOrEmpty(memberId) && !String.IsNullOrEmpty(familyId))
            {
                DataTable dtFamilia = new BDFamilia().obtenerDatos(S, familyId, L);
                if (dtFamilia.Rows.Count > 0)
                {
                    gdvMiembros.Columns[0].Visible = true;
                    gdvMiembros.DataSource         = new BDFamilia().obtenerActivos(S, familyId, L);
                    gdvMiembros.DataBind();
                    gdvMiembros.Columns[0].Visible = false;
                    pnlActualizar.Visible          = false;
                    mst.mostrarModalYContenido(pnlMiembros);
                }
                else
                {
                    mst.mostrarMsjAdvNtf(dic.msjNoEncontroFamilia);
                }
            }
            else
            {
                mst.mostrarMsjAdvNtf(dic.msjDebeingresarUno);
            }
        }
Esempio n. 16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     P   = mast.P;
     mst = (mast)Master;
     BDM = new BDMiembro();
     APD = new BDAPAD();
     dic = new Diccionario(L, S);
     P   = (String)Session["P"];
     mst.contentCallEvent += new EventHandler(accionar);
     if (String.IsNullOrEmpty(P))
     {
         string mensaje;
         if (L == "es")
         {
             mensaje = "No has seleccionado ningún padrino";
         }
         else
         {
             mensaje = "You have not selected any sponsors";
         }
         mst.mostrarMsjOpcionMdl(mensaje);
     }
     if (!IsPostBack)
     {
         try
         {
             LlenarInformacion();
             Apadrinados();
         }
         catch (Exception ex)
         {
         }
     }
 }
Esempio n. 17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     M   = mast.M;
     L   = mast.L;
     S   = mast.S;
     F   = mast.F;
     U   = mast.U;
     BDM = new BDMiembro();
     APD = new BDAPAD();
     dic = new Diccionario(L, S);
     mst = (mast)Master;
     if (!IsPostBack)
     {
         try
         {
             traducir();
             llenarcombos();
         }
         catch (Exception ex)
         {
         }
     }
 }
Esempio n. 18
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
                {
                }
            }
        }
Esempio n. 19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            M = mast.M;
            L = mast.L;
            S = mast.S;
            F = mast.F;
            U = mast.U;

            mst = (mast)Master;
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            BDM = new BDMiembro();

            if (!IsPostBack)
            {
                mst = (mast)Master;
                BDM = new BDMiembro();
                APD = new BDAPAD();
                try
                {
                    // ValoresIniciales();
                    lnkb1.Text = "<span class='fa fa-trash'> <p>" + dic.eliminar + "</p></span>";
                    lnkb2.Text = "<span class='fa fa-check'> <p>" + dic.aceptar + "</p></span>";
                    lnkb3.Text = "<span class='fa fa-save'> <p>" + dic.guardar + "</p></span>";
                    lnkb4.Text = "<span class='fa fa-edit'> <p>" + dic.ModificarAPAD + "</p></span>";
                    lnkb5.Text = "<span class='fa fa-trash'> <p>" + dic.eliminar + "</p></span>";
                    lnkb6.Text = "<span class='fa fa-check'> <p>" + dic.aceptar + "</p></span>";
                    lnkb7.Text = "<span class='fa fa-save'> <p>" + dic.guardar + "</p></span>";
                    lnkb8.Text = "<span class='fa fa-edit'> <p>" + dic.ModificarAPAD + "</p></span>";
                }
                catch (Exception ex)
                {
                    mst.mostrarMsjAdvNtf(ex.Message);
                }
            }
        }
Esempio n. 20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            M   = mast.M;
            L   = mast.L;
            S   = mast.S;
            F   = mast.F;
            U   = mast.U;
            mst = (mast)Master;
            BDM = new BDMiembro();
            APD = new BDAPAD();
            dic = new Diccionario(L, S);
            determinarcategoria();

            if (!Page.IsPostBack)
            {
                try
                {
                    valoresiniciales();
                }
                catch (Exception ex)
                {
                }
            }
        }
Esempio n. 21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            M   = mast.M;
            L   = mast.L;
            S   = mast.S;
            F   = mast.F;
            U   = mast.U;
            mst = (mast)Master;
            dic = new Diccionario(L, S);

            if (!IsPostBack)
            {
                BDM = new BDMiembro();
                APD = new BDAPAD();
                dic = new Diccionario(L, S);
                try
                {
                    LLenarIngreso();
                }
                catch (Exception ex)
                {
                }
            }
        }
Esempio n. 22
0
        //////////////////////////////////////////////////////////////-EVENTOS-////////////////////////////////////////////////////////
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                M   = mast.M;
                L   = mast.L;
                S   = mast.S;
                P   = mast.P;
                U   = mast.U;
                F   = mast.F;
                dic = new Diccionario(L, S);
                mst = (mast)Master;
                APD = new BDAPAD();
                if (!IsPostBack)
                {
                    mst = (mast)Master;



                    BDM = new BDMiembro();
                    BDF = new BDFamilia();
                    APD = new BDAPAD();
                    dic = new Diccionario(L, S);
                    DataTable dt = APD.InfoGen(S, M, L);
                    try
                    {
                        string A = dt.Rows[0][1].ToString();
                        if (A == "Afiliado" || A == "Affiliated")
                        {
                            ruta     = @"\\SVRAPP\FamilyFotos\Apadrinados";
                            desicion = 0;

                            agregaAvisos();
                            Padrinos(S, M);

                            traducir();
                            llenarcombos(L, S);
                            registrocarta();
                            registroregalo();
                            InformacionPersonal();
                            avisoretormar();
                            Foto(S, M, desicion, ruta);
                            VerificarPadrinos();
                        }
                        else if (string.IsNullOrEmpty(A))
                        {
                        }
                        else
                        {
                            ruta     = @"\\SVRAPP\FamilyFotos\ExApadrinados";
                            desicion = 1;
                            GraduadoDesa();
                            agregaAvisos();
                            VerificarPadrinos();
                            traducir();
                            InformacionPersonal();
                            Foto(S, M, desicion, ruta);
                            btnRetomar.Visible = false;
                        }
                    }
                    catch (Exception ex)
                    {
                    }
                }
                if (IsPostBack)
                {
                    BDM = new BDMiembro();
                    APD = new BDAPAD();
                }
                mst = (mast)Master;
                // mst.contentCallEvent += EventHandler();
            }

            catch (Exception ez)
            {
                Session["M"] = null;
                Session["F"] = null;
            }
        }