SMMNA01800.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. (SMMNA01800.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. function finit() {
  7. ipt_execdd.value = getCurrentDate();//헌혈년월세팅
  8. ipt_stockdd.value = getCurrentDate();//헌혈증서재고량세팅
  9. //현재매수세팅
  10. //뭔지 모르겠음..
  11. fQuery();
  12. //레포트미리보기생성
  13. makeReportPreview(0,98,1195,650);
  14. //레포트출력
  15. freport();
  16. }
  17. //--------------------------------------
  18. // 출력을 위한 기본 정보 설정
  19. //--------------------------------------
  20. function fQuery() {
  21. //뭔지 모르겠음..
  22. submit("TRMNA01801");
  23. }
  24. //-------------------------------------------
  25. // 리포트 출력
  26. //-------------------------------------------
  27. function freport(){
  28. var xPathData = "/root/main/reportinfo/reportlist";
  29. var temp = "";
  30. temp = model.getValue("/root/main/cond/execdd");
  31. temp = temp.substr(0,4) + "년 " + temp.substr(4,2) + "월 분";
  32. model.setValue(xPathData + "/execyymm1", temp ); // 2007년 12월 분
  33. temp = model.getValue("/root/temp/stockdd");
  34. temp = temp.substr(0,4) + " 년 " + temp.substr(4,2) + " 월 " + temp.substr(6,2) + " 일 현재 총" + model.getValue("/root/temp/stockcnt") + " 매 ";
  35. model.setValue(xPathData + "/stockmsg",temp ); // 2007년 12월01일 현재 10 매
  36. model.setValue(xPathData + "/instcd", getUserInfo("dutplceinstcd") ); // 병원코드
  37. temp = model.getValue("/root/main/cond/execdd");
  38. temp = temp.substr(0,4) + "0101";
  39. model.setValue(xPathData + "/execddfr", temp ); // 처음일자
  40. temp = model.getValue("/root/main/cond/execdd");
  41. temp = temp.substr(0,6) + "31";
  42. model.setValue(xPathData + "/execddto", temp ); // 마지막일자
  43. temp = model.getValue("/root/main/cond/execdd");
  44. temp = temp.substr(0,6);
  45. model.setValue(xPathData + "/execyymm2", temp ); // 년월
  46. model.removenode("/root/send/report");
  47. model.makeNode("/root/send/report");
  48. model.copyNode("/root/send/report","/root/main/reportinfo/reportlist");
  49. //노드에값 세팅후 rex파일 호출
  50. exeReportPreview("RPMNA01800", "XML", "/root/send/report");
  51. }
  52. /*
  53. /**
  54. * @group :
  55. * @ver : 2007.07.11
  56. * @by : 신혁춘
  57. * @---------------------------------------------------
  58. * @type : function
  59. * @access : public
  60. * @desc : com_wardcd 내용 검색
  61. * @param :
  62. * @return :
  63. * @---------------------------------------------------
  64. * /
  65. function fwardcd(){
  66. model.removenode("/root/send");
  67. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  68. submit("TRMNW06301");
  69. }
  70. /**
  71. * @group :
  72. * @ver : 2007.07.11
  73. * @by : 신혁춘
  74. * @---------------------------------------------------
  75. * @type : function
  76. * @access : public
  77. * @desc : com_roomcd 내용 검색
  78. * @param :
  79. * @return :
  80. * @---------------------------------------------------
  81. * /
  82. function froomcd(){
  83. model.removenode("/root/send");
  84. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  85. if(submit("TRMNW06302")){
  86. model.removenode("/root/hngnms");
  87. com_roomcd.refresh();
  88. com_roomcd.value = ""
  89. com_hngnm.refresh();
  90. com_hngnm.value = ""
  91. }
  92. }
  93. /**
  94. * @group :
  95. * @ver : 2007.07.11
  96. * @by : 신혁춘
  97. * @---------------------------------------------------
  98. * @type : function
  99. * @access : public
  100. * @desc : com_hngnm 내용 검색
  101. * @param :
  102. * @return :
  103. * @---------------------------------------------------
  104. * /
  105. function fhngnm(){
  106. model.removenode("/root/send");
  107. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  108. model.makeValue("/root/send/roomcd", model.getValue("/root/main/cond/roomcd"));
  109. model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
  110. if(submit("TRMNW06303")){
  111. com_hngnm.refresh();
  112. com_hngnm.value = ""
  113. }
  114. }
  115. */