SMLMF01200_WHO항균제코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLMF01200.xrw
  4. * 설 명 : WHO항균제코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2008.04.06
  8. * 수정이력 :
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <keyantilist>
  20. <keyantibiofromdd/>
  21. <keyantibiotodd/>
  22. <keyantibiocd/>
  23. <keyantibionm/>
  24. <keyantibioabbrnm/>
  25. <keyantibioscrnnm/>
  26. <keyantibioprntnm/>
  27. </keyantilist>
  28. <keyantidetilist>
  29. <eqantibiocd/>
  30. <antibionm/>
  31. <eqmtcd/>
  32. </keyantidetilist>
  33. <baclist>
  34. <baccd/>
  35. <bacnm/>
  36. <keybaccd/>
  37. </baclist>
  38. </main>
  39. <send>
  40. <data1/>
  41. <anti/>
  42. <keyantibiocd/>
  43. </send>
  44. <init>
  45. <LB0201/>
  46. </init>
  47. <hidden>
  48. <ref>
  49. <refgbn>1</refgbn>
  50. <searchgbn>1</searchgbn>
  51. <searchnm/>
  52. <btnflag/>
  53. </ref>
  54. <default/>
  55. </hidden>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-model-construct-done">
  59. <![CDATA[
  60. model.removeNodeset("/root/main/keyantilist");
  61. model.removeNodeset("/root/main/keyantidetilist");
  62. fBaseInfoRef("0201|");
  63. ]]>
  64. </script>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  69. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  70. <submission id="TRLMF01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/keyantilist"/>
  71. <submission id="TRLMF01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/keybacdetilist"/>
  72. <submission id="TXLMF01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  73. <submission id="TXLMF01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. /* @group : 배양균코드관리
  78. * @ver : 2007.04.06(CMCDEV-0001)
  79. * @by : 조철형
  80. *@-----------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : 행추가버튼 클릭
  84. */
  85. function fInsRowAdd(pGridId) {
  86. pGridId.addRow();
  87. var row = pGridId.rows-1;
  88. pGridId.topRow = row;
  89. if(pGridId == grd_keyantilist){
  90. model.setvalue("/root/main/keyantilist["+ row +"]/keyantibiofromdd" , getCurrentDate());
  91. model.setvalue("/root/main/keyantilist["+ row +"]/keyantibiotodd" , "99991231");
  92. }
  93. }
  94. /* @group : 배양균코드관리
  95. * @ver : 2007.04.06(CMCDEV-0001)
  96. * @by : 조철형
  97. *@-----------------------------------
  98. * @type : function
  99. * @access : public
  100. * @desc : 초기화버튼 클릭
  101. */
  102. function fSetInit() {
  103. model.removeNodeset("/root/main/keyantilist");
  104. model.refresh();
  105. }
  106. /* @group : 배양균코드관리
  107. * @ver : 2007.04.06(CMCDEV-0001)
  108. * @by : 조철형
  109. *@-----------------------------------
  110. * @type : function
  111. * @access : public
  112. * @desc : 조회 검색 버튼 클릭
  113. */
  114. function fGetKeyAnti(gbn){
  115. model.removeNodeset("/root/main/keyantilist");
  116. model.setvalue("/root/hidden/ref/btnflag",gbn);
  117. model.copyNode("/root/send/data1","/root/hidden/ref");
  118. submit("TRLMF01201");
  119. model.copyNode("/root/send/data1","/root/hidden/default");
  120. fGridColorChange();
  121. }
  122. /* @group : 배양균코드관리
  123. * @ver : 2007.04.06(CMCDEV-0001)
  124. * @by : 조철형
  125. *@-----------------------------------
  126. * @type : function
  127. * @access : public
  128. * @desc : 조회후 그리드 색깔 변경
  129. */
  130. function fGridColorChange(){
  131. grd_keyantilist.rebuildstyle();
  132. initGridStyle("grd_keyantilist");
  133. var gbn = model.getValue("/root/hidden/ref/refgbn");
  134. if(gbn=="2"){
  135. setRowStyle("grd_keyantilist", "0", getCurrentDate(), "keyantibiotodd", "small");
  136. }
  137. }
  138. /* @group : 배양균코드관리
  139. * @ver : 2007.04.06(CMCDEV-0001)
  140. * @by : 조철형
  141. *@-----------------------------------
  142. * @type : function
  143. * @access : public
  144. * @desc : 저장버튼 클릭
  145. */
  146. function fExeAnti(){
  147. model.setvalue("/root/send/anti" , grd_keyantilist.getUpdateData());
  148. submit("TXLMF01201");
  149. model.copyNode("/root/send/anti","/root/hidden/default");
  150. grd_keyantilist.clearStatus();
  151. fGridColorChange();
  152. model.setValue("/root/send/keyantibiocd" , model.getValue("/root/main/keyantilist["+grd_keyantilist.row+"]/keyantibiocd"));
  153. model.setValue("/root/send/data1", keyantidetilist.getUpdateDataAll("i"));
  154. submit("TXLMF01202");
  155. }
  156. /* @group : 배양균코드관리
  157. * @ver : 2007.04.06(CMCDEV-0001)
  158. * @by : 송요셉
  159. *@-----------------------------------
  160. * @type : function
  161. * @access : public
  162. * @desc : 저장버튼 클릭
  163. */
  164. function fClickkeyantilist(kRow){
  165. model.removeNodeset("/root/main/keyantidetilist");
  166. model.setValue("/root/send/keyantibiocd" , model.getValue("/root/main/keyantilist["+kRow+"]/keyantibiocd"));
  167. submit("TRLMF01002");
  168. }
  169. /* @group : 배양균코드관리
  170. * @ver : 2007.04.06(CMCDEV-0001)
  171. * @by : 송요셉
  172. *@-----------------------------------
  173. * @type : function
  174. * @access : public
  175. * @desc : 저장버튼 클릭
  176. */
  177. function fdelantidetl(cRow){
  178. keyantidetilist.deleteItem(cRow);
  179. }
  180. ]]>
  181. </script>
  182. </xhtml:head>
  183. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  184. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  185. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:755px; y2:70px; "/>
  186. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:164px; height:14px; ">WHO항균제코드상세내역</caption>
  187. <datagrid id="grd_keyantilist" nodeset="/root/main/keyantilist" class="datagrid2" caption="사용시작일자^사용종료일자^항균제코드^항균제명^항균제명(약어)^항균제명(화면)^항균제명(출력)" colsep="▦" colwidth="90, 90, 90, 150, 140, 140, 140" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:755px; height:669px; ">
  188. <col ref="keyantibiofromdd" type="inputdate" format="yyyy-mm-dd"/>
  189. <col ref="keyantibiotodd" type="inputdate" format="yyyy-mm-dd"/>
  190. <col ref="keyantibiocd" type="input"/>
  191. <col ref="keyantibionm" type="input"/>
  192. <col ref="keyantibioabbrnm" type="input"/>
  193. <col ref="keyantibioscrnnm" type="input"/>
  194. <col ref="keyantibioprntnm" type="input"/>
  195. <script type="javascript" ev:event="onaftersort">
  196. <![CDATA[
  197. grd_keyantilist.gridToInstance();
  198. ]]>
  199. </script>
  200. <script type="javascript" ev:event="onclick">
  201. <![CDATA[
  202. if(grd_keyantilist.isCell(event.target) && grd_keyantilist.row >= grd_keyantilist.fixedRows ){
  203. fClickkeyantilist(grd_keyantilist.row);
  204. }
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <group id="group1" style="left:0px; top:10px; width:1190px; height:35px; ">
  209. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
  210. <line id="line3" class="line_4" style="x1:1098px; y1:7px; x2:1098px; y2:29px; "/>
  211. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  212. <line id="line14" class="line_4" style="x1:238px; y1:6px; x2:238px; y2:28px; "/>
  213. <caption id="caption4" class="search_name" style="left:822px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  214. <select1 id="cmb_refflag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:112px; height:19px; ">
  215. <choices>
  216. <item>
  217. <label>사용가능자료</label>
  218. <value>1</value>
  219. </item>
  220. <item>
  221. <label>전체자료</label>
  222. <value>2</value>
  223. </item>
  224. </choices>
  225. </select1>
  226. <button id="btn_ref" class="btn1_letter2" style="left:258px; top:7px; width:56px; height:22px; ">
  227. <caption>조회</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. fGetKeyAnti("1");
  231. ]]>
  232. </script>
  233. </button>
  234. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:910px; top:8px; width:70px; height:19px; ">
  235. <choices>
  236. <item>
  237. <label>코드</label>
  238. <value>1</value>
  239. </item>
  240. <item>
  241. <label>코드명</label>
  242. <value>2</value>
  243. </item>
  244. </choices>
  245. </select1>
  246. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:97px; height:19px; "/>
  247. <button id="btn_search" class="btn1_letter2" style="left:1117px; top:7px; width:56px; height:22px; ">
  248. <caption>검색</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fGetKeyAnti("2");
  252. ]]>
  253. </script>
  254. </button>
  255. </group>
  256. <button id="btn_addrow" class="btn2_letter3" style="left:702px; top:50px; width:53px; height:19px; ">
  257. <caption>행추가</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fInsRowAdd(grd_keyantilist);
  261. ]]>
  262. </script>
  263. </button>
  264. <datagrid id="keyantidetilist" nodeset="/root/main/keyantidetilist" class="datagrid2" caption="배양균^배양균명^장비" colsep="▦" colwidth="70, 200, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:765px; top:75px; width:425px; height:669px; ">
  265. <col ref="eqantibiocd" type="input"/>
  266. <col ref="antibionm" type="input"/>
  267. <col ref="eqmtcd" type="combo">
  268. <choices>
  269. <item>
  270. <label>Vitec</label>
  271. <value>v</value>
  272. </item>
  273. <item>
  274. <label>MicroScan</label>
  275. <value>m</value>
  276. </item>
  277. <item>
  278. <label>Phoenix</label>
  279. <value>p</value>
  280. </item>
  281. </choices>
  282. </col>
  283. <script type="javascript" ev:event="onaftersort">
  284. <![CDATA[
  285. keyantidetilist.gridToInstance();
  286. ]]>
  287. </script>
  288. </datagrid>
  289. <line id="line2" class="line_1" style="x1:765px; y1:70px; x2:1190px; y2:70px; "/>
  290. <caption id="caption3" class="tit_2" style="left:765px; top:55px; width:134px; height:13px; ">배양균코드상세내역</caption>
  291. <button id="button1" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
  292. <caption>행추가</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. fInsRowAdd(keyantidetilist);
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="button2" class="btn2_letter3" style="left:1137px; top:50px; width:56px; height:19px; ">
  300. <caption>행삭제</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. fdelantidetl(keyantidetilist.row);
  304. ]]>
  305. </script>
  306. </button>
  307. </group>
  308. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  309. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  310. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  311. <caption>저장</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. fExeAnti();
  315. ]]>
  316. </script>
  317. </button>
  318. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  319. <caption>초기화</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. fSetInit();
  323. ]]>
  324. </script>
  325. </button>
  326. </group>
  327. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  328. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">WHO항균제코드관리</caption>
  329. </group>
  330. </xhtml:body>
  331. </xhtml:html>