SMMQR01300.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * @---------------------------------------------------
  3. * @desc : HWCI 비예측 재입원 -초기화
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize(){
  9. zbcfGetCodeList(new Array("M0450", "M0455", "M0456", "M0452"),
  10. new Array("/root/init/anstkindcd", "/root/init/reinsympcd", "/root/init/reinresncd", "/root/init/cpryncd"),
  11. true);
  12. var screenID = parent.window.javascript.getScreenID();
  13. if(screenID == "SMMQR02300"){
  14. btn_rgst.visible = false;
  15. btn_del.visible = false;
  16. }
  17. model.refresh();
  18. }
  19. /**
  20. * @---------------------------------------------------
  21. * @desc : HWCI 비예측 재입원 - 환자정보조회
  22. * @param :
  23. * @return :
  24. * @---------------------------------------------------
  25. */
  26. function fGetPatInfo(pid, indd, cretno, seqno, inptno){
  27. //조회에 필요한 조건들을 send에복사
  28. model.setValue("/root/send/patinfo/pid", pid);
  29. model.setValue("/root/send/patinfo/indd", indd);
  30. model.setValue("/root/send/patinfo/cretno", cretno);
  31. model.setValue("/root/send/patinfo/seqno", seqno);
  32. model.setValue("/root/send/patinfo/inptno", inptno);
  33. model.setValue("/root/send/patinfo/kind", model.getValue("/root/main/cond/kind"));
  34. //기존 데이터를 삭제
  35. model.removenode("/root/tmp/cond/patinfo");
  36. model.resetInstanceNode("/root/main/cond");
  37. model.removeNodeset("/root/main/valuColleague/row");
  38. if(inptno != ""){ //입력된 내용을 조회
  39. submit("TRMQR01201");
  40. copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
  41. submit("TRMQR02600");
  42. }
  43. else{ //ocs data조회
  44. submit("TRMQR01200"); //환자 진료정보 불러오기
  45. copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
  46. }
  47. //다음조회를 위해서 B로 다시 setting
  48. model.makeValue("/root/main/cond/kind", "B");
  49. model.refresh();
  50. SetVisible("tar_reinsympetccnts", "/root/main/cond/reinsympcd", "16");
  51. SetVisible("tar_reinresnetccnts", "/root/main/cond/reinresncd", "11");
  52. }
  53. /**
  54. * @---------------------------------------------------
  55. * @desc : HWCI 비예측 재입원 - 저장을 위해 부모창으로 Node복사
  56. * @param :
  57. * @return :
  58. * @---------------------------------------------------
  59. */
  60. function fSetDetlnfo(){
  61. if(!isRequiredControls("opt_pid")){
  62. return false;
  63. }
  64. copyNodeType("/root/send/recinfo", "/root/main/cond", "replace", parent);
  65. parent.model.makeValue("/root/send/recinfo/valucolleague", getGridUpdateData(grd_valu));
  66. return true;
  67. }