SPASB00500_항생제조회.xrw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. <antibiolist>
  15. </antibiolist>
  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/antibiolist");
  33. model.refresh();
  34. ]]>
  35. </script>
  36. <submission id="TRASB00501" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/antibiolist"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. function fGetAntiBioList(){
  40. model.makeNode("/root/send/reqdata");
  41. var srchnm = model.getValue("/root/main/condition/srchnm");
  42. srchnm = srchnm.toUpperCase( );
  43. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
  44. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  45. var spcd=model.getValue("/root/main/condition/srchflag");
  46. var spipt = model.getValue("/root/main/condition/srchnm");
  47. if( (spcd == "C") && (spipt.length >10) ){
  48. messageBox("항생제코드는 10자리를 초과", "E001");
  49. model.setFocus("ipt_search");
  50. return;
  51. }
  52. submit("TRASB00501");
  53. }
  54. ]]>
  55. </script>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="536" pageheight="343" style="margin-left:8; margin-right:8; ">
  63. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  64. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  65. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  66. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  67. <button id="btn_search" navindex="3" class="btn1_letter2" style="left:450px; top:7px; width:56px; height:22px; ">
  68. <caption>조회</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. fGetAntiBioList();
  72. ]]>
  73. </script>
  74. </button>
  75. <line id="line13" style="x1:439px; y1:7px; x2:439px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  76. <input id="ipt_search" ref="/root/main/condition/srchnm" navindex="2" class="input_search" style="left:254px; top:8px; width:176px; height:19px; "/>
  77. <script type="javascript" ev:event="onkeypress">
  78. <![CDATA[
  79. inputEnterKey("btn_search", "DOMActivate");
  80. ]]>
  81. </script>
  82. <select1 id="rdo_srchflag" 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; ">
  83. <choices>
  84. <item>
  85. <label>항생제코드</label>
  86. <value>C</value>
  87. </item>
  88. <item>
  89. <label>항생제명</label>
  90. <value>N</value>
  91. </item>
  92. </choices>
  93. </select1>
  94. </group>
  95. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:115px; height:13px; ">항생제 리스트</caption>
  96. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  97. <datagrid id="grd_antibiolist" nodeset="/root/main/antibiolist/info" caption="항생제 코드^항생제 명" colwidth="105, 400" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:65px; width:517px; height:230px; ">
  98. <col ref="antibiocd"/>
  99. <col ref="antibionm"/>
  100. <script type="javascript" ev:event="ondblclick">
  101. <![CDATA[
  102. var iRow = grd_antibiolist.row;
  103. var cd = model.getValue("/root/main/antibiolist/info[" + iRow + "]/antibiocd");
  104. var nm = model.getValue("/root/main/antibiolist/info[" + iRow + "]/antibionm");
  105. opener.model.setValue("/root/hidden/getdata/cd", cd);
  106. opener.model.setValue("/root/hidden/getdata/nm", nm);
  107. window.close();
  108. ]]>
  109. </script>
  110. </datagrid>
  111. </group>
  112. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  113. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
  114. <caption>확인</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. var iRow = grd_antibiolist.row;
  118. if(iRow == null || iRow == "") {
  119. var msg = messageBox("항생제를 ", "C002");
  120. return;
  121. } else{
  122. var iRow = grd_antibiolist.row;
  123. var cd = model.getValue("/root/main/antibiolist/info[" + iRow + "]/antibiocd");
  124. var nm = model.getValue("/root/main/antibiolist/info[" + iRow + "]/antibionm");
  125. opener.model.setValue("/root/hidden/getdata/cd", cd);
  126. opener.model.setValue("/root/hidden/getdata/nm", nm);
  127. window.close();
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:3px; 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>