SPAHR05010_코드조회(재검사항목).xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <excucdlist>
  11. <item>
  12. <check/>
  13. <cdid/>
  14. <cdnm/>
  15. </item>
  16. </excucdlist>
  17. </main>
  18. <send>
  19. <srchexcucd/>
  20. <globalinstance>
  21. <instance1/>
  22. </globalinstance>
  23. <tmplcdflag>B</tmplcdflag>
  24. </send>
  25. <hidden/>
  26. <init>
  27. <degnitemlevlcd/>
  28. </init>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. if(submit("TRAHR05011")) {
  34. var vFlag = model.getValue("/root/init/degnitemlevlcd").split("^");
  35. if(vFlag.length > 0) {
  36. for(var i=1; i <= grd_excucd.rows; i++) {
  37. var vExcucd = grd_excucd.valueMatrix( i , grd_excucd.colRef("cdid"));
  38. for(var j=0; j < vFlag.length; j++) {
  39. if(vExcucd == vFlag[j]) {
  40. grd_excucd.valueMatrix( i , grd_excucd.colRef("check")) = "Y";
  41. }
  42. }
  43. }
  44. }
  45. }
  46. ]]>
  47. </script>
  48. <submission id="TRAHR05011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excucdlist"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. </xhtml:head>
  55. <xhtml:body pagewidth="535" pageheight="578" guideline="1,1194;2,576;1,517;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  56. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:550px; ">
  57. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  58. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  59. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색명 :</caption>
  60. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  61. <input id="ipt_excucd" ref="/root/send/srchexcucd" class="input_search" style="left:109px; top:8px; width:316px; height:19px; ">
  62. <script type="javascript" ev:event="onkeyup">
  63. <![CDATA[
  64. inputEnterKey("btn_sea", "DOMActivate");
  65. ]]>
  66. </script>
  67. </input>
  68. <button id="btn_sea" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. submit("TRAHR05011");
  73. model.setValue("/root/send/srchexcucd", "");
  74. model.refresh();
  75. model.setFocus("ipt_excucd");
  76. ]]>
  77. </script>
  78. </button>
  79. </group>
  80. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">코드조회</caption>
  81. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  82. <datagrid id="grd_excucd" nodeset="/root/main/excucdlist/item" caption="선택^코드^코드명칭" colsep="^" colwidth="58, 124, 316" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:480px; ">
  83. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  84. <col ref="cdid"/>
  85. <col ref="cdnm"/>
  86. </datagrid>
  87. </group>
  88. <group id="group1" scroll="auto" style="left:0px; top:550px; width:518px; height:27px; ">
  89. <button id="btn_cfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  90. <caption>확인</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. if ( grd_excucd.row == 0 ) return;
  94. var openerid = opener.model.getValue("/root/send/windowloadinstance");
  95. var check = "";
  96. var loopcnt = 0;
  97. var loop = grd_excucd.rows - grd_excucd.fixedRows;
  98. var str_temp = "";
  99. var str_temp2 = "";
  100. var str_check = "";
  101. for( var i = 1 ; i <= loop ; i++ ) {
  102. check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
  103. if ( check == "Y" ) {
  104. str_temp += model.getValue("/root/main/excucdlist/item["+i+"]/cdid");
  105. str_temp2 += model.getValue("/root/main/excucdlist/item["+i+"]/cdnm");
  106. str_temp = str_temp + "^"
  107. str_temp2 = str_temp2 + "^"
  108. }
  109. loopcnt++;
  110. }
  111. if ( loopcnt == 0 ) {
  112. messageBox("코드를 선택해 주십시오.","I999");
  113. return "0";
  114. }
  115. /*
  116. switch (openerid) {
  117. case "SMAHA04610" : // 재검레터 대상자관리
  118. opener.model.setValue("/root/main/vsltlist/vsltinfo/retestitem", str_temp);
  119. break;
  120. }
  121. */
  122. opener.model.setValue("/root/main/vsltlist/vsltinfo/retestitem", str_temp);
  123. opener.model.refresh();
  124. window.close();
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_cls" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  129. <caption>닫기</caption>
  130. <close ev:event="DOMActivate"/>
  131. </button>
  132. <button id="button1" class="btn4_letter2" visibility="hidden" style="left:340px; top:4px; width:56px; height:22px; ">
  133. <caption>취소</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. window.close();
  137. ]]>
  138. </script>
  139. </button>
  140. </group>
  141. </xhtml:body>
  142. </xhtml:html>