SPLMF10200_통합항균제코드조회.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00100_계검사계코드관리.xrw
  4. * 설 명 : 검사시행부서코드관리 조회 및 등록
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.04.10
  8. * 수정이력 : 2007.07.27 박정은 lastupdtdt 수정함
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사시행부서코드관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <antibiolist>
  20. <antibiocd/>
  21. <antibionm/>
  22. <antibioabbrnm/>
  23. <antibioscrnnm/>
  24. <antibioprntnm/>
  25. </antibiolist>
  26. </main>
  27. <send>
  28. <data1/>
  29. <bac/>
  30. </send>
  31. <init>
  32. </init>
  33. <hidden>
  34. <deptflagcd/>
  35. <ref>
  36. <refgbn>1</refgbn>
  37. <searchgbn>1</searchgbn>
  38. <searchnm/>
  39. <btnflag/>
  40. </ref>
  41. <addlist>
  42. <addstring/>
  43. </addlist>
  44. <default/>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  49. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  50. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  51. <submission id="TRLMF10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/antibiolist"/>
  52. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  53. <script ev:event="xforms-ready" type="javascript">
  54. <![CDATA[
  55. // 권한 설정
  56. //var auth = model.getValue("/root/properties/auth");
  57. //checkAuth(auth);
  58. //btn_save.disabled = !checkAuth("X") ;
  59. // 초기정보 조회
  60. model.makeValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
  61. submit("TRLZZ00101");
  62. fSetInit();
  63. fGetAntibiocd("1");
  64. ]]>
  65. </script>
  66. </model>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 초기화 버튼
  70. function fSetInit() {
  71. //model.reset();
  72. model.removeNodeset("/root/main/antibiolist");
  73. model.refresh();
  74. }
  75. function fGetAntibiocd(gbn){
  76. model.setvalue("/root/hidden/ref/btnflag",gbn);
  77. model.copyNode("/root/send/data1","/root/hidden/ref");
  78. submit("TRLMF10201");
  79. model.copyNode("/root/send/data1","/root/hidden/default");
  80. }
  81. function fAddRow(){
  82. var AddRowString = "";
  83. for(i = 1 ; i < grd_antibiocddetl.rows ; i++ ){
  84. if(model.getValue("/root/main/antibiolist["+i+"]/chk") == "true"){
  85. AddRowString = AddRowString + model.getValue("/root/main/antibiolist["+i+"]/antibiocd") + "▦"
  86. + model.getValue("/root/main/antibiolist["+i+"]/antibionm") + "▦"
  87. + model.getValue("/root/main/antibiolist["+i+"]/antibioabbrnm") + "▦"
  88. + model.getValue("/root/main/antibiolist["+i+"]/antibioscrnnm") + "▦"
  89. + model.getValue("/root/main/antibiolist["+i+"]/antibioprntnm") + "▩" ;
  90. }
  91. }
  92. model.setValue("/root/hidden/addlist/addstring" , AddRowString);
  93. model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
  94. window.close();
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="700" pageheight="420" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  100. <group id="group3" scroll="auto" style="left:0px; top:0px; width:675px; height:395px; ">
  101. <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:160px; height:14px; ">통합항균제코드목록</caption>
  102. <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:665px; y2:60px; "/>
  103. <datagrid id="grd_antibiocddetl" nodeset="/root/main/antibiolist" caption="^항균제코드^항균제명^항균제명(약어)^항균제명(화면)^항균제명(출력)" colwidth="20, 85, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:65px; width:665px; height:230px; ">
  104. <col ref="chk" type="checkbox"/>
  105. <col ref="antibiocd" type="output"/>
  106. <col ref="antibionm" type="output"/>
  107. <col ref="antibioabbrnm" type="output"/>
  108. <col ref="antibioscrnnm" type="output"/>
  109. <col ref="antibioprntnm" type="output"/>
  110. <script ev:event="onaftersort" type="javascript">
  111. <![CDATA[
  112. grd_antibiocddetl.gridToInstance();
  113. ]]>
  114. </script>
  115. </datagrid>
  116. <button id="button1" class="btn4_letter2" style="left:551px; top:297px; width:56px; height:22px; ">
  117. <caption>추가</caption>
  118. <script ev:event="onclick" type="javascript">
  119. <![CDATA[
  120. fAddRow()
  121. ]]>
  122. </script>
  123. </button>
  124. <button id="btn_cfm" class="btn4_letter2" style="left:610px; top:297px; width:56px; height:22px; ">
  125. <caption>닫기</caption>
  126. <script ev:event="onclick" type="javascript">
  127. <![CDATA[
  128. window.close();
  129. ]]>
  130. </script>
  131. </button>
  132. <group id="group1" style="left:0px; top:20px; width:666px; height:35px; ">
  133. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:665px; height:35px; "/>
  134. <button id="btn_search" class="btn1_letter2" style="left:598px; top:7px; width:56px; height:22px; ">
  135. <caption>검색</caption>
  136. <script ev:event="DOMActivate" type="javascript">
  137. <![CDATA[
  138. fGetAntibiocd("2");
  139. ]]>
  140. </script>
  141. </button>
  142. <line id="line11" class="line_4" style="x1:583px; y1:6px; x2:583px; y2:28px; "/>
  143. <select1 id="cmb_srchflag" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:305px; top:8px; width:150px; height:19px; ">
  144. <choices>
  145. <item>
  146. <label>코드</label>
  147. <value>1</value>
  148. </item>
  149. <item>
  150. <label>코드명</label>
  151. <value>2</value>
  152. </item>
  153. </choices>
  154. </select1>
  155. <caption id="caption4" class="search_name" style="left:212px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  156. <input id="ipt_refflag" ref="/root/hidden/ref/searchnm" class="input_search" style="left:458px; top:8px; width:110px; height:19px; ">
  157. <script ev:event="onkeypress" type="javascript">
  158. <![CDATA[
  159. if(event.keyCode == "13"){
  160. model.setvalue("/root/hidden/ref/searchnm",ipt_refflag.currentText);
  161. model.refresh();
  162. fGetAntibiocd("2");
  163. ipt_refflag.selBegin = 0;
  164. ipt_refflag.selEnd = ipt_refflag.currentText.length;
  165. }
  166. ]]>
  167. </script>
  168. </input>
  169. </group>
  170. </group>
  171. </xhtml:body>
  172. </xhtml:html>