| | |
| | | ViewData["curentuser"] = curentuser; |
| | | return new JsonResult(_admBreakPrecedentService.ModifyStatus(Id, curentuser.Id)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult GetBreakPrecedent(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | ResultEntity<AdmBreakPrecedentDTO> resultEntity = new ResultEntity<AdmBreakPrecedentDTO>(); |
| | | resultEntity.Result = false; |
| | | |
| | | AdmBreakPrecedentDTO dto = _admBreakPrecedentService.Get(id); |
| | | dto.UserName = _userService.GetPltUserEntity(dto.UserId).UserName; |
| | | dto.QianfaUserName = _userService.GetPltUserEntity(dto.QianfaUserId).UserName; |
| | | dto.BreakTimeName = dto.BreakTime.ToString("yyyy-MM-dd"); |
| | | dto.ChufajineName = dto.Chufajine.HasValue ? dto.Chufajine.Value.ToString("F2") : ""; |
| | | resultEntity.Result = true; |
| | | resultEntity.DataInfo = dto; |
| | | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult IndexRenshi(string UserId) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "查询"; |
| | | actionlist.Add(actionEntity); |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | |
| | | ViewBag.UserId = UserId; |
| | | |
| | | return View(); |
| | | |
| | | } |
| | | |
| | | public IActionResult GetListRenshi(AdmBreakPrecedentDTOSearch search) |
| | | { |
| | | //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); |
| | | return new JsonResult(_admBreakPrecedentService.SearchByPaging(search)); |
| | | } |
| | | |
| | | |
| | | public IActionResult IndexGoods(string UserId) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "查询"; |
| | | actionlist.Add(actionEntity); |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | |
| | | ViewBag.UserId = UserId; |
| | | |
| | | return View(); |
| | | |
| | | } |
| | | |
| | | public IActionResult GetListGoods(AdmBreakPrecedentDTOSearch search) |
| | | { |
| | | //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); |
| | | return new JsonResult(_admBreakPrecedentService.SearchByPagingGoods(search)); |
| | | } |
| | | } |
| | | } |