| | |
| | | #endregion |
| | | |
| | | |
| | | #region æ ¹æ®åºç¡èµæ ID æ æ¡ç æ¥æ¾è®°å½ |
| | | [Route("Gy_WorkStationBill/cx1")] |
| | | [HttpGet] |
| | | public object cx(long HInterID = -1, string HBarCode = "-1") |
| | | { |
| | | try |
| | | { |
| | | if(HInterID != -1) |
| | | { |
| | | return cx(HInterID); |
| | | } |
| | | |
| | | if(HBarCode != "-1") |
| | | { |
| | | ds = oCN.RunProcReturn($"select * from h_v_Gy_WorkStationEdit where å·¥ä½ä»£ç ='{HBarCode}'", "h_v_Gy_WorkStationList"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "falseï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | }else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "falseï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ ¹æ®åºç¡èµæID æ¥æ¾è®°å½ |
| | | [Route("Gy_WorkStationBill/cx")] |
| | | [HttpGet] |