update接口增加政策
This commit is contained in:
183
Ewide.NbzsZheliban/Entity/DataBase/PoliciesRegulations.cs
Normal file
183
Ewide.NbzsZheliban/Entity/DataBase/PoliciesRegulations.cs
Normal file
@@ -0,0 +1,183 @@
|
||||
//----------PoliciesRegulations开始----------
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
//using System.Data.Entity.ModelConfiguration;
|
||||
using Ewide.NbzsZheliban.Entity;
|
||||
using System.Runtime.Serialization;
|
||||
namespace Ewide.NbzsZheliban.Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据表实体类:PoliciesRegulations
|
||||
/// </summary>
|
||||
[Table("PoliciesRegulations")]
|
||||
public partial class PoliciesRegulations: BaseEntity {
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Key]
|
||||
[Column("ID")]
|
||||
[DataMember]
|
||||
public Guid ID {get;set;}
|
||||
/// <summary>
|
||||
/// 项目id 关联Projects表ID
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="项目id 关联Projects表ID")]
|
||||
[Column("ProjectID")]
|
||||
[DataMember]
|
||||
public Guid? ProjectID {get;set;}
|
||||
/// <summary>
|
||||
/// 项目名称
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="项目名称")]
|
||||
[Column("ProjectName")]
|
||||
[DataMember]
|
||||
public string ProjectName {get;set;}
|
||||
/// <summary>
|
||||
/// 所属区域ID
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="所属区域ID")]
|
||||
[Column("AreaID")]
|
||||
[DataMember]
|
||||
public Guid? AreaID {get;set;}
|
||||
/// <summary>
|
||||
/// 所属区域
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="所属区域")]
|
||||
[Column("Area")]
|
||||
[DataMember]
|
||||
public string Area {get;set;}
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="标题")]
|
||||
[Column("Title")]
|
||||
[DataMember]
|
||||
public string Title {get;set;}
|
||||
/// <summary>
|
||||
/// 征文内容
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="征文内容")]
|
||||
[Column("Contents")]
|
||||
[DataMember]
|
||||
public string Contents {get;set;}
|
||||
/// <summary>
|
||||
/// 是否公开
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="是否公开")]
|
||||
[Column("IsPublic")]
|
||||
[DataMember]
|
||||
public bool IsPublic {get;set;}
|
||||
/// <summary>
|
||||
/// 发布时间
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="发布时间")]
|
||||
[Column("PublicTime")]
|
||||
[DataMember]
|
||||
public DateTime? PublicTime {get;set;}
|
||||
/// <summary>
|
||||
/// 使用截止时间
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="使用截止时间")]
|
||||
[Column("PublicTimeEnd")]
|
||||
[DataMember]
|
||||
public DateTime? PublicTimeEnd {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("CreateUserName")]
|
||||
[DataMember]
|
||||
public string CreateUserName {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("UpdateTime")]
|
||||
[DataMember]
|
||||
public DateTime? UpdateTime {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("UpdateUserId")]
|
||||
[DataMember]
|
||||
public Guid? UpdateUserId {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("UpdateUserName")]
|
||||
[DataMember]
|
||||
public string UpdateUserName {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("Remark")]
|
||||
[DataMember]
|
||||
public string Remark {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("Files")]
|
||||
[DataMember]
|
||||
public string Files {get;set;}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
/// <summary>
|
||||
/// 数据表实体类Map:PoliciesRegulations
|
||||
/// </summary>
|
||||
public class PoliciesRegulationsMap : EntityTypeConfiguration<PoliciesRegulations>
|
||||
{
|
||||
public PoliciesRegulationsMap()
|
||||
{
|
||||
this.ToTable("PoliciesRegulations");
|
||||
this.HasKey(t => t.ID);
|
||||
this.Property(t => t.ProjectID).HasColumnName("ProjectID");
|
||||
this.Property(t => t.ProjectName).HasColumnName("ProjectName");
|
||||
this.Property(t => t.AreaID).HasColumnName("AreaID");
|
||||
this.Property(t => t.Area).HasColumnName("Area");
|
||||
this.Property(t => t.Title).HasColumnName("Title");
|
||||
this.Property(t => t.Contents).HasColumnName("Contents");
|
||||
this.Property(t => t.IsPublic).HasColumnName("IsPublic");
|
||||
this.Property(t => t.PublicTime).HasColumnName("PublicTime");
|
||||
this.Property(t => t.PublicTimeEnd).HasColumnName("PublicTimeEnd");
|
||||
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
|
||||
this.Property(t => t.CreateUserId).HasColumnName("CreateUserId");
|
||||
this.Property(t => t.CreateUserName).HasColumnName("CreateUserName");
|
||||
this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
|
||||
this.Property(t => t.UpdateUserId).HasColumnName("UpdateUserId");
|
||||
this.Property(t => t.UpdateUserName).HasColumnName("UpdateUserName");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
this.Property(t => t.Files).HasColumnName("Files");
|
||||
this.Property(t => t.Sort).HasColumnName("Sort").IsRequired();
|
||||
}
|
||||
}**/
|
||||
|
||||
}
|
||||
|
||||
//----------PoliciesRegulations结束----------
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -33,6 +34,7 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
/// 项目信息
|
||||
/// </summary>
|
||||
public List<H5IndexPrjModel> PrjList { get; set; }
|
||||
public List<PoliciesRegulation> PoliciesRegulationsList { get; set; }
|
||||
}
|
||||
public class H5IndexPrjModel
|
||||
{
|
||||
@@ -41,6 +43,8 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
/// 区域
|
||||
/// </summary>
|
||||
public string Area { get; set; }
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public string AreaID { get; set; }
|
||||
/// <summary>
|
||||
/// 征收部门
|
||||
/// </summary>
|
||||
@@ -66,4 +70,12 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
/// </summary>
|
||||
public object BcxyList { get; set; }
|
||||
}
|
||||
public class PoliciesRegulation
|
||||
{
|
||||
|
||||
public Guid ID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Contents { get; set; }
|
||||
public DateTime? PublicTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
string tableClass="";
|
||||
//所有表名称
|
||||
//string sqlGetTable = "SELECT Name FROM SysObjects Where XType='U' ORDER BY Name";
|
||||
DataTable dt = GetDataTable(new List<string> { "Projects","InvestigateTable","NonResidentialInvestigateTable","InvestigateTable_Assessment","NonInvestigateTable_Assessment","NonResidentialAgreement","ResidentialAgreement" });
|
||||
DataTable dt = GetDataTable(new List<string> { "Projects","InvestigateTable","NonResidentialInvestigateTable","InvestigateTable_Assessment","NonInvestigateTable_Assessment","NonResidentialAgreement","ResidentialAgreement","PoliciesRegulations" });
|
||||
//DataTable dtRelationTable = GetRelationTable();
|
||||
//所有表信息
|
||||
string selectQuery ="select syscolumns.name,systypes.name,syscolumns.length from syscolumns,systypes where syscolumns.xusertype=systypes.xusertype and syscolumns.id=object_id('@tableName')";
|
||||
|
||||
Reference in New Issue
Block a user