From e9f8d150668099ffe648b7c9ab9df290c3276db8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 29 十一月 2021 14:05:22 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Model/TChallengeletter.cs                        |   41 
 zhengcaioa/Model/TComplaintRespondent.cs                    |   19 
 zhengcaioa/DTO/TChallengeItemDTO.cs                         |   16 
 zhengcaioa/Model/TChallengeItem.cs                          |   17 
 zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml         |   66 +
 zhengcaioa/DTO/TChallengeletterDTO.cs                       |   40 
 zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml    |   66 +
 zhengcaioa/zhengcaioa/Views/SysCode/Editquestion.cshtml     |  346 ++++++++
 zhengcaioa/Model/TComplaintletter.cs                        |   52 +
 zhengcaioa/DTO/TComplaintletterDTO.cs                       |   51 +
 zhengcaioa/Model/zhengcaioaContext.cs                       |  374 ++++++++
 zhengcaioa/Services/CooperOrderService.cs                   |  368 ++++++++
 zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs             |   15 
 zhengcaioa/zhengcaioa/Views/SysCode/Editrequestinfo.cshtml  |  346 ++++++++
 zhengcaioa/DTO/TComplaintRespondentDTO.cs                   |   18 
 zhengcaioa/Model/TComplaintItem.cs                          |   17 
 zhengcaioa/DTO/TComplaintItemDTO.cs                         |   16 
 zhengcaioa/IServices/ICooperOrderService.cs                 |   26 
 zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml          |  346 ++++++++
 zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs      |  182 ++++
 zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml |   66 +
 21 files changed, 2,487 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs b/zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs
index f4442f8..c437e32 100644
--- a/zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs
+++ b/zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs
@@ -288,6 +288,21 @@
             CreateMap<ExpertTestTopicpeizhi, ExpertTestTopicpeizhiDTO>();
             CreateMap<ExpertTestTopicpeizhiDTO, ExpertTestTopicpeizhi>();
 
+            CreateMap<TComplaintRespondent, TComplaintRespondentDTO>();
+            CreateMap<TComplaintRespondentDTO, TComplaintRespondent>();
+
+            CreateMap<TComplaintletter, TComplaintletterDTO>();
+            CreateMap<TComplaintletterDTO, TComplaintletter>();
+
+            CreateMap<TComplaintItem, TComplaintItemDTO>();
+            CreateMap<TComplaintItemDTO, TComplaintItem>();
+
+            CreateMap<TChallengeletter, TChallengeletterDTO>();
+            CreateMap<TChallengeletterDTO, TChallengeletter>();
+
+            CreateMap<TChallengeItem, TChallengeItemDTO>();
+            CreateMap<TChallengeItemDTO, TChallengeItem>();
+
             CreateMap<HrShebao, HrShebaoDTO>();
             CreateMap<HrShebaoDTO, HrShebao>();
 
diff --git a/zhengcaioa/DTO/TChallengeItemDTO.cs b/zhengcaioa/DTO/TChallengeItemDTO.cs
new file mode 100644
index 0000000..ade70be
--- /dev/null
+++ b/zhengcaioa/DTO/TChallengeItemDTO.cs
@@ -0,0 +1,16 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DTO
+{
+    public class TChallengeItemDTO
+    {
+        public int Id { get; set; }
+        public string ChallengeId { get; set; }
+        public string Question { get; set; }
+        public string Evidential { get; set; }
+        public string Law { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/DTO/TChallengeletterDTO.cs b/zhengcaioa/DTO/TChallengeletterDTO.cs
new file mode 100644
index 0000000..7a5a448
--- /dev/null
+++ b/zhengcaioa/DTO/TChallengeletterDTO.cs
@@ -0,0 +1,40 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DTO
+{
+   public class TChallengeletterDTO
+    {
+        public string Id { get; set; }
+        public int? PrintNum { get; set; }
+        public string OrderId { get; set; }
+        public string GysId { get; set; }
+        public string GysName { get; set; }
+        public string GysAddress { get; set; }
+        public string GysPostcode { get; set; }
+        public string GysContacts { get; set; }
+        public string GysPhone { get; set; }
+        public string SqdbId { get; set; }
+        public string SqdbName { get; set; }
+        public string SqdbPhone { get; set; }
+        public string SqdbAddress { get; set; }
+        public string SqdbPostcode { get; set; }
+        public string XmId { get; set; }
+        public string XmName { get; set; }
+        public string XmCode { get; set; }
+        public string XmPackage { get; set; }
+        public string PurchaserName { get; set; }
+        public DateTime? DocumentsDate { get; set; }
+        public string RequestInfo { get; set; }
+        public bool? IsReply { get; set; }
+        public string Respondent { get; set; }
+        public DateTime? RespondDate { get; set; }
+        public string RespondInfo { get; set; }
+        public DateTime? Createtime { get; set; }
+        public string Creater { get; set; }
+        public DateTime? Modifytime { get; set; }
+        public string Modifier { get; set; }
+        public int? Status { get; set; }
+    }
+}
diff --git a/zhengcaioa/DTO/TComplaintItemDTO.cs b/zhengcaioa/DTO/TComplaintItemDTO.cs
new file mode 100644
index 0000000..af3f45f
--- /dev/null
+++ b/zhengcaioa/DTO/TComplaintItemDTO.cs
@@ -0,0 +1,16 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DTO
+{
+   public class TComplaintItemDTO
+    {
+        public int Id { get; set; }
+        public string ComplaintId { get; set; }
+        public string Question { get; set; }
+        public string Evidential { get; set; }
+        public string Law { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/DTO/TComplaintRespondentDTO.cs b/zhengcaioa/DTO/TComplaintRespondentDTO.cs
new file mode 100644
index 0000000..df90377
--- /dev/null
+++ b/zhengcaioa/DTO/TComplaintRespondentDTO.cs
@@ -0,0 +1,18 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DTO
+{
+    public class TComplaintRespondentDTO
+    {
+        public int Id { get; set; }
+        public string ComplaintId { get; set; }
+        public string Respondent { get; set; }
+        public string Address { get; set; }
+        public string Postcode { get; set; }
+        public string Contacts { get; set; }
+        public string Phone { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/DTO/TComplaintletterDTO.cs b/zhengcaioa/DTO/TComplaintletterDTO.cs
new file mode 100644
index 0000000..775b2c0
--- /dev/null
+++ b/zhengcaioa/DTO/TComplaintletterDTO.cs
@@ -0,0 +1,51 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DTO
+{
+   public class TComplaintletterDTO
+    {
+        public string Id { get; set; }
+        public int? PrintNum { get; set; }
+        public string OrderId { get; set; }
+        public string TsrId { get; set; }
+        public string TsrName { get; set; }
+        public string TsrAddress { get; set; }
+        public string TsrPostcode { get; set; }
+        public string TsrCorporation { get; set; }
+        public string TsrPhone { get; set; }
+        public string SqdbId { get; set; }
+        public string SqdbName { get; set; }
+        public string SqdbPhone { get; set; }
+        public string SqdbAddress { get; set; }
+        public string SqdbPostcode { get; set; }
+        public string GysId { get; set; }
+        public string GysName { get; set; }
+        public string GysAddress { get; set; }
+        public string GysPostcode { get; set; }
+        public string GysContacts { get; set; }
+        public string GysPhone { get; set; }
+        public string XmId { get; set; }
+        public string XmName { get; set; }
+        public string XmCode { get; set; }
+        public string XmPackage { get; set; }
+        public string PurchaserName { get; set; }
+        public string Agency { get; set; }
+        public bool? IsNotice { get; set; }
+        public DateTime? NoticeDate { get; set; }
+        public DateTime? ChallengeDate { get; set; }
+        public string Questioned { get; set; }
+        public string Respondent { get; set; }
+        public DateTime? RespondDate { get; set; }
+        public bool? IsResultnotice { get; set; }
+        public DateTime? ResultnoticeDate { get; set; }
+        public DateTime? DocumentsDate { get; set; }
+        public string RequestInfo { get; set; }
+        public DateTime? Createtime { get; set; }
+        public string Creater { get; set; }
+        public DateTime? Modifytime { get; set; }
+        public string Modifier { get; set; }
+        public int? Status { get; set; }
+    }
+}
diff --git a/zhengcaioa/IServices/ICooperOrderService.cs b/zhengcaioa/IServices/ICooperOrderService.cs
index 0e36a6f..3cc4bab 100644
--- a/zhengcaioa/IServices/ICooperOrderService.cs
+++ b/zhengcaioa/IServices/ICooperOrderService.cs
@@ -38,5 +38,31 @@
 
         List<CooperOrderDTO> GetListtongji(string userid, DateTime datemin, DateTime datemax);
 
+
+        //璐ㄧ枒鍑藉巻鍙茶褰曡〃
+        ResultEntity saveChallengeletter(TChallengeletterDTO dto);
+
+        List<TChallengeletterDTO> GetListChallengeletter(string OrderId);
+
+        //璐ㄧ枒鍑戒簨椤瑰唴瀹瑰瓙琛�
+        ResultEntity saveChallengeItem(TChallengeItemDTO dto);
+
+        List<TChallengeItemDTO> GetListChallengeItem(string ChallengeId);
+
+        //鎶曡瘔涔﹀巻鍙茶褰曡〃
+        ResultEntity saveComplaintletter(TComplaintletterDTO dto);
+
+        List<TComplaintletterDTO> GetListComplaintletter(string OrderId);
+
+        //鎶曡瘔涔︿簨椤瑰唴瀹瑰瓙琛�
+        ResultEntity saveComplaintItem(TComplaintItemDTO dto);
+
+        List<TComplaintItemDTO> GetListComplaintItem(string ComplaintId);
+
+        //鎶曡瘔涔﹁鎶曡瘔浜哄瓙琛�
+        ResultEntity saveComplaintRespondent(TComplaintRespondentDTO dto);
+
+        List<TComplaintRespondentDTO> GetListComplaintRespondent(string ComplaintId);
+
     }
 }
diff --git a/zhengcaioa/Model/TChallengeItem.cs b/zhengcaioa/Model/TChallengeItem.cs
new file mode 100644
index 0000000..70d018c
--- /dev/null
+++ b/zhengcaioa/Model/TChallengeItem.cs
@@ -0,0 +1,17 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace zhengcaioa.Models
+{
+    public partial class TChallengeItem
+    {
+        public int Id { get; set; }
+        public string ChallengeId { get; set; }
+        public string Question { get; set; }
+        public string Evidential { get; set; }
+        public string Law { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/Model/TChallengeletter.cs b/zhengcaioa/Model/TChallengeletter.cs
new file mode 100644
index 0000000..ea8f7ef
--- /dev/null
+++ b/zhengcaioa/Model/TChallengeletter.cs
@@ -0,0 +1,41 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace zhengcaioa.Models
+{
+    public partial class TChallengeletter
+    {
+        public string Id { get; set; }
+        public int? PrintNum { get; set; }
+        public string OrderId { get; set; }
+        public string GysId { get; set; }
+        public string GysName { get; set; }
+        public string GysAddress { get; set; }
+        public string GysPostcode { get; set; }
+        public string GysContacts { get; set; }
+        public string GysPhone { get; set; }
+        public string SqdbId { get; set; }
+        public string SqdbName { get; set; }
+        public string SqdbPhone { get; set; }
+        public string SqdbAddress { get; set; }
+        public string SqdbPostcode { get; set; }
+        public string XmId { get; set; }
+        public string XmName { get; set; }
+        public string XmCode { get; set; }
+        public string XmPackage { get; set; }
+        public string PurchaserName { get; set; }
+        public DateTime? DocumentsDate { get; set; }
+        public string RequestInfo { get; set; }
+        public bool? IsReply { get; set; }
+        public string Respondent { get; set; }
+        public DateTime? RespondDate { get; set; }
+        public string RespondInfo { get; set; }
+        public DateTime? Createtime { get; set; }
+        public string Creater { get; set; }
+        public DateTime? Modifytime { get; set; }
+        public string Modifier { get; set; }
+        public int? Status { get; set; }
+    }
+}
diff --git a/zhengcaioa/Model/TComplaintItem.cs b/zhengcaioa/Model/TComplaintItem.cs
new file mode 100644
index 0000000..7d17eb6
--- /dev/null
+++ b/zhengcaioa/Model/TComplaintItem.cs
@@ -0,0 +1,17 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace zhengcaioa.Models
+{
+    public partial class TComplaintItem
+    {
+        public int Id { get; set; }
+        public string ComplaintId { get; set; }
+        public string Question { get; set; }
+        public string Evidential { get; set; }
+        public string Law { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/Model/TComplaintRespondent.cs b/zhengcaioa/Model/TComplaintRespondent.cs
new file mode 100644
index 0000000..70220ac
--- /dev/null
+++ b/zhengcaioa/Model/TComplaintRespondent.cs
@@ -0,0 +1,19 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace zhengcaioa.Models
+{
+    public partial class TComplaintRespondent
+    {
+        public int Id { get; set; }
+        public string ComplaintId { get; set; }
+        public string Respondent { get; set; }
+        public string Address { get; set; }
+        public string Postcode { get; set; }
+        public string Contacts { get; set; }
+        public string Phone { get; set; }
+        public int? Sort { get; set; }
+    }
+}
diff --git a/zhengcaioa/Model/TComplaintletter.cs b/zhengcaioa/Model/TComplaintletter.cs
new file mode 100644
index 0000000..22bbf63
--- /dev/null
+++ b/zhengcaioa/Model/TComplaintletter.cs
@@ -0,0 +1,52 @@
+锘縰sing System;
+using System.Collections.Generic;
+
+#nullable disable
+
+namespace zhengcaioa.Models
+{
+    public partial class TComplaintletter
+    {
+        public string Id { get; set; }
+        public int? PrintNum { get; set; }
+        public string OrderId { get; set; }
+        public string TsrId { get; set; }
+        public string TsrName { get; set; }
+        public string TsrAddress { get; set; }
+        public string TsrPostcode { get; set; }
+        public string TsrCorporation { get; set; }
+        public string TsrPhone { get; set; }
+        public string SqdbId { get; set; }
+        public string SqdbName { get; set; }
+        public string SqdbPhone { get; set; }
+        public string SqdbAddress { get; set; }
+        public string SqdbPostcode { get; set; }
+        public string GysId { get; set; }
+        public string GysName { get; set; }
+        public string GysAddress { get; set; }
+        public string GysPostcode { get; set; }
+        public string GysContacts { get; set; }
+        public string GysPhone { get; set; }
+        public string XmId { get; set; }
+        public string XmName { get; set; }
+        public string XmCode { get; set; }
+        public string XmPackage { get; set; }
+        public string PurchaserName { get; set; }
+        public string Agency { get; set; }
+        public bool? IsNotice { get; set; }
+        public DateTime? NoticeDate { get; set; }
+        public DateTime? ChallengeDate { get; set; }
+        public string Questioned { get; set; }
+        public string Respondent { get; set; }
+        public DateTime? RespondDate { get; set; }
+        public bool? IsResultnotice { get; set; }
+        public DateTime? ResultnoticeDate { get; set; }
+        public DateTime? DocumentsDate { get; set; }
+        public string RequestInfo { get; set; }
+        public DateTime? Createtime { get; set; }
+        public string Creater { get; set; }
+        public DateTime? Modifytime { get; set; }
+        public string Modifier { get; set; }
+        public int? Status { get; set; }
+    }
+}
diff --git a/zhengcaioa/Model/zhengcaioaContext.cs b/zhengcaioa/Model/zhengcaioaContext.cs
index 85daed3..e60d401 100644
--- a/zhengcaioa/Model/zhengcaioaContext.cs
+++ b/zhengcaioa/Model/zhengcaioaContext.cs
@@ -126,6 +126,15 @@
         public virtual DbSet<AskLeaveOff> AskLeaveOffs { get; set; }
         public virtual DbSet<SignIn> SignIns { get; set; }
         #endregion
+
+
+        public virtual DbSet<TChallengeItem> TChallengeItems { get; set; }
+        public virtual DbSet<TChallengeletter> TChallengeletters { get; set; }
+        public virtual DbSet<TComplaintItem> TComplaintItems { get; set; }
+        public virtual DbSet<TComplaintRespondent> TComplaintRespondents { get; set; }
+        public virtual DbSet<TComplaintletter> TComplaintletters { get; set; }
+
+
         protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
         {
             if (!optionsBuilder.IsConfigured)
@@ -6921,6 +6930,371 @@
                 entity.Property(e => e.StratTime).HasColumnType("datetime");
             });
             #endregion
+
+
+            modelBuilder.Entity<TChallengeItem>(entity =>
+            {
+                entity.ToTable("t_challenge_items");
+
+                entity.Property(e => e.Id).HasColumnName("id");
+
+                entity.Property(e => e.ChallengeId)
+                    .HasMaxLength(50)
+                    .HasColumnName("challenge_id");
+
+                entity.Property(e => e.Evidential)
+                    .HasMaxLength(300)
+                    .HasColumnName("evidential");
+
+                entity.Property(e => e.Law)
+                    .HasMaxLength(300)
+                    .HasColumnName("law");
+
+                entity.Property(e => e.Question)
+                    .HasMaxLength(300)
+                    .HasColumnName("question");
+
+                entity.Property(e => e.Sort).HasColumnName("sort");
+            });
+
+            modelBuilder.Entity<TChallengeletter>(entity =>
+            {
+                entity.ToTable("t_challengeletter");
+
+                entity.Property(e => e.Id)
+                    .HasMaxLength(50)
+                    .HasColumnName("id");
+
+                entity.Property(e => e.Creater)
+                    .HasMaxLength(50)
+                    .HasColumnName("creater");
+
+                entity.Property(e => e.Createtime)
+                    .HasColumnType("datetime")
+                    .HasColumnName("createtime");
+
+                entity.Property(e => e.DocumentsDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("documents_date");
+
+                entity.Property(e => e.GysAddress)
+                    .HasMaxLength(100)
+                    .HasColumnName("gys_address");
+
+                entity.Property(e => e.GysContacts)
+                    .HasMaxLength(30)
+                    .HasColumnName("gys_contacts");
+
+                entity.Property(e => e.GysId)
+                    .HasMaxLength(50)
+                    .HasColumnName("gys_id");
+
+                entity.Property(e => e.GysName)
+                    .HasMaxLength(50)
+                    .HasColumnName("gys_name");
+
+                entity.Property(e => e.GysPhone)
+                    .HasMaxLength(30)
+                    .HasColumnName("gys_phone");
+
+                entity.Property(e => e.GysPostcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("gys_postcode");
+
+                entity.Property(e => e.IsReply).HasColumnName("is_reply");
+
+                entity.Property(e => e.Modifier)
+                    .HasMaxLength(50)
+                    .HasColumnName("modifier");
+
+                entity.Property(e => e.Modifytime)
+                    .HasColumnType("datetime")
+                    .HasColumnName("modifytime");
+
+                entity.Property(e => e.OrderId)
+                    .HasMaxLength(50)
+                    .HasColumnName("order_id");
+
+                entity.Property(e => e.PrintNum).HasColumnName("print_num");
+
+                entity.Property(e => e.PurchaserName)
+                    .HasMaxLength(50)
+                    .HasColumnName("purchaser_name");
+
+                entity.Property(e => e.RequestInfo)
+                    .HasMaxLength(300)
+                    .HasColumnName("request_info");
+
+                entity.Property(e => e.RespondDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("respond_date");
+
+                entity.Property(e => e.RespondInfo)
+                    .HasMaxLength(500)
+                    .HasColumnName("respond_info");
+
+                entity.Property(e => e.Respondent)
+                    .HasMaxLength(50)
+                    .HasColumnName("respondent");
+
+                entity.Property(e => e.SqdbAddress)
+                    .HasMaxLength(100)
+                    .HasColumnName("sqdb_address");
+
+                entity.Property(e => e.SqdbId)
+                    .HasMaxLength(50)
+                    .HasColumnName("sqdb_id");
+
+                entity.Property(e => e.SqdbName)
+                    .HasMaxLength(50)
+                    .HasColumnName("sqdb_name");
+
+                entity.Property(e => e.SqdbPhone)
+                    .HasMaxLength(30)
+                    .HasColumnName("sqdb_phone");
+
+                entity.Property(e => e.SqdbPostcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("sqdb_postcode");
+
+                entity.Property(e => e.Status).HasColumnName("status");
+
+                entity.Property(e => e.XmCode)
+                    .HasMaxLength(30)
+                    .HasColumnName("xm_code");
+
+                entity.Property(e => e.XmId)
+                    .HasMaxLength(50)
+                    .HasColumnName("xm_id");
+
+                entity.Property(e => e.XmName)
+                    .HasMaxLength(100)
+                    .HasColumnName("xm_name");
+
+                entity.Property(e => e.XmPackage)
+                    .HasMaxLength(30)
+                    .HasColumnName("xm_package");
+            });
+
+            modelBuilder.Entity<TComplaintItem>(entity =>
+            {
+                entity.ToTable("t_complaint_items");
+
+                entity.Property(e => e.Id).HasColumnName("id");
+
+                entity.Property(e => e.ComplaintId)
+                    .HasMaxLength(50)
+                    .HasColumnName("complaint_id");
+
+                entity.Property(e => e.Evidential)
+                    .HasMaxLength(300)
+                    .HasColumnName("evidential");
+
+                entity.Property(e => e.Law)
+                    .HasMaxLength(300)
+                    .HasColumnName("law");
+
+                entity.Property(e => e.Question)
+                    .HasMaxLength(300)
+                    .HasColumnName("question");
+
+                entity.Property(e => e.Sort).HasColumnName("sort");
+            });
+
+            modelBuilder.Entity<TComplaintRespondent>(entity =>
+            {
+                entity.ToTable("t_complaint_respondents");
+
+                entity.Property(e => e.Id).HasColumnName("id");
+
+                entity.Property(e => e.Address)
+                    .HasMaxLength(100)
+                    .HasColumnName("address");
+
+                entity.Property(e => e.ComplaintId)
+                    .HasMaxLength(50)
+                    .HasColumnName("complaint_id");
+
+                entity.Property(e => e.Contacts)
+                    .HasMaxLength(30)
+                    .HasColumnName("contacts");
+
+                entity.Property(e => e.Phone)
+                    .HasMaxLength(30)
+                    .HasColumnName("phone");
+
+                entity.Property(e => e.Postcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("postcode");
+
+                entity.Property(e => e.Respondent)
+                    .HasMaxLength(50)
+                    .HasColumnName("respondent");
+
+                entity.Property(e => e.Sort).HasColumnName("sort");
+            });
+
+            modelBuilder.Entity<TComplaintletter>(entity =>
+            {
+                entity.ToTable("t_complaintletter");
+
+                entity.Property(e => e.Id)
+                    .HasMaxLength(50)
+                    .HasColumnName("id");
+
+                entity.Property(e => e.Agency)
+                    .HasMaxLength(50)
+                    .HasColumnName("agency");
+
+                entity.Property(e => e.ChallengeDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("challenge_date");
+
+                entity.Property(e => e.Creater)
+                    .HasMaxLength(50)
+                    .HasColumnName("creater");
+
+                entity.Property(e => e.Createtime)
+                    .HasColumnType("datetime")
+                    .HasColumnName("createtime");
+
+                entity.Property(e => e.DocumentsDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("documents_date");
+
+                entity.Property(e => e.GysAddress)
+                    .HasMaxLength(100)
+                    .HasColumnName("gys_address");
+
+                entity.Property(e => e.GysContacts)
+                    .HasMaxLength(30)
+                    .HasColumnName("gys_contacts");
+
+                entity.Property(e => e.GysId)
+                    .HasMaxLength(50)
+                    .HasColumnName("gys_id");
+
+                entity.Property(e => e.GysName)
+                    .HasMaxLength(50)
+                    .HasColumnName("gys_name");
+
+                entity.Property(e => e.GysPhone)
+                    .HasMaxLength(30)
+                    .HasColumnName("gys_phone");
+
+                entity.Property(e => e.GysPostcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("gys_postcode");
+
+                entity.Property(e => e.IsNotice).HasColumnName("is_notice");
+
+                entity.Property(e => e.IsResultnotice).HasColumnName("is_resultnotice");
+
+                entity.Property(e => e.Modifier)
+                    .HasMaxLength(50)
+                    .HasColumnName("modifier");
+
+                entity.Property(e => e.Modifytime)
+                    .HasColumnType("datetime")
+                    .HasColumnName("modifytime");
+
+                entity.Property(e => e.NoticeDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("notice_date");
+
+                entity.Property(e => e.OrderId)
+                    .HasMaxLength(50)
+                    .HasColumnName("order_id");
+
+                entity.Property(e => e.PrintNum).HasColumnName("print_num");
+
+                entity.Property(e => e.PurchaserName)
+                    .HasMaxLength(50)
+                    .HasColumnName("purchaser_name");
+
+                entity.Property(e => e.Questioned)
+                    .HasMaxLength(50)
+                    .HasColumnName("questioned");
+
+                entity.Property(e => e.RequestInfo)
+                    .HasMaxLength(300)
+                    .HasColumnName("request_info");
+
+                entity.Property(e => e.RespondDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("respond_date");
+
+                entity.Property(e => e.Respondent)
+                    .HasMaxLength(50)
+                    .HasColumnName("respondent");
+
+                entity.Property(e => e.ResultnoticeDate)
+                    .HasColumnType("datetime")
+                    .HasColumnName("resultnotice_date");
+
+                entity.Property(e => e.SqdbAddress)
+                    .HasMaxLength(100)
+                    .HasColumnName("sqdb_address");
+
+                entity.Property(e => e.SqdbId)
+                    .HasMaxLength(50)
+                    .HasColumnName("sqdb_id");
+
+                entity.Property(e => e.SqdbName)
+                    .HasMaxLength(50)
+                    .HasColumnName("sqdb_name");
+
+                entity.Property(e => e.SqdbPhone)
+                    .HasMaxLength(30)
+                    .HasColumnName("sqdb_phone");
+
+                entity.Property(e => e.SqdbPostcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("sqdb_postcode");
+
+                entity.Property(e => e.Status).HasColumnName("status");
+
+                entity.Property(e => e.TsrAddress)
+                    .HasMaxLength(100)
+                    .HasColumnName("tsr_address");
+
+                entity.Property(e => e.TsrCorporation)
+                    .HasMaxLength(30)
+                    .HasColumnName("tsr_corporation");
+
+                entity.Property(e => e.TsrId)
+                    .HasMaxLength(50)
+                    .HasColumnName("tsr_id");
+
+                entity.Property(e => e.TsrName)
+                    .HasMaxLength(50)
+                    .HasColumnName("tsr_name");
+
+                entity.Property(e => e.TsrPhone)
+                    .HasMaxLength(30)
+                    .HasColumnName("tsr_phone");
+
+                entity.Property(e => e.TsrPostcode)
+                    .HasMaxLength(10)
+                    .HasColumnName("tsr_postcode");
+
+                entity.Property(e => e.XmCode)
+                    .HasMaxLength(30)
+                    .HasColumnName("xm_code");
+
+                entity.Property(e => e.XmId)
+                    .HasMaxLength(50)
+                    .HasColumnName("xm_id");
+
+                entity.Property(e => e.XmName)
+                    .HasMaxLength(100)
+                    .HasColumnName("xm_name");
+
+                entity.Property(e => e.XmPackage)
+                    .HasMaxLength(30)
+                    .HasColumnName("xm_package");
+            });
+
             OnModelCreatingPartial(modelBuilder);
         }
 
diff --git a/zhengcaioa/Services/CooperOrderService.cs b/zhengcaioa/Services/CooperOrderService.cs
index b6a58f8..272594e 100644
--- a/zhengcaioa/Services/CooperOrderService.cs
+++ b/zhengcaioa/Services/CooperOrderService.cs
@@ -918,6 +918,372 @@
         }
 
 
-        
+
+        public List<TChallengeletterDTO> GetListChallengeletter(string OrderId)
+        {
+
+            var entity = _context.TChallengeletters.Where(x => x.Status == 1 && x.OrderId == OrderId).ToList();
+
+
+
+            var result = _mapper.Map<List<TChallengeletterDTO>>(entity);
+
+
+            return result;
+        }
+
+
+        public ResultEntity saveChallengeletter(TChallengeletterDTO dto)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+
+
+                var entity = _mapper.Map<TChallengeletter>(dto);
+
+
+                if (String.IsNullOrEmpty(entity.Id))
+                {
+                    entity.Id = Guid.NewGuid().ToString();
+                    dto.Id = entity.Id;
+
+                    _context.TChallengeletters.Add(entity);
+                }
+                else
+                {
+                    var updateproject = _context.TChallengeletters.Find(entity.Id);
+
+                  
+                    updateproject.PrintNum = entity.PrintNum;
+                    updateproject.OrderId = entity.OrderId;
+                    updateproject.GysId = entity.GysId;
+                    updateproject.GysName = entity.GysName;
+                    updateproject.GysAddress = entity.GysAddress;
+                    updateproject.GysPostcode = entity.GysPostcode;
+                    updateproject.GysContacts = entity.GysContacts;
+                    updateproject.GysPhone = entity.GysPhone;
+                    updateproject.SqdbId = entity.SqdbId;
+                    updateproject.SqdbName = entity.SqdbName;
+                    updateproject.SqdbPhone = entity.SqdbPhone;
+                    updateproject.SqdbAddress = entity.SqdbAddress;
+                    updateproject.SqdbPostcode = entity.SqdbPostcode;
+                    updateproject.XmId = entity.XmId;
+                    updateproject.XmName = entity.XmName;
+                    updateproject.XmCode = entity.XmCode;
+                    updateproject.XmPackage = entity.XmPackage;
+                    updateproject.PurchaserName = entity.PurchaserName;
+                    updateproject.DocumentsDate = entity.DocumentsDate;
+                    updateproject.RequestInfo = entity.RequestInfo;
+
+                    updateproject.IsReply = entity.IsReply;
+                
+
+                    updateproject.Respondent = entity.Respondent;
+                    updateproject.RespondDate = entity.RespondDate;
+                    updateproject.RespondInfo = entity.RespondInfo;
+                  
+
+                    updateproject.Modifier = entity.Modifier;
+                    updateproject.Modifytime = entity.Modifytime;
+
+                }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = entity.Id;
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
+
+        public List<TChallengeItemDTO> GetListChallengeItem(string ChallengeId)
+        {
+
+            var entity = _context.TChallengeItems.Where(x =>  x.ChallengeId == ChallengeId).ToList();
+
+
+
+            var result = _mapper.Map<List<TChallengeItemDTO>>(entity);
+
+
+            return result;
+        }
+
+
+        public ResultEntity saveChallengeItem(TChallengeItemDTO dto)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+
+
+                var entity = _mapper.Map<TChallengeItem>(dto);
+
+
+                if (entity.Id<=0)
+                {
+                 
+
+                    _context.TChallengeItems.Add(entity);
+                }
+                else
+                {
+                    var updateproject = _context.TChallengeItems.Find(entity.Id);
+
+
+                    updateproject.ChallengeId = entity.ChallengeId;
+                    updateproject.Question = entity.Question;
+                    updateproject.Evidential = entity.Evidential;
+                    updateproject.Law = entity.Law;
+                    updateproject.Sort = entity.Sort;
+                    
+
+                }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = entity.Id.ToString();
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
+
+        public List<TComplaintletterDTO> GetListComplaintletter(string OrderId)
+        {
+
+            var entity = _context.TComplaintletters.Where(x => x.Status == 1 && x.OrderId == OrderId).ToList();
+
+
+
+            var result = _mapper.Map<List<TComplaintletterDTO>>(entity);
+
+
+            return result;
+        }
+
+
+        public ResultEntity saveComplaintletter(TComplaintletterDTO dto)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+
+
+                var entity = _mapper.Map<TComplaintletter>(dto);
+
+
+                if (String.IsNullOrEmpty(entity.Id))
+                {
+                    entity.Id = Guid.NewGuid().ToString();
+                    dto.Id = entity.Id;
+
+                    _context.TComplaintletters.Add(entity);
+                }
+                else
+                {
+                    var updateproject = _context.TComplaintletters.Find(entity.Id);
+
+
+                    updateproject.PrintNum = entity.PrintNum;
+                    updateproject.OrderId = entity.OrderId;
+                    updateproject.TsrId = entity.TsrId;
+
+                    updateproject.TsrName = entity.TsrName;
+                    updateproject.TsrAddress = entity.TsrAddress;
+                    updateproject.TsrPostcode = entity.TsrPostcode;
+                    updateproject.TsrCorporation = entity.TsrCorporation;
+                    updateproject.TsrPhone = entity.TsrPhone;
+
+                    updateproject.SqdbId = entity.SqdbId;
+                    updateproject.SqdbName = entity.SqdbName;
+                    updateproject.SqdbPhone = entity.SqdbPhone;
+                    updateproject.SqdbAddress = entity.SqdbAddress;
+                    updateproject.SqdbPostcode = entity.SqdbPostcode;
+
+
+
+                    updateproject.GysId = entity.GysId;
+                    updateproject.GysName = entity.GysName;
+                    updateproject.GysAddress = entity.GysAddress;
+                    updateproject.GysPostcode = entity.GysPostcode;
+                    updateproject.GysContacts = entity.GysContacts;
+                    updateproject.GysPhone = entity.GysPhone;
+                   
+                    updateproject.XmId = entity.XmId;
+                    updateproject.XmName = entity.XmName;
+                    updateproject.XmCode = entity.XmCode;
+                    updateproject.XmPackage = entity.XmPackage;
+                    updateproject.PurchaserName = entity.PurchaserName;
+
+                    updateproject.Agency = entity.Agency;
+                    updateproject.IsNotice = entity.IsNotice;
+                    updateproject.NoticeDate = entity.NoticeDate;
+
+                    updateproject.ChallengeDate = entity.ChallengeDate;
+                    updateproject.Questioned = entity.Questioned;
+                    updateproject.Respondent = entity.Respondent;
+                    updateproject.RespondDate = entity.RespondDate;
+
+                    updateproject.IsResultnotice = entity.IsResultnotice;
+                    updateproject.ResultnoticeDate = entity.ResultnoticeDate;
+
+                    updateproject.DocumentsDate = entity.DocumentsDate;
+                    updateproject.RequestInfo = entity.RequestInfo;
+
+                   
+
+
+                  
+                   
+
+
+                    updateproject.Modifier = entity.Modifier;
+                    updateproject.Modifytime = entity.Modifytime;
+
+                }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = entity.Id;
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
+
+        public List<TComplaintItemDTO> GetListComplaintItem(string ComplaintId)
+        {
+
+            var entity = _context.TComplaintItems.Where(x => x.ComplaintId == ComplaintId).ToList();
+
+
+
+            var result = _mapper.Map<List<TComplaintItemDTO>>(entity);
+
+
+            return result;
+        }
+
+
+        public ResultEntity saveComplaintItem(TComplaintItemDTO dto)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+
+
+                var entity = _mapper.Map<TComplaintItem>(dto);
+
+
+                if (entity.Id <= 0)
+                {
+
+
+                    _context.TComplaintItems.Add(entity);
+                }
+                else
+                {
+                    var updateproject = _context.TComplaintItems.Find(entity.Id);
+
+
+                    updateproject.ComplaintId = entity.ComplaintId;
+                    updateproject.Question = entity.Question;
+                    updateproject.Evidential = entity.Evidential;
+                    updateproject.Law = entity.Law;
+                    updateproject.Sort = entity.Sort;
+
+
+                }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = entity.Id.ToString();
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
+        public List<TComplaintRespondentDTO> GetListComplaintRespondent(string ComplaintId)
+        {
+
+            var entity = _context.TComplaintRespondents.Where(x => x.ComplaintId == ComplaintId).ToList();
+
+
+
+            var result = _mapper.Map<List<TComplaintRespondentDTO>>(entity);
+
+
+            return result;
+        }
+
+
+        public ResultEntity saveComplaintRespondent(TComplaintRespondentDTO dto)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+
+
+                var entity = _mapper.Map<TComplaintRespondent>(dto);
+
+
+                if (entity.Id <= 0)
+                {
+
+
+                    _context.TComplaintRespondents.Add(entity);
+                }
+                else
+                {
+                    var updateproject = _context.TComplaintRespondents.Find(entity.Id);
+
+
+                    updateproject.ComplaintId = entity.ComplaintId;
+                    updateproject.Respondent = entity.Respondent;
+                    updateproject.Address = entity.Address;
+                    updateproject.Postcode = entity.Postcode;
+                    updateproject.Contacts = entity.Contacts;
+                    updateproject.Phone = entity.Phone;
+                    updateproject.Sort = entity.Sort;
+
+
+                }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = entity.Id.ToString();
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
     }
 }
diff --git a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
index f1af035..0473139 100644
--- a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
@@ -522,7 +522,189 @@
 
 
 
+        //璐ㄧ枒璇锋眰
 
+        [CheckLogin]
+        public IActionResult Indexrequestinfo()
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            List<ActionEntity> actionlist = new List<ActionEntity>();
+            ActionEntity actionEntity = new ActionEntity();
+            actionEntity.OpenType = 0;
+            actionEntity.ActionUrl = "";
+            actionEntity.ActionFun = "Search";
+            actionEntity.PageIco = "fa fa-search";
+            actionEntity.ActionName = "鏌ヨ";
+            actionlist.Add(actionEntity);
+            ActionEntity actionEntity1 = new ActionEntity();
+            actionEntity1.OpenType = 0;
+            actionEntity1.ActionUrl = "";
+            actionEntity1.ActionFun = "Add";
+            actionEntity1.PageIco = "fa fa-plus";
+            actionEntity1.ActionName = "鏂板";
+            actionlist.Add(actionEntity1);
+            ViewData["ActionInfo"] = actionlist;
+            return View();
+        }
+
+        [CheckLogin]
+        public IActionResult GetListrequestinfo(SysCodeDtlSearchEntity searchEntity)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            //JsonResult jsonResult =   new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver());
+            searchEntity.CodeTable = "t_challengeletter";
+            searchEntity.CodeField = "request_info";
+            searchEntity.Sort = "CodeSn";
+            return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity));
+        }
+
+
+
+        public IActionResult Editrequestinfo(string id)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+
+
+            SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity();
+
+
+            sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_challengeletter", "request_info");
+
+
+            ViewData.Model = sysCodeDtlEntity;
+
+
+
+
+            return View();
+        }
+
+
+
+        //璐ㄧ枒浜嬮」
+
+        [CheckLogin]
+        public IActionResult Indexquestion()
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            List<ActionEntity> actionlist = new List<ActionEntity>();
+            ActionEntity actionEntity = new ActionEntity();
+            actionEntity.OpenType = 0;
+            actionEntity.ActionUrl = "";
+            actionEntity.ActionFun = "Search";
+            actionEntity.PageIco = "fa fa-search";
+            actionEntity.ActionName = "鏌ヨ";
+            actionlist.Add(actionEntity);
+            ActionEntity actionEntity1 = new ActionEntity();
+            actionEntity1.OpenType = 0;
+            actionEntity1.ActionUrl = "";
+            actionEntity1.ActionFun = "Add";
+            actionEntity1.PageIco = "fa fa-plus";
+            actionEntity1.ActionName = "鏂板";
+            actionlist.Add(actionEntity1);
+            ViewData["ActionInfo"] = actionlist;
+            return View();
+        }
+
+        [CheckLogin]
+        public IActionResult GetListquestion(SysCodeDtlSearchEntity searchEntity)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            //JsonResult jsonResult =   new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver());
+            searchEntity.CodeTable = "t_challenge_items";
+            searchEntity.CodeField = "question";
+            searchEntity.Sort = "CodeSn";
+            return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity));
+        }
+
+
+
+        public IActionResult Editquestion(string id)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+
+
+            SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity();
+
+
+            sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_challenge_items", "question");
+
+
+            ViewData.Model = sysCodeDtlEntity;
+
+
+
+
+            return View();
+        }
+
+
+
+        //娉曞緥渚濇嵁
+
+        [CheckLogin]
+        public IActionResult Indexlaw()
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            List<ActionEntity> actionlist = new List<ActionEntity>();
+            ActionEntity actionEntity = new ActionEntity();
+            actionEntity.OpenType = 0;
+            actionEntity.ActionUrl = "";
+            actionEntity.ActionFun = "Search";
+            actionEntity.PageIco = "fa fa-search";
+            actionEntity.ActionName = "鏌ヨ";
+            actionlist.Add(actionEntity);
+            ActionEntity actionEntity1 = new ActionEntity();
+            actionEntity1.OpenType = 0;
+            actionEntity1.ActionUrl = "";
+            actionEntity1.ActionFun = "Add";
+            actionEntity1.PageIco = "fa fa-plus";
+            actionEntity1.ActionName = "鏂板";
+            actionlist.Add(actionEntity1);
+            ViewData["ActionInfo"] = actionlist;
+            return View();
+        }
+
+        [CheckLogin]
+        public IActionResult GetListlaw(SysCodeDtlSearchEntity searchEntity)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+            //JsonResult jsonResult =   new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver());
+            searchEntity.CodeTable = "t_complaint_items";
+            searchEntity.CodeField = "law";
+            searchEntity.Sort = "CodeSn";
+            return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity));
+        }
+
+
+
+        public IActionResult Editlaw(string id)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            ViewData["curentuser"] = curentuser;
+
+
+            SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity();
+
+
+            sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_complaint_items", "law");
+
+
+            ViewData.Model = sysCodeDtlEntity;
+
+
+
+
+            return View();
+        }
 
     }
 }
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
new file mode 100644
index 0000000..a287ee4
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
@@ -0,0 +1,346 @@
+锘緻model DTO.SysCodeDtlEntity
+@using DTO;
+@using zhengcaioa.Models;
+@{
+
+
+
+
+
+
+
+
+
+
+
+}
+@{
+    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;">
+
+
+
+
+
+
+
+
+
+                                    <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" style="width:5%;">
+                                            <input class="form-control" label="缂栫爜" id="CodeSn" name="CodeSn" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@Model.CodeSn">
+
+                                            <input type="hidden" name="Id" value="@Model.Id" />
+
+                                            <input type="hidden" name="CodeId" value="@Model.CodeId" />
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">
+
+
+                                        </div>
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
+                                        <label class="text-right col-sm-1 col-md-1 control-label">鎺掑簭</label>
+                                        <div class="col-sm-2 col-md-2" style="width:5%;">
+                                            <input class="form-control" label="鎺掑簭" id="Sort" name="Sort" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@Model.Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">
+
+
+                                        </div>
+                                    </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>
+
+                <a class="btn btn-success" href="javascript:void(0)" onclick="closepage();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-remove"></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;
+        $("#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"
+        };
+
+
+
+
+
+
+        var id = '@Model.Id';
+
+        var delPosition = function () {
+            if (id == null || id == '') {
+                toastr.warning("璇峰厛淇濆瓨");
+                return;
+            }
+            $.ajax({
+                type: "GET",
+                url: "/SysCode/NullifySysCodeDtl?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 closepage = function () {
+            _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+        }
+
+
+
+        // 淇濆瓨宀椾綅淇℃伅
+        var savePosition = function () {
+
+
+
+
+            if ($.trim($("#CodeSn").val()) == '') {
+                toastr.warning("缂栫爜涓嶈兘涓虹┖");
+                return;
+            }
+
+
+            if ($.trim($("#Comments").val()) == '') {
+                toastr.warning("鍚嶇О涓嶈兘涓虹┖");
+                return;
+            }
+
+
+
+
+
+           // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
+            $.ajax({
+                type: "POST",
+                url: "/SysCode/Savequestiontype",
+                dataType: "json",
+                global: false,
+                data: $('form').serializeArray(),
+                success: function (data) {
+
+
+
+                        if (data.Result) {
+                            //  parent._afterSave(true);
+                            parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+
+
+                            window.location = "/SysCode/Editlaw";
+
+                            //try {
+                            //    _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            //}
+                            //catch (err) {
+                            //    parent._CloseTab1("/HrJibengongzi/Edit/");
+                            //}
+
+                        }
+                        else {
+                            // toastr.error("澶辫触");
+                            parent.layer.msg(data.Message, { icon: 5 });
+                        }
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        }
+
+
+
+
+        function _pageAutoClose() {
+            parent.window._reloadPageData();
+            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/SysCode/Editquestion.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editquestion.cshtml
new file mode 100644
index 0000000..1c125cb
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editquestion.cshtml
@@ -0,0 +1,346 @@
+锘緻model DTO.SysCodeDtlEntity
+@using DTO;
+@using zhengcaioa.Models;
+@{
+
+
+
+
+
+
+
+
+
+
+
+}
+@{
+    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;">
+
+
+
+
+
+
+
+
+
+                                    <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" style="width:5%;">
+                                            <input class="form-control" label="缂栫爜" id="CodeSn" name="CodeSn" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@Model.CodeSn">
+
+                                            <input type="hidden" name="Id" value="@Model.Id" />
+
+                                            <input type="hidden" name="CodeId" value="@Model.CodeId" />
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">
+
+
+                                        </div>
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
+                                        <label class="text-right col-sm-1 col-md-1 control-label">鎺掑簭</label>
+                                        <div class="col-sm-2 col-md-2" style="width:5%;">
+                                            <input class="form-control" label="鎺掑簭" id="Sort" name="Sort" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@Model.Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">
+
+
+                                        </div>
+                                    </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>
+
+                <a class="btn btn-success" href="javascript:void(0)" onclick="closepage();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-remove"></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;
+        $("#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"
+        };
+
+
+
+
+
+
+        var id = '@Model.Id';
+
+        var delPosition = function () {
+            if (id == null || id == '') {
+                toastr.warning("璇峰厛淇濆瓨");
+                return;
+            }
+            $.ajax({
+                type: "GET",
+                url: "/SysCode/NullifySysCodeDtl?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 closepage = function () {
+            _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+        }
+
+
+
+        // 淇濆瓨宀椾綅淇℃伅
+        var savePosition = function () {
+
+
+
+
+            if ($.trim($("#CodeSn").val()) == '') {
+                toastr.warning("缂栫爜涓嶈兘涓虹┖");
+                return;
+            }
+
+
+            if ($.trim($("#Comments").val()) == '') {
+                toastr.warning("鍚嶇О涓嶈兘涓虹┖");
+                return;
+            }
+
+
+
+
+
+           // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
+            $.ajax({
+                type: "POST",
+                url: "/SysCode/Savequestiontype",
+                dataType: "json",
+                global: false,
+                data: $('form').serializeArray(),
+                success: function (data) {
+
+
+
+                        if (data.Result) {
+                            //  parent._afterSave(true);
+                            parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+
+
+                            window.location = "/SysCode/Editquestion";
+
+                            //try {
+                            //    _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            //}
+                            //catch (err) {
+                            //    parent._CloseTab1("/HrJibengongzi/Edit/");
+                            //}
+
+                        }
+                        else {
+                            // toastr.error("澶辫触");
+                            parent.layer.msg(data.Message, { icon: 5 });
+                        }
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        }
+
+
+
+
+        function _pageAutoClose() {
+            parent.window._reloadPageData();
+            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/SysCode/Editrequestinfo.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editrequestinfo.cshtml
new file mode 100644
index 0000000..b422b95
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editrequestinfo.cshtml
@@ -0,0 +1,346 @@
+锘緻model DTO.SysCodeDtlEntity
+@using DTO;
+@using zhengcaioa.Models;
+@{
+
+
+
+
+
+
+
+
+
+
+
+}
+@{
+    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;">
+
+
+
+
+
+
+
+
+
+                                    <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" style="width:5%;">
+                                            <input class="form-control" label="缂栫爜" id="CodeSn" name="CodeSn" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@Model.CodeSn">
+
+                                            <input type="hidden" name="Id" value="@Model.Id" />
+
+                                            <input type="hidden" name="CodeId" value="@Model.CodeId" />
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">
+
+
+                                        </div>
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
+                                        <label class="text-right col-sm-1 col-md-1 control-label">鎺掑簭</label>
+                                        <div class="col-sm-2 col-md-2" style="width:5%;">
+                                            <input class="form-control" label="鎺掑簭" id="Sort" name="Sort" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@Model.Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+
+                                        </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-10 col-md-10">
+                                            <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">
+
+
+                                        </div>
+                                    </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>
+
+                <a class="btn btn-success" href="javascript:void(0)" onclick="closepage();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-remove"></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;
+        $("#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"
+        };
+
+
+
+
+
+
+        var id = '@Model.Id';
+
+        var delPosition = function () {
+            if (id == null || id == '') {
+                toastr.warning("璇峰厛淇濆瓨");
+                return;
+            }
+            $.ajax({
+                type: "GET",
+                url: "/SysCode/NullifySysCodeDtl?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 closepage = function () {
+            _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+        }
+
+
+
+        // 淇濆瓨宀椾綅淇℃伅
+        var savePosition = function () {
+
+
+
+
+            if ($.trim($("#CodeSn").val()) == '') {
+                toastr.warning("缂栫爜涓嶈兘涓虹┖");
+                return;
+            }
+
+
+            if ($.trim($("#Comments").val()) == '') {
+                toastr.warning("鍚嶇О涓嶈兘涓虹┖");
+                return;
+            }
+
+
+
+
+
+           // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
+            $.ajax({
+                type: "POST",
+                url: "/SysCode/Savequestiontype",
+                dataType: "json",
+                global: false,
+                data: $('form').serializeArray(),
+                success: function (data) {
+
+
+
+                        if (data.Result) {
+                            //  parent._afterSave(true);
+                            parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+
+
+                            window.location = "/SysCode/Editrequestinfo";
+
+                            //try {
+                            //    _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            //}
+                            //catch (err) {
+                            //    parent._CloseTab1("/HrJibengongzi/Edit/");
+                            //}
+
+                        }
+                        else {
+                            // toastr.error("澶辫触");
+                            parent.layer.msg(data.Message, { icon: 5 });
+                        }
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        }
+
+
+
+
+        function _pageAutoClose() {
+            parent.window._reloadPageData();
+            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/SysCode/Indexlaw.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
new file mode 100644
index 0000000..09e2b73
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
@@ -0,0 +1,66 @@
+锘緻{
+    ViewBag.Title = "Editlaw";
+    Layout = "~/Views/Shared/_Layout_Search.cshtml";
+}
+@section headerStyle{
+    <script type="text/javascript">
+        dataCol = [
+            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
+            {
+                label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false, width: 50,
+                formatter: function (cellvalue, options, rowObject) {
+                    return "<a onclick=\"OpenWindow('" + rowObject.Comments + "','98%','100%', '/SysCode/Editlaw?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                }
+            },
+            {
+                label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            {
+                label: '鎺掑簭', name: 'Sort', labtype: 'txt', hidden: true, width: 50,
+
+            },
+            {
+                label: '澶囨敞', name: 'Contents', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true },
+            { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true },
+            { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true },
+
+        ];
+        dataUrl = "/SysCode/GetListlaw";
+        searchCol = [
+            { label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false },
+
+            { label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false },
+
+
+
+        ];
+        var _pageAdd = function () {
+            OpenWindow("鏂板娉曞緥渚濇嵁", "98%", "90%", "/SysCode/Editlaw/");
+        }
+
+        var _afterSave = function (result) {
+            if (result) {
+                toastr.success("淇濆瓨鎴愬姛");
+            } else {
+                toastr.error("淇濆瓨澶辫触");
+            }
+        }
+
+        var _afterDel = function (result) {
+            if (result) {
+                toastr.success("鍒犻櫎鎴愬姛");
+            } else {
+                /**/
+                toastr.error("鍒犻櫎鎴愬姛");
+        /**/
+    }
+}
+    </script>
+}
+
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml
new file mode 100644
index 0000000..a6e084d
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml
@@ -0,0 +1,66 @@
+锘緻{
+    ViewBag.Title = "Editquestion";
+    Layout = "~/Views/Shared/_Layout_Search.cshtml";
+}
+@section headerStyle{
+    <script type="text/javascript">
+        dataCol = [
+            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
+            {
+                label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false, width: 50,
+                formatter: function (cellvalue, options, rowObject) {
+                    return "<a onclick=\"OpenWindow('" + rowObject.Comments + "','98%','100%', '/SysCode/Editquestion?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                }
+            },
+            {
+                label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            {
+                label: '鎺掑簭', name: 'Sort', labtype: 'txt', hidden: true, width: 50,
+
+            },
+            {
+                label: '澶囨敞', name: 'Contents', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true },
+            { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true },
+            { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true },
+
+        ];
+        dataUrl = "/SysCode/GetListquestion";
+        searchCol = [
+            { label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false },
+
+            { label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false },
+
+
+
+        ];
+        var _pageAdd = function () {
+            OpenWindow("鏂板璐ㄧ枒浜嬮」", "98%", "90%", "/SysCode/Editquestion/");
+        }
+
+        var _afterSave = function (result) {
+            if (result) {
+                toastr.success("淇濆瓨鎴愬姛");
+            } else {
+                toastr.error("淇濆瓨澶辫触");
+            }
+        }
+
+        var _afterDel = function (result) {
+            if (result) {
+                toastr.success("鍒犻櫎鎴愬姛");
+            } else {
+                /**/
+                toastr.error("鍒犻櫎鎴愬姛");
+        /**/
+    }
+}
+    </script>
+}
+
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml
new file mode 100644
index 0000000..3896c0d
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml
@@ -0,0 +1,66 @@
+锘緻{
+    ViewBag.Title = "Editrequestinfo";
+    Layout = "~/Views/Shared/_Layout_Search.cshtml";
+}
+@section headerStyle{
+    <script type="text/javascript">
+        dataCol = [
+            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
+            {
+                label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false, width: 50,
+                formatter: function (cellvalue, options, rowObject) {
+                    return "<a onclick=\"OpenWindow('" + rowObject.Comments + "','98%','100%', '/SysCode/Editrequestinfo?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                }
+            },
+            {
+                label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            {
+                label: '鎺掑簭', name: 'Sort', labtype: 'txt', hidden: true, width: 50,
+
+            },
+            {
+                label: '澶囨敞', name: 'Contents', labtype: 'txt', hidden: false, width: 300,
+
+            },
+            { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true },
+            { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true },
+            { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true },
+            { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true },
+
+        ];
+        dataUrl = "/SysCode/GetListrequestinfo";
+        searchCol = [
+            { label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false },
+
+            { label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false },
+
+
+
+        ];
+        var _pageAdd = function () {
+            OpenWindow("鏂板璐ㄧ枒璇锋眰", "98%", "90%", "/SysCode/Editrequestinfo/");
+        }
+
+        var _afterSave = function (result) {
+            if (result) {
+                toastr.success("淇濆瓨鎴愬姛");
+            } else {
+                toastr.error("淇濆瓨澶辫触");
+            }
+        }
+
+        var _afterDel = function (result) {
+            if (result) {
+                toastr.success("鍒犻櫎鎴愬姛");
+            } else {
+                /**/
+                toastr.error("鍒犻櫎鎴愬姛");
+        /**/
+    }
+}
+    </script>
+}
+

--
Gitblit v1.9.1