Пример #1
0
        public JsonResult SearchAllocationRepost(string SearchBy, string ClassID, string SectionID, string AdmissionNo, string RouteID)
        {
            List <StudentMaster> objStudent = new List <StudentMaster>();
            List <Route>         objRoute   = new List <Route>();
            BALCommon            CSvc       = new BALCommon(ConStr);

            try
            {
                if (SearchBy == "Student")
                {
                    objStudent = CSvc.GetStudentList(_OrgnisationID, _Financialyearid, Convert.ToInt32(ClassID), Convert.ToInt32(SectionID), 0, AdmissionNo).Where(x => x.TPCostID > 0).ToList();
                }
                else if (SearchBy == "Route")
                {
                    objStudent = CSvc.GetStudentList(_OrgnisationID, _Financialyearid, 0, 0, Convert.ToInt32(RouteID), "").Where(x => x.TPCostID > 0).OrderBy(x => x.RouteName).ToList();
                }
                return(Json(objStudent, JsonRequestBehavior.AllowGet));
            }
            catch { }
            return(Json("No Record Found", JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        //public ActionResult StudentPromote()
        //{
        //    StudentPromote Obj = new StudentPromote();
        //    List<ClassMaster> _ClassList = new List<ClassMaster>();
        //    try
        //    {
        //        Obj.FinancialYearID = _Financialyearid;
        //        Obj.SectionList = new List<SectionMaster>();
        //        Obj.ClassList = BALObj.GetClassList(_OrgnisationID);
        //    }
        //    catch { }
        //    return View(Obj);
        //}
        //[HttpPost]
        //public ActionResult StudentPromote(StudnetRollNo Model)
        //{
        //    int res = 0;
        //    try
        //    {
        //        foreach (var master in Model.StudentList)
        //        {
        //            master.FinancialYear = _Financialyearid;
        //            master.SchoolID = _OrgnisationID;
        //            master.Modifiedby = WebSecurity.CurrentUserName;
        //            master.Modifieddate = DateTime.Now;
        //            master.RollNo = string.IsNullOrEmpty(master.RollNo) ? "0" : master.RollNo;
        //            res += CSvc.UpdateStudentDetails(master);
        //        }
        //    }
        //    catch
        //    {

        //    }
        //    TempData[Constants.MessageInfo.SUCCESS] = res + " record(s) updated successfully.";
        //    return RedirectToAction("StudentPromote");
        //}
        #region Promote Student
        public JsonResult GetStudentListToPromote(string ClassID, string SectionID, string FinancialYearID)
        {
            List <StudentMaster> obj  = new List <StudentMaster>();
            BALCommon            CSvc = new BALCommon(ConStr);

            try
            {
                obj = CSvc.GetStudentList(_OrgnisationID, Convert.ToInt32(FinancialYearID), Convert.ToInt32(ClassID), Convert.ToInt32(SectionID), 0, "");
            }
            catch { }
            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public JsonResult GetStudentList(string ClassID, string SectionID, string AdmissionNo)
        {
            List <StudentMaster> obj  = new List <StudentMaster>();
            BALCommon            CSvc = new BALCommon(ConStr);

            try
            {
                obj = CSvc.GetStudentList(_OrgnisationID, _Financialyearid, Convert.ToInt32(ClassID), Convert.ToInt32(SectionID), 0, AdmissionNo);
            }
            catch { }
            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
Пример #4
0
        public PartialViewResult GenerateIDCard(string ClassID, string SectionID, string CardType)
        {
            List <StudentMaster> objStudent = new List <StudentMaster>();
            IDCard    IDCardDetails         = new IDCard();
            BALCommon CSvc = new BALCommon(ConStr);

            try
            {
                objStudent = CSvc.GetStudentList(_OrgnisationID, _Financialyearid, Convert.ToInt32(ClassID), Convert.ToInt32(SectionID), 0, "");
                IDCardDetails.OragnisationDetails = CSvc.GetOragnisationDetails(_OrgnisationID);
                IDCardDetails.StudentDetailsList  = objStudent;
                IDCardDetails.CardType            = CardType;
            }
            catch { }


            return(PartialView("IDCard", IDCardDetails));
        }