| | |
| | | |
| | | #region 编辑 |
| | | [CheckLogin] |
| | | public ActionResult Edit(string id = null) |
| | | public ActionResult Edit(string id = null, string Questiontype = null, string Problemtype = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (!string.IsNullOrEmpty(Questiontype)) |
| | | { |
| | | liaotianDTO.Questiontype = Questiontype; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(Problemtype)) |
| | | { |
| | | liaotianDTO.Problemtype = Problemtype; |
| | | } |
| | | } |
| | | ViewData.Model = liaotianDTO; |
| | | |
| | | |
| | |
| | | ViewData["problemtype"] = _liaotianService.GetSYScode("Liaotian", "problemtype").Where(x=>x.Contents == liaotianDTO.Questiontype).ToList(); |
| | | |
| | | |
| | | //ViewData["Questiontypesel"] = Questiontype; |
| | | |
| | | |
| | | //ViewData["Problemtypesel"] = Problemtype; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |