| | |
| | | } |
| | | #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] |