SMLMF00300_배양균속코드관리.xrw 8.5 KB

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