SPAHR00800_특수건진재검.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>재검대상팝업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reexinfo>
  11. <fstpkglst/>
  12. <reexpkglst/>
  13. </reexinfo>
  14. <reexpkg>
  15. <secpkglst>
  16. <item/>
  17. </secpkglst>
  18. </reexpkg>
  19. </main>
  20. <send>
  21. <healexamflag/>
  22. <healexamdetlflag/>
  23. <pid/>
  24. <rsrvno/>
  25. <rsrvdd/>
  26. </send>
  27. <save>
  28. </save>
  29. <temp>
  30. </temp>
  31. <hidden>
  32. <count/>
  33. </hidden>
  34. </root>
  35. </instance>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. fSchPkgList();
  44. ]]>
  45. </script>
  46. <submission id="TRAHR04007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reexinfo"/>
  47. <submission id="TRAHR04008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reexpkg/secpkglst"/>
  48. <submission id="TXAHR04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/count"/>
  49. </model>
  50. <script type="javascript">
  51. <![CDATA[
  52. //특수건진 재검 패키지 조회 및 해당 대상자의 재검대상 패키지 조회
  53. function fSchPkgList(){
  54. model.makeValue("/root/send/healexamflag", model.getValue("/root/temp/healexamflag"));
  55. model.makeValue("/root/send/healexamdetlflag", model.getValue("/root/temp/healexamdetlflag"));
  56. model.makeValue("/root/send/pid", model.getValue("/root/temp/pid"));
  57. model.makeValue("/root/send/rsrvno", model.getValue("/root/temp/rsrvno"));
  58. model.makeValue("/root/send/rsrvdd", model.getValue("/root/temp/rsrvdd"));
  59. submit("TRAHR04007");
  60. }
  61. function fSchSecPkgList(){
  62. grd_spclpkglst2.rebuild();
  63. model.makeValue("/root/send/save/pkgcd", grd_spclpkglst.valueMatrix(grd_spclpkglst.row, grd_spclpkglst.colRef("pkgcd")));
  64. submit("TRAHR04008");
  65. }
  66. function fChkSaveReexPkg(){
  67. model.makeNode("/root/hidden/count");
  68. if(messageBox("재검정보를 ", "Q002") == 6){
  69. model.makeValue("/root/send/save/healexamflag", model.getValue("/root/send/healexamflag"));
  70. model.makeValue("/root/send/save/healexamdetlflag", model.getValue("/root/send/healexamdetlflag"));
  71. model.makeValue("/root/send/save/rsrvdd", model.getValue("/root/send/rsrvdd"));
  72. model.makeValue("/root/send/save/rsrvno", model.getValue("/root/send/rsrvno"));
  73. model.makeValue("/root/send/save/pid", model.getValue("/root/send/pid"));
  74. model.makeValue("/root/send/save/savegrid", grd_reexpkglst.getUpdateData());
  75. if(submit("TXAHR04004")){
  76. grd_spclpkglst.rebuild();
  77. grd_spclpkglst2.rebuild();
  78. grd_reexpkglst.rebuild();
  79. submit("TRAHR04007");
  80. }
  81. }
  82. }
  83. ]]>
  84. </script>
  85. </xhtml:head>
  86. <xhtml:body pagewidth="890" pageheight="500">
  87. <datagrid id="grd_spclpkglst" nodeset="/root/main/reexinfo/fstpkglst" caption="코드^패키지명" colsep="^" colwidth="85, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:46px; width:285px; height:414px; ">
  88. <col ref="pkgcd"/>
  89. <col ref="pkgnm"/>
  90. <script type="javascript" ev:event="ondblclick">
  91. <![CDATA[
  92. fSchSecPkgList();
  93. ]]>
  94. </script>
  95. </datagrid>
  96. <caption id="caption19" class="tit_2" style="left:295px; top:25px; width:159px; height:13px; ">특수건진 2차패키지</caption>
  97. <line id="line1" class="line_1" style="x1:5px; y1:40px; x2:290px; y2:40px; "/>
  98. <datagrid id="grd_spclpkglst2" nodeset="/root/main/reexpkg/secpkglst/item" caption="코드^패키지명" colsep="^" colwidth="85, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:295px; top:46px; width:285px; height:414px; ">
  99. <col ref="pkgcd"/>
  100. <col ref="pkgnm"/>
  101. <script type="javascript" ev:event="ondblclick">
  102. <![CDATA[
  103. var pkgcd = grd_spclpkglst2.valueMatrix(grd_spclpkglst2.row, grd_spclpkglst2.colRef("pkgcd"));
  104. var pkgnm = grd_spclpkglst2.valueMatrix(grd_spclpkglst2.row, grd_spclpkglst2.colRef("pkgnm"));
  105. for(var i=grd_reexpkglst.fixedRows; i<grd_reexpkglst.rows; i++){
  106. if(pkgcd == grd_reexpkglst.valueMatrix(i, grd_reexpkglst.colRef("reexamcdlst"))){
  107. alert("선택된 패키지는 " + i + "번째 행에 존재합니다.");
  108. return;
  109. }
  110. }
  111. grd_reexpkglst.addRow();
  112. grd_reexpkglst.valueMatrix(grd_reexpkglst.row, grd_reexpkglst.colRef("reexamcdlst")) = pkgcd;
  113. grd_reexpkglst.valueMatrix(grd_reexpkglst.row, grd_reexpkglst.colRef("reexamnm")) = pkgnm;
  114. grd_reexpkglst.rowStatus(grd_reexpkglst.row) = 1;
  115. model.refresh();
  116. ]]>
  117. </script>
  118. </datagrid>
  119. <caption id="caption1" class="tit_2" style="left:5px; top:25px; width:159px; height:13px; ">특수건진 1차패키지</caption>
  120. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:14px; ">
  121. <![CDATA[특수건진 재검 패키지]]>
  122. </caption>
  123. <caption id="caption2" class="tit_2" style="left:585px; top:25px; width:159px; height:13px; ">재검대상 패키지</caption>
  124. <datagrid id="grd_reexpkglst" nodeset="/root/main/reexinfo/reexpkglst" caption="순번^코드^패키지명" colsep="^" colwidth="36, 85, 180" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:585px; top:46px; width:285px; height:414px; ">
  125. <col ref="reexseq" visibility="hidden"/>
  126. <col ref="reexamcdlst"/>
  127. <col ref="reexamnm"/>
  128. </datagrid>
  129. <line id="line2" class="line_1" style="x1:295px; y1:40px; x2:580px; y2:40px; "/>
  130. <line id="line3" class="line_1" style="x1:585px; y1:40px; x2:870px; y2:40px; "/>
  131. <button id="save_recinfo" class="btn2_letter2" style="left:825px; top:465px; width:42px; height:19px; ">
  132. <caption>저장</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. fChkSaveReexPkg();
  136. ]]>
  137. </script>
  138. </button>
  139. <button id="btn_grdpkgdel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:817px; top:20px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  140. <caption>행삭제</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. deleteSelectedRows(grd_reexpkglst, true);
  144. ]]>
  145. </script>
  146. </button>
  147. </xhtml:body>
  148. </xhtml:html>