SPAYA03800.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /********************************************************************************************************************************************************
  2. * 2008.01.02 dhkim 최초작성
  3. * SPAYA03800_개별환자정보수정.xrw 에서 사용하는 스크립트
  4. *
  5. ********************************************************************************************************************************************************/
  6. var xPatPath = '/root/main/indipatinfo';
  7. var xReqPath = '/root/send/reqdata';
  8. var xSavePath = '/root/send/savedata';
  9. /**
  10. * 2008.01.02 dhkim
  11. * 화면을 초기화한다.
  12. */
  13. function fInit(){
  14. model.removeNodeset(xSavePath);
  15. model.removeNodeset(xPatPath);
  16. model.removeNodeset(xReqPath);
  17. zbcfGetCodeList(new Array("P0157"), new Array("/root/init/P0157list"));//공통코드 로드(P0157 :종교)
  18. }
  19. /**
  20. * 2008.01.02 dhkim
  21. * 환자메인정보에서 선택한 환자정보를 조회한다.
  22. */
  23. function fSearch(){
  24. var pid = opener.javascript.getParameter("pid");
  25. model.removeNodeset(xPatPath);
  26. model.removeNodeset(xReqPath);
  27. model.makeValue(xReqPath + '/pid', pid);
  28. if(!submit('TRAYA03801')){
  29. messageBox('존재하지 않는 환자번호', 'E008');
  30. model.close();
  31. }
  32. model.refresh();
  33. }
  34. /**
  35. * 2008.01.02 dhkim
  36. * 종교, 세례명, 성당정보를 수정한다.
  37. */
  38. function fUpdate(){
  39. model.removeNodeset(xSavePath);
  40. model.makeNode(xSavePath);
  41. model.copyNode(xSavePath, xPatPath);
  42. if(submit('TXAYA03801')){
  43. messageBox('저장이', 'I002');
  44. model.close();
  45. }
  46. }