CNCEC_SUBQHSE_WUHUAN/SGGL/Model/PMP/PMPProject.cs

228 lines
6.3 KiB
C#
Raw Normal View History

2025-03-27 22:24:48 +08:00
// <auto-generated />
//
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
// using Model;
//
// var response = Response.FromJson(jsonString);
namespace Model
{
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
/// <summary>
/// 项目
/// </summary>
2025-03-28 14:22:04 +08:00
public partial class PMPResponseData
2025-03-27 22:24:48 +08:00
{
/// <summary>
/// 返回状态
/// </summary>
[JsonProperty("code")]
public int code { get; set; }
/// <summary>
/// 数组总条数
/// </summary>
[JsonProperty("total")]
public int total { get; set; }
/// <summary>
/// 权限数组
/// </summary>
[JsonProperty("data")]
public ResponseData data { get; set; }
/// <summary>
/// 返回状态
/// </summary>
[JsonProperty("rows")]
2025-03-28 14:22:04 +08:00
public System.Collections.Generic.List<PMPProject> rows { get; set; }
2025-03-27 22:24:48 +08:00
/// <summary>
/// 返回消息
/// </summary>
[JsonProperty("msg")]
public string msg { get; set; }
}
public partial class ResponseData
{
/// <summary>
/// 权限信息
/// </summary>
[JsonProperty("userColumnPermissions")]
public string userColumnPermissions { get; set; }
}
/// <summary>
/// 项目
/// </summary>
2025-03-28 14:22:04 +08:00
public partial class PMPProject
2025-03-27 22:24:48 +08:00
{
/// <summary>
/// 主键ID
/// </summary>
[JsonProperty("id")]
public int id { get; set; }
/// <summary>
/// 项目ID
/// </summary>
[JsonProperty("code")]
public string code { get; set; }
/// <summary>
/// 项目号(源头)
/// </summary>
[JsonProperty("stNum")]
public string stNum { get; set; }
/// <summary>
/// 名称
/// </summary>
[JsonProperty("name")]
public string name { get; set; }
/// <summary>
/// 项目简称
/// </summary>
[JsonProperty("projShortName")]
public string projShortName { get; set; }
/// <summary>
2025-03-28 14:22:04 +08:00
/// 项目开工日期
/// </summary>
[JsonProperty("realStartDate")]
public DateTime? realStartDate { get; set; }
/// <summary>
/// 项目竣工日期
/// </summary>
[JsonProperty("realEndDate")]
public DateTime? realEndDate { get; set; }
/// <summary>
/// 操作类型
/// </summary>
[JsonProperty("disType")]
public string disType { get; set; }
/// <summary>
2025-03-27 22:24:48 +08:00
/// 项目阶段编码
/// </summary>
[JsonProperty("projStepZxnoCode")]
public string projStepZxnoCode { get; set; }
/// <summary>
/// 项目阶段名称
/// </summary>
[JsonProperty("projStepZxnoName")]
public string projStepZxnoName { get; set; }
/// <summary>
/// 项目类型一级
/// </summary>
[JsonProperty("stProjectTypeVals")]
public string stProjectTypeVals { get; set; }
/// <summary>
/// 项目类型二级
/// </summary>
[JsonProperty("stProjectStepVals")]
public string stProjectStepVals { get; set; }
/// <summary>
/// 项目阶段
/// </summary>
[JsonProperty("projStepZxnoVals")]
public string projStepZxnoVals { get; set; }
/// <summary>
/// 项目性质
/// </summary>
[JsonProperty("stProjectPropertyVals")]
public string stProjectPropertyVals { get; set; }
/// <summary>
/// 备注3_新系统项目ID
/// </summary>
[JsonProperty("remarkC")]
public string remarkC { get; set; }
/// <summary>
/// 详细地址
/// </summary>
[JsonProperty("address")]
public string address { get; set; }
/// <summary>
/// 市编码
/// </summary>
[JsonProperty("cityCode")]
public string cityCode { get; set; }
/// <summary>
/// 市名称
/// </summary>
[JsonProperty("cityName")]
public string cityName { get; set; }
/// <summary>
/// 国家编码
/// </summary>
[JsonProperty("countryCode")]
public string countryCode { get; set; }
/// <summary>
/// 国家名称
/// </summary>
[JsonProperty("countryName")]
public string countryName { get; set; }
/// <summary>
/// 区县编码
/// </summary>
[JsonProperty("countyCode")]
public string countyCode { get; set; }
/// <summary>
/// 区县名称
/// </summary>
[JsonProperty("countyName")]
public string countyName { get; set; }
/// <summary>
/// 项目英文名称
/// </summary>
[JsonProperty("projectNameEn")]
public string projectNameEn { get; set; }
/// <summary>
/// 省编码
/// </summary>
[JsonProperty("provinceCode")]
public string provinceCode { get; set; }
/// <summary>
/// 省名称
/// </summary>
[JsonProperty("provinceName")]
public string provinceName { get; set; }
/// <summary>
/// 经度
/// </summary>
[JsonProperty("remarkA")]
public string remarkA { get; set; }
/// <summary>
/// 纬度
/// </summary>
[JsonProperty("remarkB")]
public string remarkB { get; set; }
}
2025-03-28 14:22:04 +08:00
public partial class PMPResponseData
2025-03-27 22:24:48 +08:00
{
2025-03-28 14:22:04 +08:00
public static PMPResponseData FromJson(string json)
2025-03-27 22:24:48 +08:00
{
2025-03-28 14:22:04 +08:00
return JsonConvert.DeserializeObject<PMPResponseData>(json, Model.Converter.Settings);
2025-03-27 22:24:48 +08:00
}
}
internal static class Converter
{
public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
{
MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
DateParseHandling = DateParseHandling.None,
Converters =
{
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
},
};
}
}