WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs
@@ -7973,5 +7973,43 @@
            }
        }
        #endregion
        #region 设备点检记录PDA 保存后 查询是否有NG 调整安灯
        [Route("Sc_MESTransFerWorkBill/getGy_EquipFile_AD")]
        [HttpGet]
        public object getGy_EquipFile_AD(string HInterID, string user)
        {
            try
            {
                List<object> columnNameList = new List<object>();
                string sql = "select * from h_v_Gy_EquipFileMainList where hmainid='" + HInterID + "'";
                ds = oCN.RunProcReturn(sql, "h_v_Gy_EquipFileMainList");
                //添加列名
                foreach (DataColumn col in ds.Tables[0].Columns)
                {
                    Type dataType = col.DataType;
                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//获取到DataColumn列对象的列名
                }
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "Sucess!";
                objJsonResult.data = ds.Tables[0];
                objJsonResult.list = columnNameList;
                return objJsonResult;
            }
            catch (Exception ex)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "查询数据异常,请与管理员联系!" + ex.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}