add 接口代码

This commit is contained in:
路 范
2021-09-07 17:42:30 +08:00
parent ae17583411
commit 5807fbf9fe
21 changed files with 2073 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类InvestigateTable

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类InvestigateTable_Assessment

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类NonInvestigateTable_Assessment

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类NonResidentialAgreement

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类NonResidentialInvestigateTable

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类ResidentialAgreement

View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ewide.NbzsZheliban.Entity.Extends
{
public class Dcbs
{
public string dcbId { get; set; }
public string PrjId { get; set; }
}
public class Fhpgs
{
public string PrjId { get; set; }
public string AssessmentNo { get; set; }
public string HouseAddress { get; set; }
public string countValue { get; set; }
}
public class Bcxy
{
public string PrjId { get; set; }
public string XyNo { get; set; }
public string HouseAddress { get; set; }
public string SummationShouldCompensateMoney { get; set; }
}
public class H5IndexModel
{
/// <summary>
/// 项目信息
/// </summary>
public List<H5IndexPrjModel> PrjList { get; set; }
}
public class H5IndexPrjModel
{
public string PrjId { get; set; }
/// <summary>
/// 区域
/// </summary>
public string Area { get; set; }
/// <summary>
/// 征收部门
/// </summary>
public string zsbm { get; set; }
/// <summary>
/// 年份
/// </summary>
public decimal? Year { get; set; }
/// <summary>
/// 征收决定号
/// </summary>
public string Zsjdh { get; set; }
/// <summary>
/// 当前阶段
/// </summary>
public string CurrentState { get; set; }
/// <summary>
/// 分户评估集合
/// </summary>
public object FhpgList { get; set; }
/// <summary>
/// 补偿协议集合
/// </summary>
public object BcxyList { get; set; }
}
}

View File

@@ -11,6 +11,7 @@

View File

@@ -16,7 +16,7 @@
string tableClass="";
//所有表名称
//string sqlGetTable = "SELECT Name FROM SysObjects Where XType='U' ORDER BY Name";
DataTable dt = GetDataTable(new List<string> { "InvestigateTable","NonResidentialInvestigateTable","InvestigateTable_Assessment","NonInvestigateTable_Assessment","NonResidentialAgreement","ResidentialAgreement" });
DataTable dt = GetDataTable(new List<string> { "Projects","InvestigateTable","NonResidentialInvestigateTable","InvestigateTable_Assessment","NonInvestigateTable_Assessment","NonResidentialAgreement","ResidentialAgreement" });
//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')";
@@ -43,7 +43,7 @@ using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity.ModelConfiguration;
using Ewide.NbzsZheliban.Entity;
using System.Runtime.Serialization;
namespace Ewide.WorkOrderSys.Entity
namespace Ewide.NbzsZheliban.Entity
{
/// <summary>
/// 数据表实体类:<#= tableClass #>
@@ -173,6 +173,7 @@ using System.Runtime.Serialization;
case "bigint":
type="long";
break;
case "numeric":
case "real":
case "decimal":
type="decimal"+(nullable=="1"?"?":"");