IDeliveryService.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. using Muchinfo.MTPClient.Data;
  2. using Muchinfo.MTPClient.Data.Enums;
  3. using Muchinfo.MTPClient.Data.Model;
  4. using Muchinfo.MTPClient.Data.Model.Account;
  5. using Muchinfo.MTPClient.Data.Model.Delivery;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Collections.ObjectModel;
  9. namespace Muchinfo.MTPClient.IService
  10. {
  11. /// <summary>
  12. /// 交收
  13. /// </summary>
  14. public interface IDeliveryService
  15. {
  16. /// <summary>
  17. /// 下交割申报单
  18. /// </summary>
  19. /// <param name="entrustOrder">交割内容</param>
  20. /// <param name="successAction">成功回应</param>
  21. /// <param name="errorAction">失败回应</param>
  22. void DeliveryApplyOrder(DeliveryOrderReqModel deliveryOrder, Action<DeliveryOrderRspModel> successAction,
  23. Action<ErrorEntity> errorAction);
  24. /// <summary>
  25. /// 查询交收单
  26. /// </summary>
  27. /// <param name="AccountId">账号</param>
  28. /// <param name="strarTime">开始时间</param>
  29. /// <param name="endTime">结束时间</param>
  30. /// <param name="successAction"></param>
  31. /// <param name="errorAction"></param>
  32. void QueryDeliveryHolders(ulong AccountId, DateTime strarTime, DateTime endTime,
  33. Action<List<DryHoldDetail>> successAction,
  34. Action<ErrorEntity> errorAction);
  35. /// <summary>
  36. /// 查询交收单详情
  37. /// </summary>
  38. /// <param name="DeliveryId">交割单</param>
  39. /// <param name="successAction"></param>
  40. /// <param name="errorAction"></param>
  41. void QueryDeliveryHoldersMoreDetail(uint DeliveryId, Action<List<DeliveryDetailWR>> successAction, Action<ErrorEntity> errorAction);
  42. /// <summary>
  43. /// 查询提货详情
  44. /// </summary>
  45. /// <param name="STOREOUTID">出库单ID</param>
  46. /// <param name="successAction"></param>
  47. /// <param name="errorAction"></param>
  48. void QueryTakeGoodsMoreDetail(long STOREOUTID, Action<List<WarehouseRecieptModel>> successAction, Action<ErrorEntity> errorAction);
  49. /// <summary>
  50. /// /查询交收申报单
  51. /// </summary>
  52. /// <param name="AccountId">账号</param>
  53. /// <param name="strarTime">开始时间</param>
  54. /// <param name="endTime">结束时间</param>
  55. /// <param name="successAction"></param>
  56. /// <param name="errorAction"></param>
  57. void QueryDeliveryEntrustOrders(ulong AccountId, DateTime strarTime, DateTime endTime,
  58. Action<List<DeliveryEntrustOrder>> successAction,
  59. Action<ErrorEntity> errorAction);
  60. /// <summary>
  61. /// 仓单查询
  62. /// </summary>
  63. /// <param name="accountId"></param>
  64. /// <param name="strarTime"></param>
  65. /// <param name="endTime"></param>
  66. /// <param name="successAction"></param>
  67. /// <param name="errorAction"></param>
  68. void QueryDeliveryWarehouseOrders(SearchWarehouseOrdersType warehouseType, string WRCode, ulong accountId, DateTime strarTime, DateTime endTime,
  69. Action<List<DeliveryWarehouse>> successAction,
  70. Action<ErrorEntity> errorAction);
  71. /// <summary>
  72. /// 点选配对-仓单配对查询【停用-改用接口调用】
  73. /// </summary>
  74. /// <param name="DeliveryGoodsId"></param>
  75. /// <param name="successAction"></param>
  76. /// <param name="errorAction"></param>
  77. void QueryDeliveryMatchOrders(uint DeliveryGoodsId, Action<List<DeliveryMatchModel>> successAction, Action<ErrorEntity> errorAction);
  78. /// <summary>
  79. /// 提交仓单配对
  80. /// </summary>
  81. /// <param name="entrustOrder">配对仓单内容</param>
  82. /// <param name="successAction">成功回应</param>
  83. /// <param name="errorAction">失败回应</param>
  84. void SubmitDeliveryMatchOrder(DeliveryOrderMatchReqModel deliveryMatchOrder, Action<DeliveryOrderMatchRspModel> successAction,
  85. Action<ErrorEntity> errorAction);
  86. /// <summary>
  87. /// 查询提货仓单
  88. /// </summary>
  89. /// <param name="AccountId">账号</param>
  90. /// <param name="strarTime">开始时间</param>
  91. /// <param name="endTime">结束时间</param>
  92. /// <param name="successAction"></param>
  93. /// <param name="errorAction"></param>
  94. void QueryTakaDeliveryGoodsOrders(ulong AccountId, DateTime strarTime, DateTime endTime,
  95. Action<List<TakaDeliveryGoodsQueryModel>> successAction,
  96. Action<ErrorEntity> errorAction);
  97. /// <summary>
  98. /// 提货申请-查询
  99. /// </summary>
  100. /// <param name="accountId"></param>
  101. /// <param name="successAction"></param>
  102. /// <param name="errorAction"></param>
  103. void QueryTakaDeliveryGoodsOrdersAppy(ulong accountId, Action<List<TakaDeliveryGoodsApplyModel>> successAction, Action<ErrorEntity> errorAction);
  104. /// <summary>
  105. /// 交易商品-交割关系表-配置信息
  106. /// </summary>
  107. /// <param name="goodId"></param>
  108. /// <param name="successAction"></param>
  109. /// <param name="errorAction"></param>
  110. void QueryDeliveryGoodsRelationConfig(uint goodId, Action<List<DeliveryConfig>> successAction, Action<ErrorEntity> errorAction);
  111. /// <summary>
  112. /// 交易商品-交割规则查询
  113. /// </summary>
  114. /// <param name="deliveryGoodsId"></param>
  115. /// <param name="ruleId"></param>
  116. /// <param name="successAction"></param>
  117. /// <param name="errorAction"></param>
  118. void QueryDeliveryRule(uint deliveryGoodsId,uint ruleId, Action<List<DeliveryRuleModel>> successAction, Action<ErrorEntity> errorAction);
  119. /// <summary>
  120. /// 提交提货申请
  121. /// </summary>
  122. /// <param name="OutStoreReqModel">提货申请内容</param>
  123. /// <param name="successAction">成功回应</param>
  124. /// <param name="errorAction">失败回应</param>
  125. void SubmitOutStoreReq(OutStoreReqModel reqModel, Action<OutStoreRspModel> successAction,
  126. Action<ErrorEntity> errorAction);
  127. /// <summary>
  128. /// 确认-交收现货付款请求
  129. /// </summary>
  130. /// <param name="ReceiveConfirmReqModel">确认收货内容</param>
  131. /// <param name="successAction">成功回应</param>
  132. /// <param name="errorAction">失败回应</param>
  133. void SubmitReceiveConfirmReq(ReceiveConfirmReqModel reqModel, Action<ReceiveConfirmRspModel> successAction,
  134. Action<ErrorEntity> errorAction);
  135. /// <summary>
  136. /// 查询配对仓单请求
  137. /// </summary>
  138. /// <param name="ReceiveConfirmReqModel">查询配对仓单内容</param>
  139. /// <param name="successAction">成功回应</param>
  140. /// <param name="errorAction">失败回应</param>
  141. void SearchMatchWarehouseReq(WrPairReqModel reqModel, Action<WrPairRspModel> successAction,
  142. Action<ErrorEntity> errorAction);
  143. /// <summary>
  144. /// 查询交割关系表LIST
  145. /// </summary>
  146. /// <param name="successAction"></param>
  147. /// <param name="errorAction"></param>
  148. void QueryGoodsDeliveryRelationList(Action<List<GoodsDeliveryRelationModel>> successAction, Action<ErrorEntity> errorAction);
  149. /// <summary>
  150. /// 查询P+X交割商品信息
  151. /// </summary>
  152. /// <param name="successAction"></param>
  153. /// <param name="errorAction"></param>
  154. void QueryRelationPAndXGoodsInfoList(Action<List<RelationPAndXGoodsInfoModel>> successAction, Action<ErrorEntity> errorAction);
  155. /// <summary>
  156. /// /查询交收申报单
  157. /// </summary>
  158. /// <param name="AccountId">账号</param>
  159. /// <param name="strarTime">开始时间</param>
  160. /// <param name="endTime">结束时间</param>
  161. /// <param name="successAction"></param>
  162. /// <param name="errorAction"></param>
  163. void QueryDeliveryComplete(ulong AccountId, DateTime strarTime, DateTime endTime,
  164. Action<List<DeliveryCompleteModel>> successAction,
  165. Action<ErrorEntity> errorAction);
  166. /// <summary>
  167. /// 申报点选仓单查询MTP2.0
  168. /// </summary>
  169. /// <param name="accountId"></param>
  170. /// <param name="deliveryGoodsId"></param>
  171. /// <param name="successAction"></param>
  172. /// <param name="errorAction"></param>
  173. void QueryDeliveryWhRecieptInfo(ulong accountId, uint deliveryGoodsId, Action<List<DeliveryWhRecieptInfo>> successAction, Action<ErrorEntity> errorAction);
  174. /// <summary>
  175. /// 交割提货个人信息查询请求
  176. /// </summary>
  177. /// <param name="DepositPersonalInfoReqModel">交割提货个人信息查询请求内容</param>
  178. /// <param name="successAction">成功回应</param>
  179. /// <param name="errorAction">失败回应</param>
  180. void SearchDepositPersonalInfoReq(DepositPersonalInfoReqModel reqModel, Action<DepositPersonalInfoRspModel> successAction,
  181. Action<ErrorEntity> errorAction);
  182. /// <summary>
  183. /// 仓单变更流水查询
  184. /// </summary>
  185. /// <param name="ChangeOperator">变更操作人</param>
  186. /// <param name="WRCode">仓单号</param>
  187. /// <param name="successAction"></param>
  188. /// <param name="errorAction"></param>
  189. void SearchWRChangeFlow(uint ChangeOperator, string WRCode, Action<List<WRChangeFlowModel>> successAction, Action<ErrorEntity> errorAction);
  190. /// <summary>
  191. /// 查询履约计划明细
  192. /// </summary>
  193. /// <param name="accountId">变更操作人</param>
  194. /// <param name="PlanId">履约计划id</param>
  195. /// <param name="successAction"></param>
  196. /// <param name="errorAction"></param>
  197. void SearchDeliveryPerformDetailPlan(long PlanId,bool isHistory, Action<List<DeliveryPerformDetailPlanModel>> successAction, Action<ErrorEntity> errorAction);
  198. /// <summary>
  199. /// 交割关系配置查询
  200. /// </summary>
  201. /// <param name="RELATIONID">交割关系id</param>
  202. /// <param name="successAction"></param>
  203. /// <param name="errorAction"></param>
  204. void SearchRelationPerformConfig(long Relationid, Action<List<RelationperformConfigModel>> successAction, Action<ErrorEntity> errorAction);
  205. /// <summary>
  206. /// 查询账号持仓商品的仓单
  207. /// </summary>
  208. /// <param name="accountId">账号ID</param>
  209. /// <param name="deliveryGoodsId">商品id</param>
  210. /// <param name="successAction"></param>
  211. /// <param name="errorAction"></param>
  212. void QueryDeliveryWarehouseOrders(ulong accountId, uint deliveryGoodsId,
  213. Action<List<DeliveryWarehouse>> successAction,
  214. Action<ErrorEntity> errorAction);
  215. /// <summary>
  216. /// 通过 仓单Id查询仓单
  217. /// </summary>
  218. /// <param name="wrid">账号ID</param>
  219. /// <param name="successAction"></param>
  220. /// <param name="errorAction"></param>
  221. void QueryDeliveryWarehouseOrders(uint wrid,
  222. Action<List<DeliveryWarehouse>> successAction,
  223. Action<ErrorEntity> errorAction);
  224. /// <summary>
  225. /// 交割申报查询
  226. /// </summary>
  227. /// <param name="statement"></param>
  228. /// <param name="queryCommonParams"></param>
  229. /// <param name="successAction"></param>
  230. /// <param name="errorAction"></param>
  231. void QueryDeliveryDeclareByCapitalAccount(string statement, List<QueryCommonParam> queryCommonParams,
  232. Action<List<DeliveryEntrustOrder>> successAction, Action<ErrorEntity> errorAction);
  233. void QueryDryOrdersByCapitalAccount(string statement, List<QueryCommonParam> queryCommonParams,
  234. Action<List<DryHoldDetail>> successAction, Action<ErrorEntity> errorAction);
  235. void QueryDeliveryWarehouseOrdersNew(uint goodsId, uint deliveryGoodsId,uint tradeProperty,
  236. Action<DeliveryWRRspModel> successAction,
  237. Action<ErrorEntity> errorAction);
  238. }
  239. }