1
zrg
2025-04-08 3a43ddaff98d8241139b3e53dad254f495995db3
WebAPI/Controllers/Æ·ÖʹÜÀí/¼ìÑéÈ¡Ñù»¹Ñùµ¥/QC_TakeSampleCheckBillController.cs
@@ -1051,6 +1051,42 @@
        }
        #endregion
        #region è¿˜æ ·èŽ·å–å–æ ·å•æ•°æ®
        [Route("QC_TakeSampleCheckBill/Get_BackSampleList")]
        [HttpGet]
        public object Get_BackSampleList(string sWhere)
        {
            try
            {
                List<object> columnNameList = new List<object>();
                ds = oCN.RunProcReturn("select * from h_v_QC_TakeSampleCheckBillEdit where 1=1 "+ sWhere + " order by å•据号 desc", "h_v_QC_TakeSampleCheckBillList");
                //添加列名
                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 e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region æ£€éªŒè¿˜æ ·å•列表 æŸ¥è¯¢
        [Route("QC_TakeSampleCheckBill/QC_BackSampleCheckBillMainList")]
        [HttpGet]