SPMMD01400_처방조회.xrw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <condition>
  11. <srchflag>N</srchflag>
  12. <srchnm/>
  13. </condition>
  14. <prcplist>
  15. </prcplist>
  16. </main>
  17. <hidden>
  18. <receiveref/>
  19. <setdata>
  20. <cd/>
  21. <nm/>
  22. </setdata>
  23. </hidden>
  24. <send>
  25. </send>
  26. <init>
  27. </init>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. model.removeNodeset("/root/main/prcplist");
  33. btn_search.dispatch("DOMActivate");
  34. model.refresh();
  35. ]]>
  36. </script>
  37. <script type="javascript">
  38. <![CDATA[
  39. /*function fGetPrcpList(){
  40. model.makeNode("/root/send/reqdata");
  41. if(model.getValue("/root/main/condition/srchflag") == "N") {
  42. var srchnm = model.getValue("/root/main/condition/srchnm");
  43. srchnm = srchnm.toUpperCase( );
  44. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  45. } else if(model.getValue("/root/main/condition/srchflag") == "C") {
  46. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchnm"));
  47. }
  48. submit("TRMMD01401");
  49. }*/
  50. function fGetPrcpList(){
  51. model.makeNode("/root/send/reqdata");
  52. if(model.getValue("/root/main/condition/srchflag") == "N") {
  53. var srchnm = model.getValue("/root/main/condition/srchnm");
  54. srchnm = srchnm.toUpperCase( );
  55. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  56. model.makeValue("/root/send/reqdata/srchflag", "N");
  57. } else if(model.getValue("/root/main/condition/srchflag") == "C") {
  58. var srchnm = model.getValue("/root/main/condition/srchnm");
  59. srchnm = srchnm.toUpperCase( );
  60. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  61. //model.makeValue("/root/send/reqdata/srchnm", model.getValue("/root/main/condition/srchnm"));
  62. model.makeValue("/root/send/reqdata/srchflag", "C");
  63. }
  64. submit("TRMMD01401");
  65. }
  66. ]]>
  67. </script>
  68. <submission id="TRMMD01401" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/prcplist"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
  74. </xhtml:head>
  75. <xhtml:body pagewidth="536" pageheight="343" style="margin-left:8; margin-right:8; ">
  76. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  77. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  78. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  79. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  80. <button id="btn_search" navindex="3" class="btn1_letter2" style="left:450px; top:7px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. fGetPrcpList();
  85. ]]>
  86. </script>
  87. </button>
  88. <line id="line13" style="x1:439px; y1:7px; x2:439px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  89. <input id="input3" ref="/root/main/condition/srchnm" navindex="2" class="input_search" style="left:254px; top:8px; width:176px; height:19px; ">
  90. <script type="javascript" ev:event="onkeypress">
  91. <![CDATA[
  92. inputEnterKey("btn_search", "DOMActivate");
  93. ]]>
  94. </script>
  95. </input>
  96. <select1 id="radio1" ref="/root/main/condition/srchflag" visibility="1" overflow="visible" appearance="full" cols="2" style="left:105px; top:8px; width:145px; height:20px; border-style:none; ">
  97. <choices>
  98. <item>
  99. <label>처방코드</label>
  100. <value>C</value>
  101. </item>
  102. <item>
  103. <label>처방명</label>
  104. <value>N</value>
  105. </item>
  106. </choices>
  107. </select1>
  108. </group>
  109. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:115px; height:14px; ">처방 리스트</caption>
  110. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  111. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/info" caption="처방코드^처방명" colwidth="105, 400" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:65px; width:517px; height:230px; ">
  112. <col ref="prcpcd"/>
  113. <col ref="prcpnm"/>
  114. <script type="javascript" ev:event="ondblclick">
  115. <![CDATA[
  116. var iRow = grd_prcplist.row;
  117. var cd = model.getValue("/root/main/prcplist/info[" + iRow + "]/prcpcd");
  118. var nm = model.getValue("/root/main/prcplist/info[" + iRow + "]/prcpnm");
  119. opener.model.setValue("/root/hidden/getdata/cd", cd);
  120. opener.model.setValue("/root/hidden/getdata/nm", nm);
  121. window.close();
  122. ]]>
  123. </script>
  124. </datagrid>
  125. </group>
  126. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  127. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
  128. <caption>확인</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. var iRow = grd_prcplist.row;
  132. if(iRow == null || iRow == "") {
  133. var msg = messageBox("처방을 ", "C002");
  134. return;
  135. } else{
  136. var iRow = grd_prcplist.row;
  137. var cd = model.getValue("/root/main/prcplist/info[" + iRow + "]/prcpcd");
  138. var nm = model.getValue("/root/main/prcplist/info[" + iRow + "]/prcpnm");
  139. opener.model.setValue("/root/hidden/getdata/cd", cd);
  140. opener.model.setValue("/root/hidden/getdata/nm", nm);
  141. window.close();
  142. }
  143. ]]>
  144. </script>
  145. </button>
  146. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  147. <caption>취소</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. window.close();
  151. ]]>
  152. </script>
  153. </button>
  154. </group>
  155. </xhtml:body>
  156. </xhtml:html>