Exemplo n.º 1
0
        private void FatchStudent()
        {
            try
            {
                EWA_UploadResult objEWA = new EWA_UploadResult();
                BL_UploadResult  objBL  = new BL_UploadResult();
                objEWA.OrgId    = Session["OrgId"].ToString();
                objEWA.UserCode = Session["UserCode"].ToString();

                DataSet ds = objBL.FatchStudent_BL(objEWA);


                if (ds.Tables[0].Rows.Count != 0)
                {
                    lblName.Text   = ds.Tables[0].Rows[0][1].ToString();
                    lblCourse.Text = ds.Tables[0].Rows[0][2].ToString();
                    lblBranch.Text = ds.Tables[0].Rows[0][3].ToString();
                    lblClass.Text  = ds.Tables[0].Rows[0][4].ToString();
                    CourseId       = Convert.ToInt32(ds.Tables[0].Rows[0][5].ToString());
                    BranchId       = Convert.ToInt32(ds.Tables[0].Rows[0][6].ToString());
                    ClassId        = Convert.ToInt32(ds.Tables[0].Rows[0][7].ToString());
                }
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }
        private void FatchCourseBranchClass()
        {
            try
            {
                EWA_UploadResult objEWA = new EWA_UploadResult();
                BL_UploadResult  objBL  = new BL_UploadResult();
                objEWA.OrgId    = Session["OrgId"].ToString();
                objEWA.UserCode = Session["UserCode"].ToString();

                DataSet ds = objBL.FatchStudent_BL(objEWA);


                if (ds.Tables[0].Rows.Count != 0)
                {
                    Session["CourseId"] = Convert.ToInt32(ds.Tables[0].Rows[0][5].ToString());
                    Session["BranchId"] = Convert.ToInt32(ds.Tables[0].Rows[0][6].ToString());
                    Session["ClassId"]  = Convert.ToInt32(ds.Tables[0].Rows[0][7].ToString());
                }
            }
            catch (Exception exp)
            {
                // GeneralErr(exp.Message.ToString());
            }
        }