SMLMF10100_통합배양균코드관리.xrw 8.7 KB

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