| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 返回工序在制品报表 |
| | | /// </summary> |
| | | /// <param name="EdDate">截止时间</param> |
| | | /// <param name="sWhere">拼接的SQL</param> |
| | | /// <returns>object</returns> |
| | | [Route("Report/ProcessWIPReport")] |
| | | [HttpGet] |
| | | public object ProcessWIPReport(DateTime EdDate, string sWhere) |
| | | { |
| | | DataSet ds; |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn("exec h_p_K3_Sc_WIPSumReportDateReport '" + EdDate + "','" + sWhere + "'", "h_p_K3_Sc_WIPSumReportDateReport"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无数据!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | // |
| | | } |
| | | } |