From 6672a68f11621bc7a49265fc47d4c1e7ae4c060d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 13 十月 2021 15:45:17 +0800
Subject: [PATCH] 专家测试--题库管理 完成
---
zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
index e7fd1b8..0a10213 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
@@ -45,7 +45,7 @@
_cusFangwenjiluService = cusFangwenjiluService;
}
- public IActionResult Index()
+ public IActionResult Index(string Viscustomer = "")
{
var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
ViewData["curentuser"] = curentuser;
@@ -77,7 +77,7 @@
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();
@@ -90,7 +90,7 @@
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;
@@ -103,6 +103,7 @@
}
else
{
+ dto.Viscustomer = Viscustomer;
dto.Vistime = DateTime.Now;
}
@@ -197,7 +198,7 @@
{
for (int i = 0; i < result.Count; i++)
{
- number.Append(result[i].Phone);
+ number.Append(string.IsNullOrEmpty(result[i].Phone) ? result[i].Tel : result[i].Phone);
customename += result[i].Name + ",";
if (i != result.Count - 1)
{
@@ -211,7 +212,7 @@
resultEntity.Message = "鏃犺仈绯讳汉";
}
- string sss = SMSHelper.PushWToUserMES(number.ToString(), neirong);
+ string sss = SMSHelper.PushWToUserMES(number.ToString(), neirong + " 閫�璁㈠洖N");
if (int.Parse(sss) <= 0)
{
resultEntity.Result = false;
--
Gitblit v1.9.1