SMMQR01100.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * @---------------------------------------------------
  3. * @desc : HWCI 비예측 공통 초기화
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize(){
  9. ipt_fromdd.value = getCurrentDate().substring(0,6).concat("01");
  10. ipt_todd.value = getCurrentDate();
  11. iviewer_detl.attribute("border-style") = "hidden";
  12. switch_detl.attribute("border-style") = "hidden";
  13. zbcfGetCodeList(new Array("M0467"),
  14. new Array("/root/init/hwcikind"),
  15. true);
  16. switch_detl.visible = true;
  17. model.toggle("case1");
  18. model.removeNodeset("/root/main/cond/dethlist/patlist");
  19. model.refresh();
  20. cmb_hwcikind.select(0);
  21. //iviewer_detl.src = "SMMQR01200_HWCI_비예측사망.xrw" ;
  22. }
  23. /**
  24. * @---------------------------------------------------
  25. * @desc : HWCI 비예측 공통 - 좌측 리스트화면 조회
  26. * @param :
  27. * @return :
  28. * @---------------------------------------------------
  29. */
  30. function fGetPatList(){
  31. var srchKind = model.getValue("/root/main/cond/srchkind");
  32. var fromdd = model.getValue("/root/main/cond/fromdd");
  33. var todd = model.getValue("/root/main/cond/todd");
  34. var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
  35. if(srchKind == ""){
  36. return;
  37. }
  38. if(ddInterval > 90){
  39. messageBox("검색 기간이", "E003", "");
  40. return;
  41. }
  42. model.setValue("/root/send/listinfo/srchkind", srchKind);
  43. model.setValue("/root/send/listinfo/fromdd" , fromdd);
  44. model.setValue("/root/send/listinfo/todd" , todd);
  45. model.resetInstanceNode("/root/main/cond/dethlist/patlist");
  46. submit("TRMQR01100");
  47. copyNodeType("/root/main/cond/dethlist", "/root/tmp/patinfo", "replace");
  48. model.resetInstanceNode("/root/send/listinfo");
  49. model.refresh();
  50. switch(srchKind){
  51. case "A" : grd_patlist.refresh();
  52. break;
  53. case "B" : grd_reinlist.refresh();
  54. break;
  55. case "C" : grd_reoprlist.refresh();
  56. break;
  57. case "D" : grd_reiculist.refresh();
  58. break;
  59. case "E" : grd_reER.refresh();
  60. break;
  61. }
  62. }