| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 关键件绑定查询同一追溯单号下的历史扫码记录 |
| | | [Route("Sc_KeyElementBinding/HistoryInfo_Temp")] |
| | | [HttpGet] |
| | | public object HistoryInfo_Temp(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = new DataTable(); |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select","select"); |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 关键件绑定保存 新增/编辑 |
| | | [Route("Sc_KeyElementBinding/Save")] |
| | | [HttpPost] |