add增加ticket记录
This commit is contained in:
98
Ewide.NbzsZheliban/Entity/DataBase/zjzwfwTickets.cs
Normal file
98
Ewide.NbzsZheliban/Entity/DataBase/zjzwfwTickets.cs
Normal file
@@ -0,0 +1,98 @@
|
||||
//----------zjzwfwTickets开始----------
|
||||
|
||||
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>
|
||||
/// 数据表实体类:zjzwfwTickets
|
||||
/// </summary>
|
||||
[Table("zjzwfwTickets")]
|
||||
public partial class zjzwfwTickets: BaseEntity {
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("ID")]
|
||||
[DataMember]
|
||||
public string ID {get;set;}
|
||||
/// <summary>
|
||||
/// 无描述
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="无描述")]
|
||||
[Column("Ticket")]
|
||||
[DataMember]
|
||||
public string Ticket {get;set;}
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="姓名")]
|
||||
[Column("UserName")]
|
||||
[DataMember]
|
||||
public string UserName {get;set;}
|
||||
/// <summary>
|
||||
/// 身份证号码
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="身份证号码")]
|
||||
[Column("IdCardNo")]
|
||||
[DataMember]
|
||||
public string IdCardNo {get;set;}
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="创建时间")]
|
||||
[Column("CreateTime")]
|
||||
[DataMember]
|
||||
public DateTime? CreateTime {get;set;}
|
||||
/// <summary>
|
||||
/// 到期时间 默认1小时到期
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="到期时间 默认1小时到期")]
|
||||
[Column("ExpireTime")]
|
||||
[DataMember]
|
||||
public DateTime? ExpireTime {get;set;}
|
||||
/// <summary>
|
||||
/// 原始文本
|
||||
/// </summary>
|
||||
|
||||
[Display(Name="原始文本")]
|
||||
[Column("OriginalResponse")]
|
||||
[DataMember]
|
||||
public string OriginalResponse {get;set;}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
/// <summary>
|
||||
/// 数据表实体类Map:zjzwfwTickets
|
||||
/// </summary>
|
||||
public class zjzwfwTicketsMap : EntityTypeConfiguration<zjzwfwTickets>
|
||||
{
|
||||
public zjzwfwTicketsMap()
|
||||
{
|
||||
this.ToTable("zjzwfwTickets");
|
||||
this.Property(t => t.ID).HasColumnName("ID").IsRequired();
|
||||
this.Property(t => t.Ticket).HasColumnName("Ticket");
|
||||
this.Property(t => t.UserName).HasColumnName("UserName");
|
||||
this.Property(t => t.IdCardNo).HasColumnName("IdCardNo");
|
||||
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
|
||||
this.Property(t => t.ExpireTime).HasColumnName("ExpireTime");
|
||||
this.Property(t => t.OriginalResponse).HasColumnName("OriginalResponse");
|
||||
}
|
||||
}**/
|
||||
|
||||
}
|
||||
|
||||
//----------zjzwfwTickets结束----------
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
/// 项目信息
|
||||
/// </summary>
|
||||
public List<H5IndexPrjModel> PrjList { get; set; }
|
||||
public List<PoliciesRegulation> PoliciesRegulationsList { get; set; }
|
||||
public PoliciesRegulations PoliciesRegulationsLists { get; set; }
|
||||
}
|
||||
public class H5IndexPrjModel
|
||||
{
|
||||
@@ -70,6 +70,11 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
/// </summary>
|
||||
public object BcxyList { get; set; }
|
||||
}
|
||||
public class PoliciesRegulations
|
||||
{
|
||||
public int TotalCount { get; set; }
|
||||
public List<PoliciesRegulation> List { get; set; }
|
||||
}
|
||||
public class PoliciesRegulation
|
||||
{
|
||||
|
||||
@@ -77,5 +82,6 @@ namespace Ewide.NbzsZheliban.Entity.Extends
|
||||
public string Title { get; set; }
|
||||
public string Contents { get; set; }
|
||||
public DateTime? PublicTime { get; set; }
|
||||
public string Area { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,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","PoliciesRegulations" });
|
||||
DataTable dt = GetDataTable(new List<string> { "Projects","InvestigateTable","NonResidentialInvestigateTable","InvestigateTable_Assessment","NonInvestigateTable_Assessment","NonResidentialAgreement","ResidentialAgreement","PoliciesRegulations","zjzwfwTickets" });
|
||||
//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')";
|
||||
@@ -52,7 +52,8 @@ using System.Runtime.Serialization;
|
||||
public partial class <#= tableClass #><# if(objType=="U"){#>: BaseEntity<#}else{#>: BaseEntity<#}#>
|
||||
{
|
||||
<#
|
||||
List<string> listBaseColumn = new List<string>{"Id","UNID","CreateTime","CreateUserId","LastUpdateTime","IsDeleted","Sort"};
|
||||
//List<string> listBaseColumn = new List<string>{"Id","UNID","CreateTime","CreateUserId","LastUpdateTime","IsDeleted","Sort"};
|
||||
List<string> listBaseColumn = new List<string>{};
|
||||
foreach (DataRow dr in datacloumn.Rows)
|
||||
{
|
||||
string columnName=GetFormColumnName(dr["columnname"].ToString(),tableClass);
|
||||
|
||||
Reference in New Issue
Block a user