| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public async Task<int> GetCount() |
| | | { |
| | |
| | | return await GetUrl("GetByPumpSeriesID@V1.0").Get<List<AssetsPumpMainDto>>(paras); |
| | | } |
| | | |
| | | public Task<List<AssetsPumpPartMainDto>> GetPartByID(long ID) |
| | | public async Task<List<AssetsPumpPartMainDto>> GetPartByID(long ID) |
| | | { |
| | | throw new NotImplementedException(); |
| | | var paras = new List<(string Name, object Value)>() |
| | | { |
| | | (nameof(ID),ID) |
| | | }; |
| | | return await GetUrl("GetPartByID@V1.0").Get<List<AssetsPumpPartMainDto>>(paras); |
| | | } |
| | | |
| | | public async Task<long> InsertEx(AddAssetsPumpMainInput input, AddAssetsPumpGroupAndMainMapInput mainmap) |
| | | { |
| | | var paras = new List<(string Name, object Value)>() |
| | | { |
| | | (nameof(input),input), |
| | | (nameof (mainmap),mainmap) |
| | | }; |
| | | return await GetUrl("InsertEx@V1.0").Post<long>(paras); |
| | | var mainExInput = new AddPumpMainExInput(); |
| | | mainExInput.MainInput = input; |
| | | mainExInput.MainMapInput = mainmap; |
| | | return await GetUrl("InsertEx@V1.0").Post<long>(mainExInput); |
| | | } |
| | | } |
| | | } |