SMLMF00100_배양균코드관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLMF00100.xrw
  4. * 설 명 : 배양균코드관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.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. <baclist>
  20. <baccdfromdd/>
  21. <baccdtodd/>
  22. <baccd/>
  23. <bacnm/>
  24. <bacgenscd/>
  25. <bacabbrnm/>
  26. <bacscrnnm/>
  27. <bacprntnm/>
  28. <infcinfo/>
  29. <infcrefantbiocd/>
  30. <infcrefchar/>
  31. </baclist>
  32. </main>
  33. <send>
  34. <data1/>
  35. <bac/>
  36. </send>
  37. <init>
  38. <LB0201/>
  39. </init>
  40. <hidden>
  41. <ref>
  42. <refgbn>1</refgbn>
  43. <searchgbn>1</searchgbn>
  44. <searchnm/>
  45. <btnflag/>
  46. </ref>
  47. <default/>
  48. </hidden>
  49. <temp>
  50. <addlist/>
  51. </temp>
  52. </root>
  53. </instance>
  54. <script ev:event="xforms-model-construct-done" type="javascript">
  55. <![CDATA[
  56. fSetInit()
  57. fBaseInfoRef("0201|");
  58. ]]>
  59. </script>
  60. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  61. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  62. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  63. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  64. <submission id="TRLMF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baclist"/>
  65. <submission id="TXLMF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  66. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  67. </model>
  68. <script type="javascript">
  69. <![CDATA[
  70. /* @group : 배양균코드관리
  71. * @ver : 2007.04.06(CMCDEV-0001)
  72. * @by : 조철형
  73. *@-----------------------------------
  74. * @type : function
  75. * @access : public
  76. * @desc : 행추가버튼 클릭
  77. */
  78. function fInsRowAdd(pGridId) {
  79. modal("SPLMF10100","","","","","","");
  80. var addstring = model.getValue("/root/temp/addlist/addstring");
  81. var addlen = addstring.split("▩");
  82. for(i = 0 ; i < addlen.length-1 ; i ++){
  83. grd_cddetl.addRow(false);
  84. grd_cddetl.rowStatus(0) = 1;
  85. var today = getCurrentDate();
  86. var additemlist = addlen[i].split("▦");
  87. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/baccdfromdd", today);
  88. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/baccdtodd", "99991231");
  89. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/baccd", additemlist[0]);
  90. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/bacnm", additemlist[1]);
  91. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/bacabbrnm", additemlist[2]);
  92. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/bacscrnnm", additemlist[3]);
  93. model.setValue("/root/main/baclist["+grd_cddetl.row+"]/bacprntnm", additemlist[4]);
  94. }
  95. /*
  96. pGridId.addRow();
  97. var row = pGridId.rows-1;
  98. pGridId.topRow = row;
  99. model.setvalue("/root/main/baclist["+ row +"]/baccdfromdd" , getCurrentDate());
  100. model.setvalue("/root/main/baclist["+ row +"]/baccdtodd" , "99991231");
  101. */
  102. }
  103. /* @group : 배양균코드관리
  104. * @ver : 2007.04.06(CMCDEV-0001)
  105. * @by : 조철형
  106. *@-----------------------------------
  107. * @type : function
  108. * @access : public
  109. * @desc : 초기화버튼 클릭
  110. */
  111. function fSetInit() {
  112. model.removeNodeset("/root/main/baclist");
  113. model.refresh();
  114. }
  115. /* @group : 배양균코드관리
  116. * @ver : 2007.04.06(CMCDEV-0001)
  117. * @by : 조철형
  118. *@-----------------------------------
  119. * @type : function
  120. * @access : public
  121. * @desc : 조회 검색 버튼 클릭
  122. */
  123. function fGetBaccd(gbn){
  124. model.setvalue("/root/hidden/ref/btnflag",gbn);
  125. model.copyNode("/root/send/data1","/root/hidden/ref");
  126. submit("TRLMF00101");
  127. model.copyNode("/root/send/data1","/root/hidden/default");
  128. fGridColorChange();
  129. }
  130. /* @group : 배양균코드관리
  131. * @ver : 2007.04.06(CMCDEV-0001)
  132. * @by : 조철형
  133. *@-----------------------------------
  134. * @type : function
  135. * @access : public
  136. * @desc : 조회후 그리드 색깔 변경
  137. */
  138. function fGridColorChange(){
  139. grd_cddetl.rebuildstyle();
  140. var gbn = model.getValue("/root/hidden/ref/refgbn");
  141. if(gbn=="2"){
  142. setRowStyle("grd_cddetl", "0", getCurrentDate(), "baccdtodd", "small");
  143. }
  144. }
  145. /* @group : 배양균코드관리
  146. * @ver : 2007.04.06(CMCDEV-0001)
  147. * @by : 조철형
  148. *@-----------------------------------
  149. * @type : function
  150. * @access : public
  151. * @desc : 저장버튼 클릭
  152. */
  153. function fExeBac(){
  154. model.setvalue("/root/send/bac" , grd_cddetl.getUpdateData());
  155. submit("TXLMF00101");
  156. model.copyNode("/root/send/bac","/root/hidden/default");
  157. grd_cddetl.clearStatus();
  158. fGridColorChange();
  159. }
  160. ]]>
  161. </script>
  162. </xhtml:head>
  163. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  164. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  165. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  166. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; ">배양균코드상세내역</caption>
  167. <datagrid id="grd_cddetl" nodeset="/root/main/baclist" 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:1194px; height:650; ">
  168. <col ref="baccdfromdd" type="inputdate" format="yyyy-mm-dd"/>
  169. <col ref="baccdtodd" type="inputdate" format="yyyy-mm-dd"/>
  170. <col ref="baccd" type="input"/>
  171. <col ref="bacnm" type="input"/>
  172. <col ref="bacgenscd" type="combo">
  173. <choices>
  174. <itemset nodeset="/root/init/LB0201">
  175. <label ref="nm"/>
  176. <value ref="cd"/>
  177. </itemset>
  178. </choices>
  179. </col>
  180. <col ref="bacabbrnm" type="input"/>
  181. <col ref="bacscrnnm" type="input"/>
  182. <col ref="bacprntnm" type="input"/>
  183. <col ref="infcinfo" type="input"/>
  184. <col ref="infcrefantbiocd" type="input"/>
  185. <col ref="infcrefchar" type="input"/>
  186. <script ev:event="onaftersort" type="javascript">
  187. <![CDATA[
  188. grd_cddetl.gridToInstance();
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  193. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  194. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  195. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  196. <line id="line14" class="line_4" style="x1:273px; y1:6px; x2:273px; y2:28px; "/>
  197. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  198. <select1 id="cmb_refflag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  199. <choices>
  200. <item>
  201. <label>사용가능자료</label>
  202. <value>1</value>
  203. </item>
  204. <item>
  205. <label>전체자료</label>
  206. <value>2</value>
  207. </item>
  208. </choices>
  209. </select1>
  210. <button id="btn_ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
  211. <caption>조회</caption>
  212. <script ev:event="DOMActivate" type="javascript">
  213. <![CDATA[
  214. fGetBaccd("1");
  215. ]]>
  216. </script>
  217. </button>
  218. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  219. <choices>
  220. <item>
  221. <label>코드</label>
  222. <value>1</value>
  223. </item>
  224. <item>
  225. <label>코드명</label>
  226. <value>2</value>
  227. </item>
  228. </choices>
  229. </select1>
  230. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  231. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  232. <caption>검색</caption>
  233. <script ev:event="DOMActivate" type="javascript">
  234. <![CDATA[
  235. fGetBaccd("2");
  236. ]]>
  237. </script>
  238. </button>
  239. </group>
  240. <button id="btn_addrow" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
  241. <caption>행추가</caption>
  242. <script ev:event="DOMActivate" type="javascript">
  243. <![CDATA[
  244. fInsRowAdd(grd_cddetl);
  245. ]]>
  246. </script>
  247. </button>
  248. </group>
  249. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  250. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  251. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  252. <caption>저장</caption>
  253. <script ev:event="DOMActivate" type="javascript">
  254. <![CDATA[
  255. fExeBac();
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  260. <caption>초기화</caption>
  261. <script ev:event="DOMActivate" type="javascript">
  262. <![CDATA[
  263. fSetInit();
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  269. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">배양균코드관리</caption>
  270. </group>
  271. </xhtml:body>
  272. </xhtml:html>