Ejemplo n.º 1
0
        public void hidedetails(string id2)
        {
            edituploaddoc ff = new edituploaddoc();
            Table         tt = new Table();

            if (id2 == "1")
            {
                ff.tablesslc.Visible  = false;
                ff.tablesslc1.Visible = false;
            }
            else if (id2 == "2")
            {
                ff.tablepuc.Visible  = false;
                ff.tablepuc1.Visible = false;
            }
            else if (id2 == "3")
            {
                ff.tabledip.Visible  = false;
                ff.tabledip1.Visible = false;
            }
            else if (id2 == "4")
            {
                ff.tablegrad.Visible  = false;
                ff.tablegrad1.Visible = false;
            }
            else if (id2 == "5")
            {
                ff.tablepg.Visible  = false;
                ff.tablepg1.Visible = false;
            }
            else if (id2 == "6")
            {
                ff.tableid.Visible  = false;
                ff.tableid1.Visible = false;
            }
            else
            {
                ff.tableadd.Visible  = false;
                ff.tableadd1.Visible = false;
            }
        }
Ejemplo n.º 2
0
        public static int deleteRecord(string id1)
        {
            edituploaddoc ed = new edituploaddoc();
            int rv;
            int zero = 0;
            string id = HttpContext.Current.Session["userid"].ToString();
            if (id1 == "1")
            {
                bool ss = deleteimage("delsslc", AHRMS1.usae.specupload.getuniid(id, "spgetsslcid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {

                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "2")
            {
                bool ss = deleteimage("delpuc", AHRMS1.usae.specupload.getuniid(id, "spgetpucid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {

                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "3")
            {
                bool ss = deleteimage("deldip", AHRMS1.usae.specupload.getuniid(id, "spgetdipid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "4")
            {
                bool ss = deleteimage("delgrad", AHRMS1.usae.specupload.getuniid(id, "spgetgradid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "5")
            {
                bool ss = deleteimage("delpg", AHRMS1.usae.specupload.getuniid(id, "spgetpgid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "6")
            {
                bool ss = deleteimage("delid", AHRMS1.usae.specpersonusr.getuniid().ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {

                    rv = 1 / zero;
                }
                return rv;
            }
            if (id1 == "7")
            {
                bool ss = deleteimage("deladd", AHRMS1.usae.specpersonusr.getuniid().ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return rv;
            }
            return 1;
        }
Ejemplo n.º 3
0
 public void hidedetails(string id2)
 {
     edituploaddoc ff = new edituploaddoc();
     Table tt = new Table();
     if (id2 == "1")
     {
       ff.tablesslc.Visible = false;
        ff.tablesslc1.Visible = false;
     }
     else if (id2 == "2")
     {
         ff.tablepuc.Visible = false;
         ff.tablepuc1.Visible = false;
     }
     else if (id2 == "3")
     {
         ff.tabledip.Visible = false;
         ff.tabledip1.Visible = false;
     }
     else if (id2 == "4")
     {
         ff.tablegrad.Visible = false;
         ff.tablegrad1.Visible = false;
     }
     else if (id2 == "5")
     {
         ff.tablepg.Visible = false;
         ff.tablepg1.Visible = false;
     }
     else if (id2 == "6")
     {
         ff.tableid.Visible = false;
         ff.tableid1.Visible = false;
     }
     else
     {
         ff.tableadd.Visible = false;
         ff.tableadd1.Visible = false;
     }
 }
Ejemplo n.º 4
0
        public static int deleteRecord(string id1)
        {
            edituploaddoc ed = new edituploaddoc();
            int           rv;
            int           zero = 0;
            string        id   = HttpContext.Current.Session["userid"].ToString();

            if (id1 == "1")
            {
                bool ss = deleteimage("delsslc", AHRMS1.usae.specupload.getuniid(id, "spgetsslcid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "2")
            {
                bool ss = deleteimage("delpuc", AHRMS1.usae.specupload.getuniid(id, "spgetpucid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "3")
            {
                bool ss = deleteimage("deldip", AHRMS1.usae.specupload.getuniid(id, "spgetdipid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "4")
            {
                bool ss = deleteimage("delgrad", AHRMS1.usae.specupload.getuniid(id, "spgetgradid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "5")
            {
                bool ss = deleteimage("delpg", AHRMS1.usae.specupload.getuniid(id, "spgetpgid").ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "6")
            {
                bool ss = deleteimage("delid", AHRMS1.usae.specpersonusr.getuniid().ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            if (id1 == "7")
            {
                bool ss = deleteimage("deladd", AHRMS1.usae.specpersonusr.getuniid().ToString());
                if (ss)
                {
                    ed.hidedetails(id1);
                    rv = 1 / 1;
                }
                else
                {
                    rv = 1 / zero;
                }
                return(rv);
            }
            return(1);
        }