// // // 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; /// /// 项目 /// public partial class PMPResponseData { /// /// 返回状态 /// [JsonProperty("code")] public int code { get; set; } /// /// 数组总条数 /// [JsonProperty("total")] public int total { get; set; } /// /// 权限数组 /// [JsonProperty("data")] public ResponseData data { get; set; } /// /// 返回状态 /// [JsonProperty("rows")] public System.Collections.Generic.List rows { get; set; } /// /// 返回消息 /// [JsonProperty("msg")] public string msg { get; set; } } ///// ///// PMP接口查询条件 ///// //public partial class PMPSearchCondData //{ // /// // /// 查询字段名字 // /// // public string name { get; set; } // /// // /// 查询字段取值 // /// // public string value { get; set; } // /// // /// 查询类型;TextInput:模糊查询;SelectList:精确查询;TimeSelector:时间查询 // /// // public string fieldType { get; set; } //} ///// ///// 接口返回Data ///// //public partial class ResponseData //{ // /// // /// 权限信息 // /// // [JsonProperty("userColumnPermissions")] // public string userColumnPermissions { get; set; } //} /// /// 项目 /// public partial class PMPProject { /// /// 主键ID /// [JsonProperty("id")] public int id { get; set; } /// /// 项目ID /// [JsonProperty("code")] public string code { get; set; } /// /// 项目号(源头) /// [JsonProperty("stNum")] public string stNum { get; set; } /// /// 项目名称 /// [JsonProperty("name")] public string name { get; set; } /// /// 项目英文名称 /// [JsonProperty("projectNameEn")] public string projectNameEn { get; set; } /// /// 项目简称 /// [JsonProperty("projShortName")] public string projShortName { get; set; } /// /// 项目开工日期 /// [JsonProperty("realStartDate")] public DateTime? realStartDate { get; set; } /// /// 项目竣工日期 /// [JsonProperty("realEndDate")] public DateTime? realEndDate { get; set; } /// /// 计划开始日期 /// [JsonProperty("planStartDate")] public DateTime? planStartDate { get; set; } /// /// 计划结束日期 /// [JsonProperty("planEndDate")] public DateTime? planEndDate { get; set; } /// /// 业主名称 /// [JsonProperty("stClientName")] public string stClientName { get; set; } /// /// 业主联系人 /// [JsonProperty("clientContactor")] public string clientContactor { get; set; } /// /// 业主联系人电话 /// [JsonProperty("mobileTel")] public string mobileTel { get; set; } /// /// 操作类型 /// [JsonProperty("disType")] public string disType { get; set; } ///// ///// 项目类型名称(一级)【控制软件项目类型】 ///// //[JsonProperty("projName")] //public string projName { get; set; } ///// ///// 项目类型名称(二级) ///// //[JsonProperty("projTypeName")] //public string projTypeName { get; set; } /// /// 项目类型一级【控制软件项目类型】 /// [JsonProperty("stProjectTypeVals")] public string stProjectTypeVals { get; set; } /// /// 项目类型二级 /// [JsonProperty("stProjectStepVals")] public string stProjectStepVals { get; set; } ///// ///// 项目阶段名称【控制软件项目阶段】 ///// //[JsonProperty("projStepName")] //public string projStepName { get; set; } /// /// 项目阶段编码 /// [JsonProperty("projStepZxnoCode")] public string projStepZxnoCode { get; set; } /// /// 项目阶段名称【控制软件项目阶段】 /// [JsonProperty("projStepZxnoName")] public string projStepZxnoName { get; set; } /// /// 项目阶段 /// [JsonProperty("projStepZxnoVals")] public string projStepZxnoVals { get; set; } ///// ///// 项目性质名称 ///// //[JsonProperty("projPropName")] //public string projPropName { get; set; } /// /// 项目性质 /// [JsonProperty("stProjectPropertyVals")] public string stProjectPropertyVals { get; set; } /// /// 备注3_新系统项目ID /// [JsonProperty("remarkC")] public string remarkC { get; set; } /// /// 建设地点名称(境内、境外) /// [JsonProperty("stLocationName")] public string stLocationName { get; set; } /// /// 国家编码 /// [JsonProperty("countryCode")] public string countryCode { get; set; } /// /// 国家名称 /// [JsonProperty("countryName")] public string countryName { get; set; } /// /// 省编码 /// [JsonProperty("provinceCode")] public string provinceCode { get; set; } /// /// 省名称 /// [JsonProperty("provinceName")] public string provinceName { get; set; } /// /// 市编码 /// [JsonProperty("cityCode")] public string cityCode { get; set; } /// /// 市名称 /// [JsonProperty("cityName")] public string cityName { get; set; } /// /// 区县编码 /// [JsonProperty("countyCode")] public string countyCode { get; set; } /// /// 区县名称 /// [JsonProperty("countyName")] public string countyName { get; set; } /// /// 详细地址 /// [JsonProperty("address")] public string address { get; set; } /// /// 经度 /// [JsonProperty("remarkA")] public string remarkA { get; set; } /// /// 纬度 /// [JsonProperty("remarkB")] public string remarkB { get; set; } } public partial class PMPResponseData { public static PMPResponseData FromJson(string json) { return JsonConvert.DeserializeObject(json, Model.Converter.Settings); } } //internal static class Converter //{ // public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings // { // MetadataPropertyHandling = MetadataPropertyHandling.Ignore, // DateParseHandling = DateParseHandling.None, // Converters = // { // new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } // }, // }; //} }