SPMMD02100_FIND불가사유.xrw 6.0 KB

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