public ActionResult DeleteRuleTopicInfo(string TopicMajor, string TopicLevel, string TopicType, string RuleName) { ExamRuleModel models = new ExamRuleModel(); var Result = models.DeleteRuleTopicInfo(TopicMajor, TopicLevel, TopicType, RuleName); return(Json(new { Result, RuleGrList = models.RuleTopicList }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetRuleSubjectName(string model) { ExamRuleModel models = new ExamRuleModel(); models.GetRuleSubjectList(model); return(Json(new { ListTopic = models.ListTopic }, JsonRequestBehavior.AllowGet)); }
public ActionResult DeleteRuleInfo(int model) { ExamRuleModel models = new ExamRuleModel(); models.Delete_ExamRule(model); return(Json(new { tableData = models.ListExamRule }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetRuleInfo(string ExamType, string SubjectName, string RuleName) { ExamRuleModel model = new ExamRuleModel(); model.GetRuleName(ExamType, SubjectName, RuleName); return(Json(new { tableData = model.ListExamRule, VExamRule = model.VExamRule, LExamType = model.LExamType }, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveRuleInfo(ExamRuleModel model) { var username = this.UserNameContext; var Result = model.SaveRuleInfo(username); model.SaveTopicInfo(model.VExamRule.RuleName); return(Json(new { Result, tableData = model.ListExamRule, RuleGrList = model.RuleTopicList }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetSubjectList(string model, string subjectname) { ExamRuleModel models = new ExamRuleModel(); var subject = Data.ExamSubject.GetSubjectList(); models.GetRuleType(model); models.GetRuleSubjectList(subjectname); return(Json(new { ListTypeName = subject, RuleGrList = models.RuleTopicList, ListTopic = models.ListTopic }, JsonRequestBehavior.AllowGet)); }
public ActionResult MaintainExamRule() { ExamRuleModel model = new ExamRuleModel(); return(View(model)); }