From 4992ccc68d7a0d71165e71f814b8352fae9c3948 Mon Sep 17 00:00:00 2001 From: yxj <1qaz@123> Date: 星期二, 01 十一月 2022 13:24:18 +0800 Subject: [PATCH] 新增根据组织获取系统参数调用方法 --- WebAPI/ListModels.cs | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 155 insertions(+), 1 deletions(-) diff --git a/WebAPI/ListModels.cs b/WebAPI/ListModels.cs index bef2372..2733854 100644 --- a/WebAPI/ListModels.cs +++ b/WebAPI/ListModels.cs @@ -547,6 +547,41 @@ /// <summary> + /// 澶勭悊鏂板宸ュ簭娴佽浆鍗′富琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_ProcessExchangeBillMain> getObjectByJson_Sc_ProcessExchangeBillMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_ProcessExchangeBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_ProcessExchangeBillMain>>(jsonString); + return list; + } + /// <summary> + /// 澶勭悊鏂板宸ュ簭娴佽浆鍗′富琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_ProcessExchangeBillSub> getObjectByJson_Sc_ProcessExchangeBillSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_ProcessExchangeBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_ProcessExchangeBillSub>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板鍑虹珯姹囨姤鍗曚富琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_StationOutBillMain> getObjectByJson_Sc_StationOutBillMain(string jsonString) + { + //jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_StationOutBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_StationOutBillMain>>(jsonString); + return list; + } + + /// <summary> /// 澶勭悊鏂板妯″叿淇濆吇璁″垝鍗曞瓙琛ㄧ殑json /// </summary> /// <param name="jsonString"></param> @@ -969,7 +1004,7 @@ public List<Models.ClsQK_PackingBill> getObjectByJson_QK_PackingBill(string jsonString) { - jsonString = "[" + jsonString.ToString() + "]"; + //jsonString = "[" + jsonString.ToString() + "]"; List<Models.ClsQK_PackingBill> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.ClsQK_PackingBill>>(jsonString); return list; } @@ -1759,6 +1794,102 @@ } /// <summary> + /// 鐢ㄦ埛-鐢ㄦ埛鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Gy_UserUser> getObjectByJson_Gy_UserUser(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Gy_UserUser> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Gy_UserUser>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛鐗╂枡鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Gy_UserMater> getObjectByJson_Gy_UserMater(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Gy_UserMater> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Gy_UserMater>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛瀹㈡埛鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Gy_UserCustomer> getObjectByJson_Gy_UserCustomer(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Gy_UserCustomer> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Gy_UserCustomer>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛缁勭粐鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Xt_ORGANIZATIONS> getObjectByJson_Xt_ORGANIZATIONS(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Xt_ORGANIZATIONS> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Xt_ORGANIZATIONS>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛浠撳簱鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Warehouse> getObjectByJson_Warehouse(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Warehouse> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Warehouse>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛鐝粍鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Gy_Group> getObjectByJson_Gy_Group(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Gy_Group> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Gy_Group>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛閮ㄩ棬鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Department> getObjectByJson_Department(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Department> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Department>>(jsonString); + return list; + } + + /// <summary> + /// 鐢ㄦ埛鑱屽憳鍏崇郴淇℃伅琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.Employee> getObjectByJson_Employee(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.Employee> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Employee>>(jsonString); + return list; + } + + /// <summary> /// 鍏憡鍒楄〃涓昏〃鐨刯son /// </summary> /// <param name="jsonString"></param> @@ -1962,5 +2093,28 @@ return list; } + /// <summary> + /// 缁勮杩芥函-涓� + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.ClsSc_AssemblyBillMain> getObjectByJson_Sc_AssemblyBillMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.ClsSc_AssemblyBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.ClsSc_AssemblyBillMain>>(jsonString); + return list; + } + /// <summary> + /// 缁勮杩芥函-瀛� + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Models.ClsSc_AssemblyBillSub> getObjectByJson_Sc_AssemblyBillSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Models.ClsSc_AssemblyBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.ClsSc_AssemblyBillSub>>(jsonString); + return list; + } + } } \ No newline at end of file -- Gitblit v1.9.1