SMPMC00910_신체감정환자조회.xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. <list1>
  11. <grdpatreflist/>
  12. </list1>
  13. </main>
  14. <send>
  15. <data1>
  16. <refcond/>
  17. <refcondnm/>
  18. <judgflag/>
  19. <rsltflag/>
  20. <pid/>
  21. </data1>
  22. </send>
  23. <init>
  24. <P0350list>
  25. <P0350>
  26. <cdnm/>
  27. <cdid/>
  28. </P0350>
  29. </P0350list>
  30. </init>
  31. <hidden>
  32. <uid>
  33. <myself/>
  34. <opener/>
  35. </uid>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. model.removeNodeset("/root/main/list1");
  42. model.makeNode("/root/main/list1");
  43. /*
  44. model.setValue("/root/send/data1/refcond","");
  45. model.setValue("/root/send/data1/refcondnm","");
  46. model.setValue("/root/send/data1/judgflag","");
  47. model.setValue("/root/send/data1/rsltflag","");
  48. model.setValue("/root/send/data1/pid","00036823");
  49. */
  50. if(submit("TRPMC00901")) {
  51. var patrefcnt = getNodesetCount("/root/hidden/rcv/list1/grdpatreflist");
  52. if (patrefcnt > 0) {
  53. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  54. } else {
  55. model.removeNodeset("/root/main/list1");
  56. model.makeNode("/root/main/list1");
  57. }
  58. }
  59. model.refresh();
  60. ]]>
  61. </script>
  62. <submission id="TRPMC00901" ref="/root/send/data1" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/rcv"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. </xhtml:head>
  69. <xhtml:body pagewidth="534" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  71. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:13px; ">환자조회</caption>
  72. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:517px; y2:20px; "/>
  73. <datagrid id="grd_patrefl" nodeset="/root/main/list1/grdpatreflist" caption="일련번호^접수일자^발송일자^환자번호^환자성명^감정구분^첨부자료구분" colwidth="80, 87, 87, 87, 87, 104, 104" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" navindex="7" style="left:0px; top:25px; width:517px; height:270px; ">
  74. <col ref="judgseqno" style="text-align:center; "/>
  75. <col ref="courtacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  76. <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  77. <col ref="pid"/>
  78. <col ref="hngnm"/>
  79. <col ref="judgflag" type="combo" disabled="true">
  80. <choices>
  81. <item>
  82. <label>신체감정</label>
  83. <value>1</value>
  84. </item>
  85. <item>
  86. <label>필름감정</label>
  87. <value>2</value>
  88. </item>
  89. <item>
  90. <label>진료기록감정</label>
  91. <value>3</value>
  92. </item>
  93. </choices>
  94. </col>
  95. <col ref="attdataflag"/>
  96. <script type="javascript" ev:event="ondblclick">
  97. <![CDATA[
  98. if ( checkOpener() ) {
  99. row = grd_patrefl.row;
  100. if( row > 0 ){
  101. if( getNodesetCount("/root/main/list1/grdpatreflist") > 0 ){
  102. opener.model.setValue("/root/send/data5/pid",grd_patrefl.valueMatrix(row,4));
  103. opener.model.setValue("/root/send/data5/judgseqno",grd_patrefl.valueMatrix(row,1));
  104. opener.model.makeNode("/root/main/popupendflag");
  105. opener.model.setValue("/root/main/popupendflag", "ok");
  106. opener.model.refresh();
  107. window.close();
  108. }
  109. }
  110. } else {
  111. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  112. }
  113. ]]>
  114. </script>
  115. <script type="javascript" ev:event="onkeypress">
  116. <![CDATA[
  117. if( event.keyCode == 13 ){
  118. btn_confirm.dispatch("DOMActivate");
  119. }
  120. ]]>
  121. </script>
  122. </datagrid>
  123. </group>
  124. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  125. <button id="btn_confirm" navindex="8" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  126. <caption>확인</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. if ( checkOpener() ) {
  130. row = grd_patrefl.row;
  131. opener.model.setValue("/root/main/popupendflag", "cancel");
  132. if( row > 0 ){
  133. if( getNodesetCount("/root/main/list1/grdpatreflist") > 0 ){
  134. opener.model.copyNode("/root/send/data5/pid",grd_patrefl.valueMatrix(row,4));
  135. opener.model.copyNode("/root/send/data5/judgseqno",grd_patrefl.valueMatrix(row,1));
  136. opener.model.makeNode("/root/main/popupendflag");
  137. opener.model.setValue("/root/main/popupendflag", "ok");
  138. }
  139. }else {
  140. messageBox("행이 정확히 선택되지", "E007");
  141. }
  142. } else {
  143. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  144. }
  145. opener.model.refresh();
  146. window.close();
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="btn_cancel" navindex="9" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  151. <caption>취소</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. opener.model.setValue("/root/main/popupendflag", "cancel");
  155. window.close();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  160. </group>
  161. </xhtml:body>
  162. </xhtml:html>