├── .gitignore
├── Git.HikAgv.App.sln
├── Git.HikAgv.App
├── App.config
├── Configs
│ ├── Cache
│ │ └── cache.config
│ ├── SEO
│ │ └── SEO.config
│ └── Setting
│ │ └── setting.config
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Git.HikAgv.App.csproj
├── MapConfig
│ ├── Map.txt
│ └── Pallet.txt
├── OPCModel
│ ├── BlockServer.cs
│ ├── DeviceModel.cs
│ ├── GroupItemModel.cs
│ ├── GroupModel.cs
│ ├── OpcFactory.cs
│ └── ServerModel.cs
├── PlcConfig
│ └── Inovance
│ │ ├── Inovance1
│ │ ├── Palletizing.txt
│ │ └── Unpack.txt
│ │ ├── Inovance2
│ │ ├── Palletizing.txt
│ │ └── Unpack.txt
│ │ └── Server.txt
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Server
│ ├── AgvCallbackServiceController - 复制.cs.txt
│ ├── AgvCallbackServiceController.cs
│ ├── AgvTaskEntity.cs
│ ├── DomainContext.cs
│ ├── InovanceModbusClient.cs
│ ├── InteractiveEntity.cs
│ ├── LoadMapServer - 复制.cs.txt
│ ├── LoadMapServer.cs
│ ├── LoadPalletServer.cs
│ ├── PalletEntity.cs
│ ├── PositionEntity.cs
│ └── Startup.cs
└── packages.config
├── Git.HikAgv.Hsl.Modbusclient.Test
├── App.config
├── Git.HikAgv.Hsl.Modbusclient.Test.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── Git.Mes.HikRobot.SDK
├── ApiName
│ └── TaskApiName.cs
├── EHikBool.cs
├── EHikIsDelete.cs
├── EHikResponseCode.cs
├── FileItem.cs
├── Git.Mes.HikRobot.SDK.csproj
├── HikDataListResult.cs
├── HikDataResult.cs
├── HikJsonHelper.cs
├── HikSDKUtils.cs
├── HikTopClientDefault.cs
├── HikTopDictionary.cs
├── HikTopUtils.cs
├── IHikTopClient.cs
├── IHikTopRequest.cs
├── Model
│ ├── BindCtnrAndBinRequestDTO.cs
│ ├── BindNotifyRequestDTO.cs
│ ├── BindPodAndBerthRequestDTO.cs
│ ├── BindPodAndMatRequestDTO.cs
│ ├── CancelTaskRequestDTO.cs
│ ├── ContinueTaskRequestDTO.cs
│ ├── GenTaskRequestDTO.cs
│ ├── LockPositionRequestDTO.cs
│ ├── NotifyBindParamDTO.cs
│ ├── PositionDTO.cs
│ ├── PrioritiyDTO.cs
│ ├── QueryAgvStatusRequestDTO.cs
│ ├── QueryAgvStatusResultDTO.cs
│ ├── QueryPodBerthAndMatRequestDTO.cs
│ ├── QueryPodBerthAndMatResultDTO.cs
│ ├── QueryTaskStatusReqeustDTO.cs
│ ├── QueryTaskStatusResultDTO.cs
│ ├── ResumeRobotRequestDTO.cs
│ ├── SetTaskPriorityRequestDTO.cs
│ ├── StopRobotRequestDTO.cs
│ ├── SyncMapDatasRequestDTO.cs
│ ├── SyncMapDatasResultDTO.cs
│ ├── TaskCallbackDTO.cs
│ ├── WarnCallbackRequestDTO.cs
│ └── WarnDataDTO.cs
├── Properties
│ └── AssemblyInfo.cs
├── Server
│ └── HikRobotTaskServer.cs
└── packages.config
├── Lib
├── DSkin.XML
├── DSkin
│ ├── AuthorizeDSkin.exe
│ ├── DSkin.Design.dll
│ ├── DSkin.XML
│ ├── DSkin.dll
│ ├── HVMRuntm.dll
│ ├── 【2.0】DSkin20171226195410
│ │ ├── DSkin.Design.dll
│ │ ├── DSkin.XML
│ │ ├── DSkin.dll
│ │ └── 更新文档.txt
│ ├── 【4.0】DSkin20171226195554
│ │ ├── DSkin.Design.dll
│ │ ├── DSkin.XML
│ │ ├── DSkin.dll
│ │ └── 更新文档.txt
│ └── 【4.0】DSkin20191108102755
│ │ ├── DSkin.Design.dll
│ │ ├── DSkin.XML
│ │ ├── DSkin.dll
│ │ └── 更新文档.txt
├── FastReport.Web.dll
├── FastReport.dll
├── Fnthex32.dll
├── Git.Framework.Cache.dll
├── Git.Framework.Controller4.dll
├── Git.Framework.DataTypes.dll
├── Git.Framework.Email.dll
├── Git.Framework.Encrypt.dll
├── Git.Framework.Encrypt.pdb
├── Git.Framework.Events.dll
├── Git.Framework.Io.dll
├── Git.Framework.Json.dll
├── Git.Framework.Log.dll
├── Git.Framework.MsSql.dll
├── Git.Framework.ORM.dll
├── Git.Framework.Office.dll
├── Git.Framework.Printer.dll
├── Git.Framework.Resource.dll
├── Git.Print.Libraries.dll
├── Gma.QrCodeNet.Encoding.dll
├── HslCommunication.dll
├── HslCommunication.pdb
├── HslCommunication.xml
├── ICSharpCode.SharpZipLib.dll
├── Microsoft.Practices.EnterpriseLibrary.Caching.dll
├── Microsoft.Practices.EnterpriseLibrary.Common.dll
├── Microsoft.Practices.EnterpriseLibrary.Data.dll
├── Microsoft.Practices.EnterpriseLibrary.Logging.dll
├── Microsoft.Practices.ObjectBuilder.dll
├── Microsoft.Practices.Unity.dll
├── NPOI.OOXML.dll
├── NPOI.OpenXml4Net.dll
├── NPOI.OpenXmlFormats.dll
├── NPOI.dll
├── OpcRcw.Cmd.dll
├── OpcRcw.Comn.dll
├── OpcRcw.Da.dll
├── OpcRcw.Dx.dll
├── OpcRcw.Hda.dll
├── RabbitMQ.Client.dll
├── RabbitMQ.Client.xml
├── RabbitMQ.ServiceModel.dll
├── Template
│ └── Template.xml
├── TopSdk.dll
├── itextsharp.dll
├── zxing.dll
└── zxing.presentation.dll
├── README.md
└── packages
├── Microsoft.AspNet.WebApi.Client.5.2.7
├── .signature.p7s
├── Microsoft.AspNet.WebApi.Client.5.2.7.nupkg
└── lib
│ ├── net45
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
│ ├── netstandard2.0
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
│ └── portable-wp8+netcore45+net45+wp81+wpa81
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
├── Microsoft.AspNet.WebApi.Core.5.2.7
├── .signature.p7s
├── Content
│ └── web.config.transform
├── Microsoft.AspNet.WebApi.Core.5.2.7.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.dll
│ └── System.Web.Http.xml
├── Microsoft.AspNet.WebApi.Owin.5.2.7
├── .signature.p7s
├── Microsoft.AspNet.WebApi.Owin.5.2.7.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.Owin.dll
│ └── System.Web.Http.Owin.xml
├── Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7
├── .signature.p7s
└── Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7.nupkg
├── Microsoft.AspNet.WebApi.SelfHost.5.2.7
├── .signature.p7s
├── Microsoft.AspNet.WebApi.SelfHost.5.2.7.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.SelfHost.dll
│ └── System.Web.Http.SelfHost.xml
├── Microsoft.Owin.2.0.2
├── .signature.p7s
├── Microsoft.Owin.2.0.2.nupkg
└── lib
│ ├── net40
│ ├── Microsoft.Owin.XML
│ └── Microsoft.Owin.dll
│ └── net45
│ ├── Microsoft.Owin.XML
│ └── Microsoft.Owin.dll
├── Microsoft.Owin.Host.HttpListener.2.0.2
├── .signature.p7s
├── Microsoft.Owin.Host.HttpListener.2.0.2.nupkg
└── lib
│ ├── net40
│ ├── Microsoft.Owin.Host.HttpListener.dll
│ └── Microsoft.Owin.Host.HttpListener.xml
│ └── net45
│ ├── Microsoft.Owin.Host.HttpListener.dll
│ └── Microsoft.Owin.Host.HttpListener.xml
├── Microsoft.Owin.Hosting.2.0.2
├── .signature.p7s
├── Microsoft.Owin.Hosting.2.0.2.nupkg
└── lib
│ ├── net40
│ ├── Microsoft.Owin.Hosting.XML
│ └── Microsoft.Owin.Hosting.dll
│ └── net45
│ ├── Microsoft.Owin.Hosting.XML
│ └── Microsoft.Owin.Hosting.dll
├── NModbus.3.0.66
├── .signature.p7s
├── LICENSE.txt
├── NModbus.3.0.66.nupkg
└── lib
│ ├── net45
│ ├── NModbus.dll
│ └── NModbus.xml
│ ├── net46
│ ├── NModbus.dll
│ └── NModbus.xml
│ ├── net5.0
│ ├── NModbus.dll
│ └── NModbus.xml
│ ├── net6.0
│ ├── NModbus.dll
│ └── NModbus.xml
│ ├── netstandard1.3
│ ├── NModbus.dll
│ └── NModbus.xml
│ └── netstandard2.0
│ ├── NModbus.dll
│ └── NModbus.xml
├── Newtonsoft.Json.6.0.2
├── .signature.p7s
├── Newtonsoft.Json.6.0.2.nupkg
├── lib
│ ├── net20
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net35
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net40
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── netcore45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── portable-net40+sl5+wp80+win8+monotouch+monoandroid
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ └── portable-net45+wp80+win8+wpa81
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
└── tools
│ └── install.ps1
├── Newtonsoft.Json.6.0.4
├── .signature.p7s
├── Newtonsoft.Json.6.0.4.nupkg
├── lib
│ ├── net20
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net35
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net40
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── netcore45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── portable-net40+sl5+wp80+win8+wpa81
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ └── portable-net45+wp80+win8+wpa81
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
└── tools
│ └── install.ps1
└── Owin.1.0
├── .signature.p7s
├── Owin.1.0.nupkg
└── lib
└── net40
└── Owin.dll
/.gitignore:
--------------------------------------------------------------------------------
1 | /.vs
2 | /Git.HikAgv.App/bin
3 | /Git.HikAgv.App/obj
4 | /Git.HikAgv.Hsl.Modbusclient.Test/bin
5 | /Git.HikAgv.Hsl.Modbusclient.Test/obj
6 | /Git.Mes.HikRobot.SDK/obj
7 | /Git.Mes.HikRobot.SDK/bin
8 |
--------------------------------------------------------------------------------
/Git.HikAgv.App.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.32228.343
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Git.HikAgv.App", "Git.HikAgv.App\Git.HikAgv.App.csproj", "{B23C1FB7-8C46-4437-9CA3-DE3D2497CE9B}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Git.HikAgv.Hsl.Modbusclient.Test", "Git.HikAgv.Hsl.Modbusclient.Test\Git.HikAgv.Hsl.Modbusclient.Test.csproj", "{B370C9FC-B8B0-41E6-9F0E-588906CAF096}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Git.Mes.HikRobot.SDK", "Git.Mes.HikRobot.SDK\Git.Mes.HikRobot.SDK.csproj", "{D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {B23C1FB7-8C46-4437-9CA3-DE3D2497CE9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {B23C1FB7-8C46-4437-9CA3-DE3D2497CE9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {B23C1FB7-8C46-4437-9CA3-DE3D2497CE9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {B23C1FB7-8C46-4437-9CA3-DE3D2497CE9B}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {B370C9FC-B8B0-41E6-9F0E-588906CAF096}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {B370C9FC-B8B0-41E6-9F0E-588906CAF096}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {B370C9FC-B8B0-41E6-9F0E-588906CAF096}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {B370C9FC-B8B0-41E6-9F0E-588906CAF096}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {80864C42-5044-4EFB-B4FC-A77B1FC12F98}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Configs/Cache/cache.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Configs/SEO/SEO.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Configs/Setting/setting.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/MapConfig/Map.txt:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | PositionNum:"4",
4 | PositionCode:"A1",
5 | MapDataCode:"YYGF",
6 | MapShortName:"YYGF",
7 | PositionName:"A-1",
8 | AreaCode:"A",
9 | HasCon:"1",
10 | PodCode:"",
11 | PlcCode:"Inovance1",
12 | Description:"A-1"
13 | },
14 | {
15 | PositionNum:"3",
16 | PositionCode:"A2",
17 | MapDataCode:"YYGF",
18 | MapShortName:"YYGF",
19 | PositionName:"A-2",
20 | AreaCode:"A",
21 | HasCon:"1",
22 | PodCode:"",
23 | PlcCode:"Inovance1",
24 | Description:"A-2"
25 | },
26 | {
27 | PositionNum:"2",
28 | PositionCode:"B2",
29 | MapDataCode:"YYGF",
30 | MapShortName:"YYGF",
31 | PositionName:"B-2",
32 | AreaCode:"B",
33 | HasCon:"1",
34 | PodCode:"",
35 | PlcCode:"Inovance1",
36 | Description:"B-2"
37 | },
38 | {
39 | PositionNum:"1",
40 | PositionCode:"B1",
41 | MapDataCode:"YYGF",
42 | MapShortName:"YYGF",
43 | PositionName:"B-1",
44 | AreaCode:"B",
45 | HasCon:"0",
46 | PodCode:"",
47 | PlcCode:"Inovance1",
48 | Description:"B-1"
49 | },
50 |
51 |
52 |
53 |
54 | {
55 | PositionNum:"6",
56 | PositionCode:"P3",
57 | MapDataCode:"YYGF",
58 | MapShortName:"YYGF",
59 | PositionName:"Apply_A-3",
60 | AreaCode:"A",
61 | HasCon:"0",
62 | PodCode:"",
63 | PlcCode:"Inovance1",
64 | Description:"P3暂停点"
65 | },
66 | {
67 | PositionNum:"7",
68 | PositionCode:"P2",
69 | MapDataCode:"YYGF",
70 | MapShortName:"YYGF",
71 | PositionName:"Apply_A-2",
72 | AreaCode:"A",
73 | HasCon:"0",
74 | PodCode:"",
75 | PlcCode:"Inovance1",
76 | Description:"P2暂停点"
77 | },
78 | {
79 | PositionNum:"5",
80 | PositionCode:"P1",
81 | MapDataCode:"YYGF",
82 | MapShortName:"YYGF",
83 | PositionName:"Apply_A-1",
84 | AreaCode:"A",
85 | HasCon:"0",
86 | PodCode:"",
87 | PlcCode:"Inovance1",
88 | Description:"P1暂停点"
89 | },
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | {
98 | PositionNum:"21",
99 | PositionCode:"C1",
100 | MapDataCode:"YYGF",
101 | MapShortName:"YYGF",
102 | PositionName:"C-1",
103 | AreaCode:"C",
104 | HasCon:"1",
105 | PodCode:"",
106 | PlcCode:"Inovance2",
107 | Description:"C-1"
108 | },
109 | {
110 | PositionNum:"22",
111 | PositionCode:"C2",
112 | MapDataCode:"YYGF",
113 | MapShortName:"YYGF",
114 | PositionName:"C-2",
115 | AreaCode:"C",
116 | HasCon:"1",
117 | PodCode:"",
118 | PlcCode:"Inovance2",
119 | Description:"C-2"
120 | },
121 | {
122 | PositionNum:"27",
123 | PositionCode:"D2",
124 | MapDataCode:"YYGF",
125 | MapShortName:"YYGF",
126 | PositionName:"D-2",
127 | AreaCode:"D",
128 | HasCon:"1",
129 | PodCode:"",
130 | PlcCode:"Inovance2",
131 | Description:"D-2"
132 | },
133 | {
134 | PositionNum:"28",
135 | PositionCode:"D1",
136 | MapDataCode:"YYGF",
137 | MapShortName:"YYGF",
138 | PositionName:"D-1",
139 | AreaCode:"D",
140 | HasCon:"0",
141 | PodCode:"",
142 | PlcCode:"Inovance2",
143 | Description:"D-1"
144 | },
145 |
146 | ]
--------------------------------------------------------------------------------
/Git.HikAgv.App/MapConfig/Pallet.txt:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | PodCode:"100001",
4 | Num:"0",
5 | TotalNum:"0",
6 | PositionCode:"A1",
7 | PositionName:"A-1"
8 | },
9 | {
10 | PodCode:"100002",
11 | Num:"0",
12 | TotalNum:"0",
13 | PositionCode:"A2",
14 | PositionName:"A-2"
15 | },
16 | {
17 | PodCode:"100003",
18 | Num:"0",
19 | TotalNum:"0",
20 | PositionCode:"B2",
21 | PositionName:"B-2"
22 | },
23 | {
24 | PodCode:"100004",
25 | Num:"0",
26 | TotalNum:"0",
27 | PositionCode:"C1",
28 | PositionName:"C-1"
29 | },
30 | {
31 | PodCode:"100005",
32 | Num:"0",
33 | TotalNum:"0",
34 | PositionCode:"C2",
35 | PositionName:"C-2"
36 | },
37 | {
38 | PodCode:"100006",
39 | Num:"0",
40 | TotalNum:"0",
41 | PositionCode:"D2",
42 | PositionName:"D-2"
43 | }
44 | ]
--------------------------------------------------------------------------------
/Git.HikAgv.App/OPCModel/DeviceModel.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.OPCModel
22 | {
23 | public partial class DeviceModel
24 | {
25 | ///
26 | /// 构造函数
27 | ///
28 | public DeviceModel() { }
29 |
30 | ///
31 | /// CPU 型号信息
32 | ///
33 | public string CpuName { get; set; }
34 |
35 | ///
36 | /// 设备组名称
37 | ///
38 | public List ListGroups { get; set; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/OPCModel/GroupItemModel.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.OPCModel
22 | {
23 | public partial class GroupItemModel
24 | {
25 | public GroupItemModel() { }
26 |
27 | public string ItemID { get; set; }
28 |
29 | public string DBBlock { get; set; }
30 |
31 | public string DataType { get; set; }
32 |
33 | public string PropName { get; set; }
34 |
35 |
36 | public string GroupName { get; set; }
37 |
38 | public string DeviceName { get; set; }
39 |
40 | public string ChannelName { get; set; }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/OPCModel/GroupModel.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.OPCModel
22 | {
23 | public partial class GroupModel
24 | {
25 | public GroupModel() { }
26 |
27 | ///
28 | /// 设备名称
29 | ///
30 | public string DeviceName { get; set; }
31 |
32 | public List Items { get; set; }
33 |
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/OPCModel/OpcFactory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Git.HikAgv.App.OPCModel
8 | {
9 | public partial class OpcFactory
10 | {
11 | private static OpcProvider Server = null;
12 |
13 | public static OpcProvider Create()
14 | {
15 | if (Server != null)
16 | {
17 | return Server;
18 | }
19 |
20 | Server = new OpcProvider();
21 |
22 | return Server;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/OPCModel/ServerModel.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.OPCModel
22 | {
23 | ///
24 | /// 服务通道,设定PLC的品牌信息
25 | ///
26 | public partial class ServerModel
27 | {
28 | public ServerModel() { }
29 |
30 | ///
31 | /// 通道名称
32 | ///
33 | public string ChannelName { get; set; }
34 |
35 | ///
36 | /// 服务IP
37 | ///
38 | public string ServerIP { get; set; }
39 |
40 | ///
41 | /// 应用程序ID
42 | ///
43 | public string ProgID { get; set; }
44 |
45 | ///
46 | /// 更新频率
47 | ///
48 | public int UpdateRate { get; set; }
49 |
50 | ///
51 | /// 设备组信息
52 | ///
53 | public List Devices { get; set; }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/PlcConfig/Inovance/Inovance1/Palletizing.txt:
--------------------------------------------------------------------------------
1 | ItemID=DB_AgvToRobot_Palletizing_Warn_Serious
2 | DBBlock=1289
3 | DataType=int
4 | PropName=DB_AgvToRobot_Palletizing_Warn_Serious
5 | #
6 | ItemID=DB_AgvToRobot_Palletizing_Warn_Tip
7 | DBBlock=1290
8 | DataType=int
9 | PropName=DB_AgvToRobot_Palletizing_Warn_Tip
10 | #
11 | ItemID=DB_AgvToRobot_Palletizing_Notify
12 | DBBlock=1291
13 | DataType=int
14 | PropName=DB_AgvToRobot_Palletizing_Notify
15 | #
16 | ItemID=DB_AgvToRobot_Palletizing_AgvMove_LeftGrating
17 | DBBlock=1292
18 | DataType=int
19 | PropName=DB_AgvToRobot_Palletizing_AgvMove_LeftGrating
20 | #
21 | ItemID=DB_AgvToRobot_Palletizing_AgvMove_RightGrating
22 | DBBlock=1293
23 | DataType=int
24 | PropName=DB_AgvToRobot_Palletizing_AgvMove_RightGrating
25 | #
26 | ItemID=DB_RobotToAgv_Palletizing_Notify
27 | DBBlock=1306
28 | DataType=int
29 | PropName=DB_RobotToAgv_Palletizing_Notify
30 | #
31 | ItemID=DB_RobotToAgv_Palletizing_Left_Num
32 | DBBlock=1307
33 | DataType=int
34 | PropName=DB_RobotToAgv_Palletizing_Left_Num
35 | #
36 | ItemID=DB_RobotToAgv_Palletizing_Left_TotalNum
37 | DBBlock=1308
38 | DataType=int
39 | PropName=DB_RobotToAgv_Palletizing_Left_TotalNum
40 | #
41 | ItemID=DB_RobotToAgv_Palletizing_Right_Num
42 | DBBlock=1309
43 | DataType=int
44 | PropName=DB_RobotToAgv_Palletizing_Right_Num
45 | #
46 | ItemID=DB_RobotToAgv_Palletizing_Right_TotalNum
47 | DBBlock=1310
48 | DataType=int
49 | PropName=DB_RobotToAgv_Palletizing_Right_TotalNum
50 | #
51 | ItemID=DB_RobotToAgv_Palletizing_LeftGrating_Status
52 | DBBlock=1311
53 | DataType=int
54 | PropName=DB_RobotToAgv_Palletizing_LeftGrating_Status
55 | #
56 | ItemID=DB_RobotToAgv_Palletizing_RightGrating_Status
57 | DBBlock=1312
58 | DataType=int
59 | PropName=DB_RobotToAgv_Palletizing_RightGrating_Status
60 | #
--------------------------------------------------------------------------------
/Git.HikAgv.App/PlcConfig/Inovance/Inovance1/Unpack.txt:
--------------------------------------------------------------------------------
1 | ItemID=DB_AgvToRobot_Unpack_Warn_Serious
2 | DBBlock=0
3 | DataType=int
4 | PropName=DB_AgvToRobot_Unpack_Warn_Serious
5 | #
6 | ItemID=DB_AgvToRobot_Unpack_Warn_Tip
7 | DBBlock=1
8 | DataType=int
9 | PropName=DB_AgvToRobot_Unpack_Warn_Tip
10 | #
11 | ItemID=DB_AgvToRobot_Unpack_Notify
12 | DBBlock=2
13 | DataType=int
14 | PropName=DB_AgvToRobot_Unpack_Notify
15 | #
16 | ItemID=DB_AgvToRobot_Unpack_AgvEntry_LeftGrating
17 | DBBlock=3
18 | DataType=int
19 | PropName=DB_AgvToRobot_Unpack_AgvEntry_LeftGrating
20 | #
21 | ItemID=DB_AgvToRobot_Unpack_AgvLeave_RightGrating
22 | DBBlock=4
23 | DataType=int
24 | PropName=DB_AgvToRobot_Unpack_AgvLeave_RightGrating
25 | #
26 | ItemID=DB_RobotToAgv_Unpack_Notify
27 | DBBlock=5
28 | DataType=int
29 | PropName=DB_RobotToAgv_Unpack_Notify
30 | #
31 | ItemID=DB_RobotToAgv_Unpack_Left_Num
32 | DBBlock=5
33 | DataType=int
34 | PropName=DB_RobotToAgv_Unpack_Left_Num
35 | #
36 | ItemID=DB_RobotToAgv_Unpack_Left_TotalNum
37 | DBBlock=5
38 | DataType=int
39 | PropName=DB_RobotToAgv_Unpack_Left_TotalNum
40 | #
41 | ItemID=DB_RobotToAgv_Unpack_Right_Num
42 | DBBlock=5
43 | DataType=int
44 | PropName=DB_RobotToAgv_Unpack_Right_Num
45 | #
46 | ItemID=DB_RobotToAgv_Unpack_Right_TotalNum
47 | DBBlock=5
48 | DataType=int
49 | PropName=DB_RobotToAgv_Unpack_Right_TotalNum
50 | #
51 | ItemID=DB_RobotToAgv_Unpack_LeftGrating_Status
52 | DBBlock=5
53 | DataType=int
54 | PropName=DB_RobotToAgv_Unpack_LeftGrating_Status
55 | #
56 | ItemID=DB_RobotToAgv_Unpack_RightGrating_Status
57 | DBBlock=5
58 | DataType=int
59 | PropName=DB_RobotToAgv_Unpack_RightGrating_Status
60 | #
--------------------------------------------------------------------------------
/Git.HikAgv.App/PlcConfig/Inovance/Inovance2/Palletizing.txt:
--------------------------------------------------------------------------------
1 | ItemID=DB_AgvToRobot_Palletizing_Warn_Serious
2 | DBBlock=20
3 | DataType=int
4 | PropName=DB_AgvToRobot_Palletizing_Warn_Serious
5 | #
6 | ItemID=DB_AgvToRobot_Palletizing_Warn_Tip
7 | DBBlock=21
8 | DataType=int
9 | PropName=DB_AgvToRobot_Palletizing_Warn_Tip
10 | #
11 | ItemID=DB_AgvToRobot_Palletizing_Notify
12 | DBBlock=22
13 | DataType=int
14 | PropName=DB_AgvToRobot_Palletizing_Notify
15 | #
16 | ItemID=DB_AgvToRobot_Palletizing_AgvMove_LeftGrating
17 | DBBlock=23
18 | DataType=int
19 | PropName=DB_AgvToRobot_Palletizing_AgvMove_LeftGrating
20 | #
21 | ItemID=DB_AgvToRobot_Palletizing_AgvMove_RightGrating
22 | DBBlock=24
23 | DataType=int
24 | PropName=DB_AgvToRobot_Palletizing_AgvMove_RightGrating
25 | #
26 | ItemID=DB_RobotToAgv_Palletizing_Notify
27 | DBBlock=25
28 | DataType=int
29 | PropName=DB_RobotToAgv_Palletizing_Notify
30 | #
31 | ItemID=DB_RobotToAgv_Palletizing_Left_Num
32 | DBBlock=26
33 | DataType=int
34 | PropName=DB_RobotToAgv_Palletizing_Left_Num
35 | #
36 | ItemID=DB_RobotToAgv_Palletizing_Left_TotalNum
37 | DBBlock=27
38 | DataType=int
39 | PropName=DB_RobotToAgv_Palletizing_Left_TotalNum
40 | #
41 | ItemID=DB_RobotToAgv_Palletizing_Right_Num
42 | DBBlock=28
43 | DataType=int
44 | PropName=DB_RobotToAgv_Palletizing_Right_Num
45 | #
46 | ItemID=DB_RobotToAgv_Palletizing_Right_TotalNum
47 | DBBlock=29
48 | DataType=int
49 | PropName=DB_RobotToAgv_Palletizing_Right_TotalNum
50 | #
51 | ItemID=DB_RobotToAgv_Palletizing_LeftGrating_Status
52 | DBBlock=30
53 | DataType=int
54 | PropName=DB_RobotToAgv_Palletizing_LeftGrating_Status
55 | #
56 | ItemID=DB_RobotToAgv_Palletizing_RightGrating_Status
57 | DBBlock=31
58 | DataType=int
59 | PropName=DB_RobotToAgv_Palletizing_RightGrating_Status
60 | #
--------------------------------------------------------------------------------
/Git.HikAgv.App/PlcConfig/Inovance/Inovance2/Unpack.txt:
--------------------------------------------------------------------------------
1 | ItemID=DB_AgvToRobot_Unpack_Warn_Serious
2 | DBBlock=0
3 | DataType=int
4 | PropName=DB_AgvToRobot_Unpack_Warn_Serious
5 | #
6 | ItemID=DB_AgvToRobot_Unpack_Warn_Tip
7 | DBBlock=1
8 | DataType=int
9 | PropName=DB_AgvToRobot_Unpack_Warn_Tip
10 | #
11 | ItemID=DB_AgvToRobot_Unpack_Notify
12 | DBBlock=2
13 | DataType=int
14 | PropName=DB_AgvToRobot_Unpack_Notify
15 | #
16 | ItemID=DB_AgvToRobot_Unpack_AgvEntry_LeftGrating
17 | DBBlock=3
18 | DataType=int
19 | PropName=DB_AgvToRobot_Unpack_AgvEntry_LeftGrating
20 | #
21 | ItemID=DB_AgvToRobot_Unpack_AgvLeave_RightGrating
22 | DBBlock=4
23 | DataType=int
24 | PropName=DB_AgvToRobot_Unpack_AgvLeave_RightGrating
25 | #
26 | ItemID=DB_RobotToAgv_Unpack_Notify
27 | DBBlock=5
28 | DataType=int
29 | PropName=DB_RobotToAgv_Unpack_Notify
30 | #
31 | ItemID=DB_RobotToAgv_Unpack_Left_Num
32 | DBBlock=5
33 | DataType=int
34 | PropName=DB_RobotToAgv_Unpack_Left_Num
35 | #
36 | ItemID=DB_RobotToAgv_Unpack_Left_TotalNum
37 | DBBlock=5
38 | DataType=int
39 | PropName=DB_RobotToAgv_Unpack_Left_TotalNum
40 | #
41 | ItemID=DB_RobotToAgv_Unpack_Right_Num
42 | DBBlock=5
43 | DataType=int
44 | PropName=DB_RobotToAgv_Unpack_Right_Num
45 | #
46 | ItemID=DB_RobotToAgv_Unpack_Right_TotalNum
47 | DBBlock=5
48 | DataType=int
49 | PropName=DB_RobotToAgv_Unpack_Right_TotalNum
50 | #
51 | ItemID=DB_RobotToAgv_Unpack_LeftGrating_Status
52 | DBBlock=5
53 | DataType=int
54 | PropName=DB_RobotToAgv_Unpack_LeftGrating_Status
55 | #
56 | ItemID=DB_RobotToAgv_Unpack_RightGrating_Status
57 | DBBlock=5
58 | DataType=int
59 | PropName=DB_RobotToAgv_Unpack_RightGrating_Status
60 | #
--------------------------------------------------------------------------------
/Git.HikAgv.App/PlcConfig/Inovance/Server.txt:
--------------------------------------------------------------------------------
1 | ServerIP=127.0.0.1
2 | ProgID=Kepware.KEPServerEX.V6
3 | UpdateRate=200
--------------------------------------------------------------------------------
/Git.HikAgv.App/Program.cs:
--------------------------------------------------------------------------------
1 | using Git.Framework.Resource;
2 | using Git.HikAgv.App.OPCModel;
3 | using Git.HikAgv.App.Server;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using System.Threading.Tasks;
8 | using System.Windows.Forms;
9 |
10 | namespace Git.HikAgv.App
11 | {
12 | static class Program
13 | {
14 | ///
15 | /// 应用程序的主入口点。
16 | ///
17 | [STAThread]
18 | static void Main()
19 | {
20 | ResourceManager.LoadCache();
21 |
22 | BlockServer Server = new BlockServer();
23 | Server.Load();
24 |
25 | LoadMapServer MapServer = new LoadMapServer();
26 | MapServer.Load();
27 |
28 | LoadPalletServer PalletServer = new LoadPalletServer();
29 | PalletServer.Load();
30 |
31 | Application.EnableVisualStyles();
32 | Application.SetCompatibleTextRenderingDefault(false);
33 | Application.Run(new Form1());
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Git.HikAgv.App")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Git.HikAgv.App")]
13 | [assembly: AssemblyCopyright("Copyright © 2021")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b23c1fb7-8c46-4437-9ca3-de3d2497ce9b")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Git.HikAgv.App.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Git.HikAgv.App.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 重写当前线程的 CurrentUICulture 属性
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Git.HikAgv.App.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/AgvTaskEntity.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.Server
22 | {
23 | ///
24 | /// AGV搬运任务模型
25 | ///
26 | public partial class AgvTaskEntity
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public AgvTaskEntity() { }
32 |
33 | ///
34 | /// 请求的唯一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 当前所在的地图坐标
40 | ///
41 | public string currentPositionCode { get; set; }
42 |
43 | ///
44 | /// AGV搬运的货架编号
45 | ///
46 | public string podCode { get; set; }
47 |
48 | ///
49 | /// 参数方法,用于各个模板回传的参数判断
50 | ///
51 | public string method { get; set; }
52 |
53 | ///
54 | /// AGV编号
55 | ///
56 | public string robotCode { get; set; }
57 |
58 | ///
59 | /// 任务号
60 | ///
61 | public string taskCode { get; set; }
62 |
63 | ///
64 | /// 搬运使用的模板
65 | ///
66 | public string TaskType { get; set; }
67 |
68 | ///
69 | /// 初始位置坐标名称
70 | ///
71 | public string StartPositionName { get; set; }
72 |
73 | ///
74 | /// 中途停靠坐标名称
75 | ///
76 | public string HalfwayPositionName { get; set; }
77 |
78 | ///
79 | /// 结束位置坐标名称
80 | ///
81 | public string EndPositionName { get; set; }
82 |
83 |
84 | ///
85 | /// 初始位置坐标编号
86 | ///
87 | public string StartPositionCode { get; set; }
88 |
89 | ///
90 | /// 中途停靠坐标编号
91 | ///
92 | public string HalfwayPositionCode { get; set; }
93 |
94 | ///
95 | /// 结束位置坐标编号
96 | ///
97 | public string EndPositionCode { get; set; }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/DomainContext.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Mes.HikRobot.SDK.Model;
16 | using System;
17 | using System.Collections.Generic;
18 | using System.Linq;
19 | using System.Text;
20 | using System.Threading.Tasks;
21 |
22 | namespace Git.HikAgv.App.Server
23 | {
24 | ///
25 | /// 应用域上下文值
26 | ///
27 | public partial class DomainContext
28 | {
29 | public static InovanceModbusClient ModbusClient = null;
30 |
31 | ///
32 | /// AGV搬运任务的状态
33 | ///
34 | public static AgvTaskEntity AgvTask = null;
35 |
36 | ///
37 | /// 机械手和AGV交互实体对象(第一条生产线)
38 | ///
39 | public static InteractiveEntity Interactive_One { get; set; }
40 |
41 | ///
42 | /// 机械手和AGV交互实体对象(第二条生产线)
43 | ///
44 | public static InteractiveEntity Interactive_Two { get; set; }
45 |
46 | ///
47 | /// 地图坐标数据
48 | ///
49 | public static List ListMap { get; set; }
50 |
51 | ///
52 | /// 料架托盘数据
53 | ///
54 | public static List ListPallet { get; set; }
55 |
56 | ///
57 | /// 查询系统使用的AGV以及AGV的状态集合
58 | ///
59 | public static List ListAgv { get; set; }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/InteractiveEntity.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.Server
22 | {
23 | ///
24 | /// 机械手和AGV混合搬运交互点状态
25 | ///
26 | public partial class InteractiveEntity
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public InteractiveEntity() { }
32 |
33 | ///
34 | /// 下工装: =1 AGV有严重报警,=0 AGV无报警
35 | ///
36 | public short DB_AgvToRobot_Palletizing_Warn_Serious { get; set; }
37 |
38 | ///
39 | /// 下工装: =1 AGV有报警,=0 AGV无报警
40 | ///
41 | public short DB_AgvToRobot_Palletizing_Warn_Tip { get; set; }
42 |
43 | ///
44 | /// 下工装:由AGV下发指令给机械手 1 推荐使用机器人左料架 =2 推荐机器人使用右料架
45 | ///
46 | public short DB_AgvToRobot_Palletizing_Notify { get; set; }
47 |
48 | ///
49 | /// 下工装: 1 AGV进入机器人左边光栅
50 | ///
51 | public short DB_AgvToRobot_Palletizing_AgvMove_LeftGrating { get; set; }
52 |
53 | ///
54 | /// 下工装: 1 AGV进入机器人右边光栅
55 | ///
56 | public short DB_AgvToRobot_Palletizing_AgvMove_RightGrating { get; set; }
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | ///
65 | /// 下工装:机械手将地址位存储供AGV读取状态 =1 机器人正在使用左料架 =2 机器人正在使用右料架
66 | ///
67 | public short DB_RobotToAgv_Palletizing_Notify { get; set; }
68 |
69 | ///
70 | /// 下工装: 机器人左工位计数
71 | ///
72 | public short DB_RobotToAgv_Palletizing_Left_Num { get; set; }
73 |
74 | ///
75 | /// 下工装: 机器人左工位可摆放总数
76 | ///
77 | public short DB_RobotToAgv_Palletizing_Left_TotalNum { get; set; }
78 |
79 | ///
80 | /// 更新完毕时间
81 | ///
82 | public DateTime LeftUpdateTime { get; set; }
83 |
84 | ///
85 | /// 码垛唯一跟踪号
86 | ///
87 | public string LeftSnNum { get; set; }
88 |
89 | ///
90 | /// 下工装: 机器人右工位计数
91 | ///
92 | public short DB_RobotToAgv_Palletizing_Right_Num { get; set; }
93 |
94 | ///
95 | /// 下工装: 机器人右工位可摆放总数
96 | ///
97 | public short DB_RobotToAgv_Palletizing_Right_TotalNum { get; set; }
98 |
99 | ///
100 | /// 下工装: 机器人左光栅状态 =1已经开放,0=未开放
101 | ///
102 | public short DB_RobotToAgv_Palletizing_LeftGrating_Status { get; set; }
103 |
104 | ///
105 | /// 下工装: 机器人右光栅状态 =1已经开放,0=未开放
106 | ///
107 | public short DB_RobotToAgv_Palletizing_RightGrating_Status { get; set; }
108 |
109 | ///
110 | /// 更新完毕时间
111 | ///
112 | public DateTime RightUpdateTime { get; set; }
113 |
114 | ///
115 | /// 码垛唯一跟踪号
116 | ///
117 | public string RightSnNum { get; set; }
118 |
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/LoadPalletServer.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Framework.DataTypes.ExtensionMethods;
16 | using Git.Framework.Io;
17 | using Git.Mes.HikRobot.SDK;
18 | using System;
19 | using System.Collections.Generic;
20 | using System.IO;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 |
25 | namespace Git.HikAgv.App.Server
26 | {
27 | ///
28 | /// 加载托盘信息
29 | ///
30 | public partial class LoadPalletServer
31 | {
32 | ///
33 | /// 构造方法
34 | ///
35 | public LoadPalletServer() { }
36 |
37 | private string FileName = "Pallet.txt";
38 |
39 |
40 | ///
41 | /// 加载料架配置
42 | ///
43 | public void Load()
44 | {
45 | string FilePath = FileManager.GetDomainRoot() + "\\MapConfig\\" + FileName;
46 |
47 | StreamReader Sr = new StreamReader(FilePath);
48 | string Content = Sr.ReadToEnd();
49 | Sr.Close();
50 |
51 | DomainContext.ListPallet = HikJsonHelper.DeserializeObject>(Content);
52 | }
53 |
54 | ///
55 | /// 保存料架数据信息
56 | ///
57 | public void Save()
58 | {
59 | string FilePath = FileManager.GetDomainRoot() + "\\MapConfig\\" + FileName;
60 |
61 | string Content = "";
62 |
63 | if (DomainContext.ListMap.IsNullOrEmpty())
64 | {
65 | Content = HikJsonHelper.SerializeObject(DomainContext.ListPallet);
66 | }
67 |
68 | StreamWriter Sw = new StreamWriter(FilePath);
69 | Sw.Write(Content);
70 | Sw.Flush();
71 | Sw.Close();
72 | }
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/PalletEntity.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.Server
22 | {
23 | public partial class PalletEntity
24 | {
25 | ///
26 | /// 构造方法
27 | ///
28 | public PalletEntity() { }
29 |
30 | ///
31 | /// 料架编号
32 | ///
33 | public string PodCode { get; set; }
34 |
35 | ///
36 | /// 码垛数量
37 | ///
38 | public short Num { get; set; }
39 |
40 | ///
41 | /// 总共码垛数量
42 | ///
43 | public short TotalNum { get; set; }
44 |
45 | ///
46 | /// 坐标
47 | ///
48 | public string PositionCode { get; set; }
49 |
50 | ///
51 | /// 坐标名称
52 | ///
53 | public string PositionName { get; set; }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/PositionEntity.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.HikAgv.App.Server
22 | {
23 | ///
24 | /// 坐标定义实体模型
25 | ///
26 | public partial class PositionEntity
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public PositionEntity() { }
32 |
33 | ///
34 | /// 坐标标识数字唯一码,用于和PLC匹配对接
35 | ///
36 | public int PositionNum { get; set; }
37 |
38 | ///
39 | /// 坐标唯一编码,用于和AGV坐标对应
40 | ///
41 | public string PositionCode { get; set; }
42 |
43 | ///
44 | /// 地图编码
45 | ///
46 | public string MapDataCode { get; set; }
47 |
48 | ///
49 | /// 地图简称
50 | ///
51 | public string MapShortName { get; set; }
52 |
53 | ///
54 | /// 坐标名称
55 | ///
56 | public string PositionName { get; set; }
57 |
58 | ///
59 | /// 所属区域编号
60 | ///
61 | public string AreaCode { get; set; }
62 |
63 | ///
64 | /// 是否被料架占用
65 | ///
66 | public int HasCon { get; set; }
67 |
68 | ///
69 | /// 料架编号
70 | ///
71 | public string PodCode { get; set; }
72 |
73 | ///
74 | /// 描述
75 | ///
76 | public string Description { get; set; }
77 |
78 | ///
79 | /// 交互的PLC区域代号
80 | ///
81 | public string PlcCode { get; set; }
82 |
83 | ///
84 | /// 码垛数
85 | ///
86 | public short Num { get; set; }
87 |
88 | ///
89 | /// 码垛总数
90 | ///
91 | public short TotalNum { get; set; }
92 |
93 | ///
94 | /// 状态
95 | ///
96 | public short Status { get; set; }
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/Server/Startup.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Newtonsoft.Json;
16 | using Newtonsoft.Json.Serialization;
17 | using Owin;
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Linq;
21 | using System.Net.Http.Formatting;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Web.Http;
25 |
26 | namespace Git.HikAgv.App.Server
27 | {
28 | public class Startup
29 | {
30 | public void Configuration(IAppBuilder appBuilder)
31 | {
32 | HttpConfiguration config = new HttpConfiguration();
33 | config.Routes.MapHttpRoute(
34 | name: "DefaultApi",
35 | routeTemplate: "api/{controller}/{action}"
36 | );
37 |
38 | config.Formatters.Clear();
39 | config.Formatters.Add(new JsonMediaTypeFormatter());
40 | config.Formatters.JsonFormatter.SerializerSettings =
41 | new JsonSerializerSettings
42 | {
43 | ContractResolver = new CamelCasePropertyNamesContractResolver()
44 | };
45 |
46 | appBuilder.UseWebApi(config);
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Git.HikAgv.App/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Git.HikAgv.Hsl.Modbusclient.Test/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Git.HikAgv.Hsl.Modbusclient.Test/Git.HikAgv.Hsl.Modbusclient.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {B370C9FC-B8B0-41E6-9F0E-588906CAF096}
8 | Exe
9 | Git.HikAgv.Hsl.Modbusclient.Test
10 | Git.HikAgv.Hsl.Modbusclient.Test
11 | v4.7
12 | 512
13 | true
14 |
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 | ..\Lib\HslCommunication.dll
38 |
39 |
40 | ..\packages\Newtonsoft.Json.6.0.2\lib\net45\Newtonsoft.Json.dll
41 |
42 |
43 | ..\packages\NModbus.3.0.66\lib\net45\NModbus.dll
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/Git.HikAgv.Hsl.Modbusclient.Test/Program.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using HslCommunication;
16 | using HslCommunication.ModBus;
17 | using Newtonsoft.Json;
18 | using NModbus;
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Net.Sockets;
23 | using System.Text;
24 | using System.Threading;
25 | using System.Threading.Tasks;
26 |
27 | namespace Git.HikAgv.Hsl.Modbusclient.Test
28 | {
29 | class Program
30 | {
31 | private static HslCommunication.ModBus.ModbusTcpServer busTcpServer = null;
32 |
33 | private static ModbusTcpNet busTcpClient = null;
34 |
35 | static void Main(string[] args)
36 | {
37 | //using (TcpClient client = new TcpClient("127.0.0.1", 502))
38 | //{
39 | // var factory = new ModbusFactory();
40 | // IModbusMaster master = factory.CreateMaster(client);
41 |
42 | // ushort startAddress = 0;
43 | // ushort numInputs = 5;
44 |
45 | // //for (int i = 0; i < 20; i++)
46 | // //{
47 | // // ushort[] registers = master.ReadHoldingRegisters(1, startAddress, numInputs);
48 |
49 | // // Console.WriteLine(JsonConvert.SerializeObject(registers));
50 |
51 | // // Thread.Sleep(800);
52 | // //}
53 |
54 | // master.WriteSingleRegister(1,startAddress,2455);
55 | //}
56 |
57 | busTcpClient = new ModbusTcpNet("127.0.0.1", 502, 1);
58 | busTcpClient.AddressStartWithZero = true;
59 | OperateResult connect = busTcpClient.ConnectServer();
60 | if (connect.IsSuccess)
61 | {
62 |
63 | //for (int i = 1; i < 20; i++)
64 | //{
65 | // short Result = busTcpClient.ReadInt16("1").Content;
66 |
67 | // Console.WriteLine(Result);
68 |
69 | // Thread.Sleep(800);
70 | //}
71 |
72 | //for (int i = 1; i < 10; i++)
73 | //{
74 | // Random random = new Random(DateTime.Now.Millisecond);
75 | // int Index=random.Next(1, 10);
76 |
77 | // Random randomResult = new Random(DateTime.Now.Millisecond);
78 | // int Value = randomResult.Next(100, 2000);
79 | // Value = 2;
80 | // Console.WriteLine(Index + "==>" + Value);
81 | // busTcpClient.Write(i.ToString(),Value);
82 |
83 | // Thread.Sleep(1500);
84 | //}
85 |
86 | OperateResult OpResult= busTcpClient.Write("450", "AFFFFFFFFFFF");// 写入线圈100为通
87 | }
88 |
89 | Console.ReadLine();
90 | }
91 |
92 | public static void StartServer()
93 | {
94 | busTcpServer = new HslCommunication.ModBus.ModbusTcpServer();
95 | busTcpServer.OnDataReceived += BusTcpServer_OnDataReceived;
96 | busTcpServer.ServerStart(502);
97 |
98 | short Result = busTcpServer.ReadInt16("1").Content;
99 | Console.WriteLine(JsonConvert.SerializeObject(Result));
100 |
101 | Console.ReadLine();
102 | }
103 |
104 | private static void BusTcpServer_OnDataReceived(object sender, byte[] data)
105 | {
106 | short Result = busTcpServer.ReadInt16("1").Content;
107 | Console.WriteLine(JsonConvert.SerializeObject(Result));
108 | }
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/Git.HikAgv.Hsl.Modbusclient.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Git.HikAgv.Hsl.Modbusclient.Test")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Git.HikAgv.Hsl.Modbusclient.Test")]
13 | [assembly: AssemblyCopyright("Copyright © 2021")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b370c9fc-b8b0-41e6-9f0e-588906caf096")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Git.HikAgv.Hsl.Modbusclient.Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/ApiName/TaskApiName.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.ApiName
22 | {
23 | public class TaskApiName
24 | {
25 | ///
26 | /// 上层系统平台发送调度请求, RCS通过请求参数, 生成调度 AGV 任务单。
27 | ///
28 | public static string TaskApiName_genAgvSchedulingTask = "/rcms/services/rest/hikRpcService/genAgvSchedulingTask";
29 |
30 | ///
31 | /// 上层系统平台发送继续调度请求, RCS-2000 获取 AGV 下一个动作,继续执行
32 | ///
33 | public static string TaskApiName_continueTask = "/rcms/services/rest/hikRpcService/continueTask";
34 |
35 | ///
36 | /// 通过正在执行的任务编号,取消该任务,不再执行
37 | ///
38 | public static string TaskApiName_CancelTask = "/rcms/services/rest/hikRpcService/cancelTask";
39 |
40 | ///
41 | /// 通过请求参数, 查询 AGV 状态信息,包括电池电量
42 | ///
43 | public static string TaskApiName_QueryAgvStatus = "/rcms-dps/rest/queryAgvStatus";
44 |
45 | ///
46 | /// 通过任务编号查询任务当前执行状态,支持批量查询
47 | ///
48 | public static string TaskApiName_QueryTaskStatus = "/rcms-dps/rest/QueryTaskStatus";
49 |
50 | ///
51 | /// 停止指定 AGV 或全部 AGV
52 | ///
53 | public static string TaskApiName_StopRobot = "/rcms/services/rest/hikRpcService/stopRobot";
54 |
55 | ///
56 | /// 恢复 AGV, 恢复后继续执行未完成的任务
57 | ///
58 |
59 | public static string TaskApiName_ResumeRobot = "/rcms/services/rest/hikRpcService/resumeRobot";
60 |
61 | ///
62 | /// 设置任务优先级(1~127 级),值越大,优先级越高.优先级生效仅在系统中 AGV 数量不足,存在多个优先级不同的任务时候,会按照优先级的先后 顺序分配 AGV 执行。
63 | ///
64 | public static string TaskApiName_SetTaskPriority = "/rcms/services/rest/hikRpcService/setTaskPriority";
65 |
66 | ///
67 | /// 货架与储位的关系绑定, 系统可以通过货架找到对应位置
68 | ///
69 | public static string TaskApiName_BindPodAndBerth = "/rcms/services/rest/hikRpcService/bindPodAndBerth";
70 |
71 | ///
72 | /// 货架与物料批次的关系绑定, 系统可以通过物料或批次找到对应货架
73 | ///
74 | public static string TaskApiName_BindPodAndMat = "/rcms/services/rest/hikRpcService/bindPodAndMat";
75 |
76 | ///
77 | /// 位置禁用与启用, 位置禁用后, 从区域中寻找位置时, 不能被找到
78 | ///
79 | public static string TaskApiName_LockPosition = "/rcms/services/rest/hikRpcService/lockPosition";
80 |
81 | ///
82 | /// 全量同步地码数据
83 | ///
84 | public static string TaskApiName_SyncMapDatas = "/rcms/services/rest/hikRpcService/syncMapDatas";
85 |
86 | ///
87 | /// 查询货架\储位与物料批次绑定关系
88 | ///
89 | public static string TaskApiName_QueryPodBerthAndMat = "/rcms/services/rest/hikRpcService/queryPodBerthAndMat";
90 |
91 | ///
92 | /// 仓位与容器的关系绑定, 容器类型编号写入仓位表
93 | ///
94 | public static string TaskApiName_BindCtnrAndBin = "/rcms/services/rest/hikRpcService/bindCtnrAndBin";
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/EHikBool.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Framework.DataTypes.EnumAtttribute;
16 | using System;
17 | using System.Collections.Generic;
18 | using System.Linq;
19 | using System.Text;
20 | using System.Threading.Tasks;
21 |
22 | namespace Git.Mes.HikRobot.SDK
23 | {
24 | public enum EHikBool
25 | {
26 | [EnumDescription("是")]
27 | Yes = 1,
28 |
29 | [EnumDescription("否")]
30 | No = 0
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/EHikIsDelete.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Framework.DataTypes.EnumAtttribute;
16 | using System;
17 | using System.Collections.Generic;
18 | using System.Linq;
19 | using System.Text;
20 | using System.Threading.Tasks;
21 |
22 | namespace Git.Mes.HikRobot.SDK
23 | {
24 | public enum EHikIsDelete
25 | {
26 | ///
27 | /// 未删除
28 | ///
29 | [EnumDescription("未删除")]
30 | NotDelete = 0,
31 |
32 | ///
33 | /// 已删除
34 | ///
35 | [EnumDescription("已删除")]
36 | Deleted = 1
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/EHikResponseCode.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Framework.DataTypes.EnumAtttribute;
16 | using System;
17 | using System.Collections.Generic;
18 | using System.Linq;
19 | using System.Text;
20 | using System.Threading.Tasks;
21 |
22 | namespace Git.Mes.HikRobot.SDK
23 | {
24 | public enum EHikResponseCode
25 | {
26 | [EnumDescription("成功")]
27 | Success = 1,
28 |
29 | [EnumDescription("没有权限")]
30 | NoPermission = 2,
31 |
32 | [EnumDescription("异常")]
33 | Exception = 3,
34 |
35 | [EnumDescription("未登录")]
36 | NotLogin = 4
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/FileItem.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-03-05 11:51:38
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-03-05 11:51:38 情缘
12 | *********************************************************************************/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.IO;
17 | using System.Linq;
18 | using System.Text;
19 |
20 | namespace Git.Mes.HikRobot.SDK
21 | {
22 | ///
23 | /// 文件元数据。
24 | /// 可以使用以下几种构造方法:
25 | /// 本地路径:new FileItem("C:/temp.jpg");
26 | /// 本地文件:new FileItem(new FileInfo("C:/temp.jpg"));
27 | /// 字节流:new FileItem("abc.jpg", bytes);
28 | ///
29 | public class FileItem
30 | {
31 | private string fileName;
32 | private string mimeType;
33 | private byte[] content;
34 | private FileInfo fileInfo;
35 |
36 | ///
37 | /// 基于本地文件的构造器。
38 | ///
39 | /// 本地文件
40 | public FileItem(FileInfo fileInfo)
41 | {
42 | if (fileInfo == null || !fileInfo.Exists)
43 | {
44 | throw new ArgumentException("fileInfo is null or not exists!");
45 | }
46 | this.fileInfo = fileInfo;
47 | }
48 |
49 | ///
50 | /// 基于本地文件全路径的构造器。
51 | ///
52 | /// 本地文件全路径
53 | public FileItem(string filePath)
54 | : this(new FileInfo(filePath))
55 | { }
56 |
57 | ///
58 | /// 基于文件名和字节流的构造器。
59 | ///
60 | /// 文件名称(服务端持久化字节流到磁盘时的文件名)
61 | /// 文件字节流
62 | public FileItem(string fileName, byte[] content)
63 | {
64 | if (string.IsNullOrEmpty(fileName)) throw new ArgumentNullException("fileName");
65 | if (content == null || content.Length == 0) throw new ArgumentNullException("content");
66 |
67 | this.fileName = fileName;
68 | this.content = content;
69 | }
70 |
71 | ///
72 | /// 基于文件名、字节流和媒体类型的构造器。
73 | ///
74 | /// 文件名(服务端持久化字节流到磁盘时的文件名)
75 | /// 文件字节流
76 | /// 媒体类型
77 | public FileItem(string fileName, byte[] content, string mimeType)
78 | : this(fileName, content)
79 | {
80 | if (string.IsNullOrEmpty(mimeType)) throw new ArgumentNullException("mimeType");
81 | this.mimeType = mimeType;
82 | }
83 |
84 | public string GetFileName()
85 | {
86 | if (this.fileName == null && this.fileInfo != null && this.fileInfo.Exists)
87 | {
88 | this.fileName = this.fileInfo.FullName;
89 | }
90 | return this.fileName;
91 | }
92 |
93 | public string GetMimeType()
94 | {
95 | if (this.mimeType == null)
96 | {
97 | this.mimeType = HikTopUtils.GetMimeType(GetContent());
98 | }
99 | return this.mimeType;
100 | }
101 |
102 | public byte[] GetContent()
103 | {
104 | if (this.content == null && this.fileInfo != null && this.fileInfo.Exists)
105 | {
106 | using (System.IO.Stream fileStream = this.fileInfo.OpenRead())
107 | {
108 | this.content = new byte[fileStream.Length];
109 | fileStream.Read(content, 0, content.Length);
110 | }
111 | }
112 |
113 | return this.content;
114 | }
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Git.Mes.HikRobot.SDK.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {D1EEA3E8-B8F7-49D0-8DC4-7C112A5426E2}
8 | Library
9 | Properties
10 | Git.Mes.HikRobot.SDK
11 | Git.Mes.HikRobot.SDK
12 | v4.5
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | ..\..\Lib\Git.Framework.Cache.dll
36 |
37 |
38 | ..\..\Lib\Git.Framework.DataTypes.dll
39 |
40 |
41 | ..\..\Lib\Git.Framework.Events.dll
42 |
43 |
44 | ..\..\Lib\Git.Framework.Io.dll
45 |
46 |
47 | ..\..\Lib\Git.Framework.Log.dll
48 |
49 |
50 | ..\..\Lib\Git.Framework.Resource.dll
51 |
52 |
53 | ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/HikDataListResult.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-03-04 10:17:06
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-03-04 10:17:06 情缘
12 | *********************************************************************************/
13 |
14 | using Git.Framework.DataTypes;
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 |
20 | namespace Git.Mes.HikRobot.SDK
21 | {
22 | public partial class DataListResult : HikDataResult
23 | {
24 | public List Result { get; set; }
25 |
26 | public PageInfo PageInfo { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/HikDataResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Git.Mes.HikRobot.SDK
7 | {
8 | public partial class HikDataResult
9 | {
10 | ///
11 | /// 相应状态码
12 | ///
13 | public int code { get; set; }
14 |
15 | ///
16 | /// 相应状态消息
17 | ///
18 | public string message { get; set; }
19 |
20 | ///
21 | /// 业务相应消息
22 | ///
23 | //public string data { get; set; }
24 |
25 | ///
26 | /// 请求编码
27 | ///
28 | public string reqCode { get; set; }
29 | }
30 |
31 | public partial class HikDataResult : HikDataResult
32 | {
33 | public T data { get; set; }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/HikJsonHelper.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-11-14 22:12:23
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-11-14 22:12:23 情缘
12 | *********************************************************************************/
13 |
14 | using Git.Framework.DataTypes.ExtensionMethods;
15 | using Newtonsoft.Json;
16 | using Newtonsoft.Json.Converters;
17 | using Newtonsoft.Json.Linq;
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Linq;
21 | using System.Text;
22 |
23 | namespace Git.Mes.HikRobot.SDK
24 | {
25 | public static class HikJsonHelper
26 | {
27 | ///
28 | /// 序列化
29 | ///
30 | ///
31 | ///
32 | public static string SerializeObject(object value)
33 | {
34 | if (value != null)
35 | {
36 | IsoDateTimeConverter timeConverter = new IsoDateTimeConverter();
37 | timeConverter.DateTimeFormat = "yyyy'-'MM'-'dd' 'HH':'mm':'ss";
38 | return JsonConvert.SerializeObject(value, Formatting.None, timeConverter);
39 | }
40 | return string.Empty;
41 | }
42 |
43 | ///
44 | /// 反序列化
45 | ///
46 | ///
47 | ///
48 | ///
49 | public static T DeserializeObject(string value)
50 | {
51 | if (!string.IsNullOrWhiteSpace(value))
52 | {
53 | IsoDateTimeConverter timeConverter = new IsoDateTimeConverter();
54 | timeConverter.DateTimeFormat = "yyyy'-'MM'-'dd' 'HH':'mm':'ss";
55 | return JsonConvert.DeserializeObject(value, timeConverter);
56 | }
57 | return default(T);
58 | }
59 |
60 |
61 | ///
62 | /// 扩展字符串方法,直接将字符串转换为JSON对象
63 | ///
64 | ///
65 | ///
66 | public static JObject ToJsonObject(this string Result)
67 | {
68 | if (Result.IsEmpty())
69 | {
70 | return null;
71 | }
72 |
73 | JObject param = JObject.Parse(Result);
74 |
75 | return param;
76 | }
77 |
78 | ///
79 | /// 扩展字符串方法,直接将字符串转换为JSON数组
80 | ///
81 | ///
82 | ///
83 | public static JArray ToJsonArray(this string Result)
84 | {
85 | if (Result.IsEmpty())
86 | {
87 | return null;
88 | }
89 |
90 | JArray param = JArray.Parse(Result);
91 |
92 | return param;
93 | }
94 |
95 | ///
96 | /// 扩展对象方法,将对象直接转换为JSON对象
97 | ///
98 | ///
99 | ///
100 | public static JObject ToJsonObject(this T Result) where T : class
101 | {
102 | if (Result == null)
103 | {
104 | return null;
105 | }
106 |
107 | JObject param = JObject.Parse(HikJsonHelper.SerializeObject(Result));
108 |
109 | return param;
110 | }
111 |
112 | ///
113 | /// 扩展对象方法,将集合直接转换为JSON数组
114 | ///
115 | ///
116 | ///
117 | ///
118 | public static JArray ToJsonArray(this IEnumerable Result)
119 | {
120 | if (Result.IsNullOrEmpty())
121 | {
122 | return null;
123 | }
124 |
125 | JArray param = JArray.Parse(HikJsonHelper.SerializeObject(Result));
126 |
127 | return param;
128 | }
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/HikTopDictionary.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-03-07 9:03:55
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-03-07 9:03:55 情缘
12 | *********************************************************************************/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 |
19 | namespace Git.Mes.HikRobot.SDK
20 | {
21 | ///
22 | /// 符合TOP习惯的纯字符串字典结构。
23 | ///
24 | public class HikTopDictionary : Dictionary
25 | {
26 | private const string DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
27 |
28 | public HikTopDictionary() { }
29 |
30 | public HikTopDictionary(IDictionary dictionary)
31 | : base(dictionary)
32 | { }
33 |
34 | ///
35 | /// 添加一个新的键值对。空键或者空值的键值对将会被忽略。
36 | ///
37 | /// 键名称
38 | /// 键对应的值,目前支持:string, int, long, double, bool, DateTime类型
39 | public void Add(string key, object value)
40 | {
41 | string strValue;
42 |
43 | if (value == null)
44 | {
45 | strValue = null;
46 | }
47 | else if (value is string)
48 | {
49 | strValue = (string)value;
50 | }
51 | else if (value is Nullable)
52 | {
53 | Nullable dateTime = value as Nullable;
54 | strValue = dateTime.Value.ToString(DATE_TIME_FORMAT);
55 | }
56 | else if (value is Nullable)
57 | {
58 | strValue = (value as Nullable).Value.ToString();
59 | }
60 | else if (value is Nullable)
61 | {
62 | strValue = (value as Nullable).Value.ToString();
63 | }
64 | else if (value is Nullable)
65 | {
66 | strValue = (value as Nullable).Value.ToString();
67 | }
68 | else if (value is Nullable)
69 | {
70 | strValue = (value as Nullable).Value.ToString().ToLower();
71 | }
72 | else
73 | {
74 | strValue = value.ToString();
75 | }
76 |
77 | this.Add(key, strValue);
78 | }
79 |
80 | public new void Add(string key, string value)
81 | {
82 | if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value))
83 | {
84 | base.Add(key, value);
85 | }
86 | }
87 |
88 | public void AddAll(IDictionary dict)
89 | {
90 | if (dict != null && dict.Count > 0)
91 | {
92 | IEnumerator> kvps = dict.GetEnumerator();
93 | while (kvps.MoveNext())
94 | {
95 | KeyValuePair kvp = kvps.Current;
96 | Add(kvp.Key, kvp.Value);
97 | }
98 | }
99 | }
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/IHikTopClient.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-03-07 9:13:22
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-03-07 9:13:22 情缘
12 | *********************************************************************************/
13 |
14 | using Newtonsoft.Json.Linq;
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 |
20 | namespace Git.Mes.HikRobot.SDK
21 | {
22 | public partial interface IHikTopClient
23 | {
24 | ///
25 | /// 根据API名称以及传入的参数执行 POST 请求
26 | ///
27 | ///
28 | ///
29 | ///
30 | string Execute(string ApiName, IDictionary parameters);
31 |
32 | ///
33 | /// 根据API 的URL以及传入的参数执行 POST 请求
34 | ///
35 | ///
36 | ///
37 | ///
38 | string ExecuteUrl(string ApiUrl, IDictionary parameters);
39 |
40 | ///
41 | /// JSON格式提交POST请求
42 | ///
43 | ///
44 | ///
45 | ///
46 | string ExecuteUrl(string ApiUrl, JObject parameters);
47 |
48 | ///
49 | /// 执行POST请求
50 | ///
51 | ///
52 | ///
53 | ///
54 | string Execute(string ApiName, JObject parameters);
55 |
56 | ///
57 | /// 执行POST请求
58 | ///
59 | ///
60 | ///
61 | ///
62 | string Execute(string ApiName, JArray parameters);
63 |
64 | ///
65 | /// 根据API名称以及传入的参数执行
66 | ///
67 | ///
68 | ///
69 | ///
70 | string Get(string ApiName, IDictionary parameters);
71 |
72 | ///
73 | /// 根据API 的URL以及传入的参数执行
74 | ///
75 | ///
76 | ///
77 | ///
78 | string GetUrl(string ApiUrl, IDictionary parameters);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/IHikTopRequest.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 情缘
5 | * Create Date: 2016-03-07 9:16:07
6 | *
7 | * Description: Git.Framework
8 | * http://www.cnblogs.com/qingyuan/
9 | * Revision History:
10 | * Date Author Description
11 | * 2016-03-07 9:16:07 情缘
12 | *********************************************************************************/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 |
19 | namespace Git.Mes.HikRobot.SDK
20 | {
21 | public interface ITopRequest where T : class
22 | {
23 | ///
24 | /// 获取TOP的API名称。
25 | ///
26 | /// API名称
27 | string GetApiName();
28 |
29 | ///
30 | /// 获取所有的Key-Value形式的文本请求参数字典。其中:
31 | /// Key: 请求参数名
32 | /// Value: 请求参数文本值
33 | ///
34 | /// 文本请求参数字典
35 | IDictionary GetParameters();
36 |
37 | ///
38 | /// 提前验证参数。
39 | ///
40 | void Validate();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/BindCtnrAndBinRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 仓位与容器的关系绑定 请求数据模型
25 | ///
26 | public partial class BindCtnrAndBinRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public BindCtnrAndBinRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号。由上层系统提供
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式 : “yyyy-MM-dd HH:mm:ss”。由上层系统提供
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等。 由 RCS-2000 告知上层系统
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号 , 由 调 度 系 统 颁 发 。 由RCS-2000 告知上层系统
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// bindPodAndBerth
55 | ///
56 | public string interfaceName { get; set; }
57 |
58 | ///
59 | /// 容器编号
60 | ///
61 | public string ctnrCode { get; set; }
62 |
63 | ///
64 | /// 容器类型
65 | ///
66 | public string ctnrTyp { get; set; }
67 |
68 | ///
69 | /// 仓位编号,与仓位绑定解绑必填
70 | ///
71 | public string stgBinCode { get; set; }
72 |
73 | ///
74 | /// 地图数据编号,用于虚拟货架仓位 的绑定解绑
75 | ///
76 | public string positionCode { get; set; }
77 |
78 | ///
79 | /// "1":绑定, "0":解绑
80 | ///
81 | public string indBind { get; set; }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/BindNotifyRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 可在执行绑定货架与储位,绑定货架与物料,绑定仓位与容器后通知上层
25 | ///
26 | public partial class BindNotifyRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public BindNotifyRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号, 同一个请求重复提交, 使 用同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请 求 时 间 戳 , 格 式 : “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号, 如 PDA, HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 方法名 bindPodAndBerth : 货架与储位绑 定解绑 bindPodAndMat : 货架与物料绑定 解绑 bindCtnrAndBin : 仓位与容器绑定 解绑
55 | ///
56 | public string method { get; set; }
57 |
58 | ///
59 | /// 绑定—1 解绑--0
60 | ///
61 | public string indBind { get; set; }
62 |
63 | public List bindParam { get; set; }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/BindPodAndBerthRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 货架与储位的关系绑定请求数据模型
25 | ///
26 | public partial class BindPodAndBerthRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public BindPodAndBerthRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 货架编号
55 | ///
56 | public string podCode { get; set; }
57 |
58 | ///
59 | /// 位置编号,地图位置的别名,能任 意命名(字母+数字),但要唯一,由 RCS-2000 界面配置
60 | ///
61 | public string positionCode { get; set; }
62 |
63 | ///
64 | /// 货架方向 “0”:横向,“1”:纵向 横向:货架长与 X 轴一致; 纵向:货架宽与 X 轴一致。 不传默认为横向
65 | ///
66 | public string podDir { get; set; }
67 |
68 | ///
69 | /// "1":绑定, "0":解绑
70 | ///
71 | public string indBind { get; set; }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/BindPodAndMatRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 货架与物料批次的关系绑定, 系统可以通过物料或批次找到对应货架
25 | ///
26 | public partial class BindPodAndMatRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public BindPodAndMatRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 货架编号
55 | ///
56 | public string podCode { get; set; }
57 |
58 | ///
59 | /// 物料批次
60 | ///
61 | public string materialLot { get; set; }
62 |
63 | ///
64 | /// "1":绑定, "0":解绑 解绑时, 物料批次可以为空
65 | ///
66 | public string indBind { get; set; }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/CancelTaskRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 通过正在执行的任务编号,取消该任务,不再执行
25 | ///
26 | public partial class CancelTaskRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public CancelTaskRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请 求 时 间 截 格 式 : “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令 牌 号 , 由 调 度 系 统 颁 发 。 由 RCS-2000 告知上层系统
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 取消类型 0 表示:取消后货架直接放地上1 表示:AGV 仍然背着货架, 根据 回库区域执行回库指令, 只有潜伏 车支持。默认的取消模式为 0
55 | ///
56 | public string forceCancel { get; set; }
57 |
58 | ///
59 | /// forcecancel=1 时有意义, 回库区域编号, 如果为空,采用货架配置的库区
60 | ///
61 | public string matterArea { get; set; }
62 |
63 | ///
64 | /// 取消该 AGV 正在执行的任务单
65 | ///
66 | public string agvCode { get; set; }
67 |
68 | ///
69 | /// 任务单编号, 取消该任务单
70 | ///
71 | public string taskCode { get; set; }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/ContinueTaskRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 上层系统平台发送继续调度请求, RCS-2000 获取 AGV 下一个动作,继续执行(请求模型)
25 | ///
26 | public partial class ContinueTaskRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public ContinueTaskRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一编 号, 同一个请求重复提交, 使用同 一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | //public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | //public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发。
50 | ///
51 | //public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 工作位,与 RCS-2000 端配置的位 置名称一致。
55 | ///
56 | //public string wbCode { get; set; }
57 |
58 | ///
59 | /// 货架号,采用货架号触发的方式。
60 | ///
61 | public string podCode { get; set; }
62 |
63 | ///
64 | /// AGV 编号,采用 AGV 编号触发的 方式。
65 | ///
66 | //public string agvCode { get; set; }
67 |
68 | ///
69 | /// 任务单号 , 选填 , 不 填 系 统 自 动 生 成,必须为 64 位 UUID
70 | ///
71 | //public string taskCode { get; set; }
72 |
73 | ///
74 | /// 下一个子任务的序列,指定第几个子 任务开始执行,校验子任务执行是否 正确。不填默认执行下一个子任务。
75 | ///
76 | //public string taskSeq { get; set; }
77 |
78 | ///
79 | /// 下一个位置信息,在任务类型中配置 外部设置时需要传入,否则不需要设 置。待现场地图部署、配置完成后可 获取
80 | ///
81 | public PositionDTO nextPositionCode { get; set; }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/GenTaskRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 层系统平台发送调度请求, RCS 通过请求参数, 生成调度 AGV 任务单(请求模型)
25 | ///
26 | public partial class GenTaskRequestDTO
27 | {
28 | public GenTaskRequestDTO() { }
29 |
30 | ///
31 | /// 请求编号,每个请求都要一个唯一 编号, 同一个请求重复提交, 使 用同一编号。
32 | ///
33 | public string reqCode { get; set; }
34 |
35 | ///
36 | /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”。
37 | ///
38 | public string reqTime { get; set; }
39 |
40 | ///
41 | /// 客户端编号,如 PDA,HCWMS 等
42 | ///
43 | public string clientCode { get; set; }
44 |
45 | ///
46 | /// 令牌号, 由调度系统颁发
47 | ///
48 | public string tokenCode { get; set; }
49 |
50 | ///
51 | /// 任务类型,与在 RCS-2000 端配置 的主任务类型编号一致。 内置任务类型
52 | ///
53 | public string taskTyp { get; set; }
54 |
55 | ///
56 | /// 容器类型(叉车专用)叉车项目必传
57 | ///
58 | public string ctnrTyp { get; set; }
59 |
60 | ///
61 | /// 容器编号(叉车专用)
62 | ///
63 | public string ctnrCode { get; set; }
64 |
65 | ///
66 | /// 工作位,一般为机台或工作台位置, 与 RCS-2000 端配置的位置名称一 致, 工作位名称为字母\数字\或组 合, 不超过 32 位
67 | ///
68 | public string wbCode { get; set; }
69 |
70 | ///
71 | /// 位置路径:AGV 关键路径位置集合,与任务类型中模板配置的位置路径一一对应。待现场地图部署、配置完成后可获取。
72 | ///
73 | public List positionCodePath { get; set; }
74 |
75 | ///
76 | /// 货架编号,不指定货架可以为空
77 | ///
78 | public string podCode { get; set; }
79 |
80 | ///
81 | /// “180”,”0”,”90”,”-90” 分 别 对 应 地 图 的 ” 左 ”,” 右 ”,” 上”,”下” ,不指定方向可以为空
82 | ///
83 | public string podDir { get; set; }
84 |
85 | ///
86 | /// 货架类型, 传空时表示随机找个货 架找空货架传参方式如下:-1: 代表不关心货架类型, 找到空 货架即可.-2: 代表从工作位获取关联货架类 型, 如果未配置, 只找空货架.货架类型编号: 只找该货架类型的 空货架.
87 | ///
88 | public string podTyp { get; set; }
89 |
90 | ///
91 | /// 物料批次或货架上的物料唯一编码, 生成任务单时,货架与物料直接绑定 时使用. (通过同时传 podCode 和 materialLot 来 绑 定 或 通 过 wbCode 找 到 位 置 上 的 货 架 和 materialLot 来绑定)
92 | ///
93 | public string materialLot { get; set; }
94 |
95 | ///
96 | /// 优先级,从(1~127)级,最大优 先级最高。为空时,采用任务模板的优先级
97 | ///
98 | public string priority { get; set; }
99 |
100 | ///
101 | /// 任务 单 号 , 选填 , 不填系统自动生 成,UUID 小于等于 64 位
102 | ///
103 | public string taskCode { get; set; }
104 |
105 | ///
106 | /// AGV 编号,填写表示指定某一编号 的 AGV 执行该任务
107 | ///
108 | public string agvCode { get; set; }
109 |
110 | ///
111 | /// 自定义字段,不超过 2000 个字符
112 | ///
113 | public string data { get; set; }
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/LockPositionRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 位置禁用与启用请求数据模型
25 | ///
26 | public partial class LockPositionRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public LockPositionRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 位置编号,地图位置的别名,能任 意命名(字母+数字),但要唯一,由 RCS-2000 界面配置。
55 | ///
56 | public string positionCode { get; set; }
57 |
58 | ///
59 | /// "1": 启用, "0":禁用
60 | ///
61 | public string indBind { get; set; }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/NotifyBindParamDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 消息反馈绑定参数对象
25 | ///
26 | public partial class NotifyBindParamDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public NotifyBindParamDTO() { }
32 |
33 | ///
34 | /// 货架编号 适用:bindPodAndBerth、bindPodAndMat
35 | ///
36 | public string podCode { get; set; }
37 |
38 | ///
39 | /// 储位编号 适用:bindPodAndBerth
40 | ///
41 | public string berthCode { get; set; }
42 |
43 | ///
44 | /// 物料批次 适用:bindPodAndMat
45 | ///
46 | public string materialLot { get; set; }
47 |
48 | ///
49 | /// 仓位编号 适用:bindCtnrAndBin
50 | ///
51 | public string ctnrCode { get; set; }
52 |
53 | ///
54 | /// 仓位编号 适用:bindCtnrAndBin
55 | ///
56 | public string ctnrType { get; set; }
57 |
58 | ///
59 | /// 仓位编号 适用:bindCtnrAndBin
60 | ///
61 | public string stgBinCode { get; set; }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/PositionDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 位置实体模型
25 | ///
26 | public partial class PositionDTO
27 | {
28 | public PositionDTO() { }
29 |
30 | ///
31 | /// 位置编号,单个编号不超过64位
32 | ///
33 | public string positionCode { get; set; }
34 |
35 | ///
36 | /// 位置类型说明: 00 表示位置编号 01 表示物料批次号
37 | ///
38 | public string type { get; set; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/PrioritiyDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 优先级实体模型
25 | ///
26 | public partial class PrioritiyDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public PrioritiyDTO() { }
32 |
33 | ///
34 | /// 必填,正在执行的任务单编号
35 | ///
36 | public string taskCode { get; set; }
37 |
38 | ///
39 | /// 必填,优先级,从(1~127)级, 最大优先级最高
40 | ///
41 | public string priority { get; set; }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryAgvStatusRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// AGV查询状态请求数据模型
25 | ///
26 | public partial class QueryAgvStatusRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryAgvStatusRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 地图简称,与地码类型一致
55 | ///
56 | public string mapShortName { get; set; }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryAgvStatusResultDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// AGV状态查询结果响应模型
25 | ///
26 | public partial class QueryAgvStatusResultDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryAgvStatusResultDTO() { }
32 |
33 | ///
34 | /// 机器人编号
35 | ///
36 | public string robotCode { get; set; }
37 |
38 | ///
39 | /// 机器人方向 (范围 -180~360 度)
40 | ///
41 | public string robotDir { get; set; }
42 |
43 | ///
44 | /// 机器人 IP
45 | ///
46 | public string robotIp { get; set; }
47 |
48 | ///
49 | /// 机器人电量, 范围: 0-100
50 | ///
51 | public string battery { get; set; }
52 |
53 | ///
54 | /// 机器人 x 坐标,单位:毫米
55 | ///
56 | public string posX { get; set; }
57 |
58 | ///
59 | /// 机器人 y 坐标,单位:毫米
60 | ///
61 | public string posY { get; set; }
62 |
63 | ///
64 | /// 机器人所在地图
65 | ///
66 | public string mapCode { get; set; }
67 |
68 | ///
69 | /// 机器人当前速度, 单位: mm/s
70 | ///
71 | public string speed { get; set; }
72 |
73 | ///
74 | /// 机器人状态 AGV 常见状态编号和描述 见附件 6.1
75 | ///
76 | public string status { get; set; }
77 |
78 | ///
79 | /// 是否已被排除,被排除后不接受新 任务( 1-排除, 0-正常)
80 | ///
81 | public string exclType { get; set; }
82 |
83 | ///
84 | /// 是否暂停 0-否 1-是
85 | ///
86 | public string stop { get; set; }
87 |
88 | ///
89 | /// 背货架的编号
90 | ///
91 | public string podCode { get; set; }
92 |
93 | ///
94 | /// 背货架的方向
95 | ///
96 | public string podDir { get; set; }
97 |
98 | ///
99 | /// 执行路径,单位是毫米, 格式 x 轴,y 轴,方向示例:[“[x, y, dir]”,”[x, y, dir]”,”[x, y, dir]”]
100 | ///
101 | public string path { get; set; }
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryPodBerthAndMatRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 查询货架\储位与物料批次绑定关系 请求数据模型
25 | ///
26 | public partial class QueryPodBerthAndMatRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryPodBerthAndMatRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号, 由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 货架编号
55 | ///
56 | public string podCode { get; set; }
57 |
58 | ///
59 | /// 物料批次
60 | ///
61 | public string materialLot { get; set; }
62 |
63 | ///
64 | /// 位置编号,地图位置的别名,能任 意命名(字母+数字),但要唯一,由 RCS-2000 界面配置
65 | ///
66 | public string positionCode { get; set; }
67 |
68 | ///
69 | /// 区域编号
70 | ///
71 | public string areaCode { get; set; }
72 |
73 | ///
74 | /// 地图简称
75 | ///
76 | public string mapShortName { get; set; }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryPodBerthAndMatResultDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 查询货架\储位与物料批次绑定关系 响应结果
25 | ///
26 | public partial class QueryPodBerthAndMatResultDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryPodBerthAndMatResultDTO() { }
32 |
33 | ///
34 | /// 区域编号
35 | ///
36 | public string areaCode { get; set; }
37 |
38 | ///
39 | /// 物料批次
40 | ///
41 | public string materialLot { get; set; }
42 |
43 | ///
44 | /// 货架编号
45 | ///
46 | public string podCode { get; set; }
47 |
48 | ///
49 | /// 地码编号,唯一标识
50 | ///
51 | public string mapDataCode { get; set; }
52 |
53 | ///
54 | /// 位置编号,地图位置的别名,能任 意命名(字母+数字),但要唯一,由 RCS-2000 界面配置
55 | ///
56 | public string positionCode { get; set; }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryTaskStatusReqeustDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 通过任务编号查询任务当前执行状态,支持批量查询(请求数据模型)
25 | ///
26 | public partial class QueryTaskStatusReqeustDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryTaskStatusReqeustDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 任务单编号数组 任务单编号数组与 AGV 编号至少传 其中之一
55 | ///
56 | public List taskCodes { get; set; }
57 |
58 | ///
59 | /// AGV 编号任务编号数组与 AGV 编号至少传其 中之一
60 | ///
61 | public string agvCode { get; set; }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/QueryTaskStatusResultDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 查询任务状态响应结果
25 | ///
26 | public partial class QueryTaskStatusResultDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public QueryTaskStatusResultDTO() { }
32 |
33 | ///
34 | /// 任务单编号
35 | ///
36 | public string taskCode { get; set; }
37 |
38 | ///
39 | /// 任务状态: 1-已创建,2-正在执行, 5-取消完成,9-已结束
40 | ///
41 | public string taskStatus { get; set; }
42 |
43 | ///
44 | /// AGV 编号, 任务分配车后有值
45 | ///
46 | public string agvCode { get; set; }
47 |
48 | ///
49 | /// 任务类型
50 | ///
51 | public string taskTyp { get; set; }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/ResumeRobotRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 请求回复AGV数据模型
25 | ///
26 | public partial class ResumeRobotRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public ResumeRobotRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 停止的机器人数,-1 表示所有机器 人
55 | ///
56 | public string robotCount { get; set; }
57 |
58 | ///
59 | /// AGV 所在地图的简称 注: robotCount 填 -1 的 话 , mapShortName 必填
60 | ///
61 | public string mapShortName { get; set; }
62 |
63 | ///
64 | /// 具体机器人编号列表
65 | ///
66 | public List robots { get; set; }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/SetTaskPriorityRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 设置AGV调度任务优先级
25 | ///
26 | public partial class SetTaskPriorityRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public SetTaskPriorityRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 必填,正在执行的任务单编号
55 | ///
56 | public string priorities { get; set; }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/StopRobotRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 停止AGV的请求参数模型
25 | ///
26 | public partial class StopRobotRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public StopRobotRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 停止的机器人数,-1 表示所有机器 人
55 | ///
56 | public string robotCount { get; set; }
57 |
58 | ///
59 | /// AGV 所在地图的简称 注: robotCount 填 -1 的 话 , mapShortName 必填
60 | ///
61 | public string mapShortName { get; set; }
62 |
63 | ///
64 | /// 具体机器人编号列表
65 | ///
66 | public List robots { get; set; }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/SyncMapDatasRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 全量同步地码数据请求模型
25 | ///
26 | public partial class SyncMapDatasRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public SyncMapDatasRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一编 号, 同一个请求重复提交, 使用同 一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 地码编号,唯一标识, 代表只获取这 个位置
55 | ///
56 | public string mapDataCode { get; set; }
57 |
58 | ///
59 | /// 地图简称, 同步该地图的位置信息
60 | ///
61 | public string mapShortName { get; set; }
62 |
63 | ///
64 | /// 地图元素类型, 为空时, 代表同步该地图全部地码
65 | ///
66 | public string dataTyp { get; set; }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/SyncMapDatasResultDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 地图数据模型
25 | ///
26 | public partial class SyncMapDatasResultDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public SyncMapDatasResultDTO() { }
32 |
33 | ///
34 | /// 储位类型,1-外层储位,2-内层储位, 3-普通储位; 位置是储位类型时必填
35 | ///
36 | public string berthType { get; set; }
37 |
38 | ///
39 | /// 地码 X 坐标(mm)
40 | ///
41 | public string cooX { get; set; }
42 |
43 | ///
44 | /// 地码 Y 坐标(mm)
45 | ///
46 | public string cooY { get; set; }
47 |
48 | ///
49 | /// 地图元素类型,常用类型: 11-充电桩, 10-工作台,1-储位,20-缓冲区, 55: 巷道存储区
50 | ///
51 | public string dataTyp { get; set; }
52 |
53 | ///
54 | /// 工 作 台 方 向 “180”,”0”,”90”,”-90” 分别 代表”左”,”右”,”上”,”下” 工作台方向为工作人员面向货架拣货 的方向
55 | ///
56 | public string direction { get; set; }
57 |
58 | ///
59 | /// 地图编号
60 | ///
61 | public string mapCode { get; set; }
62 |
63 | ///
64 | /// 地码编号,唯一标识
65 | ///
66 | public string mapDataCode { get; set; }
67 |
68 | ///
69 | /// 位置编号,地图位置的别名,能任意 命名 ( 字母 + 数字 ) , 但 要 唯 一 , 由 RCS-2000 界面配置
70 | ///
71 | public string positionCode { get; set; }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/TaskCallbackDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | public partial class TaskCallbackDTO
24 | {
25 | public TaskCallbackDTO() { }
26 |
27 | ///
28 | /// 请求编号,每个请求都要一个唯一 编号, 同一个请求重复提交, 使 用同一编号
29 | ///
30 | public string reqCode { get; set; }
31 |
32 | ///
33 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
34 | ///
35 | public string reqTime { get; set; }
36 |
37 | ///
38 | /// 地码 X 坐标(mm):任务完成时有 值
39 | ///
40 | public string cooX { get; set; }
41 |
42 | ///
43 | /// 地码 Y 坐标(mm):任务完成时有 值
44 | ///
45 | public string cooY { get; set; }
46 |
47 | ///
48 | /// 当前位置编号 任务开始:该位置为任务起点 走出储位:该位置为任务起点 任务单取消:该位置为工作位编号 任务结束:该位置为任务终点
49 | ///
50 | public string currentPositionCode { get; set; }
51 |
52 | ///
53 | /// 自定义字段,不超过 2000 个字符
54 | ///
55 | public string data { get; set; }
56 |
57 | ///
58 | /// 地图编号
59 | ///
60 | public string mapCode { get; set; }
61 |
62 | ///
63 | /// 地码编号:任务完成时有值
64 | ///
65 | public string mapDataCode { get; set; }
66 |
67 | ///
68 | /// 方法名, 可使用任务类型做为方法 名由 RCS-2000 任务模板配置后并告 知上层系统默认使用方式: start : 任务开始 outbin : 走出储位 end : 任务结束 cancel : 任务单取消
69 | ///
70 | public string method { get; set; }
71 |
72 | ///
73 | /// 货架编号:背货架时有值
74 | ///
75 | public string podCode { get; set; }
76 |
77 | ///
78 | /// “180”,”0”,”90”,”-90” 分别 对应地图的 ” 左 ”,” 右 ”,” 上”,”下”:任务完成时有值
79 | /// 7
80 | public string podDir { get; set; }
81 |
82 | ///
83 | /// AGV 编号(同 agvCode )
84 | ///
85 | public string robotCode { get; set; }
86 |
87 | ///
88 | /// 当前任务单号
89 | ///
90 | public string taskCode { get; set; }
91 |
92 | ///
93 | /// 工作位,与 RCS-2000 端配置的位 置名称一致。任务完成时有值,与 生成任务单接口中的 wbCode 一 致
94 | ///
95 | public string wbCode { get; set; }
96 | }
97 | }
98 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/WarnCallbackRequestDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// AGV预警信息
25 | ///
26 | public partial class WarnCallbackRequestDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public WarnCallbackRequestDTO() { }
32 |
33 | ///
34 | /// 请求编号,每个请求都要一个唯一 编号,同一个请求重复提交,使用 同一编号
35 | ///
36 | public string reqCode { get; set; }
37 |
38 | ///
39 | /// 请求时间戳,格式: “yyyy-MM-dd HH:mm:ss”
40 | ///
41 | public string reqTime { get; set; }
42 |
43 | ///
44 | /// 客户端编号,如 PDA,HCWMS 等
45 | ///
46 | public string clientCode { get; set; }
47 |
48 | ///
49 | /// 令牌号,由调度系统颁发
50 | ///
51 | public string tokenCode { get; set; }
52 |
53 | ///
54 | /// 警告数据
55 | ///
56 | public List data { get; set; }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Model/WarnDataDTO.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Linq;
18 | using System.Text;
19 | using System.Threading.Tasks;
20 |
21 | namespace Git.Mes.HikRobot.SDK.Model
22 | {
23 | ///
24 | /// 警告信息数据模型
25 | ///
26 | public partial class WarnDataDTO
27 | {
28 | ///
29 | /// 构造方法
30 | ///
31 | public WarnDataDTO() { }
32 |
33 | ///
34 | /// 车号
35 | ///
36 | public string robotCode { get; set; }
37 |
38 | ///
39 | /// 告警开始时间
40 | ///
41 | public string beginTime { get; set; }
42 |
43 | ///
44 | /// 告警内容
45 | ///
46 | public string warnContent { get; set; }
47 |
48 | ///
49 | /// 任务号
50 | ///
51 | public string taskCode { get; set; }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Git.Mes.HikRobot.SDK")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Git.Mes.HikRobot.SDK")]
13 | [assembly: AssemblyCopyright("Copyright © 2021")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("d1eea3e8-b8f7-49d0-8dc4-7c112a5426e2")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
33 | //通过使用 "*",如下所示:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/Server/HikRobotTaskServer.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (C) Git Corporation. All rights reserved.
3 | *
4 | * Author: 吉特日化MES,吉特WMS
5 | * Create Date: 2022/5/16 12:46:17
6 | * Blog: http://www.cnblogs.com/qingyuan/
7 | * Copyright: 贺臣 15800466429
8 | * Description: Git.Framework
9 | *
10 | * Revision History:
11 | * Date Author Description
12 | *2022/5/16 12:46:17 贺臣
13 | *********************************************************************************/
14 |
15 | using Git.Mes.HikRobot.SDK.ApiName;
16 | using Git.Mes.HikRobot.SDK.Model;
17 | using Newtonsoft.Json.Linq;
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Linq;
21 | using System.Text;
22 | using System.Threading.Tasks;
23 |
24 | namespace Git.Mes.HikRobot.SDK.Server
25 | {
26 | public partial class HikRobotTaskServer
27 | {
28 | public HikRobotTaskServer() { }
29 |
30 | ///
31 | /// 生成海康机器人任务
32 | ///
33 | ///
34 | ///
35 | public HikDataResult GenAgvSchedulingTask(GenTaskRequestDTO TaskEntity)
36 | {
37 | HikDataResult dataResult = new HikDataResult();
38 |
39 | string ApiName = TaskApiName.TaskApiName_genAgvSchedulingTask;
40 | JObject param = JObject.Parse(HikJsonHelper.SerializeObject(TaskEntity));
41 | IHikTopClient client = new HikTopClientDefault();
42 | string result = client.Execute(ApiName, param);
43 |
44 | dataResult = HikJsonHelper.DeserializeObject(result);
45 |
46 | return dataResult;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Git.Mes.HikRobot.SDK/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Lib/DSkin/AuthorizeDSkin.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/AuthorizeDSkin.exe
--------------------------------------------------------------------------------
/Lib/DSkin/DSkin.Design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/DSkin.Design.dll
--------------------------------------------------------------------------------
/Lib/DSkin/DSkin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/DSkin.dll
--------------------------------------------------------------------------------
/Lib/DSkin/HVMRuntm.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/HVMRuntm.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【2.0】DSkin20171226195410/DSkin.Design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【2.0】DSkin20171226195410/DSkin.Design.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【2.0】DSkin20171226195410/DSkin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【2.0】DSkin20171226195410/DSkin.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【4.0】DSkin20171226195554/DSkin.Design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【4.0】DSkin20171226195554/DSkin.Design.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【4.0】DSkin20171226195554/DSkin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【4.0】DSkin20171226195554/DSkin.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【4.0】DSkin20191108102755/DSkin.Design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【4.0】DSkin20191108102755/DSkin.Design.dll
--------------------------------------------------------------------------------
/Lib/DSkin/【4.0】DSkin20191108102755/DSkin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/DSkin/【4.0】DSkin20191108102755/DSkin.dll
--------------------------------------------------------------------------------
/Lib/FastReport.Web.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/FastReport.Web.dll
--------------------------------------------------------------------------------
/Lib/FastReport.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/FastReport.dll
--------------------------------------------------------------------------------
/Lib/Fnthex32.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Fnthex32.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Cache.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Cache.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Controller4.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Controller4.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.DataTypes.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.DataTypes.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Email.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Email.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Encrypt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Encrypt.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Encrypt.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Encrypt.pdb
--------------------------------------------------------------------------------
/Lib/Git.Framework.Events.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Events.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Io.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Io.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Json.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Log.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Log.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.MsSql.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.MsSql.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.ORM.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.ORM.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Office.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Office.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Printer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Printer.dll
--------------------------------------------------------------------------------
/Lib/Git.Framework.Resource.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Framework.Resource.dll
--------------------------------------------------------------------------------
/Lib/Git.Print.Libraries.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Git.Print.Libraries.dll
--------------------------------------------------------------------------------
/Lib/Gma.QrCodeNet.Encoding.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Gma.QrCodeNet.Encoding.dll
--------------------------------------------------------------------------------
/Lib/HslCommunication.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/HslCommunication.dll
--------------------------------------------------------------------------------
/Lib/HslCommunication.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/HslCommunication.pdb
--------------------------------------------------------------------------------
/Lib/ICSharpCode.SharpZipLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/ICSharpCode.SharpZipLib.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.EnterpriseLibrary.Caching.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.EnterpriseLibrary.Caching.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.EnterpriseLibrary.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.EnterpriseLibrary.Common.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.EnterpriseLibrary.Data.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.EnterpriseLibrary.Data.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.EnterpriseLibrary.Logging.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.EnterpriseLibrary.Logging.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.ObjectBuilder.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.ObjectBuilder.dll
--------------------------------------------------------------------------------
/Lib/Microsoft.Practices.Unity.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/Microsoft.Practices.Unity.dll
--------------------------------------------------------------------------------
/Lib/NPOI.OOXML.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/NPOI.OOXML.dll
--------------------------------------------------------------------------------
/Lib/NPOI.OpenXml4Net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/NPOI.OpenXml4Net.dll
--------------------------------------------------------------------------------
/Lib/NPOI.OpenXmlFormats.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/NPOI.OpenXmlFormats.dll
--------------------------------------------------------------------------------
/Lib/NPOI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/NPOI.dll
--------------------------------------------------------------------------------
/Lib/OpcRcw.Cmd.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/OpcRcw.Cmd.dll
--------------------------------------------------------------------------------
/Lib/OpcRcw.Comn.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/OpcRcw.Comn.dll
--------------------------------------------------------------------------------
/Lib/OpcRcw.Da.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/OpcRcw.Da.dll
--------------------------------------------------------------------------------
/Lib/OpcRcw.Dx.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/OpcRcw.Dx.dll
--------------------------------------------------------------------------------
/Lib/OpcRcw.Hda.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/OpcRcw.Hda.dll
--------------------------------------------------------------------------------
/Lib/RabbitMQ.Client.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/RabbitMQ.Client.dll
--------------------------------------------------------------------------------
/Lib/RabbitMQ.ServiceModel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/RabbitMQ.ServiceModel.dll
--------------------------------------------------------------------------------
/Lib/Template/Template.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | {{OrderCode}}
16 |
17 |
18 | 单据号:{{OrderCode}}
19 |
20 |
21 | 提货日期:{{DtReceive}}
22 |
23 |
24 | 航班号:{{StrComment}}
25 |
26 |
27 | 提货点:{{ReceiveAddress}}
28 |
29 |
30 | 联系人:{{ReceiveUser}}
31 |
32 |
33 | 联系电话:{{ReceiverPhone}}
34 |
35 |
36 | 时间:{{DtCreate}}
37 |
38 |
39 | --------------------------
40 |
41 |
42 | 序号
43 | 货号
44 | 品名
45 | 数量
46 | 单价
47 | 金额
48 |
49 |
50 | --------------------------
51 |
52 |
53 |
54 |
55 | {{Index}}
56 | {{StrID}}
57 | {{StrName}}
58 |
59 | {{DCount}}
60 | *
61 | {{DPrice}}
62 | =
63 | {{DAmount}}
64 |
65 |
66 |
67 |
68 | --------------------------
69 |
70 |
71 |
72 | 联机刷卡
73 | 人民币{{DAmount}}
74 |
75 |
76 |
77 | --------------------------
78 |
79 |
80 | 商品数:{{DCount}}
81 | 总金额:{{DAmount}}
82 |
83 |
84 | {{OrderCode}}
85 |
86 |
87 | --------------------------
88 |
89 |
90 | 谢谢惠顾,欢迎再次光临
91 |
92 |
93 | 提货凭据,请妥善保管
94 |
95 |
96 | 客服热线:4001051212
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/Lib/TopSdk.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/TopSdk.dll
--------------------------------------------------------------------------------
/Lib/itextsharp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/itextsharp.dll
--------------------------------------------------------------------------------
/Lib/zxing.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/zxing.dll
--------------------------------------------------------------------------------
/Lib/zxing.presentation.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/Lib/zxing.presentation.dll
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # gitwcs
2 | 吉特WMS系统,吉特日化MES,自动搬运项目。用于光栅,卷帘门,机械手,AGV交互 小案例。
3 |
4 | 吉特日化生产执行制造系统,吉特仓储管理系统,专注于日化,食品,火锅底料,保健品,医药生产配料,称量防差错,投料防差错,柔性化工艺(日化行业MES|制药行业MES|化工行业MES|火锅底料MES)
5 |
6 | 贺臣,15800466429 (同微信) QQ 821865130
7 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.7/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Client.5.2.7/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.7/Microsoft.AspNet.WebApi.Client.5.2.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Client.5.2.7/Microsoft.AspNet.WebApi.Client.5.2.7.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/net45/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/net45/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/netstandard2.0/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/netstandard2.0/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Client.5.2.7/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.7/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Core.5.2.7/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.7/Content/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.7/Microsoft.AspNet.WebApi.Core.5.2.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Core.5.2.7/Microsoft.AspNet.WebApi.Core.5.2.7.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.7/lib/net45/System.Web.Http.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Core.5.2.7/lib/net45/System.Web.Http.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/Microsoft.AspNet.WebApi.Owin.5.2.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/Microsoft.AspNet.WebApi.Owin.5.2.7.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/lib/net45/System.Web.Http.Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.Owin.5.2.7/lib/net45/System.Web.Http.Owin.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7/Microsoft.AspNet.WebApi.OwinSelfHost.5.2.7.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/Microsoft.AspNet.WebApi.SelfHost.5.2.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/Microsoft.AspNet.WebApi.SelfHost.5.2.7.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/lib/net45/System.Web.Http.SelfHost.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.7/lib/net45/System.Web.Http.SelfHost.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.2.0.2/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.2.0.2/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.2.0.2/Microsoft.Owin.2.0.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.2.0.2/Microsoft.Owin.2.0.2.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.2.0.2/lib/net40/Microsoft.Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.2.0.2/lib/net40/Microsoft.Owin.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.2.0.2/lib/net45/Microsoft.Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.2.0.2/lib/net45/Microsoft.Owin.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Host.HttpListener.2.0.2/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/Microsoft.Owin.Host.HttpListener.2.0.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Host.HttpListener.2.0.2/Microsoft.Owin.Host.HttpListener.2.0.2.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net40/Microsoft.Owin.Host.HttpListener.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net40/Microsoft.Owin.Host.HttpListener.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net40/Microsoft.Owin.Host.HttpListener.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.Owin.Host.HttpListener
5 |
6 |
7 |
8 |
9 | Provided as a down-level stub for the 4.5 AssemblyMetaDataAttribute class.
10 | All released assemblies should define [AssemblyMetadata("Serviceable", "True")].
11 |
12 |
13 |
14 |
15 | This class is used to wrap other streams and convert some exception types.
16 |
17 |
18 |
19 |
20 | This wraps HttpListenerRequest's WebHeaderCollection (NameValueCollection) and adapts it to
21 | the OWIN required IDictionary surface area. It remains fully mutable, but you will be subject
22 | to the header validations performed by the underlying collection.
23 |
24 |
25 |
26 |
27 | This wraps HttpListener and exposes it as an OWIN compatible server.
28 |
29 |
30 |
31 |
32 | Creates a listener wrapper that can be configured by the user before starting.
33 |
34 |
35 |
36 |
37 | These are merged as one call because they should be swapped out atomically.
38 | This controls how many requests the server attempts to process concurrently.
39 |
40 | The maximum number of pending request receives.
41 | The maximum number of active requests being processed.
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | Starts the listener and request processing threads.
53 |
54 |
55 |
56 |
57 | Shuts down the listener and disposes it.
58 |
59 |
60 |
61 |
62 | The HttpListener instance wrapped by this wrapper.
63 |
64 |
65 |
66 |
67 | This wraps an HttpListenerRequest and exposes it as an OWIN environment IDictionary.
68 |
69 |
70 |
71 |
72 | Initializes a new instance of the class.
73 | Uses the given request object to populate the OWIN standard keys in the environment IDictionary.
74 | Most values are copied so that they can be mutable, but the headers collection is only wrapped.
75 |
76 |
77 |
78 |
79 | This wraps an HttpListenerResponse, populates it with the given response fields, and relays
80 | the response body to the underlying stream.
81 |
82 |
83 |
84 |
85 | Initializes a new instance of the class.
86 | Sets up the Environment with the necessary request state items.
87 |
88 |
89 |
90 |
91 | A strongly-typed resource class, for looking up localized strings, etc.
92 |
93 |
94 |
95 |
96 | Returns the cached ResourceManager instance used by this class.
97 |
98 |
99 |
100 |
101 | Overrides the current thread's CurrentUICulture property for all
102 | resource lookups using this strongly typed resource class.
103 |
104 |
105 |
106 |
107 | Looks up a localized string similar to The key '{0}' is already present in the dictionary..
108 |
109 |
110 |
111 |
112 | Looks up a localized string similar to App errors on disconnect notification..
113 |
114 |
115 |
116 |
117 | Looks up a localized string similar to Exception during request processing..
118 |
119 |
120 |
121 |
122 | Looks up a localized string similar to Unable to resolve handles. Disconnect notifications will be ignored..
123 |
124 |
125 |
126 |
127 | Looks up a localized string similar to Unexpected exception..
128 |
129 |
130 |
131 |
132 | Implements the Katana setup pattern for the OwinHttpListener server.
133 |
134 |
135 |
136 |
137 | Advertise the capabilities of the server.
138 |
139 |
140 |
141 |
142 |
143 | Creates an OwinHttpListener and starts listening on the given URL.
144 |
145 | The application entry point.
146 | The addresses to listen on.
147 | The OwinHttpListener. Invoke Dispose to shut down.
148 |
149 |
150 |
151 |
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net45/Microsoft.Owin.Host.HttpListener.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net45/Microsoft.Owin.Host.HttpListener.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.HttpListener.2.0.2/lib/net45/Microsoft.Owin.Host.HttpListener.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.Owin.Host.HttpListener
5 |
6 |
7 |
8 |
9 | This class is used to wrap other streams and convert some exception types.
10 |
11 |
12 |
13 |
14 | This wraps HttpListenerRequest's WebHeaderCollection (NameValueCollection) and adapts it to
15 | the OWIN required IDictionary surface area. It remains fully mutable, but you will be subject
16 | to the header validations performed by the underlying collection.
17 |
18 |
19 |
20 |
21 | This wraps HttpListener and exposes it as an OWIN compatible server.
22 |
23 |
24 |
25 |
26 | Creates a listener wrapper that can be configured by the user before starting.
27 |
28 |
29 |
30 |
31 | These are merged as one call because they should be swapped out atomically.
32 | This controls how many requests the server attempts to process concurrently.
33 |
34 | The maximum number of pending request receives.
35 | The maximum number of active requests being processed.
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | Starts the listener and request processing threads.
47 |
48 |
49 |
50 |
51 | Shuts down the listener and disposes it.
52 |
53 |
54 |
55 |
56 | The HttpListener instance wrapped by this wrapper.
57 |
58 |
59 |
60 |
61 | This wraps an HttpListenerRequest and exposes it as an OWIN environment IDictionary.
62 |
63 |
64 |
65 |
66 | Initializes a new instance of the class.
67 | Uses the given request object to populate the OWIN standard keys in the environment IDictionary.
68 | Most values are copied so that they can be mutable, but the headers collection is only wrapped.
69 |
70 |
71 |
72 |
73 | This wraps an HttpListenerResponse, populates it with the given response fields, and relays
74 | the response body to the underlying stream.
75 |
76 |
77 |
78 |
79 | Initializes a new instance of the class.
80 | Sets up the Environment with the necessary request state items.
81 |
82 |
83 |
84 |
85 | A strongly-typed resource class, for looking up localized strings, etc.
86 |
87 |
88 |
89 |
90 | Returns the cached ResourceManager instance used by this class.
91 |
92 |
93 |
94 |
95 | Overrides the current thread's CurrentUICulture property for all
96 | resource lookups using this strongly typed resource class.
97 |
98 |
99 |
100 |
101 | Looks up a localized string similar to The key '{0}' is already present in the dictionary..
102 |
103 |
104 |
105 |
106 | Looks up a localized string similar to App errors on disconnect notification..
107 |
108 |
109 |
110 |
111 | Looks up a localized string similar to Exception during request processing..
112 |
113 |
114 |
115 |
116 | Looks up a localized string similar to Unable to resolve handles. Disconnect notifications will be ignored..
117 |
118 |
119 |
120 |
121 | Looks up a localized string similar to Unexpected exception..
122 |
123 |
124 |
125 |
126 | Implements the Katana setup pattern for the OwinHttpListener server.
127 |
128 |
129 |
130 |
131 | Advertise the capabilities of the server.
132 |
133 |
134 |
135 |
136 |
137 | Creates an OwinHttpListener and starts listening on the given URL.
138 |
139 | The application entry point.
140 | The addresses to listen on.
141 | The OwinHttpListener. Invoke Dispose to shut down.
142 |
143 |
144 |
145 | Standard keys and values for use within the OWIN interfaces
146 |
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Hosting.2.0.2/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Hosting.2.0.2/.signature.p7s
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Hosting.2.0.2/Microsoft.Owin.Hosting.2.0.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Hosting.2.0.2/Microsoft.Owin.Hosting.2.0.2.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Hosting.2.0.2/lib/net40/Microsoft.Owin.Hosting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Hosting.2.0.2/lib/net40/Microsoft.Owin.Hosting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Hosting.2.0.2/lib/net45/Microsoft.Owin.Hosting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Microsoft.Owin.Hosting.2.0.2/lib/net45/Microsoft.Owin.Hosting.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/.signature.p7s
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2006 Scott Alexander, 2015 Dmitry Turin
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/NModbus.3.0.66.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/NModbus.3.0.66.nupkg
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/net45/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/net45/NModbus.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/net46/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/net46/NModbus.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/net5.0/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/net5.0/NModbus.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/net6.0/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/net6.0/NModbus.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/netstandard1.3/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/netstandard1.3/NModbus.dll
--------------------------------------------------------------------------------
/packages/NModbus.3.0.66/lib/netstandard2.0/NModbus.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/NModbus.3.0.66/lib/netstandard2.0/NModbus.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/.signature.p7s
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/Newtonsoft.Json.6.0.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/Newtonsoft.Json.6.0.2.nupkg
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/net20/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/net20/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/net35/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/net35/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/net40/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/net40/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/net45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/net45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/netcore45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/netcore45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.2/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.2/tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | # open json.net splash page on package install
4 | # don't open if json.net is installed as a dependency
5 |
6 | try
7 | {
8 | $url = "http://james.newtonking.com/json"
9 | $dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
10 |
11 | if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
12 | {
13 | # user is installing from VS NuGet console
14 | # get reference to the window, the console host and the input history
15 | # show webpage if "install-package newtonsoft.json" was last input
16 |
17 | $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow])
18 |
19 | $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor `
20 | [System.Reflection.BindingFlags]::NonPublic)
21 |
22 | $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1
23 | if ($prop -eq $null) { return }
24 |
25 | $hostInfo = $prop.GetValue($consoleWindow)
26 | if ($hostInfo -eq $null) { return }
27 |
28 | $history = $hostInfo.WpfConsole.InputHistory.History
29 |
30 | $lastCommand = $history | select -last 1
31 |
32 | if ($lastCommand)
33 | {
34 | $lastCommand = $lastCommand.Trim().ToLower()
35 | if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json"))
36 | {
37 | $dte2.ItemOperations.Navigate($url) | Out-Null
38 | }
39 | }
40 | }
41 | else
42 | {
43 | # user is installing from VS NuGet dialog
44 | # get reference to the window, then smart output console provider
45 | # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation
46 |
47 | $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor `
48 | [System.Reflection.BindingFlags]::NonPublic)
49 | $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor `
50 | [System.Reflection.BindingFlags]::NonPublic)
51 | if ($instanceField -eq $null -or $consoleField -eq $null) { return }
52 |
53 | $instance = $instanceField.GetValue($null)
54 | if ($instance -eq $null) { return }
55 |
56 | $consoleProvider = $consoleField.GetValue($instance)
57 | if ($consoleProvider -eq $null) { return }
58 |
59 | $console = $consoleProvider.CreateOutputConsole($false)
60 |
61 | $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor `
62 | [System.Reflection.BindingFlags]::NonPublic)
63 | if ($messagesField -eq $null) { return }
64 |
65 | $messages = $messagesField.GetValue($console)
66 | if ($messages -eq $null) { return }
67 |
68 | $operations = $messages -split "=============================="
69 |
70 | $lastOperation = $operations | select -last 1
71 |
72 | if ($lastOperation)
73 | {
74 | $lastOperation = $lastOperation.ToLower()
75 |
76 | $lines = $lastOperation -split "`r`n"
77 |
78 | $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1
79 |
80 | if ($installMatch)
81 | {
82 | $dte2.ItemOperations.Navigate($url) | Out-Null
83 | }
84 | }
85 | }
86 | }
87 | catch
88 | {
89 | # stop potential errors from bubbling up
90 | # worst case the splash page won't open
91 | }
92 |
93 | # yolo
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/.signature.p7s
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/Newtonsoft.Json.6.0.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/Newtonsoft.Json.6.0.4.nupkg
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/net20/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/net20/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/net35/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/net35/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/net40/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/net40/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/netcore45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/netcore45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Newtonsoft.Json.6.0.4/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.6.0.4/tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | # open json.net splash page on package install
4 | # don't open if json.net is installed as a dependency
5 |
6 | try
7 | {
8 | $url = "http://james.newtonking.com/json"
9 | $dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
10 |
11 | if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
12 | {
13 | # user is installing from VS NuGet console
14 | # get reference to the window, the console host and the input history
15 | # show webpage if "install-package newtonsoft.json" was last input
16 |
17 | $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow])
18 |
19 | $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor `
20 | [System.Reflection.BindingFlags]::NonPublic)
21 |
22 | $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1
23 | if ($prop -eq $null) { return }
24 |
25 | $hostInfo = $prop.GetValue($consoleWindow)
26 | if ($hostInfo -eq $null) { return }
27 |
28 | $history = $hostInfo.WpfConsole.InputHistory.History
29 |
30 | $lastCommand = $history | select -last 1
31 |
32 | if ($lastCommand)
33 | {
34 | $lastCommand = $lastCommand.Trim().ToLower()
35 | if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json"))
36 | {
37 | $dte2.ItemOperations.Navigate($url) | Out-Null
38 | }
39 | }
40 | }
41 | else
42 | {
43 | # user is installing from VS NuGet dialog
44 | # get reference to the window, then smart output console provider
45 | # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation
46 |
47 | $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor `
48 | [System.Reflection.BindingFlags]::NonPublic)
49 | $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor `
50 | [System.Reflection.BindingFlags]::NonPublic)
51 | if ($instanceField -eq $null -or $consoleField -eq $null) { return }
52 |
53 | $instance = $instanceField.GetValue($null)
54 | if ($instance -eq $null) { return }
55 |
56 | $consoleProvider = $consoleField.GetValue($instance)
57 | if ($consoleProvider -eq $null) { return }
58 |
59 | $console = $consoleProvider.CreateOutputConsole($false)
60 |
61 | $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor `
62 | [System.Reflection.BindingFlags]::NonPublic)
63 | if ($messagesField -eq $null) { return }
64 |
65 | $messages = $messagesField.GetValue($console)
66 | if ($messages -eq $null) { return }
67 |
68 | $operations = $messages -split "=============================="
69 |
70 | $lastOperation = $operations | select -last 1
71 |
72 | if ($lastOperation)
73 | {
74 | $lastOperation = $lastOperation.ToLower()
75 |
76 | $lines = $lastOperation -split "`r`n"
77 |
78 | $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1
79 |
80 | if ($installMatch)
81 | {
82 | $dte2.ItemOperations.Navigate($url) | Out-Null
83 | }
84 | }
85 | }
86 | }
87 | catch
88 | {
89 | # stop potential errors from bubbling up
90 | # worst case the splash page won't open
91 | }
92 |
93 | # yolo
--------------------------------------------------------------------------------
/packages/Owin.1.0/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Owin.1.0/.signature.p7s
--------------------------------------------------------------------------------
/packages/Owin.1.0/Owin.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Owin.1.0/Owin.1.0.nupkg
--------------------------------------------------------------------------------
/packages/Owin.1.0/lib/net40/Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hechenqingyuan/gitwcs/a298736883610b7774fd3c986ba3045b4b06840f/packages/Owin.1.0/lib/net40/Owin.dll
--------------------------------------------------------------------------------