From 9768482b05b989e8ed4ff51713d8305f137c960b Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期四, 18 一月 2024 10:07:15 +0800 Subject: [PATCH] 新增网页版核算方式模块调用方法,新增流转卡末入库报表报表模块,新增用户模块权限判断调用方法 --- WebAPI/ListModels.cs | 97 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 97 insertions(+), 0 deletions(-) diff --git a/WebAPI/ListModels.cs b/WebAPI/ListModels.cs index ad74173..e518643 100644 --- a/WebAPI/ListModels.cs +++ b/WebAPI/ListModels.cs @@ -862,6 +862,78 @@ return list; } + /// <summary> + /// 澶勭悊鏂板鍦板尯琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_AreaSet_Model> getObjectByJson_Gy_AreaSet(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_AreaSet_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_AreaSet_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板閿�鍞柟寮忚〃鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_SellStyle_Model> getObjectByJson_Gy_SellStyle(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_SellStyle_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SellStyle_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板閲囪喘鏂瑰紡琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_PoStockStyle_Model> getObjectByJson_Gy_PoStockStyle(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_PoStockStyle_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_PoStockStyle_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板鐩樼偣鏂规琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns>s + public List<Model.ClsGy_StockCheckItem_Model> getObjectByJson_Gy_StockCheckItems(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_StockCheckItem_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_StockCheckItem_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板瀹㈡埛鍒嗙被琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_CusType_Model> getObjectByJson_Gy_CusType(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_CusType_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_CusType_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板渚涘簲鍟嗗垎绫昏〃鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_SupType_Model> getObjectByJson_Gy_SupType(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_SupType_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SupType_Model>>(jsonString); + return list; + } + /// <summary> /// 澶勭悊鏂板寮傚父绫诲瀷琛ㄧ殑json /// </summary> @@ -3194,5 +3266,30 @@ return list; } + /// <summary> + /// 澶勭悊蹇�熻繃婊ゆ柟妗堜富琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsXt_FastICSchemeMain_Model> getObjectByJson_Xt_FastICSchemeMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsXt_FastICSchemeMain_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsXt_FastICSchemeMain_Model>>(jsonString); + return list; + } + + + /// <summary> + /// 澶勭悊鏂板蹇�熻繃婊ゆ柟妗堝瓙琛ㄧ殑json + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsXt_FastICSchemeSub_Model> getObjectByJson_Xt_FastICSchemeSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsXt_FastICSchemeSub_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsXt_FastICSchemeSub_Model>>(jsonString); + return list; + } + } } \ No newline at end of file -- Gitblit v1.9.1