SPMMD02800_항생제조회.xrw 6.4 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>항생제조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <masterinfo/>
  11. <condition>
  12. <srchflag>C</srchflag>
  13. <srchnm/>
  14. </condition>
  15. </main>
  16. </root>
  17. </instance>
  18. <script type="javascript" ev:event="xforms-ready">
  19. <![CDATA[
  20. submit("TRMMD02801");
  21. grd_masterinfo.fixedcellcheckbox(0, grd_masterinfo.colRef("chk")) = true;
  22. ]]>
  23. </script>
  24. <submission id="TRMMD02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/masterinfo"/>
  25. </model>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  28. <script type="javascript">
  29. <![CDATA[
  30. function fAddOpener(){
  31. var checkNodeList = instance1.selectNodes("/root/main/masterinfo/info[chk='Y']");
  32. if( checkNodeList != null && checkNodeList.length > 0 ){
  33. var csv = getNodeListCSV(checkNodeList);
  34. opener.javascript.setParameter("saveparam", csv);
  35. }
  36. opener.javascript.fSetAntibioAdd();
  37. }
  38. ]]>
  39. </script>
  40. </xhtml:head>
  41. <xhtml:body pagewidth="626" pageheight="705" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  42. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:610px; height:675px; ">
  43. <caption id="caption1" class="tit_2" style="left:5px; top:70px; width:115px; height:13px; ">항생제조회</caption>
  44. <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:610px; y2:87px; "/>
  45. <datagrid id="grd_masterinfo" nodeset="/root/main/masterinfo/info" autoresize="true" caption="^항생제코드^처방명^한글상품명" colsep="^" colwidth="38, 119, 237, 161" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:92px; width:610px; height:583px; ">
  46. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  47. <col ref="prcpcd"/>
  48. <col ref="prcpnm"/>
  49. <col ref="hngnm"/>
  50. <script type="javascript" ev:event="ondblclick">
  51. <![CDATA[
  52. var selRow = grd_masterinfo.row;
  53. if( selRow > 0 && selRow <= grd_masterinfo.rows ){
  54. model.setValue("/root/main/masterinfo/info["+selRow+"]/chk", "Y");
  55. model.refresh();
  56. fAddOpener();
  57. model.setValue("/root/main/masterinfo/info["+selRow+"]/chk", "N");
  58. model.refresh();
  59. }
  60. ]]>
  61. </script>
  62. </datagrid>
  63. <group id="group2" style="left:0px; top:30px; width:610px; height:35px; vertical-align:top; ">
  64. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:610px; height:35px; "/>
  65. <line id="line13" style="x1:529px; y1:5px; x2:529px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  66. <caption id="caption2" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">검색조건 :</caption>
  67. <input id="ipt_srchnm" ref="/root/main/condition/srchnm" class="input_search" navindex="2" style="left:315px; top:6px; width:205px; height:19px; ">
  68. <script type="javascript" ev:event="onkeyup">
  69. <![CDATA[
  70. inputEnterKey("btn_search", "DOMActivate");
  71. ]]>
  72. </script>
  73. </input>
  74. <select1 id="radio1" ref="/root/main/condition/srchflag" visibility="1" appearance="full" cols="3" overflow="visible" style="left:105px; top:6px; width:205px; height:20px; border-style:none; ">
  75. <choices>
  76. <item>
  77. <label>처방코드</label>
  78. <value>C</value>
  79. </item>
  80. <item>
  81. <label>처방명</label>
  82. <value>N</value>
  83. </item>
  84. <item>
  85. <label>한글상품명</label>
  86. <value>H</value>
  87. </item>
  88. </choices>
  89. <!-- 2008.03.11 정연우 "검색어 먼저 입력하고 옵션선택할수 있으므로 옵션 선택시 검색어 Clear 기능 제거" 요청에 의해 수정 -->
  90. <!--script type="javascript" ev:event="xforms-value-changed">
  91. <![CDATA[
  92. model.setValue("/root/main/condition/srchnm","");
  93. model.setFocus("ipt_srchnm");
  94. model.refresh();
  95. ]]>
  96. </script-->
  97. </select1>
  98. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:540px; top:5px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var strCdNm = model.getValue("/root/main/condition/srchnm");
  103. if( strCdNm.length > 0 && strCdNm.length < 2 ){
  104. messageBox("두자리 이상 ","C001");
  105. return;
  106. }
  107. submit("TRMMD02801");
  108. ]]>
  109. </script>
  110. </button>
  111. </group>
  112. <caption id="caption26" class="hand" style="left:0px; top:0px; width:604px; height:28px; vertical-align:middle; ">원내보유 항생제중 여기에서 항생제 조회가 되지 않는 경우는 일반처방에서 처방하시기 바랍니다.</caption>
  113. </group>
  114. <group id="grp_btn" scroll="auto" style="left:0px; top:676px; width:610px; height:27px; ">
  115. <button id="button4" class="btn4_letter2" style="left:495px; top:3px; width:56px; height:22px; ">
  116. <caption>확인</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. fAddOpener();
  120. // 2008.09.12 항생제추가화면이 한번 닫히면 다시 추가사유 입력 창이 발생해야 함
  121. var nodeList = opener.instance1.selectNodes("/root/main/antibiotics/antibioticslist[addyn='Y']");
  122. if(nodeList.length > 0) {
  123. opener.model.setValue("/root/main/antibiotics/antibioticslist/addyn", "N")
  124. }
  125. window.close();
  126. ]]>
  127. </script>
  128. </button>
  129. <button id="button9" class="btn4_letter2" style="left:554px; top:3px; width:56px; height:22px; ">
  130. <caption>닫기</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. // 2008.09.12 항생제추가화면이 한번 닫히면 다시 추가사유 입력 창이 발생해야 함
  134. var nodeList = opener.instance1.selectNodes("/root/main/antibiotics/antibioticslist[addyn='Y']");
  135. if(nodeList.length > 0) {
  136. opener.model.setValue("/root/main/antibiotics/antibioticslist/addyn", "N")
  137. }
  138. window.close();
  139. ]]>
  140. </script>
  141. </button>
  142. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:610px; y2:0px; "/>
  143. </group>
  144. </xhtml:body>
  145. </xhtml:html>