| | |
| | | using Model; |
| | | using System.Data; |
| | | using System.Text.RegularExpressions; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI |
| | | { |
| | |
| | | List<Model.ClsGy_MatePriceSup_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_MatePriceSup_Model>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 处理采购价目表的json |
| | | /// </summary> |
| | | /// <param name="jsonString"></param> |
| | | /// <returns></returns> |
| | | public List<Model.ClsGy_PurPrice_Model> getObjectByJson_Gy_PurPrice(string jsonString) |
| | | { |
| | | jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<Model.ClsGy_PurPrice_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_PurPrice_Model>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 处理采购价格表的json |
| | | /// </summary> |
| | |
| | | List<Model.ClsGy_SOPBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SOPBillSub>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | public static implicit operator ListModels(DataTable v) |
| | | { |
| | | throw new NotImplementedException(); |
| | | } |
| | | |
| | | public List<ClsWW_EntrustOrderBillMain_1> getObjectByJson_WW_EntrustOrderBillMain(string jsonString) |
| | | { |
| | | jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<ClsWW_EntrustOrderBillMain_1> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsWW_EntrustOrderBillMain_1>>(jsonString); |
| | | return list; |
| | | } |
| | | } |
| | | } |