| | |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult GetCustomer(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(id); |
| | | |
| | | |
| | | |
| | | return new JsonResult(cooperatecustomCustomerDTO); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存 |
| | | /// </summary> |
| | |
| | | if (string.IsNullOrEmpty(data.Shifoutianjiaweixin)) |
| | | { |
| | | data.Shifoutianjiaweixin = "D"; |
| | | data.Weixiner = null; |
| | | data.Weixintime = null; |
| | | } |
| | | else |
| | | { |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Weixiner = curentuser.Id; |
| | | data.Weixintime = DateTime.Now; |
| | | } |
| | | else |
| | | { |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(data.Id); |
| | | if (string.IsNullOrEmpty(cooperatecustomCustomerDTO.Weixiner) ) |
| | | { |
| | | data.Weixiner = curentuser.Id; |
| | | data.Weixintime = DateTime.Now; |
| | | } |
| | | |
| | | } |
| | | } |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |