SPAYA03900.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /************************************************************************************************************************
  2. * @description : SPAYA03900_개별환자추가정보.xrw 에서 사용하는 스크립트
  3. * @creat : 2008.01.04
  4. * @author : dhkim 최초작성
  5. ************************************************************************************************************************/
  6. var xReqPath = '/root/send/reqdata';
  7. var xPatPath = '/root/main/patinfo';
  8. var pid = opener.javascript.getParameter('pid'); //10254267
  9. var indd = opener.javascript.getParameter('indd'); //20071226
  10. var cretno = opener.javascript.getParameter('cretno'); //1
  11. /*
  12. * 초기화.
  13. */
  14. function fInit(){
  15. model.removeNode(xReqPath);
  16. model.removeNode(xPatPath);
  17. model.makeNode(xReqPath);
  18. model.makeNode(xPatPath);
  19. }
  20. /*
  21. * 환자추가정보를 조회한다.
  22. */
  23. function fSearch(){
  24. /*
  25. pid = '18708179';
  26. indd = '20080105';
  27. cretno = 5747; //운영 .. 오세도
  28. */
  29. if(pid == '' || indd == '' || cretno == ''){
  30. messageBox('등록번호가 없어 조회', 'E001');
  31. model.close();
  32. }
  33. model.removeNode(xReqPath);
  34. model.makeNode(xReqPath);
  35. model.makeValue(xReqPath + '/pid', pid);
  36. model.makeValue(xReqPath + '/indd', indd);
  37. model.makeValue(xReqPath + '/cretno', cretno);
  38. if(!submit('TRAYA03901')){
  39. messageBox('조회를', 'E009');
  40. return false;
  41. }
  42. }