SMMQR02600.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * @---------------------------------------------------
  3. * @desc : HWCI 비예측기타 초기화
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize(){
  9. var screenID = parent.window.javascript.getScreenID();
  10. //alert(screenID);
  11. if(screenID == "SMMQR01100"){
  12. grp_main.attribute("width") = "1192";
  13. grp_hwci.attribute("width") = "1191";
  14. line1.attribute("x2") = "1190";
  15. line2.attribute("x2") = "1190";
  16. line3.attribute("x2") = "1190";
  17. line4.attribute("x2") = "1190";
  18. line8.attribute("x2") = "1190";
  19. tar_detlcnts.attribute("width") = "780";
  20. btn_hist.attribute("left") = "1100";
  21. }
  22. else if(screenID == "SMMQR02300"){
  23. btn_patid.disabled = true;
  24. }
  25. zbcfGetCodeList(new Array("M0450", "M0498", "M0452"),
  26. new Array("/root/init/anstkindcd", "/root/init/resncd", "/root/init/cpryncd"),
  27. true);
  28. model.refresh();
  29. }
  30. /**
  31. * @---------------------------------------------------
  32. * @desc : HWCI 비예측사망 - 환자정보조회
  33. * @param :
  34. * @return :
  35. * @---------------------------------------------------
  36. */
  37. function fGetPatInfo(pid, indd, cretno, seqno, inptno){
  38. //조회에 필요한 조건들을 send에복사
  39. model.setValue("/root/send/patinfo/pid", pid);
  40. model.setValue("/root/send/patinfo/indd", indd);
  41. model.setValue("/root/send/patinfo/cretno", cretno);
  42. model.setValue("/root/send/patinfo/seqno", seqno);
  43. model.setValue("/root/send/patinfo/inptno", inptno);
  44. model.setValue("/root/send/patinfo/kind", model.getValue("/root/main/cond/kind"));
  45. //기존 데이터를 삭제
  46. model.removenode("/root/tmp/cond/patinfO");
  47. model.resetInstanceNode("/root/main/cond");
  48. model.removeNodeset("/root/main/valuColleague/row");
  49. if(inptno != ""){ //입력된 내용을 조회
  50. submit("TRMQR01201");
  51. copyNodeType("/root/main/cond", "/root/tmp/cond/patinfo", "replace");
  52. submit("TRMQR02600");
  53. }
  54. //다음조회를 위해서 F로 다시 setting
  55. model.makeValue("/root/main/cond/kind", "F");
  56. model.refresh();
  57. SetVisible("tar_hwcietcresnetccnts", "/root/main/cond/hwcietcresncd", "06");
  58. }
  59. /**
  60. * @---------------------------------------------------
  61. * @desc : HWCI 비예측사망 - 저장을 위해 부모창으로 Node복사
  62. * @param :
  63. * @return :
  64. * @---------------------------------------------------
  65. */
  66. function fSetDetlnfo(){
  67. if(!isRequiredControls("opt_pid")){
  68. return false;
  69. }
  70. copyNodeType("/root/send/recinfo", "/root/main/cond", "replace", parent);
  71. parent.model.makeValue("/root/send/recinfo/valucolleague", getGridUpdateData(grd_valu));
  72. return true;
  73. }