From 760eede869d8bc0b1b5a4ff38b2d3d94f5e2cb86 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 04 八月 2021 14:29:15 +0800
Subject: [PATCH] 今日开发          专家派工-没有审批的专家不能派工   意向客户访问新增,短信发送不要红星   合作客户  在客户资料列表增加快捷访问链接                        工作报表  修改排版                        问题维护    试用法条  改为1000字, 问题查询打开直接默认未审核,不要停两秒再刷新   项目新增 增加字段:采购预算 万元   工作考评  考聘不称职当天无工资

---
 zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs |   43 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
index 41774d5..8e30987 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
@@ -100,7 +100,7 @@
             ViewBag.khlx = _liaotianService.GetSYScode("CooperatecustomCustomer", "khlx").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             ViewBag.khly = _liaotianService.GetSYScode("CooperatecustomCustomer", "khly").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             ViewBag.hyfl = _liaotianService.GetSYScode("CooperatecustomCustomer", "hyfl").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
-
+            ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             ViewBag.users = _userService.GetList().Where(x => x.IsYwjl == "A").Select(x => new { code = x.Id, label = x.UserName }).ToList();
 
 
@@ -158,6 +158,23 @@
         }
 
 
+
+        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>
@@ -170,6 +187,30 @@
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
             ViewData["curentuser"] = curentuser;
             data.RecStatus = "A";
+            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))
             {
                 data.Creater = curentuser.Id;

--
Gitblit v1.9.1