From 10b700dad2a510b83a5066aa5002dea8f4eb0e38 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 04 六月 2021 15:41:30 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Services/ProjectService.cs                                        |   18 
 zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml             |   27 
 zhengcaioa/DTO/ProjectDTO.cs                                                 |    4 
 zhengcaioa/DTO/DailyManagementDTO .cs                                        |    3 
 zhengcaioa/DTO/ExpertDTO.cs                                                  |   10 
 zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml             |    5 
 zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml                               |  247 +++++++++
 zhengcaioa/zhengcaioa/Controllers/AdmManagement/DailyManagementController.cs |   61 +
 zhengcaioa/zhengcaioa/Views/Project/Select.cshtml                            |   62 ++
 zhengcaioa/zhengcaioa/Views/DailyManagement/MemoBook.cshtml                  |    4 
 zhengcaioa/zhengcaioa/Views/IntentionCustomer/EditByName.cshtml              |  734 ++++++++++++++++++++++++++++++
 zhengcaioa/Model/Expert.cs                                                   |   37 
 zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml              |    7 
 zhengcaioa/Model/zhengcaioaContext.cs                                        |   25 +
 zhengcaioa/Services/ExpertService.cs                                         |   10 
 zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkmy.cshtml                |    5 
 zhengcaioa/zhengcaioa/Views/DailyManagement/ShowRemind.cshtml                |    5 
 zhengcaioa/IServices/IIntentionCustomerService.cs                            |    2 
 zhengcaioa/Services/DailyManagementService.cs                                |    3 
 zhengcaioa/Services/IntentionCustomerService.cs                              |   17 
 zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml                |    9 
 zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml                     |   53 +-
 zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs    |   34 +
 zhengcaioa/Model/AdmMemoBook.cs                                              |    2 
 24 files changed, 1,272 insertions(+), 112 deletions(-)

diff --git a/zhengcaioa/DTO/DailyManagementDTO .cs b/zhengcaioa/DTO/DailyManagementDTO .cs
index 59c492a..7434042 100644
--- a/zhengcaioa/DTO/DailyManagementDTO .cs
+++ b/zhengcaioa/DTO/DailyManagementDTO .cs
@@ -49,7 +49,8 @@
         public string RtypeName { get; set; }
         public string ToUserId { get; set; }
        // public string toUserName { get; set; }
-        public DateTime Time { get; set; }
+        public DateTime? Time { get; set; }
+        public string TimeName { get; set; }
         public string Context { get; set; }
         public int HaveRead { get; set; }
         public string HaveReadName { get; set; }
diff --git a/zhengcaioa/DTO/ExpertDTO.cs b/zhengcaioa/DTO/ExpertDTO.cs
index 94d942d..027ddd4 100644
--- a/zhengcaioa/DTO/ExpertDTO.cs
+++ b/zhengcaioa/DTO/ExpertDTO.cs
@@ -35,6 +35,16 @@
         public DateTime Createtime { get; set; }
         public string Modifier { get; set; }
         public DateTime Modifytime { get; set; }
+        public string TitileCerti1 { get; set; }
+        public string TitileCerti2 { get; set; }
+        public string TitileCerti3 { get; set; }
+        public string TitileCerti4 { get; set; }
+        public string TitileCerti5 { get; set; }
+        public string TitileCerti6 { get; set; }
+        public string TitileCerti7 { get; set; }
+        public string TitileCerti8 { get; set; }
+        public string TitileCerti9 { get; set; }
+        public string TitileCerti10 { get; set; }
 
     }
 
diff --git a/zhengcaioa/DTO/ProjectDTO.cs b/zhengcaioa/DTO/ProjectDTO.cs
index e8e20b9..23676a0 100644
--- a/zhengcaioa/DTO/ProjectDTO.cs
+++ b/zhengcaioa/DTO/ProjectDTO.cs
@@ -48,6 +48,7 @@
         public string[] Names { get; set; }
         public string[] Price { get; set; }
 
+        public string NamesZhongbiao { get; set; }
 
         public string Fblx { get; set; }
         public string Fbyy { get; set; }
@@ -90,7 +91,10 @@
         public string Creater { get; set; }
 
         public string Names { get; set; }
+
+        public string NamesToubiao { get; set; }
         
 
+
     }
 }
diff --git a/zhengcaioa/IServices/IIntentionCustomerService.cs b/zhengcaioa/IServices/IIntentionCustomerService.cs
index 62e6b60..fa1fbaf 100644
--- a/zhengcaioa/IServices/IIntentionCustomerService.cs
+++ b/zhengcaioa/IServices/IIntentionCustomerService.cs
@@ -13,6 +13,8 @@
 
         IntentionCustomerDTO Get(string id);
 
+        IntentionCustomerDTO GetByName(string name);
+
         ResultDataEntity<IntentionCustomerDTO> SearchByPaging(IntentionCustomerDTOSearch searchEntity);
 
         ResultEntity ModifyStatus(string id, string userid);
diff --git a/zhengcaioa/Model/AdmMemoBook.cs b/zhengcaioa/Model/AdmMemoBook.cs
index 7bddf2f..34e5225 100644
--- a/zhengcaioa/Model/AdmMemoBook.cs
+++ b/zhengcaioa/Model/AdmMemoBook.cs
@@ -10,7 +10,7 @@
         public string Id { get; set; }
         public string Rtype { get; set; }
         public string ToUserId { get; set; }
-        public DateTime Time { get; set; }
+        public DateTime? Time { get; set; }
         public string Context { get; set; }
         public string RecStatus { get; set; }
         public string Creater { get; set; }
diff --git a/zhengcaioa/Model/Expert.cs b/zhengcaioa/Model/Expert.cs
index a1daa33..64ebd57 100644
--- a/zhengcaioa/Model/Expert.cs
+++ b/zhengcaioa/Model/Expert.cs
@@ -1,43 +1,50 @@
 锘縰sing System;
 using System.Collections.Generic;
-using System.Text;
 
 #nullable disable
+
 namespace zhengcaioa.Models
 {
-    /// <summary>
-    /// 涓撳淇℃伅
-    /// </summary>
     public partial class Expert
     {
-        public string Id { get; set; }
         public string Name { get; set; }
+        public string Id { get; set; }
         public string Sex { get; set; }
-        public string InfoSource { get; set; }
         public string IdCard { get; set; }
-        public string Province { get; set; }
-        public string AreaId { get; set; }
-        public string City { get; set; }
-        public string Address { get; set; }
-        public string Postal { get; set; }
+        public string InfoSource { get; set; }
         public string ExpertType { get; set; }
         public string Level { get; set; }
+        public string ReviewItem { get; set; }
+        public string CertiNumber { get; set; }
+        public string Province { get; set; }
+        public string City { get; set; }
+        public string AreaId { get; set; }
+        public string Address { get; set; }
         public string Phone1 { get; set; }
         public string Phone2 { get; set; }
         public string Qq { get; set; }
         public string Wechat { get; set; }
-        public string ReviewItem { get; set; }
-        public string CertiNumber { get; set; }
         public string CertiFont { get; set; }
         public string CertiBack { get; set; }
         public string TitileCerti { get; set; }
         public string Remark { get; set; }
-        public string Sort { get; set; }
         public string RecStatus { get; set; }
         public string Creater { get; set; }
         public DateTime Createtime { get; set; }
         public string Modifier { get; set; }
         public DateTime Modifytime { get; set; }
-
+        public string Sort { get; set; }
+        public string Postal { get; set; }
+        public string ShenheStatus { get; set; }
+        public string TitileCerti1 { get; set; }
+        public string TitileCerti2 { get; set; }
+        public string TitileCerti3 { get; set; }
+        public string TitileCerti4 { get; set; }
+        public string TitileCerti5 { get; set; }
+        public string TitileCerti6 { get; set; }
+        public string TitileCerti7 { get; set; }
+        public string TitileCerti8 { get; set; }
+        public string TitileCerti9 { get; set; }
+        public string TitileCerti10 { get; set; }
     }
 }
diff --git a/zhengcaioa/Model/zhengcaioaContext.cs b/zhengcaioa/Model/zhengcaioaContext.cs
index ee8df02..31ba8bd 100644
--- a/zhengcaioa/Model/zhengcaioaContext.cs
+++ b/zhengcaioa/Model/zhengcaioaContext.cs
@@ -4377,6 +4377,11 @@
                     .HasMaxLength(50)
                     .HasColumnName("sex");
 
+                entity.Property(e => e.ShenheStatus)
+                    .HasMaxLength(1)
+                    .HasColumnName("shenhe_status")
+                    .HasDefaultValueSql("('D')");
+
                 entity.Property(e => e.Sort)
                     .HasMaxLength(50)
                     .IsUnicode(false)
@@ -4384,6 +4389,26 @@
 
                 entity.Property(e => e.TitileCerti).HasMaxLength(200);
 
+                entity.Property(e => e.TitileCerti1).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti10).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti2).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti3).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti4).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti5).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti6).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti7).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti8).HasMaxLength(200);
+
+                entity.Property(e => e.TitileCerti9).HasMaxLength(200);
+
                 entity.Property(e => e.Wechat)
                     .HasMaxLength(20)
                     .HasColumnName("wechat");
diff --git a/zhengcaioa/Services/DailyManagementService.cs b/zhengcaioa/Services/DailyManagementService.cs
index a6340e3..b8ecd87 100644
--- a/zhengcaioa/Services/DailyManagementService.cs
+++ b/zhengcaioa/Services/DailyManagementService.cs
@@ -236,6 +236,7 @@
                           Creater = c.UserName,
                           ToUserId = b.UserName,
                           Time = a.Time,
+                          TimeName = a.Time.HasValue ? a.Time.Value.ToString("yyyy-MM-dd HH:mm") : "",
                           Context = a.Context,
                           Createtime = a.Createtime,
                           FeedBack = a.FeedBack,
@@ -251,7 +252,7 @@
                           HaveRead = a.HaveRead.HasValue? a.HaveRead.Value:0,
                           HaveReadName = hhh.Comments,
 
-                      }).OrderByDescending(x=>x.Time).ToList();
+                      }).OrderByDescending(x=>x.Createtime).ToList();
 
             //if (!string.IsNullOrEmpty(search.Createtime))
             //{
diff --git a/zhengcaioa/Services/ExpertService.cs b/zhengcaioa/Services/ExpertService.cs
index 09aa47a..151f686 100644
--- a/zhengcaioa/Services/ExpertService.cs
+++ b/zhengcaioa/Services/ExpertService.cs
@@ -62,6 +62,16 @@
                     updateplExpert.CertiBack = expert.CertiBack;
                     updateplExpert.TitileCerti = expert.TitileCerti;
                     updateplExpert.Remark = expert.Remark;
+                    updateplExpert.TitileCerti1 = expert.TitileCerti1;
+                    updateplExpert.TitileCerti2 = expert.TitileCerti2;
+                    updateplExpert.TitileCerti3 = expert.TitileCerti3;
+                    updateplExpert.TitileCerti4 = expert.TitileCerti4;
+                    updateplExpert.TitileCerti5 = expert.TitileCerti5;
+                    updateplExpert.TitileCerti6 = expert.TitileCerti6;
+                    updateplExpert.TitileCerti7 = expert.TitileCerti7;
+                    updateplExpert.TitileCerti8 = expert.TitileCerti8;
+                    updateplExpert.TitileCerti9 = expert.TitileCerti9;
+                    updateplExpert.TitileCerti10 = expert.TitileCerti10;
                 }
 
                 _context.SaveChanges();
diff --git a/zhengcaioa/Services/IntentionCustomerService.cs b/zhengcaioa/Services/IntentionCustomerService.cs
index c4d47ee..e287578 100644
--- a/zhengcaioa/Services/IntentionCustomerService.cs
+++ b/zhengcaioa/Services/IntentionCustomerService.cs
@@ -112,6 +112,23 @@
         return intentionCustomerDTO;
     }
 
+        public IntentionCustomerDTO GetByName(string name)
+        {
+            
+            var entity = _context.IntentionCustomers.Where(x=>x.Name == name).FirstOrDefault();
+
+            if (entity==null || entity.RecStatus != "A")
+            {
+                entity = new IntentionCustomer();
+            }
+
+            var intentionCustomerDTO = _mapper.Map<IntentionCustomerDTO>(entity);
+
+
+            return intentionCustomerDTO;
+        }
+
+        
     public ResultDataEntity<IntentionCustomerDTO> SearchByPaging(IntentionCustomerDTOSearch searchEntity)
     {
 
diff --git a/zhengcaioa/Services/ProjectService.cs b/zhengcaioa/Services/ProjectService.cs
index 9efb610..e57e271 100644
--- a/zhengcaioa/Services/ProjectService.cs
+++ b/zhengcaioa/Services/ProjectService.cs
@@ -262,7 +262,7 @@
             List<ProjectDTO> list = new List<ProjectDTO>();
             //绛涢��
             StringBuilder sql = new StringBuilder();
-            sql.Append("SELECT distinct a.[Id],a.[start_time] ,b.[name] +'-'+c.[name]+'-'+d.[name]  Sheng ,a.city  ,a.[area_id],a.cgfs, a.[name] ,a.[number],a.creater,a.createtime,a.modifier,a.modifytime       ,a.[drhx],a.[drhx_price],a.[dshx],a.[dshx_price],a.[remark],a.[rec_status],a.[toubiaocishu] ,a.[question] ,a.[zhongbiaocishu],a.[feibiaocishu],a.[zhongbiaojine],a.[Fblx],a.[Fbyy] , a.[zhuanjia]  , a.[caigourenname], a.[caigourenaddress], a.[caigourencontact], a.[dailiname], a.[dailiaddress], a.[dailicontact]    "); //zhuanjia = stuff((select ','+name from [Zhuanjia] f where  CHARINDEX(f.id,a.[zhuanjia]) >0 for xml path('')), 1,1, '') 
+            sql.Append("SELECT distinct a.[Id],a.[start_time] ,b.[name] +'-'+c.[name]+'-'+d.[name]  Sheng ,a.city  ,a.[area_id],a.cgfs, a.[name] ,a.[number],a.creater,a.createtime,a.modifier,a.modifytime       ,a.[drhx],a.[drhx_price],a.[dshx],a.[dshx_price],a.[remark],a.[rec_status] ,a.[question] ,a.[zhongbiaocishu],a.[feibiaocishu],a.[zhongbiaojine],a.[Fblx],a.[Fbyy] , a.[zhuanjia]  , a.[caigourenname], a.[caigourenaddress], a.[caigourencontact], a.[dailiname], a.[dailiaddress], a.[dailicontact] ,toubiaocishu = stuff((select '銆�'+ f.[names] from  [Projectzhongbiao] f where  f.[ProjectId] = a.[Id]  for xml path('')), 1,1, '')   "); //zhuanjia = stuff((select ','+name from [Zhuanjia] f where  CHARINDEX(f.id,a.[zhuanjia]) >0 for xml path('')), 1,1, '') 
             sql.Append("FROM [Project] a ");
             sql.Append("left join  [Area] b  on a.[sheng]  = b.[codeID] ");
             sql.Append("left join  [Area] c  on a.[city]  = c.[codeID] ");
@@ -276,6 +276,22 @@
 
             }
 
+            if (!string.IsNullOrWhiteSpace(searchEntity.NamesToubiao))
+            {
+                sql.Append(" and ( exists (select b.[ProjectId] from [Projectzhongbiao] b  where  a.[Id]=b.[ProjectId] and   b.[names] like '%" + searchEntity.NamesToubiao + "%') ");
+
+                sql.Append("  or exists (select c.[ProjectId] from [Projectreason] c  where  a.[Id]=c.[ProjectId] and   c.[reasonname] like '%" + searchEntity.NamesToubiao + "%') ");
+
+                sql.Append("  or exists (select d.[ProjectId] from [Projectyouxiao] d  where  a.[Id]=d.[ProjectId] and   d.[namesyouxiao] like '%" + searchEntity.NamesToubiao + "%') ");
+
+                sql.Append("  or   a.[drhx] like '%" + searchEntity.NamesToubiao + "%' ");
+
+                sql.Append("   or   a.[dshx] like '%" + searchEntity.NamesToubiao + "%'  ");
+
+                sql.Append(" )");
+
+            }
+
             if (!string.IsNullOrWhiteSpace(searchEntity.StartTimestar))
             {
                 sql.Append(" and a.start_time >='"+ searchEntity.StartTimestar.Trim().Replace("'","''") + "'");
diff --git a/zhengcaioa/zhengcaioa/Controllers/AdmManagement/DailyManagementController.cs b/zhengcaioa/zhengcaioa/Controllers/AdmManagement/DailyManagementController.cs
index 0c01d2c..7753309 100644
--- a/zhengcaioa/zhengcaioa/Controllers/AdmManagement/DailyManagementController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/AdmManagement/DailyManagementController.cs
@@ -185,12 +185,17 @@
         public IActionResult EditMemoBook(string Rtype="1" , string id = "0") 
         {
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
-            ViewData["users"] = _userService.GetList();
+            ViewData["users"] = _userService.GetList().Where(x=>x.Id != curentuser.Id).ToList();
             AdmMemoBookDTO admMemoBookDTO = _DailyManageService.GetMemoBook(id);
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
                 Rtype = string.IsNullOrEmpty(admMemoBookDTO.Rtype)? Rtype : admMemoBookDTO.Rtype;
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
+                Rtype = string.IsNullOrEmpty(admMemoBookDTO.Rtype) ? Rtype : admMemoBookDTO.Rtype;
             }
             ViewData.Model = admMemoBookDTO;
             ViewBag.Rtype = Rtype;
@@ -221,7 +226,7 @@
         [HttpPost]
         public string SaveMemoBook(AdmMemoBookDTO memoBook)
         {
-            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));            
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
             memoBook.RecStatus = "A";
             if (String.IsNullOrEmpty(memoBook.Id))
             {
@@ -317,7 +322,8 @@
         public IActionResult EditWorkAnPai( string id = "")
         {
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
-            ViewData["users"] = _userService.GetList();
+            ViewData["curentuser"] = curentuser;
+            ViewData["users"] = _userService.GetList().Where(x => x.Id != curentuser.Id).ToList();
             AdmMemoBookDTO admMemoBookDTO = new AdmMemoBookDTO();
             if (!string.IsNullOrEmpty(id))
             {
@@ -325,9 +331,14 @@
                 admMemoBookDTO.WorkDept = _userService.GetPltUserEntity(admMemoBookDTO.ToUserId).DeptId;
             }
             
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                //admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
             }
             ViewData.Model = admMemoBookDTO;
             ViewData["Dept"] = _hrDeptService.GetList();
@@ -389,9 +400,14 @@
                 admMemoBookDTO.WorkDept = _userService.GetPltUserEntity(admMemoBookDTO.ToUserId).DeptId;
             }
 
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                //admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
             }
             ViewData.Model = admMemoBookDTO;
             ViewBag.KaoHe = _liaotianService.GetSYScode("ADM_MemoBook", "KaoHe");
@@ -506,9 +522,14 @@
                 admMemoBookDTO = _DailyManageService.GetMemoBook(id);
             }
 
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                //admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
             }
             ViewData.Model = admMemoBookDTO;
             ViewBag.Rtype = _liaotianService.GetSYScode("ADM_MemoBook", "Rtype").Where(x=>x.CodeSn=="2" || x.CodeSn == "4").ToList();
@@ -571,9 +592,14 @@
                 admMemoBookDTO.WorkDept = _userService.GetPltUserEntity(admMemoBookDTO.ToUserId).DeptId;
             }
 
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                //admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
             }
             ViewData.Model = admMemoBookDTO;
            
@@ -623,9 +649,14 @@
                 admMemoBookDTO.WorkDept = _userService.GetPltUserEntity(admMemoBookDTO.ToUserId).DeptId;
             }
 
-            if (admMemoBookDTO.Time.Equals(DateTime.MinValue))
+            if (!admMemoBookDTO.Time.HasValue)
             {
-                admMemoBookDTO.Time = DateTime.Now;
+                //admMemoBookDTO.Time = DateTime.Now;
+                admMemoBookDTO.TimeName = "";
+            }
+            else
+            {
+                admMemoBookDTO.TimeName = admMemoBookDTO.Time.Value.ToString("yyyy-MM-dd HH:mm");
             }
             ViewData.Model = admMemoBookDTO;
 
diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs
index 1c317d5..d7b9f68 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs
@@ -176,6 +176,40 @@
         }
 
 
+
+
+        public IActionResult EditByName( string name)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+
+            IntentionCustomerDTO intentionCustomerDTO = new IntentionCustomerDTO();
+             
+                intentionCustomerDTO = _intentionCustomerService.GetByName(name);
+
+            
+
+            var sheng = _projectService.Getsheng();
+            var shi = _projectService.Getshi(intentionCustomerDTO.Sheng);
+            var quxian = _projectService.Getquxian(intentionCustomerDTO.City);
+            var users = _userService.GetList().Where(x => x.IsYwjl == "A").ToList(); ;
+
+            ViewData["khlx"] = _liaotianService.GetSYScode("CooperatecustomCustomer", "khlx");
+            ViewData["khly"] = _liaotianService.GetSYScode("CooperatecustomCustomer", "khly");
+            ViewData["hyfl"] = _liaotianService.GetSYScode("CooperatecustomCustomer", "hyfl");
+
+            ViewData["users"] = users;
+
+            ViewData["sheng"] = sheng;
+            ViewData["shi"] = shi;
+            ViewData["quxian"] = quxian;
+            ViewData["DeptId"] = _hrDeptService.GetList();
+            ViewData.Model = intentionCustomerDTO;
+            return View();
+        }
+
+
+
         /// <summary>
         /// 淇濆瓨
         /// </summary>
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
index 77949ce..68cec55 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
@@ -112,7 +112,7 @@
             <tr>
                 <td class="title"><label>鎻愰啋鏃堕棿</label> </td>
                 <td>
-                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.Time.ToString("yyyy-MM-dd HH:mm")" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off"  readonly="readonly">
+                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.TimeName" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off"  readonly="readonly">
                 </td>
             </tr>
             <tr>
@@ -194,10 +194,7 @@
 
 
         function Save() {
-            if ($("#Time").val() == '') {
-                toastr.warning("鎻愰啋鏃堕棿涓嶈兘涓虹┖");
-                return;
-            }
+            
 
             if ($("#Context").val() == '') {
                 toastr.warning("鎻愰啋鍐呭涓嶈兘涓虹┖");
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
index 04f0c50..c95b63b 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
@@ -4,9 +4,10 @@
 @{
     List<PltUserDTO> users = ViewData["users"] as List<PltUserDTO>;
     List<HrDeptDTO> Dept = ViewData["Dept"] as List<HrDeptDTO>;
+    PltUser curentuser = ViewData["curentuser"] as PltUser;
 }
 @{
-    Layout = null;
+            Layout = null;
 }
 <!DOCTYPE html>
 <html>
@@ -173,9 +174,9 @@
                 </td>
             </tr>
             <tr>
-                <td class="title"><label>瀹屾垚鏃堕棿<i class="red">*</i></label> </td>
+                <td class="title"><label>瀹屾垚鏃堕棿 </label> </td>
                 <td>
-                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.Time.ToString("yyyy-MM-dd HH:mm")" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off"  readonly="readonly">
+                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.TimeName" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off"  readonly="readonly">
                 </td>
             </tr>
             <tr>
@@ -248,10 +249,7 @@
 
 
         function Save() {
-            if ($("#Time").val() == '') {
-                toastr.warning("瀹屾垚鏃堕棿涓嶈兘涓虹┖");
-                return;
-            }
+
             if ($("#ToUserId").val() == '') {
                 toastr.warning("鑱屽伐涓嶈兘涓虹┖");
                 return;
@@ -309,7 +307,7 @@
             return false;
         }
 
-
+        var curentuser = '@curentuser.Id';
 
         $("#WorkDept").change(function () {
 
@@ -329,14 +327,15 @@
                     quxian.append(aaa);
                     if (data.length > 0) {
                         for (var i = 0; i < data.length; i++) {
+                            if (curentuser != data[i].Id) {
+                                var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].UserName + '</option>';
 
-                            var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].UserName + '</option>';
-
-                            if (data[i].Id == userid) {
-                                o = '<option value="' + data[i].Id + '" hassubinfo="true"  selected="selected">' + data[i].UserName + '</option>';
+                                if (data[i].Id == userid) {
+                                    o = '<option value="' + data[i].Id + '" hassubinfo="true"  selected="selected">' + data[i].UserName + '</option>';
+                                }
+                                quxian.append(o);
                             }
-                            quxian.append(o);
-                            console.log(quxian);
+                          
                         }
                     }
                     quxian.trigger('chosen:updated');//鏇存柊閫夐」
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
index 11390f4..1e30d14 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
@@ -143,9 +143,9 @@
                 </td>
             </tr>
             <tr>
-                <td class="title"><label>瀹屾垚鏃堕棿<i class="red">*</i></label> </td>
+                <td class="title"><label>瀹屾垚鏃堕棿 </label> </td>
                 <td>
-                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.Time.ToString("yyyy-MM-dd HH:mm")" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off" readonly="readonly">
+                    <input type="text" class="layui-input  layer-date  ldate data" label="鏉ョ數鏃堕棿" value="@Model.TimeName" name="Time" id="Time" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off" readonly="readonly">
                 </td>
             </tr>
 
@@ -215,10 +215,7 @@
                 toastr.warning("璇烽�夋嫨宸ヤ綔绫诲瀷");
                 return;
             }
-            if ($("#Time").val() == '') {
-                toastr.warning("瀹屾垚鏃堕棿涓嶈兘涓虹┖");
-                return;
-            }
+            
             
             if ($.trim($("#Context").val()) == '') {
                 toastr.warning("宸ヤ綔鍐呭涓嶈兘涓虹┖");
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoBook.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoBook.cshtml
index 0b809b4..bb63588 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoBook.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoBook.cshtml
@@ -15,9 +15,9 @@
                 }
             },
             {
-                label: '鎻愰啋鏃堕棿', name: 'Time', labtype: 'txt', width: 100, hidden: false,
+                label: '鎻愰啋鏃堕棿', name: 'TimeName', labtype: 'txt', width: 100, hidden: false,
                 formatter: function (cellvalue, options, rowObject) {
-                    return '<a href="javascript: void (0)" onclick="edit(\'' + rowObject.Rtype + '\',\'' + rowObject.Id + '\');">' + new Date(cellvalue).Format("yyyy-MM-dd hh:mm") + '</a>';
+                    return '<a href="javascript: void (0)" onclick="edit(\'' + rowObject.Rtype + '\',\'' + rowObject.Id + '\');">' + cellvalue + '</a>';
                 }
             },
             //{
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
index 03e2f1e..0dbb192 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
@@ -19,10 +19,7 @@
             },
             { label: '宸ヤ綔鍐呭', name: 'Context', labtype: 'txt', width: 300, hidden: false },
             {
-                label: '瑕佹眰瀹屾垚鏃堕棿', name: 'Time', labtype: 'txt', width: 100, hidden: false,
-                formatter: function (cellvalue, options, rowObject) {
-                    return new Date(cellvalue).Format("yyyy-MM-dd hh:mm");
-                }
+                label: '瑕佹眰瀹屾垚鏃堕棿', name: 'TimeName', labtype: 'txt', width: 100, hidden: false 
             },
             { label: '鍔炵悊鎯呭喌', name: 'BanLi', labtype: 'txt', width: 300, hidden: false },
             { label: '瀹屾垚鏃堕棿', name: 'WanchengTimeName', labtype: 'txt', width: 100, hidden: false },
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkmy.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkmy.cshtml
index 0bae085..4932284 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkmy.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkmy.cshtml
@@ -22,10 +22,7 @@
             { label: '宸ヤ綔绫诲瀷', name: 'RtypeName', labtype: 'txt', width: 100, hidden: false },
             { label: '宸ヤ綔鍐呭', name: 'Context', labtype: 'txt', width: 300, hidden: false },
             {
-                label: '瑕佹眰瀹屾垚鏃堕棿', name: 'Time', labtype: 'txt', width: 100, hidden: false,
-                formatter: function (cellvalue, options, rowObject) {
-                    return new Date(cellvalue).Format("yyyy-MM-dd hh:mm");
-                }
+                label: '瑕佹眰瀹屾垚鏃堕棿', name: 'TimeName', labtype: 'txt', width: 100, hidden: false 
             },
             {
                 label: '鍔炵悊鎯呭喌', name: 'HaveRead', labtype: 'txt', width: 300, hidden: false, 
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/ShowRemind.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/ShowRemind.cshtml
index e84decc..68eb1d8 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/ShowRemind.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/ShowRemind.cshtml
@@ -15,10 +15,7 @@
                 }
             },
             {
-                label: '瑕佹眰瀹屾垚鏃堕棿', width: 30, name: 'Time', labtype: 'txt', hidden: false,
-                formatter: function (cellvalue, options, rowObject) {
-                    return new Date(cellvalue).Format("yyyy-MM-dd hh:mm");
-                }
+                label: '瑕佹眰瀹屾垚鏃堕棿', width: 30, name: 'TimeName', labtype: 'txt', hidden: false 
             },
             { label: '宸ヤ綔绫诲瀷', name: 'RtypeName', labtype: 'txt', width: 100, hidden: false },
             { label: '宸ヤ綔鍐呭',   name: 'Context', labtype: 'txt', hidden: false },
diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml
index 046cc5a..e036a26 100644
--- a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml
@@ -347,8 +347,8 @@
 
 
                                 @*<div class="ibox-title">
-                                        <h5>  <i class="fa fa-list"></i>&nbsp;瀹㈡埛璧勬枡</h5>
-                                    </div>*@
+            <h5>  <i class="fa fa-list"></i>&nbsp;瀹㈡埛璧勬枡</h5>
+        </div>*@
                                 <style>
                                     .divImg {
                                         height: 80px;
@@ -379,12 +379,68 @@
                                     <div class="col-sm-1 col-md-1 img-row">
                                         <label class="text-right   control-label">鑱岀О璇佷功</label>
                                     </div>
-                                    <div class="col-sm-6 col-md-6">
-                                        <div class="col-sm-2 col-md-2 img-box">
-                                            <div id="TitileImg" class="TitileImg"></div>
-                                            <input type="hidden" id="TitileCerti" name="TitileCerti" value="@Model.TitileCerti" />
-                                            <p>涓婁紶鑱岀О璇佷功</p>
-                                        </div>
+
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg" class="TitileImg"></div>
+                                        <input type="hidden" id="TitileCerti" name="TitileCerti" value="@Model.TitileCerti" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg1" class="TitileImg1"></div>
+                                        <input type="hidden" id="TitileCerti1" name="TitileCerti1" value="@Model.TitileCerti1" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg2" class="TitileImg2"></div>
+                                        <input type="hidden" id="TitileCerti2" name="TitileCerti2" value="@Model.TitileCerti2" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg3" class="TitileImg3"></div>
+                                        <input type="hidden" id="TitileCerti3" name="TitileCerti3" value="@Model.TitileCerti3" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg4" class="TitileImg4"></div>
+                                        <input type="hidden" id="TitileCerti4" name="TitileCerti4" value="@Model.TitileCerti4" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    @*</div>
+        <div class="clearfix layer-area" style="padding-bottom:15px;">
+            <div class="col-sm-1 col-md-1 img-row">
+
+            </div>*@
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg5" class="TitileImg5"></div>
+                                        <input type="hidden" id="TitileCerti5" name="TitileCerti5" value="@Model.TitileCerti5" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+
+
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg6" class="TitileImg6"></div>
+                                        <input type="hidden" id="TitileCerti6" name="TitileCerti6" value="@Model.TitileCerti6" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg7" class="TitileImg7"></div>
+                                        <input type="hidden" id="TitileCerti7" name="TitileCerti7" value="@Model.TitileCerti7" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg8" class="TitileImg8"></div>
+                                        <input type="hidden" id="TitileCerti8" name="TitileCerti8" value="@Model.TitileCerti8" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg9" class="TitileImg9"></div>
+                                        <input type="hidden" id="TitileCerti9" name="TitileCerti9" value="@Model.TitileCerti9" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
+                                    </div>
+                                    <div class="col-sm-2 col-md-2 img-box">
+                                        <div id="TitileImg10" class="TitileImg10"></div>
+                                        <input type="hidden" id="TitileCerti10" name="TitileCerti10" value="@Model.TitileCerti10" />
+                                        <p>涓婁紶鑱岀О璇佷功</p>
                                     </div>
 
                                 </div>
@@ -441,7 +497,17 @@
         var imgs = {
             BackImg: '',
             BackImg: '',
-            TitileImg:''
+            TitileImg: '',
+            TitileImg1: '',
+            TitileImg2: '',
+            TitileImg3: '',
+            TitileImg4: '',
+            TitileImg5: '',
+            TitileImg6: '',
+            TitileImg7: '',
+            TitileImg8: '',
+            TitileImg9: '',
+            TitileImg10: '',
 
         }
 
@@ -475,12 +541,113 @@
 
             }
         });
+        new DragImgUpload("#TitileImg1", {
+            callback: function (files) {
+                imgs.TitileImg1 = imgUploadCallback(files);
+                if (imgs.TitileImg1!== "") {
+                    $("#TitileCerti1").val(imgPath + imgs.TitileImg1);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg2", {
+            callback: function (files) {
+                imgs.TitileImg2 = imgUploadCallback(files);
+                if (imgs.TitileImg2 !== "") {
+                    $("#TitileCerti2").val(imgPath + imgs.TitileImg2);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg3", {
+            callback: function (files) {
+                imgs.TitileImg3 = imgUploadCallback(files);
+                if (imgs.TitileImg3 !== "") {
+                    $("#TitileCerti3").val(imgPath + imgs.TitileImg3);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg4", {
+            callback: function (files) {
+                imgs.TitileImg4 = imgUploadCallback(files);
+                if (imgs.TitileImg4 !== "") {
+                    $("#TitileCerti4").val(imgPath + imgs.TitileImg4);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg5", {
+            callback: function (files) {
+                imgs.TitileImg5 = imgUploadCallback(files);
+                if (imgs.TitileImg5 !== "") {
+                    $("#TitileCerti5").val(imgPath + imgs.TitileImg5);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg6", {
+            callback: function (files) {
+                imgs.TitileImg6 = imgUploadCallback(files);
+                if (imgs.TitileImg6 !== "") {
+                    $("#TitileCerti6").val(imgPath + imgs.TitileImg6);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg7", {
+            callback: function (files) {
+                imgs.TitileImg7 = imgUploadCallback(files);
+                if (imgs.TitileImg7 !== "") {
+                    $("#TitileCerti7").val(imgPath + imgs.TitileImg7);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg8", {
+            callback: function (files) {
+                imgs.TitileImg8 = imgUploadCallback(files);
+                if (imgs.TitileImg8 !== "") {
+                    $("#TitileCerti8").val(imgPath + imgs.TitileImg8);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg9", {
+            callback: function (files) {
+                imgs.TitileImg9 = imgUploadCallback(files);
+                if (imgs.TitileImg9 !== "") {
+                    $("#TitileCerti9").val(imgPath + imgs.TitileImg9);
+                }
+
+            }
+        });
+        new DragImgUpload("#TitileImg10", {
+            callback: function (files) {
+                imgs.TitileImg10 = imgUploadCallback(files);
+                if (imgs.TitileImg10 !== "") {
+                    $("#TitileCerti10").val(imgPath + imgs.TitileImg10);
+                }
+
+            }
+        });
+
         $(function () {
          
 
             imgs.frontImg = $.trim( $("#CertiFont").val() );
             imgs.BackImg = $.trim( $("#CertiBack").val());
-            imgs.TitileImg = $.trim( $("#TitileCerti").val());
+            imgs.TitileImg = $.trim($("#TitileCerti").val());
+            imgs.TitileImg1 = $.trim($("#TitileCerti1").val());
+            imgs.TitileImg2 = $.trim($("#TitileCerti2").val());
+            imgs.TitileImg3 = $.trim($("#TitileCerti3").val());
+            imgs.TitileImg4 = $.trim($("#TitileCerti4").val());
+            imgs.TitileImg5 = $.trim($("#TitileCerti5").val());
+            imgs.TitileImg6 = $.trim($("#TitileCerti6").val());
+            imgs.TitileImg7 = $.trim($("#TitileCerti7").val());
+            imgs.TitileImg8 = $.trim($("#TitileCerti8").val());
+            imgs.TitileImg9 = $.trim($("#TitileCerti9").val());
+            imgs.TitileImg10 = $.trim($("#TitileCerti10").val());
 
             if (imgs.frontImg !== "") {
                 $("#frontImg img").each(function (i) {
@@ -501,6 +668,66 @@
                 });
             }
 
+            if (imgs.TitileImg1 !== "") {
+                $("#TitileImg1 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg1);
+                });
+            }
+
+            if (imgs.TitileImg2 !== "") {
+                $("#TitileImg2 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg2);
+                });
+            }
+
+            if (imgs.TitileImg3 !== "") {
+                $("#TitileImg3 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg3);
+                });
+            }
+
+            if (imgs.TitileImg4 !== "") {
+                $("#TitileImg4 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg4);
+                });
+            }
+
+            if (imgs.TitileImg5 !== "") {
+                $("#TitileImg5 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg5);
+                });
+            }
+
+            if (imgs.TitileImg6 !== "") {
+                $("#TitileImg6 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg6);
+                });
+            }
+
+            if (imgs.TitileImg7 !== "") {
+                $("#TitileImg7 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg7);
+                });
+            }
+
+            if (imgs.TitileImg8 !== "") {
+                $("#TitileImg8 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg8);
+                });
+            }
+
+            if (imgs.TitileImg9 !== "") {
+                $("#TitileImg9 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg9);
+                });
+            }
+
+            if (imgs.TitileImg10 !== "") {
+                $("#TitileImg10 img").each(function (i) {
+                    $(this).attr("src", imgs.TitileImg10);
+                });
+            }
+
 
         });
 
diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/EditByName.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/EditByName.cshtml
new file mode 100644
index 0000000..e9e0f3a
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/EditByName.cshtml
@@ -0,0 +1,734 @@
+锘緻model DTO.IntentionCustomerDTO
+@using DTO;
+@using zhengcaioa.Models;
+@{
+    // List<Zhuanjium> zhuanjia = ViewData["zhuanjia"] as List<Zhuanjium>; //涓撳
+    List<PltUserDTO> users = ViewData["users"] as List<PltUserDTO>; //閲囪喘鏂瑰紡
+    List<Area> sheng = ViewData["sheng"] as List<Area>; //鐪�
+    List<Area> shi = ViewData["shi"] as List<Area>; //甯�
+    List<Area> quxian = ViewData["quxian"] as List<Area>; //鍖哄幙
+    List<SysCodeDtl> khlx = ViewData["khlx"] as List<SysCodeDtl>; //瀹㈡埛绫诲瀷
+    List<SysCodeDtl> khly = ViewData["khly"] as List<SysCodeDtl>; //瀹㈡埛鏉ユ簮
+    List<SysCodeDtl> hyfl = ViewData["hyfl"] as List<SysCodeDtl>; //琛屼笟鍒嗙被
+    List<HrDeptDTO> DeptId = ViewData["DeptId"] as List<HrDeptDTO>; //閮ㄩ棬
+
+
+
+
+    //string[] arrJobLevel = (Model.Zhuanjia ?? "").Split(',');
+
+}
+@{
+    Layout = null;
+}
+
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
+    <meta name="description" content="">
+    <meta name="author" content="ThemeBucket">
+    <title>@(SiteConfig.SiteName)</title>
+    <link href="~/css/bootstrap.min.css" rel="stylesheet">
+    <link href="~/css/font-awesome.min.css" rel="stylesheet">
+    <link href="~/css/animate.min.css" rel="stylesheet">
+
+    @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
+    <link href="~/css/style.min.css" rel="stylesheet">
+    <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
+    @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
+    @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
+    <link href="~/css/style.min.css" rel="stylesheet">
+    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
+    <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
+
+    <style type="text/css">
+        .webuploader-pick {
+            position: relative;
+            display: inline-block;
+            cursor: pointer;
+            background: #00b7ee;
+            padding: 8px 14px 7px 14px;
+            color: #fff;
+            text-align: center;
+            border-radius: 3px;
+            overflow: hidden;
+        }
+
+        div.clearfix > label {
+            padding-top: 8px;
+        }
+
+        .chosen-container {
+            border-radius: 1px;
+            border: 1px solid #e5e6e7;
+        }
+
+        .col-md-1.control-label {
+            padding-right: 0px;
+            font-weight: 400;
+        }
+    </style>
+
+    <!-- jqgrid-->
+    @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
+    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
+    <script src="~/js/bootstrap.min.js"></script>
+    @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
+
+    <!--瀹瑰櫒-->
+    @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
+    @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
+    @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
+    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
+    @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
+    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
+    @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
+    @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
+    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
+    <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
+
+    <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
+    <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
+    @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
+    @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
+    <script src="~/js/TUJS.js"></script>
+</head>
+<body class="gray-bg" style="overflow:auto">
+    <form id="formtest">
+        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
+            <div class="row">
+                <div class="col-sm-12">
+                    <div class="ibox float-e-margins">
+                        <div class="ibox-title">
+                            <h5>                            <i class="fa fa-list"></i>&nbsp;鍩烘湰淇℃伅</h5>
+                        </div>
+                        <div id="div_content" class="ibox-content" style="background-color:white;">
+                            <div class="row">
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">瀹㈡埛鏉ユ簮<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <select id="Khly" class="form-control" name="Khly" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in khly)
+                                            {
+                                                @if (!item.CodeSn.Equals(Model.Khly))
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+                                        <input type="hidden" id="Id" name="Id" value="@Model.Id" />
+                                    </div>
+
+
+
+                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">琛屼笟鍒嗙被<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                        <select id="Hyfl" class="form-control" name="Hyfl" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in hyfl)
+                                            {
+                                                @if (!item.CodeSn.Equals(Model.Hyfl))
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+
+                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">瀹㈡埛绫诲瀷<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                        <select id="Khlx" class="form-control" name="Khlx" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in khlx)
+                                            {
+                                                @if (!item.CodeSn.Equals(Model.Khlx))
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                        @item.Comments
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+
+                                </div>
+
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎵�灞炲尯鍩�<i class="red">*</i></label>
+
+                                    <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                        <select id="Sheng" class="form-control" name="Sheng" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in sheng)
+                                            {
+                                                @if (!item.CodeId.Equals(Model.Sheng))
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true">
+                                                        @item.Name
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true" selected="selected">
+                                                        @item.Name
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+                                    <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                        <select id="City" class="form-control" name="City" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in shi)
+                                            {
+                                                @if (!item.CodeId.Equals(Model.City))
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true">
+                                                        @item.Name
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true" selected="selected">
+                                                        @item.Name
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+                                    <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                        <select id="AreaId" class="form-control" name="AreaId" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in quxian)
+                                            {
+                                                @if (!item.CodeId.Equals(Model.AreaId))
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true">
+                                                        @item.Name
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.CodeId" hassubinfo="true" selected="selected">
+                                                        @item.Name
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鏌ヨ閮ㄩ棬</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <select id="checkDeptId" class="form-control" name="checkDeptId" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in DeptId)
+                                            {
+
+                                                <option value="@item.Id" hassubinfo="true">
+                                                    @item.DeptName
+                                                </option>
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">涓氬姟缁忕悊</label>
+                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                        <select id="Ywjl" class="form-control" name="Ywjl" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in users)
+                                            {
+                                                @if (!item.Id.Equals(Model.Ywjl))
+                                                {
+                                                    <option value="@item.Id" hassubinfo="true">
+                                                        @item.UserName
+                                                    </option>
+                                                }
+                                                else
+                                                {
+                                                    <option value="@item.Id" hassubinfo="true" selected="selected">
+                                                        @item.UserName
+                                                    </option>
+                                                }
+
+                                            }
+                                            }
+
+                                        </select>
+
+                                    </div>
+                                </div>
+
+                                <div class="ibox-title">
+                                    <h5>                            <i class="fa fa-list"></i>&nbsp;瀹㈡埛璧勬枡</h5>
+                                </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">瀹㈡埛鍗曚綅<i class="red">*</i></label>
+                                    <div class="col-sm-6 col-md-6">
+                                        <input class="form-control" label="瀹㈡埛鍗曚綅" name="Name" id="Name" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Name">
+                                    </div>
+
+
+
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">閭斂缂栫爜</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="閭斂缂栫爜" name="Postal" id="Postal" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Postal">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">璇︾粏鍦板潃</label>
+                                    <div class="col-sm-5 col-md-5">
+                                        <input class="form-control" label="璇︾粏鍦板潃" name="Address" id="Address" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Address">
+                                    </div>
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">缃戝潃</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="缃戝潃" name="Url" id="Url" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Url">
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="Tel" id="Tel" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Tel">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鐭俊鎵嬫満</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鐭俊鎵嬫満" name="Phone" id="Phone" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">QQ</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="QQ" name="Qq" id="Qq" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Qq">
+                                    </div>
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鐢靛瓙閭</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鐢靛瓙閭" name="Email" id="Email" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Email">
+                                    </div>
+                                </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">娉曞畾浠h〃浜�</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="娉曞畾浠h〃浜�" name="FName" id="FName" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.FName">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="FTel" id="FTel" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.FTel">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">QQ</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="QQ" name="FQq" id="FQq" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.FQq">
+                                    </div>
+                                </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">涓氬姟缁忓姙浜�</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="涓氬姟缁忓姙浜�" name="YwName" id="YwName" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.YwName">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="YwTel" id="YwTel" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.YwTel">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">QQ</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="QQ" name="YwQq" id="YwQq" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.YwQq">
+                                    </div>
+                                </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鏈烘瀯浠g爜</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鏈烘瀯浠g爜" name="JgCode" id="JgCode" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.JgCode">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">寮�鎴疯</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="寮�鎴疯" name="Khh" id="Khh" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Khh">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">璐﹀彿</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="璐﹀彿" name="Count" id="Count" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Count">
+                                    </div>
+                                </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鏀惰揣浜�</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鏀惰揣浜�" name="ShrName" id="ShrName" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.ShrName">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="ShrTel" id="ShrTel" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.ShrTel">
+                                    </div>
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鏀惰揣鍦板潃</label>
+                                    <div class="col-sm-5 col-md-5">
+                                        <input class="form-control" label="鏀惰揣鍦板潃" name="ShrAddress" id="ShrAddress" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.ShrAddress">
+                                    </div>
+                                </div>
+
+
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">澶囨敞锛�</label>
+                                    <div class="col-sm-11 col-md-11">
+                                        <textarea class="form-control bt" id="Remark" name="Remark" title="澶囨敞" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
+        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
+            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
+                <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">鍒犻櫎</span>
+                </a>
+
+                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
+                </a>
+            </div>
+        </div>
+
+    </form>
+    <script type="text/javascript">
+        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
+        $("#div_content").height(hh);
+
+        toastr.options = {
+            "closeButton": true,
+            "debug": false,
+            "progressBar": true,
+            "positionClass": "toast-bottom-right",
+            "onclick": null,
+            "showDuration": "300",
+            "hideDuration": "600",
+            "timeOut": "4500",
+            "extendedTimeOut": "600",
+            "showEasing": "swing",
+            "hideEasing": "linear",
+            "showMethod": "fadeIn",
+            "hideMethod": "fadeOut"
+        };
+
+
+        $("#Ywjl").chosen();
+        var id = '@Model.Id';
+        var bUpload = false;
+        var bAdd = false; // 鏂板鎿嶄綔
+        var fileId = ""; // 涓婁紶鏂囦欢鐢熸垚鐨処d
+        var bEditFile = false; // 缂栬緫鏃讹紝鏄惁鍏宠仈浜嗛檮浠�
+        var bDeleteFile = false; // 鍒犻櫎鎿嶄綔
+        var attachment_id = 0; // 闄勪欢id
+        var imgLoad = new Object();
+
+
+
+        var delPosition = function () {
+
+
+            if (id == null || id == '') {
+                toastr.warning("璇峰厛淇濆瓨");
+                return;
+            }
+            $.ajax({
+                type: "GET",
+                url: "/IntentionCustomer/Nullify?id=" + id,
+                dataType: "json",
+                global: false,
+                data: '',
+                success: function (data) {
+
+
+                    if (data.Result) {
+                        //  parent._afterSave(true);
+                        parent.layer.msg('鍒犻櫎鎴愬姛', { icon: 6 });
+                        _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                    }
+                    else {
+                        // toastr.error("");
+                        parent.layer.msg('鍒犻櫎澶辫触', { icon: 5 });
+                    }
+
+                },
+                error: function () {
+                    if ($.isNumber(imgLoad)) {
+                        parent.layer.close(imgLoad);
+                    }
+                    //toastr.error("淇濆瓨澶辫触");
+
+                    parent.layer.msg('淇濆瓨澶辫触', { icon: 5 });
+                }
+            });
+
+        }
+
+        // 淇濆瓨宀椾綅淇℃伅
+        var savePosition = function () {
+            if ($("#Khly").val() == '') {
+                toastr.warning("瀹㈡埛鏉ユ簮涓嶈兘涓虹┖");
+                return;
+            }
+            if ($("#Hyfl").val() == '') {
+                toastr.warning("琛屼笟鍒嗙被涓嶈兘涓虹┖");
+                return;
+            }
+            if ($("#Khlx").val() == '') {
+                toastr.warning("瀹㈡埛绫诲瀷涓嶈兘涓虹┖");
+                return;
+            };
+            if (Verify.isNull($("#Sheng").val()) || Verify.isNull($("#City").val()) || Verify.isNull($("#AreaId").val())) {
+                toastr.warning("鍖哄煙涓嶈兘涓虹┖");
+                return;
+            }
+
+
+
+
+            if ($.trim($("#Name").val()) == '') {
+                toastr.warning("瀹㈡埛鍗曚綅涓嶈兘涓虹┖");
+                return;
+            }
+
+
+            //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
+            $.ajax({
+                type: "POST",
+                url: "/IntentionCustomer/Save",
+                dataType: "json",
+                global: false,
+                data: $('form').serializeArray(),
+                success: function (data) {
+
+
+
+                        if (data.Result) {
+                            //  parent._afterSave(true);
+                            parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+                            //window.location = "/Project/add?id=" + data.ReturnID;
+
+
+                            try {
+                                _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            }
+                            catch (err) {
+                                parent._CloseTab1("/IntentionCustomer/Edit/");
+                            }
+
+                        }
+                        else {
+                            // toastr.error("澶辫触");
+                            parent.layer.msg(data.Message, { icon: 5 });
+                        }
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        }
+
+
+        $("#Sheng").change(function () {
+
+            var sheng = $("#Sheng").val();
+            $.ajax({
+                type: "GET",
+                url: "/Project/getCity?shengid=" + sheng,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+
+                    var city = $("#City");
+                    city.find('option').remove();
+                    var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
+                    city.append(aaa);
+                    if (data.length > 0) {
+                        for (var i = 0; i < data.length; i++) {
+
+                            var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
+                            city.append(o);
+                        }
+                    }
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        });
+
+
+        $("#City").change(function () {
+
+            var city = $("#City").val();
+            $.ajax({
+                type: "GET",
+                url: "/Project/getAreaId?cityid=" + city,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+
+                    var quxian = $("#AreaId");
+                    quxian.find('option').remove();
+                    var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
+                    quxian.append(aaa);
+                    if (data.length > 0) {
+                        for (var i = 0; i < data.length; i++) {
+
+                            var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
+                            quxian.append(o);
+                        }
+                    }
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        });
+
+
+        $("#AreaId").change(function () {
+            addresschushi();
+        });
+
+        function addresschushi() {
+            var sheng = $.trim($("#Sheng").find("option:selected").text());
+            var city = $.trim($("#City").find("option:selected").text());
+            var AreaId = $.trim($("#AreaId").find("option:selected").text());
+            var Address = $("#Address");
+
+            Address.val(sheng + city + AreaId.replace("璇烽�夋嫨", ""));
+        }
+
+        if ($("#Id").val() == '') {
+
+            addresschushi();
+        }
+
+
+          $("#checkDeptId").change(function () {
+
+            var checkDeptId = $("#checkDeptId").val();
+            $.ajax({
+                type: "GET",
+                url: "/User/GetList?IsYwjl=A&DeptId=" + checkDeptId,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+
+                    var quxian = $("#Ywjl");
+                    var userid = '@Model.Ywjl';
+                    quxian.find('option').remove();
+                    var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
+                    quxian.append(aaa);
+                    if (data.length > 0) {
+                        for (var i = 0; i < data.length; i++) {
+
+                            var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].UserName + '</option>';
+
+                            if (data[i].Id == userid) {
+                                o = '<option value="' + data[i].Id + '" hassubinfo="true"  selected="selected">' + data[i].UserName + '</option>';
+                            }
+                            quxian.append(o);
+                        }
+                    }
+                    quxian.trigger('chosen:updated');//鏇存柊閫夐」
+
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        });
+
+
+        function _pageAutoClose() {
+            try {
+                parent.window._reloadPageData();
+            }
+            catch (err) {
+
+            }
+
+
+            var index = parent.layer.getFrameIndex(window.name);
+            parent.layer.isRefresh = true;
+            parent.layer.closeAll('loading');
+            parent.layer.close(index);
+            return false;
+        }
+    </script>
+</body>
+</html>
\ No newline at end of file
diff --git a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
index f88d9fa..dfd855a 100644
--- a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
@@ -21,9 +21,58 @@
             {
                 label: '椤圭洰鍚嶇О', name: 'Name', labtype: 'txt', hidden: false, width: 400 ,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                    return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
                 }
-            }, { label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false, width: 100  },
+            }, { label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false, width: 100 },
+            {
+                label: '涓爣渚涘簲鍟�', name: 'Toubiaocishu', labtype: 'txt', hidden: false, width: 400,
+                formatter: function (cellvalue, options, rowObject) {
+                    if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+                        var ss = cellvalue.split('銆�');
+                        var result = "";
+                        for (var i = 0;i < ss.length; i++){
+                            result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\"  >" + ss[i] + "</a>&nbsp;";
+                        }
+
+                        return result;
+                    } else {
+                        return "";
+                    }
+                }
+            },
+            {
+                label: '绗簩鍊欓��', name: 'Drhx', labtype: 'txt', hidden: false, width: 400,
+                formatter: function (cellvalue, options, rowObject) {
+                    if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+                        var ss = cellvalue.split('銆�');
+                        var result = "";
+                        for (var i = 0; i < ss.length; i++) {
+                            result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\"  >" + ss[i] + "</a>&nbsp;";
+                        }
+
+                        return result;
+                    } else {
+                        return "";
+                    }
+                   
+                }
+            },
+            {
+                label: '绗笁鍊欓��', name: 'Dshx', labtype: 'txt', hidden: false, width: 400,
+                formatter: function (cellvalue, options, rowObject) {
+                    if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+                        var ss = cellvalue.split('銆�');
+                        var result = "";
+                        for (var i = 0; i < ss.length; i++) {
+                            result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\"  >" + ss[i] + "</a>&nbsp;";
+                        }
+
+                        return result;
+                    } else {
+                        return "";
+                    }
+                }
+            },
             { label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false, width: 400 },
             { label: '鎶曟爣娆℃暟', name: 'Toubiaocishu', labtype: 'txt', hidden: true },
             { label: '涓爣娆℃暟', name: 'Zhongbiaocishu', labtype: 'txt', hidden: true },
@@ -39,10 +88,13 @@
 
             { label: '鐪�', name: 'Sheng', labtype: 'combox', hidden: false, data: JSON.parse(shengDropDown), cwidth: '5%', cccwidth: '8%' },
             { label: '甯�', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '8%'  },
-            { label: '鍖哄幙', name: 'AreaId', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '2%', cccwidth: '8%'  },
-            { label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false, cwidth: '8.5%', cccwidth: '15%' },
-            { label: '渚涘簲鍟�', name: 'Names', labtype: 'txt', hidden: false },
+            { label: '鍖哄幙', name: 'AreaId', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '2%', cccwidth: '8%' },
             { label: '閲囪喘鏂瑰紡', name: 'Cgfs', labtype: 'combox', hidden: false, data: JSON.parse(projectDropDown) },
+            { label: '涓爣渚涘簲鍟�', name: 'Names', labtype: 'txt', hidden: false },
+            { label: '鎶曟爣渚涘簲鍟�', name: 'NamesToubiao', labtype: 'txt', hidden: false },
+            { label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false, cwidth: '8.5%', cccwidth: '15%' },
+           
+          
             { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false },
             { label: '褰曞叆浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(Creater), cwidth: '5%', cccwidth: '8%' },
 
diff --git a/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml b/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
index a3e30fc..306dbd6 100644
--- a/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Signin/AttendanceRule.cshtml
@@ -174,8 +174,8 @@
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <div class="col-sm-3 col-md-3">
                                         <div class="setSelect">                                             
-                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control " name="holiday_s[]" style="width:150px;"> -
-                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control" name="holiday_e[]" style="width:150px;">
+                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control " id="holiday_s1" name="holiday_s" style="width:150px;"> -
+                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control" id="holiday_e1" name="holiday_e" style="width:150px;">
                                             <button type="button" class="addBtn" style="padding-bottom:10px;" onclick="addBtn(this)" data-type="1">+</button>
                                         </div>
                                     </div>
@@ -185,8 +185,8 @@
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <div class="col-sm-3 col-md-3">
                                         <div class="setSelect">
-                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control "  name="rest_s[]" style="width:150px;"> -
-                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control " name="rest_e[]" style="width:150px;">
+                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control " id="rest_s1" name="rest_s" style="width:150px;"> -
+                                            <input type="text" value="" class="layui-input  layer-date  ldate form-control " id="rest_e1"  name="rest_e" style="width:150px;">
                                             <button type="button" class="addBtn" style="padding-bottom:10px;" onclick="addRestBtn(this)" data-type="1">+</button>
                                         </div>
                                     </div>
@@ -298,26 +298,31 @@
             //        //alert("閿欒");
             //    }
             //})
-            $(".ldate").each(function (el) {
-                laydate({
-                    elem: "#" + $(this).attr('id'), //瀵瑰簲id
-                    format: 'hh:mm', //鏃ユ湡鏍煎紡 // 鍒嗛殧绗﹀彲浠ヤ换鎰忓畾涔夛紝璇ヤ緥瀛愯〃绀哄彧鏄剧ず骞存湀
-                    min: '00:00:00', //璁惧畾鏈�灏忔棩鏈熶负褰撳墠鏃ユ湡
-                    max: '23:59:59', //鏈�澶ф棩鏈�
-                    type: 'datetime',
-                    isInitValue: true,
-                    festival: false, //鏄剧ず鑺傛棩
-                    istime: true, 聽 //鏄惁鏄剧ず鏃跺垎绉�
-                    istoday: true, //鏄惁鏄粖澶�
-                    choose: function (datas) { //閫夋嫨鏃ユ湡瀹屾瘯鐨勫洖璋�
-                        // console.log(this);
-                        // end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈�
-                        // end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩
-                    }
-                });
+            //$(".ldate").each(function (el) {
+            //    laydate({
+            //        elem: "#" + $(this).attr('id'), //瀵瑰簲id
+            //        format: 'hh:mm', //鏃ユ湡鏍煎紡 // 鍒嗛殧绗﹀彲浠ヤ换鎰忓畾涔夛紝璇ヤ緥瀛愯〃绀哄彧鏄剧ず骞存湀
+            //        min: '00:00:00', //璁惧畾鏈�灏忔棩鏈熶负褰撳墠鏃ユ湡
+            //        max: '23:59:59', //鏈�澶ф棩鏈�
+            //        type: 'datetime',
+            //        isInitValue: true,
+            //        festival: false, //鏄剧ず鑺傛棩
+            //        istime: true, 聽 //鏄惁鏄剧ず鏃跺垎绉�
+            //        istoday: true, //鏄惁鏄粖澶�
+            //        choose: function (datas) { //閫夋嫨鏃ユ湡瀹屾瘯鐨勫洖璋�
+            //            // console.log(this);
+            //            // end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈�
+            //            // end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩
+            //        }
+            //    });
 
-            });
+            //});
 
+            laydate({ elem: "#holiday_e1", format: 'YYYY/MM/DD', istime: true, event: "focus" });
+            laydate({ elem: "#holiday_s1", format: 'YYYY/MM/DD', istime: true, event: "focus" });
+            laydate({ elem: "#rest_s1", format: 'YYYY/MM/DD', istime: true, event: "focus" });
+            laydate({ elem: "#rest_e1", format: 'YYYY/MM/DD', istime: true, event: "focus" });
+            
         });
 
         var _SigninList = function () {
@@ -334,10 +339,10 @@
                 global: false,
                 data:  $('form').serializeArray(),
                 success: function (data) {
-                    toastr.success("鎵撳崱鎴愬姛");
+                    toastr.success("淇濆瓨鎴愬姛");
                 },
                 error: function () {
-                    toastr.error("鎵撳崱澶辫触");
+                    toastr.error("淇濆瓨澶辫触");
                 }
             });
         }

--
Gitblit v1.9.1