| | |
| | | using DBUtility; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region é½å¥åææ¥è¡¨ |
| | | public class ReportMOMaterReadysBill |
| | | { |
| | | public int? HORGID;//ç»ç» |
| | | public int? HMATERIALID;//ç©æ |
| | | public int? HDeptID;//çäº§è½¦é´ |
| | | public int? HSCZYID;//çäº§èµæº |
| | | public string HXQD;//éæ±åå· |
| | | public string HMOBILLNO;//ç产订åå· |
| | | } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("JIT_Complete/ReportMOMaterReadysBillList")] |
| | | [HttpGet] |
| | | public object ReportMOMaterReadysBillList(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | |
| | | ReportMOMaterReadysBill Report = JsonConvert.DeserializeObject<ReportMOMaterReadysBill>(sWhere); |
| | | |
| | | ds = oCN.RunProcReturn($"exec PR_Complete_Report '{Report.HXQD}','{Report.HMOBILLNO}',{Report.HORGID},{Report.HDeptID},{Report.HSCZYID},{Report.HMATERIALID}", "PR_Complete_Report"); |
| | | |
| | | 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 = e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |