| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 客æ·åºæ¶è´¦æ¬¾æç»åææ¥è¡¨ï¼æ¾ç¤ºç©æï¼ |
| | | /// <summary> |
| | | /// 客æ·åºæ¶è´¦æ¬¾æç»åææ¥è¡¨ï¼æ¾ç¤ºç©æï¼ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("YS_ReceiveReportController/GetYS_CusShouldIncomeMaterEntryReport_Json")] |
| | | [HttpGet] |
| | | public object GetYS_CusShouldIncomeMaterEntryReport_Json(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("YS_CusShouldIncomeMaterEntryReport", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeMaterEntryReport " + sWhere, "h_p_YS_CusShouldIncomeMaterEntryReport"); |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ·»å åå |
| | | 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 = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¥è¯¢æ¥è¡¨ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |