Exemple #1
0
        public JsonResult SelectProgramLevel()
        {
            ChoiceFillingRepository _objRepository = new ChoiceFillingRepository();
            string SelectedProgramlevel            = "";

            try
            {
                DataSet _ds = _objRepository.SELECT_tbl_Student_Ch_SelecedDiscipline(Session["studentid"].ToString(), Session["ApplicationNo"].ToString());
                if (_ds != null)
                {
                    if (_ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow _dr in _ds.Tables[0].Rows)
                        {
                            SelectedProgramlevel = _dr["SelectedProgramlevel"].ToString();
                        }
                    }
                }
            }
            catch (System.Exception)
            {
                throw;
            }
            return(Json(new
            {
                sd = SelectedProgramlevel
            },
                        JsonRequestBehavior.AllowGet
                        ));
        }
Exemple #2
0
        public JsonResult SelectSDicipline()
        {
            ChoiceFillingRepository _objRepository          = new ChoiceFillingRepository();
            List <mStudent_Ch_SelectedDisciplines> _listDPL = new List <mStudent_Ch_SelectedDisciplines>();

            try
            {
                DataSet _ds = _objRepository.SELECT_tbl_Student_Ch_SelecedDiscipline(Session["studentid"].ToString(), Session["ApplicationNo"].ToString());
                if (_ds != null)
                {
                    if (_ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow _dr in _ds.Tables[0].Rows)
                        {
                            _listDPL.Add(new mStudent_Ch_SelectedDisciplines
                            {
                                Discipline_ID      = _dr["Discipline_ID"].ToString(),
                                ProgrammeLevel_IDs = _dr["ProgrammeLevel_IDs"].ToString()
                            });
                        }
                    }
                }
            }
            catch (System.Exception)
            {
                throw;
            }
            return(Json(new
            {
                sd = _listDPL
            },
                        JsonRequestBehavior.AllowGet
                        ));
        }