Пример #1
0
        protected void btnbuscar_Click(object sender, EventArgs e)
        {
            tblEstadisticas.Visible = false;

            buscar();
            tblEstadisticas.Visible = true;
            //ClientScript.RegisterStartupScript(GetType(), "mostrarLigthbox", "MostrarLigthbox();", true);
            mst.ocultarModalYContenido(pnlModificar);
            mst.mostrarModalYContenido(pnlfiltros);
            pnlfiltros.Visible = true;
        }
Пример #2
0
 protected void btnBuscar_Click(object sender, EventArgs e)
 {
     llenarGdvReferencias();
     pnlActualizar.Visible = false;
     if (gdvReferencias.Rows.Count > 0)
     {
         mst.mostrarModalYContenido(pnlReferencias);
     }
     else
     {
         mst.mostrarMsjAdvNtf("No se encontraron referencias.");
     }
 }
Пример #3
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);
            }
        }
 protected void llenarfamilia(string familia)
 {
     familia = familia.Replace(" ", "");
     if (VerficarFamilia(familia) == false)
     {
         mst.mostrarMsjAdvNtf(dic.MsjFamilianoAfiliada);
     }
     else
     {
         mst.mostrarModalYContenido(pnlfamilia);
         sql = "SELECT FMR.MemberId AS Miembro, M.FirstNames AS Nombres, M.LastNames AS Apellidos, dbo.fn_GEN_FormatDate(M.BirthDate, 'ES') AS Nacimiento, dbo.fn_GEN_CalcularEdad(M.BirthDate) AS Edad, cdFMR.DescSpanish AS Relación_Familiar, cdAS.DescSpanish AS Estado_Afil, dbo.fn_GEN_tipoMiembro(M.Project, M.MemberId) TipoMiembro, HeadOfHouse FROM dbo.FamilyMemberRelation FMR INNER JOIN dbo.CdFamilyMemberRelationType cdFMR ON FMR.Type = cdFMR.Code INNER JOIN dbo.Member M ON FMR.Project = M.Project AND FMR.MemberId = M.MemberId AND FMR.RecordStatus = M.RecordStatus LEFT JOIN dbo.CdAffiliationStatus cdAS ON cdAS.Code = M.AffiliationStatus WHERE FMR.RecordStatus = ' ' AND FMR.Project = '" + S + "' AND FMR.FamilyId = " + familia + " AND FMR.InactiveDate IS NULL ORDER BY cdFMR.DisplayOrder ";
         llenargrid(sql, gvfamilia);
     }
 }