public void Question_Add() { var model = new VM_Question(); M_Exam_Sys_Questions questMod = Question_FillMod(); if (Mid > 0) { questBll.GetUpdate(questMod); } else { questMod.p_id = questBll.GetInsert(questMod); } SafeSC.WriteFile(questMod.GetOPDir(), Request.Form["Optioninfo_Hid"]); if (model.IsSmall > 0)//判断当前是否是添加小题状态 { DataTable dt = questBll.SelByIDSForType(questMod.p_id.ToString()); string json = JsonConvert.SerializeObject(dt); //function.Script(this, "parent.SelQuestion(" + json + ")"); } else { function.WriteSuccessMsg("操作成功!", "QuestList?NodeID=" + model.NodeID); return; } }
public ActionResult AddEngLishQuestion() { VM_Question model = new VM_Question(mu); model.treeMod = GetTreeMod(); model.treeMod.seled = model.questMod.p_Class.ToString(); return(View(model)); }
public ActionResult AddEngLishQuestion() { VM_Question model = new VM_Question(); if (mu.UserID != model.questMod.UserID) { function.WriteErrMsg("你无权限修改该试题"); } model.treeMod = GetTreeMod(); model.treeMod.seled = model.questMod.p_Class.ToString(); return(View(model)); }
public void Question_Add() { var model = new VM_Question(); M_Exam_Sys_Questions questMod = Question_FillMod(); if (Mid > 0) { questBll.GetUpdate(questMod); } else { questMod.p_id = questBll.GetInsert(questMod); } SafeSC.WriteFile(questMod.GetOPDir(), Request.Form["Optioninfo_Hid"]); function.WriteSuccessMsg("操作成功!", "QuestList?NodeID=" + model.NodeID); }
public IActionResult Question_Add() { var model = new VM_Question(HttpContext); M_Exam_Sys_Questions questMod = Question_FillMod(); if (Mid > 0) { questBll.GetUpdate(questMod); } else { questMod.p_id = questBll.GetInsert(questMod); } SafeSC.WriteFile(questMod.GetOPDir(), RequestEx["Optioninfo_Hid"]); return(WriteOK("操作成功!", "QuestList?NodeID=" + model.NodeID)); }
public ActionResult AddEngLishQuestion() { int nodeid = DataConverter.CLng(Request.QueryString["NodeID"]); VM_Question model = new VM_Question(); model.treeMod = GetTreeMod(); if (model.questMod.p_Class > 0) { model.treeMod.seled = model.questMod.p_Class.ToString(); } else if (nodeid > 0) { model.treeMod.seled = nodeid.ToString(); } ViewBag.tagkey = knowBll.GetNamesByIDS(model.questMod.Tagkey); return(View(model)); }