| 
									
										
										
										
											2025-08-14 14:03:14 +08:00
										 |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | using System.Runtime.Serialization; | 
					
						
							|  |  |  |  | using System.ServiceModel; | 
					
						
							|  |  |  |  | using System.Text; | 
					
						
							|  |  |  |  | using System.ServiceModel.Web; | 
					
						
							|  |  |  |  | namespace DeiNiu.wms.win | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IServiceLight”。 | 
					
						
							|  |  |  |  |     [ServiceContract] | 
					
						
							|  |  |  |  |     public interface IServiceLight | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |             Method = "GET", | 
					
						
							|  |  |  |  |             RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "getLabel/Id={Id}" | 
					
						
							|  |  |  |  |             )] | 
					
						
							|  |  |  |  |         ELabel getLabel(string Id); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "lightLabels")] | 
					
						
							|  |  |  |  |         string lightLabels(List<ELabel> labels); | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "lightLabels2")] | 
					
						
							|  |  |  |  |         string lightLabels2(String s); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "lightLabel/Id={Id}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         string lightLabel(string Id); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "startSeeds?deskId={deskId}&seedsNo={seedsNo}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         string startSeeds(int deskId,string seedsNo); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "lightSeed?deskId={deskId}&seedsNo={seedsNo}&barcode={barcode}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         string lightSeed(int deskId,string seedsNo,string barcode); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "POST", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "uploadSeeds" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         string uploadSeeds(List<SeedsItem> seeds); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOnLight?id={id}&which={which}&port={port}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOnLight(int id, byte which, int port); | 
					
						
							|  |  |  |  |         /* | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOffLight?id={id}&port={port}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         string turnOffLight(int id, int port); | 
					
						
							|  |  |  |  |         */ | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOffLight?id={id}&which={which}&port={port}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOffLight(int id, byte which, int port); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOnLightByScan?deskId={deskId}&barcode={barcode}&empId={empId}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOnLightByScan(int deskId, string barcode,int empId); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOffLightByScan?deskId={deskId}&barcode={barcode}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOffLightByScan(int deskId, string barcode); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-15 10:15:35 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOnFirstSeedByScan?barcode={barcode}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOnFirstSeedByScan(  string barcode ); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "turnOffFirstSeedByScan?barcode={barcode}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool turnOffFirstSeedByScan( string barcode); | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 14:03:14 +08:00
										 |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "lightsOnByDeskId?deskId={deskId}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool lightsOnByDeskId(int deskId); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke( | 
					
						
							|  |  |  |  |            Method = "GET", | 
					
						
							|  |  |  |  |            RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "lightsOffByDeskId?deskId={deskId}" | 
					
						
							|  |  |  |  |            )] | 
					
						
							|  |  |  |  |         bool lightsOffByDeskId(int deskId); | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |