Beispiel #1
0
        public JsonResult PromoteStudent(string[] AdmissionNo, string PrevFYID, string NextFYID, string ClassID, string SectionID)
        {
            string     result        = "";
            DataTable  DTAdmissionNo = new DataTable();
            BALStudent CSvc          = new BALStudent(ConStr);

            try
            {
                if (AdmissionNo.Count() > 0)
                {
                    DTAdmissionNo.Columns.Add("Cnt");
                    DTAdmissionNo.Columns.Add("strValue");
                    for (int l = 0; l < AdmissionNo.Count(); l++)
                    {
                        DataRow dr = DTAdmissionNo.NewRow();
                        dr[0] = (l + 1);
                        dr[1] = AdmissionNo[l];
                        DTAdmissionNo.Rows.Add(dr);
                    }
                    result = CSvc.PromoteStudent(DTAdmissionNo, Convert.ToInt32(PrevFYID), Convert.ToInt32(NextFYID), Convert.ToInt32(ClassID), Convert.ToInt32(SectionID));
                }
            }
            catch { }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public StudentController()
        {
            CSvc   = new BALCommon(ConStr);
            BALObj = new BALStudent(ConStr);
            SessionInfo _SessionInfo = CSvc.GetSessionDetails(WebSecurity.CurrentUserName, DateTime.Now);

            _OrgnisationID   = Convert.ToInt32(_SessionInfo.SchoolID);
            _Financialyearid = Convert.ToInt32(_SessionInfo.FinancialYearID);
            _UserType        = Convert.ToInt32(_SessionInfo.UserType);
            _UserTypeBaseID  = Convert.ToInt32(_SessionInfo.UserTypeBaseID);
        }