| | |
| | | Date dates = new Date(); |
| | | final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | String jcsqdh = orderService.getHuoQuJcsqdh(order.getCardId()); |
| | | List<String> jcsqdh = orderService.getHuoQuJcsqdh(order.getCardId()); |
| | | |
| | | String jysqdh = orderService.getHuoQuJysqdh(order.getCardId()); |
| | | List<String> jysqdh = orderService.getHuoQuJysqdh(order.getCardId()); |
| | | |
| | | |
| | | String zlsqdh = orderService.getHuoQuZlsqdh(order.getCardId()); |
| | | List<String> zlsqdh = orderService.getHuoQuZlsqdh(order.getCardId()); |
| | | |
| | | //2.1.6.5 作废门诊检查申请 |
| | | if (null != jcsqdh) { |
| | | AjaxResult result = controller.Outpindelexamapply(order.getCardId(), "00029", jcsqdh); |
| | | String result1 = getAjaxResult(result); |
| | | JSONObject object = getJSONObject(result1); |
| | | String code = object.getStr("ResultCode"); |
| | | if (code.equals("0")) { |
| | | orderService.delHuoQuJcsqdh(order.getCardId()); |
| | | } else { |
| | | return false; |
| | | 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.delHuoQuJcsqdh(order.getCardId()); |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | JSONObject object1 = null; |
| | | String code1 = null; |
| | | |
| | | if (null != jysqdh) { |
| | | ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", jysqdh); |
| | | result2 = getAjaxResult(ajaxResult); |
| | | object1 = getJSONObject(result2); |
| | | code1 = object1.getStr("ResultCode"); |
| | | if (code1.equals("0")) { |
| | | orderService.delHuoQuJysqdh(order.getCardId()); |
| | | } else { |
| | | return false; |
| | | 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.delHuoQuJysqdh(order.getCardId()); |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //2.1.6.9 作废门诊治疗处置申请 |
| | | if (null != zlsqdh) { |
| | | ajaxResult = controller.Outpintdelreatapply(order.getCardId(), "00029", zlsqdh); |
| | | result2 = getAjaxResult(ajaxResult); |
| | | object1 = getJSONObject(result2); |
| | | code1 = object1.getStr("ResultCode"); |
| | | if (!code1.equals("0")) { |
| | | return false; |
| | | if (null != zlsqdh && zlsqdh.size()>0) { |
| | | for (String s : zlsqdh) { |
| | | ajaxResult = controller.Outpintdelreatapply(order.getCardId(), "00029", s); |
| | | result2 = getAjaxResult(ajaxResult); |
| | | object1 = getJSONObject(result2); |
| | | code1 = object1.getStr("ResultCode"); |
| | | if (!code1.equals("0")) { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | //2.1.3 门诊医生取消接诊 |