| | |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region å
è£
容å¨åºå
¥åºæç»æ¥è¯¢ |
| | | [Route("Kf_ICStockInOutBill/Kf_PackStockDetailQuery")] |
| | | [HttpGet] |
| | | public object Kf_PackStockDetailQuery(string sWhere) |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | try |
| | | { |
| | | string sql = "select * from h_v_Kf_PackStockDetailQuery where 1=1 " + sWhere; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Kf_PackStockDetailQuery"); |
| | | |
| | | 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 = ds.Tables[0].Rows.Count; |
| | | objJsonResult.Message = "è·åèµæºç»å®æ°æ®æåï¼"; |
| | | objJsonResult.data = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(ds.Tables[0], new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" })); //åºååDataSetä¸çæ¶é´æ ¼å¼ï¼ç¶ååååºåå忥 |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.Message.ToString(); |
| | | objJsonResult.data = null; |
| | | objJsonResult.list = columnNameList; |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | #region åºå
¥åºåæ®æ¡ç æç»æ¥è¯¢ |
| | | [Route("Kf_ICStockInOutBill/Kf_BarCodeDetailQuery")] |
| | | [HttpGet] |