| | |
| | | _cusFangwenjiluService = cusFangwenjiluService; |
| | | } |
| | | |
| | | public IActionResult Index() |
| | | public IActionResult Index(string Viscustomer = "") |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | |
| | | ViewBag.users = _userService.GetList().Where(x => x.IsYwjl == "A").Select(x => new { code = x.Id, label = x.UserName }).ToList(); |
| | | |
| | | |
| | | |
| | | ViewBag.Viscustomer = Viscustomer; |
| | | |
| | | ViewBag.ShengDropDown = _projectService.Getsheng().Select(x => new { code = x.CodeId, label = x.Name }).ToList(); |
| | | return View(); |
| | |
| | | return new JsonResult(_cooperVisitService.SearchByPaging(search)); |
| | | } |
| | | |
| | | public IActionResult Edit(string id = null) |
| | | public IActionResult Edit(string id = null, string Viscustomer = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | |
| | | } |
| | | else |
| | | { |
| | | dto.Viscustomer = Viscustomer; |
| | | dto.Vistime = DateTime.Now; |
| | | } |
| | | |