username@email.com
2021-11-29 e9f8d150668099ffe648b7c9ab9df290c3276db8
提交
5个文件已修改
16个文件已添加
2486 ■■■■■ 已修改文件
zhengcaioa/CommonToolsCore/AutoMapperConfigs.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/TChallengeItemDTO.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/TChallengeletterDTO.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/TComplaintItemDTO.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/TComplaintRespondentDTO.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/TComplaintletterDTO.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/IServices/ICooperOrderService.cs 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/TChallengeItem.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/TChallengeletter.cs 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/TComplaintItem.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/TComplaintRespondent.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/TComplaintletter.cs 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Model/zhengcaioaContext.cs 374 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/CooperOrderService.cs 366 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs 182 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml 346 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Editquestion.cshtml 346 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Editrequestinfo.cshtml 346 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>();
zhengcaioa/DTO/TChallengeItemDTO.cs
New file
@@ -0,0 +1,16 @@
using 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; }
    }
}
zhengcaioa/DTO/TChallengeletterDTO.cs
New file
@@ -0,0 +1,40 @@
using 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; }
    }
}
zhengcaioa/DTO/TComplaintItemDTO.cs
New file
@@ -0,0 +1,16 @@
using 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; }
    }
}
zhengcaioa/DTO/TComplaintRespondentDTO.cs
New file
@@ -0,0 +1,18 @@
using 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; }
    }
}
zhengcaioa/DTO/TComplaintletterDTO.cs
New file
@@ -0,0 +1,51 @@
using 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; }
    }
}
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);
    }
}
zhengcaioa/Model/TChallengeItem.cs
New file
@@ -0,0 +1,17 @@
using 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; }
    }
}
zhengcaioa/Model/TChallengeletter.cs
New file
@@ -0,0 +1,41 @@
using 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; }
    }
}
zhengcaioa/Model/TComplaintItem.cs
New file
@@ -0,0 +1,17 @@
using 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; }
    }
}
zhengcaioa/Model/TComplaintRespondent.cs
New file
@@ -0,0 +1,19 @@
using 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; }
    }
}
zhengcaioa/Model/TComplaintletter.cs
New file
@@ -0,0 +1,52 @@
using 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; }
    }
}
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);
        }
zhengcaioa/Services/CooperOrderService.cs
@@ -919,5 +919,371 @@
        
        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;
        }
    }
}
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();
        }
    }
}
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
New file
@@ -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>
zhengcaioa/zhengcaioa/Views/SysCode/Editquestion.cshtml
New file
@@ -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>
zhengcaioa/zhengcaioa/Views/SysCode/Editrequestinfo.cshtml
New file
@@ -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>
zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
New file
@@ -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>
}
zhengcaioa/zhengcaioa/Views/SysCode/Indexquestion.cshtml
New file
@@ -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>
}
zhengcaioa/zhengcaioa/Views/SysCode/Indexrequestinfo.cshtml
New file
@@ -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>
}