From 1aa53fde5eb18a39c53daf910d69cb857913b08d Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 06 七月 2022 15:23:02 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs | 67 +++++++++++++++++++++++++++++++-- 1 files changed, 62 insertions(+), 5 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs index 958334f..9dfdbf6 100644 --- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs @@ -141,7 +141,21 @@ ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.ShengDropDown = _projectService.Getsheng().Select(x => new { code = x.CodeId, label = x.Name }).ToList(); + var areaDTOs = _projectService.Getsheng().ToList(); + foreach (var areaDTO in areaDTOs) + { + if (areaDTO.CodeId == "510000") + { + areaDTOs.Remove(areaDTO); + break; + } + } + var areaDTOsic = new Area(); + areaDTOsic.CodeId = "510000"; + areaDTOsic.Name = "鍥涘窛鐪�"; + areaDTOsic.ParentId = "0 "; + areaDTOs.Insert(1, areaDTOsic); + ViewBag.ShengDropDown = areaDTOs.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); return View(); } @@ -273,6 +287,14 @@ actionlist.Add(actionEntity); } + ActionEntity actionEntity4 = new ActionEntity(); + actionEntity4.OpenType = 0; + actionEntity4.ActionUrl = ""; + actionEntity4.ActionFun = "Duanxin"; + actionEntity4.PageIco = ""; + actionEntity4.ActionName = "缇ゅ彂鐭俊"; + actionlist.Add(actionEntity4); + ViewData["ActionInfo"] = actionlist; @@ -288,7 +310,6 @@ //ViewBag.khlx = _liaotianService.GetSYScode("CooperatecustomCustomer", "khlx").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.ShengDropDown = _projectService.Getsheng().Select(x => new { code = x.CodeId, label = x.Name }).ToList(); return View(); } @@ -347,7 +368,21 @@ } - var sheng = _projectService.Getsheng(); + var areaDTOs = _projectService.Getsheng().ToList(); + foreach (var areaDTO in areaDTOs) + { + if (areaDTO.CodeId == "510000") + { + areaDTOs.Remove(areaDTO); + break; + } + } + var areaDTOsic = new Area(); + areaDTOsic.CodeId = "510000"; + areaDTOsic.Name = "鍥涘窛鐪�"; + areaDTOsic.ParentId = "0 "; + areaDTOs.Insert(1, areaDTOsic); + var sheng = areaDTOs; var shi = _projectService.Getshi(intentionCustomerDTO.Sheng); var quxian = _projectService.Getquxian(intentionCustomerDTO.City); var users = _userService.GetList().Where(x => x.IsYwjl == "A").ToList(); ; @@ -378,9 +413,23 @@ intentionCustomerDTO = _intentionCustomerService.GetByName(name); - - var sheng = _projectService.Getsheng(); + + var areaDTOs = _projectService.Getsheng().ToList(); + foreach (var areaDTO in areaDTOs) + { + if (areaDTO.CodeId == "510000") + { + areaDTOs.Remove(areaDTO); + break; + } + } + var areaDTOsic = new Area(); + areaDTOsic.CodeId = "510000"; + areaDTOsic.Name = "鍥涘窛鐪�"; + areaDTOsic.ParentId = "0 "; + areaDTOs.Insert(1, areaDTOsic); + var sheng = areaDTOs; var shi = _projectService.Getshi(intentionCustomerDTO.Sheng); var quxian = _projectService.Getquxian(intentionCustomerDTO.City); var users = _userService.GetList().Where(x => x.IsYwjl == "A").ToList(); ; @@ -442,6 +491,14 @@ data.Creater = curentuser.Id; data.Createtime = DateTime.Now; } + else + { + var intentionCustomerDTO = _intentionCustomerService.Get(data.Id); + data.Yixiangtime = intentionCustomerDTO.Yixiangtime; + data.Yixiang = intentionCustomerDTO.Yixiang; + data.Dianxiaozhuanyuan = intentionCustomerDTO.Dianxiaozhuanyuan; + data.Zuijinzhuizongtime = intentionCustomerDTO.Zuijinzhuizongtime; + } data.Modifier = curentuser.Id; data.Modifytime = DateTime.Now; -- Gitblit v1.9.1