|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | namespace WIDESEA_External.AGVService | 
|---|
|  |  |  | { | 
|---|
|  |  |  | #region å¼ç¨ | 
|---|
|  |  |  | public class InvokeAGVService : IInvokeAGVService | 
|---|
|  |  |  | { | 
|---|
|  |  |  | public static IInvokeAGVService Intance | 
|---|
|  |  |  | 
|---|
|  |  |  | get { return App.GetService<IInvokeAGVService>(); } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// åéAGVä»»å¡ | 
|---|
|  |  |  | /// åéAGVä»»å¡ | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <param name="taskModel"></param> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | public WebResponseContent SendAgvTask(AgvTaskModel taskModel) | 
|---|
|  |  |  | public WebResponseContent AgvSendTask(AgvTaskModel taskModel) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebResponseContent content = new WebResponseContent(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public WebResponseContent AGVSecureReply(AgvSecureModel secureModel) | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// å®å
¨ä¿¡å·ç³è¯· AGV-WMS-WCS | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public AgvResponseContent AgvSecureApply(AgvSecureApplyModel secureApplyModel) | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new AgvResponseContent(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// å®å
¨ä¿¡å·å夠WMS-AGV | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <param name="secureModel"></param> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | public WebResponseContent AgvSecureReply(AgvSecureReplyModel secureReplyModel) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebResponseContent content = new WebResponseContent(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | string apiAddress = AppSettings.Get(APIEnum.AGVSecureReply.ToString()); | 
|---|
|  |  |  | string response = HttpHelper.Post(apiAddress, secureModel.Serialize()); | 
|---|
|  |  |  | string apiAddress = AppSettings.Get(APIEnum.AgvSecureReply.ToString()); | 
|---|
|  |  |  | string response = HttpHelper.Post(apiAddress, secureReplyModel.Serialize()); | 
|---|
|  |  |  | AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>(); | 
|---|
|  |  |  | if (agvContent.Code == "200") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return content; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// AGVä»»å¡ç¶æå·æ° | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <param name="agvUpdateModel"></param> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | public AgvResponseContent AgvUpdateTask(AgvUpdateModel agvUpdateModel) | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new AgvResponseContent(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  | } | 
|---|