| | |
| | | |
| | | List<String> cfhs = cfService.getCfBlhs(order.getCardId(),bldh); |
| | | |
| | | //2.1.6.5 作废门诊检查申请 |
| | | if (null != jcsqdh && jcsqdh.size()>0) { |
| | | for (String s : jcsqdh) { |
| | | AjaxResult result = controller.Outpindelexamapply(order.getCardId(), "00029", s); |
| | | String result1 = getAjaxResult(result); |
| | | JSONObject object = getJSONObject(result1); |
| | | String code = object.getStr("ResultCode"); |
| | | if (code.equals("0")) { |
| | | orderService.delHuoQuBlJcsqdh(order.getCardId(),bldh); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | //2.1.6.3 作废门诊检验申请 |
| | | |
| | | AjaxResult ajaxResult = null; |
| | | String result2 = null; |
| | | JSONObject object1 = null; |
| | | String code1 = null; |
| | | |
| | | if (null != jysqdh && jysqdh.size()>0) { |
| | | for (String s : jysqdh) { |
| | | ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", s); |
| | | result2 = getAjaxResult(ajaxResult); |
| | | object1 = getJSONObject(result2); |
| | | code1 = object1.getStr("ResultCode"); |
| | | if (code1.equals("0")) { |
| | | orderService.delHuoQuBlJysqdh(order.getCardId(),bldh); |
| | | if (lisApiMethod.isUseLisAndPacsRegister(order)) { |
| | | TjCustomer customer1 = customerService.getById(order.getUserId()); |
| | | // 作废检查申请 |
| | | if (jcsqdh != null && !jcsqdh.isEmpty()){ |
| | | for (String sqdh : jcsqdh) { |
| | | AjaxResult cancelPacsAjaxResult = pacsApiMethodService.updatePacsApply(sqdh, order.getCardId(), customer1.getCusName()); |
| | | String result = cancelPacsAjaxResult.get("data").toString(); |
| | | JSONObject object = JSONUtil.parseObj(result); |
| | | String code = object.getStr("ResultCode"); |
| | | if(code.equals("1")){ |
| | | orderService.delHuoQuBlJcsqdh(order.getCardId(),bldh); |
| | | } |
| | | } |
| | | } |
| | | // 作废检验申请 |
| | | if (jysqdh != null && !jysqdh.isEmpty()){ |
| | | for (String sqdh : jysqdh) { |
| | | AjaxResult cancelLisAjaxResult = lisApiMethod.cancel(sqdh, order.getCardId(), customer1.getCusName()); |
| | | String result = cancelLisAjaxResult.get("data").toString(); |
| | | JSONObject object = JSONUtil.parseObj(result); |
| | | String code= object.getStr("ResultCode"); |
| | | if(code.equals("1")){ |
| | | orderService.delHuoQuBlJysqdh(order.getCardId(),bldh); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }else { |
| | | //2.1.6.5 作废门诊检查申请 |
| | | if (null != jcsqdh && jcsqdh.size()>0) { |
| | | for (String s : jcsqdh) { |
| | | AjaxResult result = controller.Outpindelexamapply(order.getCardId(), "00029", s); |
| | | String result1 = getAjaxResult(result); |
| | | JSONObject object = getJSONObject(result1); |
| | | String code = object.getStr("ResultCode"); |
| | | if (code.equals("0")) { |
| | | orderService.delHuoQuBlJcsqdh(order.getCardId(),bldh); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //2.1.6.3 作废门诊检验申请 |
| | | if (null != jysqdh && jysqdh.size()>0) { |
| | | for (String s : jysqdh) { |
| | | ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", s); |
| | | result2 = getAjaxResult(ajaxResult); |
| | | object1 = getJSONObject(result2); |
| | | code1 = object1.getStr("ResultCode"); |
| | | if (code1.equals("0")) { |
| | | orderService.delHuoQuBlJysqdh(order.getCardId(),bldh); |
| | | } |
| | | } |
| | | } |
| | | } |