服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-05-31 d4c326deaa51e7d4897a84afc339684012b8cfbe
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
58
59
60
61
62
63
using Tiger.Model;
using Rhea.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Tiger.IBusiness;
using Tiger.Business.WMS.Sharetronic.Shelf;
using Tiger.Model.Sharetronic.Shelf;
 
namespace Tiger.Business.WMS
{
    public partial class Share
    {
        private static _Biz_Shelf _Shelf = new();
        /// <summary>
        /// 智能货架业务
        /// </summary>
        public static _Biz_Shelf Shelf => _Shelf;
 
        /// <summary>
        /// 智能货架业务类
        /// </summary>
        public partial class _Biz_Shelf : IBiz_Shelf
        {
            private Api.GetChuteInfo _GetChuteInfo = new();
            private Api.LightAll _LightAll = new();
            private Api.DownAll _DownAll = new();
            private Api.LightMulti _LightMulti = new();
            private Api.DownMulti _DownMulti = new();
            private Api.LightSingle _LightSingle = new();
            private Api.DownSingle _DownSingle = new();
            private Api.OperateTowerLight _OperateTowerLight = new();
            private Api.PutOn _PutOn = new();
 
            public async Task<ShelfApiResult> GetChuteInfo(List<WMS_LOCATION> list) => await _GetChuteInfo.Execute(list);
            public async Task<ShelfApiResult> GetChuteInfo(WMS_SHELF shelf) => await _GetChuteInfo.Execute(shelf);
            public async Task<ShelfApiResult> GetChuteInfo(WMS_LOCATION location) => await _GetChuteInfo.Execute(location);
            public async Task<ShelfApiResult> LightAll(string shelfCode, LedColor color) => await _LightAll.Execute(shelfCode, color);
            public async Task<ShelfApiResult> LightAll(WMS_SHELF shelf, LedColor color) => await _LightAll.Execute(shelf, color);
            public async Task<ShelfApiResult> LightAll(WMS_LOCATION location, LedColor color) => await _LightAll.Execute(location, color);
            public async Task<ShelfApiResult> DownAll(string shelfCode) => await _DownAll.Execute(shelfCode);
            public async Task<ShelfApiResult> DownAll(WMS_SHELF shelf) => await _DownAll.Execute(shelf);
            public async Task<ShelfApiResult> DownAll(WMS_LOCATION location) => await _DownAll.Execute(location);
            public async Task<ShelfApiResult> LightMulti(string pdaId, LedColor color, List<WMS_LOCATION> list) => await _LightMulti.Execute(pdaId, color, list);
            public async Task<ShelfApiResult> LightMulti(string pdaId, LedColor color,string shelfCode, List<int> ledidList) => await _LightMulti.Execute(pdaId, color,shelfCode,ledidList);
            public async Task<ShelfApiResult> LightMulti(string pdaId, LedColor color, WMS_SHELF shelf) => await _LightMulti.Execute(pdaId, color, shelf);
            public async Task<ShelfApiResult> LightMulti(string pdaId, LedColor color, WMS_LOCATION location) => await _LightMulti.Execute(pdaId, color, location);
            public async Task<ShelfApiResult> DownMulti(string pdaId, List<WMS_LOCATION> list) => await _DownMulti.Execute(pdaId, list);
            public async Task<ShelfApiResult> DownMulti(string pdaId, WMS_SHELF shelf) => await _DownMulti.Execute(pdaId, shelf);
            public async Task<ShelfApiResult> DownMulti(string pdaId, string shelfCode, List<int> ledidList) => await _DownMulti.Execute(pdaId, shelfCode, ledidList);
            public async Task<ShelfApiResult> DownMulti(string pdaId, WMS_LOCATION location) => await _DownMulti.Execute(pdaId, location);
            public async Task<ShelfApiResult> LightSingle(string pdaId, LedColor color, WMS_LOCATION location) => await _LightSingle.Execute(pdaId, color, location);
            public async Task<ShelfApiResult> DownSingle(string pdaId, WMS_LOCATION location) => await _DownSingle.Execute(pdaId, location);
            public async Task<ShelfApiResult> OperateTowerLight(TowerColor color, WMS_SHELF shelf) => await _OperateTowerLight.Execute(color, shelf);
            public async Task<ShelfApiResult> OperateTowerLight(TowerColor color, WMS_LOCATION location) => await _OperateTowerLight.Execute(color, location);
            public async Task<ShelfApiResult> PutOn(string pdaId, WMS_SHELF shelf, WMS_ITEM curItem) => await _PutOn.Execute(pdaId, shelf, curItem);
        }
    }
}