SPAHR00810_공단건진재검.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <pkglst/>
  12. <reexpkglst/>
  13. </reexinfo>
  14. </main>
  15. <send>
  16. <healexamflag/>
  17. <healexamdetlflag/>
  18. <pid/>
  19. <rsrvno/>
  20. <rsrvdd/>
  21. </send>
  22. <save>
  23. </save>
  24. <temp>
  25. </temp>
  26. <hidden>
  27. <count/>
  28. </hidden>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. fSchPkgList();
  39. ]]>
  40. </script>
  41. <submission id="TRAHR04010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reexinfo"/>
  42. <submission id="TXAHR04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/count"/>
  43. </model>
  44. <script type="javascript">
  45. <![CDATA[
  46. //건진 재검 패키지 조회 및 해당 대상자의 재검대상 패키지 조회
  47. function fSchPkgList(){
  48. model.makeValue("/root/send/healexamflag", model.getValue("/root/temp/healexamflag"));
  49. model.makeValue("/root/send/healexamdetlflag", model.getValue("/root/temp/healexamdetlflag"));
  50. model.makeValue("/root/send/pid", model.getValue("/root/temp/pid"));
  51. model.makeValue("/root/send/rsrvno", model.getValue("/root/temp/rsrvno"));
  52. model.makeValue("/root/send/rsrvdd", model.getValue("/root/temp/rsrvdd"));
  53. submit("TRAHR04010");
  54. }
  55. function fChkSaveReexPkg(){
  56. model.makeNode("/root/hidden/count");
  57. if(messageBox("재검정보를 ", "Q002") == 6){
  58. model.makeValue("/root/send/save/healexamflag", model.getValue("/root/send/healexamflag"));
  59. model.makeValue("/root/send/save/healexamdetlflag", model.getValue("/root/send/healexamdetlflag"));
  60. model.makeValue("/root/send/save/rsrvdd", model.getValue("/root/send/rsrvdd"));
  61. model.makeValue("/root/send/save/rsrvno", model.getValue("/root/send/rsrvno"));
  62. model.makeValue("/root/send/save/pid", model.getValue("/root/send/pid"));
  63. model.makeValue("/root/send/save/savegrid", grd_reexpkglst.getUpdateData());
  64. if(submit("TXAHR04004")){
  65. grd_gnrlpkglst.rebuild();
  66. grd_reexpkglst.rebuild();
  67. submit("TRAHR04010");
  68. }
  69. }
  70. }
  71. ]]>
  72. </script>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="600" pageheight="500">
  75. <datagrid id="grd_gnrlpkglst" nodeset="/root/main/reexinfo/pkglst" caption="코드^패키지명" colsep="^" colwidth="85, 170" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:46px; width:275px; height:414px; ">
  76. <col ref="pkgcd"/>
  77. <col ref="pkgnm"/>
  78. <script type="javascript" ev:event="ondblclick">
  79. <![CDATA[
  80. var pkgcd = grd_gnrlpkglst.valueMatrix(grd_gnrlpkglst.row, grd_gnrlpkglst.colRef("pkgcd"));
  81. var pkgnm = grd_gnrlpkglst.valueMatrix(grd_gnrlpkglst.row, grd_gnrlpkglst.colRef("pkgnm"));
  82. for(var i=grd_reexpkglst.fixedRows; i<grd_reexpkglst.rows; i++){
  83. if(pkgcd == grd_reexpkglst.valueMatrix(i, grd_reexpkglst.colRef("reexamcdlst"))){
  84. alert("선택된 패키지는 " + i + "번째 행에 존재합니다.");
  85. return;
  86. }
  87. }
  88. grd_reexpkglst.addRow();
  89. grd_reexpkglst.valueMatrix(grd_reexpkglst.row, grd_reexpkglst.colRef("reexamcdlst")) = pkgcd;
  90. grd_reexpkglst.valueMatrix(grd_reexpkglst.row, grd_reexpkglst.colRef("reexamnm")) = pkgnm;
  91. grd_reexpkglst.rowStatus(grd_reexpkglst.row) = 1;
  92. model.refresh();
  93. ]]>
  94. </script>
  95. </datagrid>
  96. <line id="line1" class="line_1" style="x1:5px; y1:40px; x2:280px; y2:40px; "/>
  97. <caption id="caption1" class="tit_2" style="left:5px; top:25px; width:159px; height:13px; ">건진 패키지</caption>
  98. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:13px; ">건진 재검 패키지</caption>
  99. <caption id="caption2" class="tit_2" style="left:285px; top:25px; width:159px; height:13px; ">재검대상 패키지</caption>
  100. <datagrid id="grd_reexpkglst" nodeset="/root/main/reexinfo/reexpkglst" caption="순번^코드^패키지명" colsep="^" colwidth="36, 85, 170" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:285px; top:46px; width:300px; height:414px; ">
  101. <col ref="reexseq" visibility="hidden"/>
  102. <col ref="reexamcdlst"/>
  103. <col ref="reexamnm"/>
  104. </datagrid>
  105. <line id="line3" class="line_1" style="x1:285px; y1:40px; x2:585px; y2:40px; "/>
  106. <button id="save_recinfo" class="btn2_letter2" style="left:543px; top:465px; width:42px; height:19px; ">
  107. <caption>저장</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. fChkSaveReexPkg();
  111. ]]>
  112. </script>
  113. </button>
  114. <button id="btn_grdpkgdel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:532px; top:20px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  115. <caption>행삭제</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. deleteSelectedRows(grd_reexpkglst, true);
  119. ]]>
  120. </script>
  121. </button>
  122. </xhtml:body>
  123. </xhtml:html>