SPAHA00701_자동판정코드선택.xrw 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <autocdlist>
  11. <item>
  12. <check/>
  13. <testcd/>
  14. <testdesc/>
  15. <cjdgdesc/>
  16. </item>
  17. </autocdlist>
  18. </main>
  19. <send>
  20. <healexamdetlflag/>
  21. <pid/>
  22. <rsrvdd/>
  23. <rsrvno/>
  24. </send>
  25. <hidden/>
  26. <init/>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. if ( checkOpener() ) {
  32. model.setValue("/root/send/healexamdetlflag", "C");
  33. model.setValue("/root/send/pid",opener.model.getValue("/root/init/send/item2/pid"));
  34. model.setValue("/root/send/rsrvdd", opener.model.getValue("/root/send/srchrsrvdd"));
  35. model.setValue("/root/send/rsrvno", opener.model.getValue("/root/send/srchrsrvno"));
  36. submit("TRAHA01200");
  37. } else {
  38. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  39. }
  40. ]]>
  41. </script>
  42. <submission id="TRAHA01200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/autocdlist"/>
  43. </model>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  46. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. </xhtml:head>
  49. <xhtml:body pagewidth="620" pageheight="578" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  50. <group id="group3" scroll="auto" style="left:0px; top:0px; width:600px; height:550px; ">
  51. <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:95px; height:13px; ">코드조회</caption>
  52. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:600px; y2:20px; "/>
  53. <datagrid id="grd_basecd" nodeset="/root/main/autocdlist/item" autoresize="true" caption="선택^코드^검사소견^판정내용 및 소견" colsep="^" colwidth="40, 75, 135, 344" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:600px; height:520px; ">
  54. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  55. <col ref="testcd"/>
  56. <col ref="testdesc"/>
  57. <col ref="cjdgdesc"/>
  58. </datagrid>
  59. </group>
  60. <group id="group1" scroll="auto" style="left:0px; top:550px; width:600px; height:27px; ">
  61. <button id="btn_cfm" class="btn4_letter2" style="left:482px; top:5px; width:56px; height:22px; ">
  62. <caption>확인</caption>
  63. <script type="javascript" ev:event="DOMActivate">
  64. <![CDATA[
  65. if ( grd_basecd.row == 0 ) return;
  66. var openerid = opener.model.getValue("/root/send/windowloadinstance");
  67. var check = "";
  68. var loopcnt = 0;
  69. var loop = grd_basecd.rows - grd_basecd.fixedRows;
  70. var str_temp = "";
  71. var str_total = "";
  72. for( var i = 1 ; i <= loop ; i++ ) {
  73. check = model.getValue("/root/main/autocdlist/item[" + i + "]/check");
  74. if ( check == "Y" ) {
  75. str_temp += model.getValue("/root/main/autocdlist/item["+i+"]/cjdgdesc");
  76. if ( openerid == "SMAHR00500" ) {
  77. str_temp = str_temp+"\n";
  78. }
  79. }
  80. loopcnt++;
  81. }
  82. str_total = opener.model.getValue("/root/main/judgdetl/judginfo/item/hngjudgcnts")+"\n"+str_temp;
  83. if ( loopcnt == 0 ) {
  84. messageBox("코드를 선택해 주십시오.","I999");
  85. return "0";
  86. }
  87. opener.model.setValue("/root/main/judgdetl/judginfo/item/hngjudgcnts", str_total);
  88. opener.model.refresh();
  89. window.close();
  90. ]]>
  91. </script>
  92. </button>
  93. <button id="btn_cls" class="btn4_letter2" style="left:541px; top:5px; width:56px; height:22px; ">
  94. <caption>닫기</caption>
  95. <close ev:event="DOMActivate"/>
  96. </button>
  97. </group>
  98. </xhtml:body>
  99. </xhtml:html>