解析 Json 相关
statusJson sj = new statusJson()
{
ShipmentNum = "555555",
Status1 = "05",
Warehouse = "SHANGHAI",
Company = "AAA"
};
List<statusJson> sjlist = new List<statusJson>()
{
new statusJson()
{
ShipmentNum = "555557",
Status1 = "200",
Warehouse = "SHANGHAI",
Company = "AAA"
},
new statusJson()
{
ShipmentNum = "555558",
Status1 = "200",
Warehouse = "SHANGHAI",
Company = "AAA"
}
};
string getJson = SerializationHelper.ObjecttoJson(sjlist);
public string UpdateStatus(string getJson)
{
List<statusJson> strstatus = JavaScriptHelper.JSONtoObject<List<statusJson>>(getJson);
try
{
foreach (statusJson st in strstatus)
{
string oldstatus = "";
string newstatus = st.Status1;
string restatus = reStatus(newstatus);
string Shipment_ID = st.ShipmentNum;
}
}
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。