服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
6 天以前 f8be4db0be9e9de5830dd41f7d156c368a1ea43f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using Microsoft.AspNetCore.Http;
using Rhea.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Tiger.Model;
using Tiger.Model.Base;
 
namespace Tiger.IBusiness.WMS
{
    public interface IOrderContext
    {
        /// <summary>
        /// 业务单据批次缓存字典
        /// </summary>
        /// <returns></returns>
        public Dictionary<string, IWmsOrder<iBizOrder>> GetOrderDic();
 
        /// <summary>
        /// 从业务单据字典中获取一个业务单据对象
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public IWmsOrder<iBizOrder> GetOrder(string order);
 
        /// <summary>
        /// 判断业务单据是否存在于业务单据字典中
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public bool ExistsOrder(string order);
 
        /// <summary>
        /// 增加一个业务单据对象到业务单据字典中
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public bool AddOrder(string type, string order);
 
        /// <summary>
        /// 从业务单据字典中删除一个业务单据对象
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public bool RemoveOrder(string order);
 
        /// <summary>
        /// 清空业务单据字典
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public bool ClearOrder();
    }
}