protected void Save_Past_Edu(object sender, EventArgs e)
        {
            int           appid = Int32.Parse(Session["appid"].ToString());
            PastEduFields ob    = new PastEduFields();
            Service       my    = new Service();

            try
            {
                ob.AppID         = Int32.Parse(Session["appid"].ToString());
                ob.DipBoard      = Dboard.Text;
                ob.SscBoard      = Sboard.Text;
                ob.SscOverallPer = float.Parse(Spercent.Text);
                ob.SscOutOf      = int.Parse(SoutOF.Text);
                ob.DipOverallPer = int.Parse(Dpercent.Text);
                ob.DipTotObt     = int.Parse(DtotMarObt.Text);
                ob.SscTotObt     = Int32.Parse(StotMarObt.Text);
                string x = my.PastEdu_Details_Dip(ob);
                Response.Write(x);
                string url    = "/Student/UploadDocuments.aspx";
                string script = "window.onload = function(){ alert('";
                script += x;
                script += "');";
                script += "window.location = '";
                script += url;
                script += "'; }";
                ClientScript.RegisterStartupScript(this.GetType(), "Redirect", script, true);
            }
            catch (Exception ex)
            {
                Response.Write(ex);
            }
        }
        public void Calculate(object sender, EventArgs e)
        {
            int           appid = Int32.Parse(Session["appid"].ToString());
            PastEduFields ob    = new PastEduFields();
            Service       my    = new Service();

            ob.SscTotObt = Int32.Parse(StotMarObt.Text);
            ob.SscOutOf  = int.Parse(SoutOF.Text);
            ob.DipTotObt = int.Parse(DtotMarObt.Text);
            ob.Doutof    = int.Parse(DoutOF.Text);
            PastEduFields om = my.CalculateMarks(ob);

            Response.Write(om.SscOverallPer.ToString());
            Response.Write(om.DipOverallPer.ToString());
            (Spercent.Text) = om.SscOverallPer.ToString();
            Dpercent.Text   = om.DipOverallPer.ToString();
            Button1.Enabled = true;
        }
Exemplo n.º 3
0
        protected void Save_Past_Edu(object sender, EventArgs e)
        {
            int           appid = Int32.Parse(Session["appid"].ToString());
            PastEduFields ob    = new PastEduFields();
            Service       my    = new Service();

            try
            {
                ob.AppID           = Int32.Parse(Session["appid"].ToString());
                ob.CetRoll         = Cetroll.Text;
                ob.CetScore        = Int32.Parse(Cetscore.Text);
                ob.JeeRoll         = Jeeroll.Text;
                ob.JeeScore        = Int32.Parse(Jeescore.Text);
                ob.SscBoard        = Sboard.Text;
                ob.SscOverallPer   = float.Parse(Spercent.Text);
                ob.SscTotObt       = Int32.Parse(StotMarObt.Text);
                ob.HsscBoard       = HBoard.Text;
                ob.HsscGrade       = Hgrade.Text;
                ob.HsscMaths       = Int32.Parse(HmatMar.Text);
                ob.HsscChem        = Int32.Parse(HchemMar.Text);
                ob.HsscPhy         = Int32.Parse(HphyMar.Text);
                ob.HsscTotMarks    = Int32.Parse(HtotMar.Text);
                ob.HsscTotMarksObt = Int32.Parse(HtotMarObt.Text);
                ob.HsscPcmTot      = Int32.Parse(HpcmTot.Text);
                ob.HsscPcmPer      = float.Parse(HpcmPer.Text);
                ob.HsscOverallPer  = float.Parse(HoverallPer.Text);

                string x = my.PastEdu_Details(ob);
                Response.Write(x);
                string url    = "/Student/UploadDocuments.aspx";
                string script = "window.onload = function(){ alert('";
                script += x;
                script += "');";
                script += "window.location = '";
                script += url;
                script += "'; }";
                ClientScript.RegisterStartupScript(this.GetType(), "Redirect", script, true);
            }
            catch (Exception ex)
            {
                Response.Write(ex);
            }
        }
Exemplo n.º 4
0
        public void Calculate(object sender, EventArgs e)
        {
            int           appid = Int32.Parse(Session["appid"].ToString());
            PastEduFields ob    = new PastEduFields();
            Service       my    = new Service();


            ob.HsscMaths       = Int32.Parse(HmatMar.Text);
            ob.HsscChem        = Int32.Parse(HchemMar.Text);
            ob.HsscPhy         = Int32.Parse(HphyMar.Text);
            ob.HsscTotMarks    = Int32.Parse(HtotMar.Text);
            ob.HsscTotMarksObt = Int32.Parse(HtotMarObt.Text);
            ob.SscTotObt       = Int32.Parse(StotMarObt.Text);
            ob.SscOutOf        = int.Parse(SoutOF.Text);
            PastEduFields om = my.CalculateMarks(ob);

            HpcmTot.Text     = om.HsscPcmTot.ToString();
            HpcmPer.Text     = om.HsscPcmPer.ToString();
            HoverallPer.Text = om.HsscOverallPer.ToString();
            (Spercent.Text)  = om.SscOverallPer.ToString();
            Button1.Enabled  = true;
        }