From 9eb6dc41797cbace32a65877067a9c9ac3154f7a Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期日, 09 十月 2022 19:41:15 +0800
Subject: [PATCH] 安灯呼叫、安灯响应接口开发

---
 VueWebApi/Controllers/AppDeviceManageController.cs |  265 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 262 insertions(+), 3 deletions(-)

diff --git a/VueWebApi/Controllers/AppDeviceManageController.cs b/VueWebApi/Controllers/AppDeviceManageController.cs
index d1dd7e1..e09050f 100644
--- a/VueWebApi/Controllers/AppDeviceManageController.cs
+++ b/VueWebApi/Controllers/AppDeviceManageController.cs
@@ -1,8 +1,10 @@
 锘縰sing System;
 using System.Collections.Generic;
+using System.IO;
 using System.Linq;
 using System.Net;
 using System.Net.Http;
+using System.Web;
 using System.Web.Http;
 using VueWebApi.DLL.BLL;
 using VueWebApi.Models;
@@ -24,11 +26,11 @@
         /// </summary>
         /// <param name="eqpcode">璁惧缂栫爜</param>
         /// <returns></returns>
-        [Route(template: "ScanDeviceQrCodeData")]
+        [Route(template: "CheckScanDeviceQrCodeData")]
         [HttpGet]
-        public HttpResponseMessage ScanDeviceQrCodeData(string eqpcode)
+        public HttpResponseMessage CheckScanDeviceQrCodeData(string eqpcode)
         {
-            mes = AppDeviceManageBLL.ScanDeviceQrCodeData(eqpcode);
+            mes = AppDeviceManageBLL.CheckScanDeviceQrCodeData(eqpcode);
             return TJson.toJson(mes);
         }
         #endregion
@@ -63,5 +65,262 @@
             return TJson.toJson(mes);
         }
         #endregion
+
+
+        #region[瀹氭湡淇濆吇,鎵弿宸ヤ綅/璁惧浜岀淮鐮乚
+        /// <summary>
+        /// 瀹氭湡淇濆吇,鎵弿宸ヤ綅/璁惧浜岀淮鐮�
+        /// </summary>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "RepairScanDeviceQrCodeData")]
+        [HttpGet]
+        public HttpResponseMessage RepairScanDeviceQrCodeData(string eqpcode)
+        {
+            mes = AppDeviceManageBLL.RepairScanDeviceQrCodeData(eqpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[鏃ュ父淇濆吇,閫夋嫨鎵爜璁惧鍒楄〃甯﹀嚭淇濆吇椤筣
+        /// <summary>
+        /// 鏃ュ父淇濆吇,閫夋嫨鎵爜璁惧鍒楄〃甯﹀嚭淇濆吇椤�
+        /// </summary>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "RepairSelectScanDeviceQrCodeItem")]
+        [HttpGet]
+        public HttpResponseMessage RepairSelectScanDeviceQrCodeItem(string eqpcode)
+        {
+            mes = AppDeviceManageBLL.RepairSelectScanDeviceQrCodeItem(eqpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[鏃ュ父淇濆吇,鎻愪氦淇濆瓨]
+        /// <summary>
+        /// 鏃ュ父淇濆吇,鎻愪氦淇濆瓨
+        /// </summary>
+        /// <param name="username">鐧诲綍浜哄憳(淇濆吇浜�)</param>
+        /// <param name="maintcyc">淇濆吇鍛ㄦ湡</param>
+        /// <param name="json">鎻愪氦鏁版嵁</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceRepairSave")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceRepairSave(string username, string maintcyc, AppDevicecCheck json)
+        {
+            mes = AppDeviceManageBLL.AppDeviceRepairSave(username, maintcyc, json);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+
+        #region[璁惧缁翠慨鐢宠,鎵弿宸ヤ綅/璁惧浜岀淮鐮乚
+        /// <summary>
+        /// 璁惧缁翠慨鐢宠,鎵弿宸ヤ綅/璁惧浜岀淮鐮�
+        /// </summary>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "MaintainScanDeviceApplyQrCodeData")]
+        [HttpGet]
+        public HttpResponseMessage MaintainScanDeviceApplyQrCodeData(string eqpcode)
+        {
+            mes = AppDeviceManageBLL.MaintainScanDeviceApplyQrCodeData(eqpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[璁惧缁翠慨鐢宠,鎻愪氦淇濆瓨]
+        /// <summary>
+        /// 璁惧缁翠慨鐢宠,鎻愪氦淇濆瓨
+        /// </summary>
+        /// <returns></returns>
+        [Route(template: "MaintainScanDeviceApplySave")]
+        [HttpPost]
+        public HttpResponseMessage MaintainScanDeviceApplySave()
+        {
+            string username = HttpContext.Current.Request["username"].ToString();//鎿嶄綔浜哄憳
+            string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//璁惧缂栫爜
+            string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //杞﹂棿缂栫爜
+            string faultsourcecode = HttpContext.Current.Request["faultsourcecode"].ToString(); //鏁呴殰鏉ユ簮缂栫爜
+            string faultdescr = HttpContext.Current.Request["faultdescr"].ToString(); //鏁呴殰鎻忚堪
+            HttpFileCollection files = HttpContext.Current.Request.Files;
+            mes = AppDeviceManageBLL.MaintainScanDeviceApplySave(username, eqpcode, wkshpcode, faultsourcecode, faultdescr, files);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+
+        #region[璁惧缁翠慨鍒楄〃]
+        /// <summary>
+        /// 璁惧缁翠慨鍒楄〃
+        /// </summary>
+        /// <returns></returns>
+        [Route(template: "RepairScanDeviceQrCodeDataList")]
+        [HttpGet]
+        public HttpResponseMessage RepairScanDeviceQrCodeDataList()
+        {
+            mes = AppDeviceManageBLL.RepairScanDeviceQrCodeDataList();
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[璁惧缁翠慨鎻愪氦]
+        /// <summary>
+        /// 璁惧缁翠慨鎻愪氦
+        /// </summary>
+        /// <returns></returns>
+        [Route(template: "RepairScanDeviceSave")]
+        [HttpPost]
+        public HttpResponseMessage RepairScanDeviceSave()
+        {
+            string username = HttpContext.Current.Request["username"].ToString();//鎿嶄綔浜哄憳
+            string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//璁惧缂栫爜
+            string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //杞﹂棿缂栫爜
+            string faultdescr = HttpContext.Current.Request["faultdescr"].ToString(); //鏁呴殰鎻忚堪
+            string is_stoprepair = HttpContext.Current.Request["is_stoprepair"].ToString(); //鍋滄満缁翠慨
+            string repaircontent = HttpContext.Current.Request["repaircontent"].ToString(); //缁翠慨鍐呭
+            string replaceparts = HttpContext.Current.Request["replaceparts"].ToString(); //鏇存崲澶囦欢
+            HttpFileCollection files = HttpContext.Current.Request.Files;
+            mes = AppDeviceManageBLL.RepairScanDeviceSave(username, eqpcode, wkshpcode, faultdescr, is_stoprepair, repaircontent, replaceparts, files);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+
+        #region[缁翠慨楠岃瘉鍒楄〃]
+        /// <summary>
+        /// 缁翠慨楠岃瘉鍒楄〃
+        /// </summary>
+        /// <returns></returns>
+        [Route(template: "RepairVerificationScanDeviceData")]
+        [HttpGet]
+        public HttpResponseMessage RepairVerificationScanDeviceData()
+        {
+            mes = AppDeviceManageBLL.RepairVerificationScanDeviceData();
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[缁翠慨楠岃瘉璇︽儏淇℃伅]
+        /// <summary>
+        /// 缁翠慨楠岃瘉璇︽儏淇℃伅
+        /// </summary>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "RepairVerificationScanDeviceDataSub")]
+        [HttpGet]
+        public HttpResponseMessage RepairVerificationScanDeviceDataSub(string eqpcode,string wkshpcode)
+        {
+            mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(eqpcode,wkshpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[缁翠慨楠岃瘉鎻愪氦]
+        /// <summary>
+        /// 缁翠慨楠岃瘉鎻愪氦
+        /// </summary>
+        /// <returns></returns>
+        [Route(template: "RepairVerificationScanDeviceSave")]
+        [HttpPost]
+        public HttpResponseMessage RepairVerificationScanDeviceSave()
+        {
+            string username = HttpContext.Current.Request["username"].ToString();//鎿嶄綔浜哄憳
+            string repairwo = HttpContext.Current.Request["repairwo"].ToString();//缁翠慨鍗曞彿
+            string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//璁惧缂栫爜
+            string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //杞﹂棿缂栫爜
+            string result = HttpContext.Current.Request["result"].ToString(); //楠岃瘉缁撴灉
+            mes = AppDeviceManageBLL.RepairVerificationScanDeviceSave(username, repairwo, eqpcode, wkshpcode, result);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+
+        #region[瀹夌伅鍛煎彨鎵弿宸ヤ綅]
+        /// <summary>
+        /// 瀹夌伅鍛煎彨鎵弿宸ヤ綅
+        /// </summary>
+        /// <param name="eqpcode">璁惧鐮�</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceAnDengCallScanSearch")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceAnDengCallScanSearch(string eqpcode)
+        {
+            mes = AppDeviceManageBLL.AppDeviceAnDengCallScanSearch(eqpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[瀹夌伅鍛煎彨,閫夋嫨鎵弿宸ヤ綅甯﹀嚭鍛煎彨绫诲瀷閫夐」鍙婂搴斾汉鍛樻暟鎹甝
+        /// <summary>
+        /// 瀹夌伅鍛煎彨,閫夋嫨鎵弿宸ヤ綅甯﹀嚭鍛煎彨绫诲瀷閫夐」鍙婂搴斾汉鍛樻暟鎹�
+        /// </summary>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceAnDengCallItemSearch")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceAnDengCallItemSearch(string eqpcode, string wkshpcode)
+        {
+            mes = AppDeviceManageBLL.AppDeviceAnDengCallItemSearch(eqpcode, wkshpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[瀹夌伅鍛煎彨鎻愪氦]
+        /// <summary>
+        /// 瀹夌伅鍛煎彨鎻愪氦
+        /// </summary>
+        /// <param name="username">鐧诲綍浜哄憳</param>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+        /// <param name="json">鎻愪氦鏁版嵁</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceAnDengCallSave")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceAnDengCallSave(string username, string eqpcode, string wkshpcode, List<AnDnDate> json)
+        {
+            mes = AppDeviceManageBLL.AppDeviceAnDengCallSave(username, eqpcode, wkshpcode, json);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+
+
+
+        #region[瀹夌伅鍝嶅簲鎵弿宸ヤ綅/璁惧]
+        /// <summary>
+        /// 瀹夌伅鍝嶅簲鎵弿宸ヤ綅/璁惧
+        /// </summary>
+        /// <param name="eqpcode">璁惧/宸ヤ綅缂栫爜</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceAnDengLampResponseScanSearch")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceAnDengLampResponseScanSearch(string eqpcode)
+        {
+            mes = AppDeviceManageBLL.AppDeviceAnDengLampResponseScanSearch(eqpcode);
+            return TJson.toJson(mes);
+        }
+        #endregion
+
+        #region[瀹夌伅鍝嶅簲鎻愪氦]
+        /// <summary>
+        /// 瀹夌伅鍝嶅簲鎻愪氦
+        /// </summary>
+        /// <param name="username">鐧诲綍浜哄憳</param>
+        /// <param name="eqpcode">璁惧缂栫爜</param>
+        /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+        /// <param name="json">鎻愪氦鏁版嵁</param>
+        /// <returns></returns>
+        [Route(template: "AppDeviceAnDengLampResponseSave")]
+        [HttpPost]
+        public HttpResponseMessage AppDeviceAnDengLampResponseSave(string username, string eqpcode, string wkshpcode, List<ObjectData> json)
+        {
+            mes = AppDeviceManageBLL.AppDeviceAnDengLampResponseSave(username, eqpcode, wkshpcode, json);
+            return TJson.toJson(mes);
+        }
+        #endregion
     }
 }

--
Gitblit v1.9.3