SPLLF10600_통합용기코드조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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 type="text/css" href="../../../com/commonweb/css/common.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. <tubelist>
  20. <tubecd/>
  21. <tubenm/>
  22. <tubescrnnm/>
  23. <tubeabbrnm/>
  24. <tubeprntnm/>
  25. <tubelblnm/>
  26. <tubevol/>
  27. <tubeunit/>
  28. </tubelist>
  29. </main>
  30. <send>
  31. <refgbn/>
  32. <spcdata/>
  33. <searchgbn/>
  34. <text/>
  35. <deptflag/>
  36. <codeflag/>
  37. </send>
  38. <init>
  39. </init>
  40. <hidden>
  41. <ref>
  42. <refgbn>1</refgbn>
  43. <searchgbn>2</searchgbn>
  44. <searchtext/>
  45. </ref>
  46. <deptflagcd/>
  47. <addlist>
  48. <addstring/>
  49. </addlist>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <!-- 조회 -->
  57. <submission id="TRLLF10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tubelist"/>
  58. <!-- 검색 -->
  59. <submission id="TRLLF10402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tubelist"/>
  60. <!-- 등록,수정 -->
  61. <submission id="TXLLF10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  62. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. // 권한 설정
  66. //var auth = model.getValue("/root/properties/auth");
  67. //checkAuth(auth);
  68. //btn_save.disabled = !checkAuth("X") ;
  69. // 초기정보 조회
  70. model.setValue("/root/send/codeflag", "0000|"); // 0000= 유저과플래그
  71. submit("TRLZZ00101");
  72. fSetInit();
  73. fGetTubeList();
  74. ]]>
  75. </script>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. // 초기화 버튼
  80. function fSetInit() {
  81. //model.reset();
  82. model.removeNodeset("/root/main/tubelist");
  83. model.refresh();
  84. }
  85. function fGetTubeList(){
  86. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  87. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  88. submit("TRLLF10401"); // 용기 리스트 조회
  89. }
  90. function fAddRow(){
  91. var AddRowString = "";
  92. for(i = 1 ; i < grd_tube.rows ; i++ ){
  93. if(model.getValue("/root/main/tubelist["+i+"]/chk") == "true"){
  94. AddRowString = AddRowString + model.getValue("/root/main/tubelist["+i+"]/tubecd") + "▦"
  95. + model.getValue("/root/main/tubelist["+i+"]/tubenm") + "▦"
  96. + model.getValue("/root/main/tubelist["+i+"]/tubescrnnm") + "▦"
  97. + model.getValue("/root/main/tubelist["+i+"]/tubeabbrnm") + "▦"
  98. + model.getValue("/root/main/tubelist["+i+"]/tubeprntnm") + "▦"
  99. + model.getValue("/root/main/tubelist["+i+"]/tubelblnm") + "▦"
  100. + model.getValue("/root/main/tubelist["+i+"]/tubevol") + "▦"
  101. + model.getValue("/root/main/tubelist["+i+"]/tubeunit") + "▩" ;
  102. }
  103. }
  104. model.setValue("/root/hidden/addlist/addstring" , AddRowString);
  105. model.copyNode(opener.root.temp.addlist,root.hidden.addlist);
  106. window.close();
  107. }
  108. //검색
  109. function fGetTubeSrch(){
  110. model.setValue("/root/send/searchgbn", model.getValue("/root/hidden/ref/searchgbn"));
  111. model.setValue("/root/send/text", model.getValue("/root/hidden/ref/searchtext").toUpperCase());
  112. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  113. if(model.getValue("/root/hidden/ref/searchtext") == ""){
  114. fGetTubeList();
  115. }else{
  116. submit("TRLLF10402");
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body pagewidth="890" pageheight="810" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group3" scroll="auto" style="left:0px; top:0px; width:870px; height:785px; ">
  124. <caption id="caption1" class="tit_2" style="left:0px; top:0px; width:160px; height:14px; ">통합용기코드목록</caption>
  125. <line id="line2" class="line_1" style="x1:0px; y1:85px; x2:665px; y2:85px; "/>
  126. <datagrid id="grd_tube" nodeset="/root/main/tubelist" 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:90px; width:855px; height:675px; ">
  127. <col ref="chk" type="checkbox"/>
  128. <col ref="tubecd" type="output"/>
  129. <col ref="tubenm" type="output"/>
  130. <col ref="tubescrnnm" type="output"/>
  131. <col ref="tubeabbrnm" type="output"/>
  132. <col ref="tubeprntnm" type="output"/>
  133. <col ref="tubelblnm" type="output"/>
  134. <col ref="tubevol" type="output" style="text-align:right; "/>
  135. <col ref="tubeunit" type="output" style="text-align:left; "/>
  136. <script type="javascript" ev:event="onaftersort">
  137. <![CDATA[
  138. grd_spc.gridToInstance();
  139. ]]>
  140. </script>
  141. </datagrid>
  142. <button id="button1" class="btn4_letter2" style="left:680px; top:130px; width:56px; height:22px; ">
  143. <caption>추가</caption>
  144. <script type="javascript" ev:event="onclick">
  145. <![CDATA[
  146. fAddRow();
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="btn_cfm" class="btn4_letter2" style="left:739px; top:130px; width:56px; height:22px; ">
  151. <caption>닫기</caption>
  152. <script type="javascript" ev:event="onclick">
  153. <![CDATA[
  154. window.close();
  155. ]]>
  156. </script>
  157. </button>
  158. <group id="group1" style="left:0px; top:20px; width:666px; height:35px; ">
  159. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:665px; height:35px; "/>
  160. <button id="btn_search" class="btn1_letter2" style="left:598px; top:7px; width:56px; height:22px; ">
  161. <caption>검색</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. fGetTubeSrch();
  165. ]]>
  166. </script>
  167. </button>
  168. <line id="line11" class="line_4" style="x1:583px; y1:6px; x2:583px; y2:28px; "/>
  169. <select1 id="cmb_srchflag" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:305px; top:8px; width:150px; height:19px; ">
  170. <choices>
  171. <item>
  172. <label>검체코드</label>
  173. <value>1</value>
  174. </item>
  175. <item>
  176. <label>검체명</label>
  177. <value>2</value>
  178. </item>
  179. </choices>
  180. </select1>
  181. <caption id="caption4" class="search_name" style="left:212px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  182. <input id="ipt_refflag" ref="/root/hidden/ref/searchtext" class="input_search" style="left:458px; top:8px; width:110px; height:19px; ">
  183. <script type="javascript" ev:event="onkeypress">
  184. <![CDATA[
  185. if(event.keyCode == "13"){
  186. model.setvalue("/root/hidden/ref/searchtext",ipt_refflag.currentText);
  187. model.refresh();
  188. fGetTubeSrch();
  189. ipt_refflag.selBegin = 0;
  190. ipt_refflag.selEnd = ipt_refflag.currentText.length;
  191. }
  192. ]]>
  193. </script>
  194. </input>
  195. </group>
  196. </group>
  197. <group id="group2" scroll="auto" style="left:0px; top:0px; width:870px; height:785px; ">
  198. <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:160px; height:13px; ">통합용기코드목록</caption>
  199. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:855px; y2:70px; "/>
  200. <datagrid id="datagrid1" nodeset="/root/main/tubelist" 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:75px; width:855px; height:700px; ">
  201. <col ref="chk" type="checkbox"/>
  202. <col ref="tubecd" type="output"/>
  203. <col ref="tubenm" type="output"/>
  204. <col ref="tubescrnnm" type="output"/>
  205. <col ref="tubeabbrnm" type="output"/>
  206. <col ref="tubeprntnm" type="output"/>
  207. <col ref="tubelblnm" type="output"/>
  208. <col ref="tubevol" type="output" style="text-align:right; "/>
  209. <col ref="tubeunit" type="output" style="text-align:left; "/>
  210. <script type="javascript" ev:event="onaftersort">
  211. <![CDATA[
  212. grd_spc.gridToInstance();
  213. ]]>
  214. </script>
  215. </datagrid>
  216. <button id="button2" class="btn4_letter2" style="left:741px; top:5px; width:56px; height:22px; ">
  217. <caption>추가</caption>
  218. <script type="javascript" ev:event="onclick">
  219. <![CDATA[
  220. fAddRow();
  221. ]]>
  222. </script>
  223. </button>
  224. <button id="button3" class="btn4_letter2" style="left:800px; top:5px; width:56px; height:22px; ">
  225. <caption>닫기</caption>
  226. <script type="javascript" ev:event="onclick">
  227. <![CDATA[
  228. window.close();
  229. ]]>
  230. </script>
  231. </button>
  232. <group id="group4" style="left:0px; top:30px; width:860px; height:35px; ">
  233. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:855px; height:35px; "/>
  234. <button id="button4" class="btn1_letter2" style="left:398px; top:7px; width:56px; height:22px; ">
  235. <caption>검색</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. fGetTubeSrch();
  239. ]]>
  240. </script>
  241. </button>
  242. <line id="line3" class="line_4" style="x1:383px; y1:6px; x2:383px; y2:28px; "/>
  243. <select1 id="combo1" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
  244. <choices>
  245. <item>
  246. <label>검체코드</label>
  247. <value>1</value>
  248. </item>
  249. <item>
  250. <label>검체명</label>
  251. <value>2</value>
  252. </item>
  253. </choices>
  254. </select1>
  255. <caption id="caption3" class="search_name" style="left:12px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  256. <input id="input1" ref="/root/hidden/ref/searchtext" class="input_search" style="left:258px; top:8px; width:110px; height:19px; ">
  257. <script type="javascript" ev:event="onkeypress">
  258. <![CDATA[
  259. if(event.keyCode == "13"){
  260. model.setvalue("/root/hidden/ref/searchtext",ipt_refflag.currentText);
  261. model.refresh();
  262. fGetTubeSrch();
  263. ipt_refflag.selBegin = 0;
  264. ipt_refflag.selEnd = ipt_refflag.currentText.length;
  265. }
  266. ]]>
  267. </script>
  268. </input>
  269. </group>
  270. </group>
  271. </xhtml:body>
  272. </xhtml:html>