55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
namespace BLL
|
|
{
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
public static class MCSWebService
|
|
{
|
|
|
|
public static void getPoDetails(long projectId)
|
|
{
|
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
|
var details = mscsC.getPoDetails(3919);
|
|
if (!string.IsNullOrEmpty(details))
|
|
{
|
|
JArray arr = JArray.Parse(details);
|
|
foreach (var item in arr)
|
|
{
|
|
string a0 = item["PPGUID"].ToString();
|
|
string a1 = item["材料用途"].ToString();
|
|
string a2= item["合同号"].ToString();
|
|
string a3= item["专业"].ToString();
|
|
string a4 = item["PSGUID"].ToString();
|
|
string a5 = item["RDGUID"].ToString();
|
|
string a6 = item["材料编码"].ToString();
|
|
string a7 = item["位号"].ToString();
|
|
string a8 = item["采购量"].ToString();
|
|
string a9 = item["备注"].ToString();
|
|
string a10 = item["装置号"].ToString();
|
|
string a11 = item["主项号"].ToString();
|
|
string a12= item["企业中文名称"].ToString();
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void getIssueDetails(long projectId)
|
|
{
|
|
MCSService.WebService1SoapClient mscsC = new MCSService.WebService1SoapClient();
|
|
var details = mscsC.getIssueDetails(3919);
|
|
if (!string.IsNullOrEmpty(details))
|
|
{
|
|
JArray arr = JArray.Parse(details);
|
|
foreach (var item in arr)
|
|
{
|
|
string a = item[""].ToString();
|
|
}
|
|
}
|
|
// var getlaw= hsseC.GetLaw_LawRegulationListToSUBAsync();
|
|
}
|
|
}
|
|
}
|