33 lines
725 B
C#
33 lines
725 B
C#
![]() |
using System.Collections.Generic;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Newtonsoft.Json.Linq;
|
|||
|
using SWS.Commons;
|
|||
|
using SWS.Model;
|
|||
|
using SWS.Share;
|
|||
|
|
|||
|
namespace SWS.Service
|
|||
|
{
|
|||
|
public class PlotBOMService : HttpService
|
|||
|
{
|
|||
|
public PlotBOMService() : base()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
public async Task<List<BOMGroupInfo>> GetBOMGroupInfo(string drawingId)
|
|||
|
{
|
|||
|
|
|||
|
var res = await this.GetAsync<List<BOMGroupInfo>>($"PlotBOMApi/GetBOMGroupInfo?drawingId={drawingId}&ProjectId={GlobalObject.curProject.ProjectId}");
|
|||
|
if (res.code == 200)
|
|||
|
{
|
|||
|
return res.data;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
}
|
|||
|
return null;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|