SMLMF01100_WHO배양균코드관리.xrw 14 KB

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