主数据对接
This commit is contained in:
		
							parent
							
								
									bcb2531399
								
							
						
					
					
						commit
						4abca1fa1c
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -230,6 +230,8 @@ | |||
|     <Compile Include="JDGL\WBSDetailItem.cs" /> | ||||
|     <Compile Include="JDGL\WBSSetInitItem.cs" /> | ||||
|     <Compile Include="JDGL\WBSSetItem.cs" /> | ||||
|     <Compile Include="PMP\PMPOBS.cs" /> | ||||
|     <Compile Include="PMP\PMPApiBase.cs" /> | ||||
|     <Compile Include="PMP\PMPProject.cs" /> | ||||
|     <Compile Include="Model.cs" /> | ||||
|     <Compile Include="ModelProc.cs" /> | ||||
|  |  | |||
|  | @ -0,0 +1,65 @@ | |||
| // <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> | ||||
|     /// PMP接口查询条件 | ||||
|     /// </summary> | ||||
|     public partial class PMPSearchCondData | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 查询字段名字 | ||||
|         /// </summary> | ||||
|         public string name { get; set; } | ||||
|         /// <summary> | ||||
|         /// 查询字段取值 | ||||
|         /// </summary> | ||||
|         public string value { get; set; } | ||||
| 
 | ||||
|         /// <summary> | ||||
|         /// 查询类型;TextInput:模糊查询;SelectList:精确查询;TimeSelector:时间查询 | ||||
|         /// </summary> | ||||
|         public string fieldType { get; set; } | ||||
|     } | ||||
| 
 | ||||
|     /// <summary> | ||||
|     /// 接口返回Data | ||||
|     /// </summary> | ||||
|     public partial class ResponseData | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 权限信息 | ||||
|         /// </summary> | ||||
|         [JsonProperty("userColumnPermissions")] | ||||
|         public string userColumnPermissions { get; set; } | ||||
|     } | ||||
| 
 | ||||
|     internal static class Converter | ||||
|     { | ||||
|         public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings | ||||
|         { | ||||
|             MetadataPropertyHandling = MetadataPropertyHandling.Ignore, | ||||
|             DateParseHandling = DateParseHandling.None, | ||||
|             Converters = | ||||
|             { | ||||
|                 new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } | ||||
|             }, | ||||
|         }; | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  | @ -0,0 +1,128 @@ | |||
| // <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> | ||||
|     public partial class PMPOBSResponseData | ||||
|     { | ||||
|         /// <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")] | ||||
|         public System.Collections.Generic.List<PMPOBS> rows { get; set; } | ||||
|         /// <summary> | ||||
|         /// 返回消息 | ||||
|         /// </summary> | ||||
|         [JsonProperty("msg")] | ||||
|         public string msg { get; set; } | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     /// <summary> | ||||
|     /// 项目OBS | ||||
|     /// </summary> | ||||
|     public partial class PMPOBS | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 主键ID | ||||
|         /// </summary> | ||||
|         [JsonProperty("id")] | ||||
|         public int id { get; set; } | ||||
|         /// <summary> | ||||
|         /// OBS层级 | ||||
|         /// leve为1代表分类,level 为2代表岗位,level为3代表岗位下的人员 | ||||
|         /// </summary> | ||||
|         [JsonProperty("level")] | ||||
|         public int level { get; set; } | ||||
|         /// <summary> | ||||
|         /// 名称 | ||||
|         /// </summary> | ||||
|         [JsonProperty("name")] | ||||
|         public string name { get; set; } | ||||
|         /// <summary> | ||||
|         /// OBSid | ||||
|         /// </summary> | ||||
|         [JsonProperty("obsId")] | ||||
|         public string obsId { get; set; } | ||||
|         /// <summary> | ||||
|         /// OBS上级id | ||||
|         /// </summary> | ||||
|         [JsonProperty("obsPid")] | ||||
|         public string obsPid { get; set; } | ||||
|         /// <summary> | ||||
|         /// 岗位所属专业 | ||||
|         /// </summary> | ||||
|         [JsonProperty("proCode")] | ||||
|         public string proCode { get; set; } | ||||
|         /// <summary> | ||||
|         /// 项目id | ||||
|         /// </summary> | ||||
|         [JsonProperty("projectId")] | ||||
|         public string projectId { get; set; } | ||||
|         /// <summary> | ||||
|         /// 操作类型 | ||||
|         /// </summary> | ||||
|         [JsonProperty("disType")] | ||||
|         public string disType { get; set; } | ||||
|         /// <summary> | ||||
|         /// 编码 | ||||
|         /// </summary> | ||||
|         [JsonProperty("code")] | ||||
|         public string code { get; set; } | ||||
|         /// <summary> | ||||
|         /// 人员编码 | ||||
|         /// </summary> | ||||
|         [JsonProperty("staffCode")] | ||||
|         public string staffCode { get; set; } | ||||
|         /// <summary> | ||||
|         /// 人员名称 | ||||
|         /// </summary> | ||||
|         [JsonProperty("staffName")] | ||||
|         public string staffName { get; set; } | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     public partial class PMPOBSResponseData | ||||
|     { | ||||
|         public static PMPOBSResponseData FromJson(string json) | ||||
|         { | ||||
|             return JsonConvert.DeserializeObject<PMPOBSResponseData>(json, Model.Converter.Settings); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
|  | @ -50,15 +50,38 @@ namespace Model | |||
|         public string msg { get; set; } | ||||
|     } | ||||
| 
 | ||||
|     ///// <summary> | ||||
|     ///// PMP接口查询条件 | ||||
|     ///// </summary> | ||||
|     //public partial class PMPSearchCondData | ||||
|     //{ | ||||
|     //    /// <summary> | ||||
|     //    /// 查询字段名字 | ||||
|     //    /// </summary> | ||||
|     //    public string name { get; set; } | ||||
|     //    /// <summary> | ||||
|     //    /// 查询字段取值 | ||||
|     //    /// </summary> | ||||
|     //    public string value { get; set; } | ||||
| 
 | ||||
|     //    /// <summary> | ||||
|     //    /// 查询类型;TextInput:模糊查询;SelectList:精确查询;TimeSelector:时间查询 | ||||
|     //    /// </summary> | ||||
|     //    public string fieldType { get; set; } | ||||
|     //} | ||||
| 
 | ||||
|     ///// <summary> | ||||
|     ///// 接口返回Data | ||||
|     ///// </summary> | ||||
|     //public partial class ResponseData | ||||
|     //{ | ||||
|     //    /// <summary> | ||||
|     //    /// 权限信息 | ||||
|     //    /// </summary> | ||||
|     //    [JsonProperty("userColumnPermissions")] | ||||
|     //    public string userColumnPermissions { get; set; } | ||||
|     //} | ||||
| 
 | ||||
|     public partial class ResponseData | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 权限信息 | ||||
|         /// </summary> | ||||
|         [JsonProperty("userColumnPermissions")] | ||||
|         public string userColumnPermissions { get; set; } | ||||
|     } | ||||
|     /// <summary> | ||||
|     /// 项目 | ||||
|     /// </summary> | ||||
|  | @ -203,6 +226,8 @@ namespace Model | |||
| 
 | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     public partial class PMPResponseData | ||||
|     { | ||||
|         public static PMPResponseData FromJson(string json) | ||||
|  | @ -211,17 +236,17 @@ namespace Model | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     internal static class Converter | ||||
|     { | ||||
|         public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings | ||||
|         { | ||||
|             MetadataPropertyHandling = MetadataPropertyHandling.Ignore, | ||||
|             DateParseHandling = DateParseHandling.None, | ||||
|             Converters = | ||||
|             { | ||||
|                 new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } | ||||
|             }, | ||||
|         }; | ||||
|     } | ||||
|     //internal static class Converter | ||||
|     //{ | ||||
|     //    public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings | ||||
|     //    { | ||||
|     //        MetadataPropertyHandling = MetadataPropertyHandling.Ignore, | ||||
|     //        DateParseHandling = DateParseHandling.None, | ||||
|     //        Converters = | ||||
|     //        { | ||||
|     //            new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal } | ||||
|     //        }, | ||||
|     //    }; | ||||
|     //} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue