SMLLF02300_DIFF입력키관리.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. <diffinputlist>
  20. <tclscd/>
  21. <tclsnm/>
  22. <tclskind/>
  23. <diffcountkey/>
  24. </diffinputlist>
  25. </main>
  26. <send>
  27. <data1/>
  28. <bac/>
  29. </send>
  30. <init>
  31. <LB0201/>
  32. </init>
  33. <hidden>
  34. <ref>
  35. <searchgbn>1</searchgbn>
  36. <searchnm/>
  37. <btnflag/>
  38. </ref>
  39. <default/>
  40. </hidden>
  41. <temp>
  42. <addlist/>
  43. </temp>
  44. </root>
  45. </instance>
  46. <script ev:event="xforms-model-construct-done" type="javascript">
  47. <![CDATA[
  48. fSetInit()
  49. ]]>
  50. </script>
  51. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  52. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  53. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  54. <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
  55. <submission id="TRLLF02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/diffinputlist"/>
  56. <submission id="TXLLF02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  57. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  58. </model>
  59. <script type="javascript">
  60. <![CDATA[
  61. /* @group : 기본코드관리
  62. * @ver : 2009.03.18
  63. * @by : 송요셉
  64. *@-----------------------------------
  65. * @type : function
  66. * @access : public
  67. * @desc : 초기화버튼 클릭
  68. */
  69. function fSetInit() {
  70. model.removeNodeset("/root/main/diffinputlist");
  71. model.refresh();
  72. }
  73. /* @group : 기본코드관리
  74. * @ver : 2009.03.18
  75. * @by : 송요셉
  76. *@-----------------------------------
  77. * @type : function
  78. * @access : public
  79. * @desc : 조회 검색 버튼 클릭
  80. */
  81. function fGetBasclist(){
  82. model.copyNode("/root/send/data1","/root/hidden/ref");
  83. submit("TRLLF02301");
  84. model.copyNode("/root/send/data1","/root/hidden/default");
  85. }
  86. /* @group : 기본코드관리
  87. * @ver : 2009.03.18
  88. * @by : 송요셉
  89. *@-----------------------------------
  90. * @type : function
  91. * @access : public
  92. * @desc : 저장버튼 클릭
  93. */
  94. function fExeBasclist(){
  95. //alert("구현중");
  96. //return;
  97. for(i = 1; i < grd_diffinputlist.rows ; i++){
  98. if(model.getValue("/root/main/diffinputlist["+i+"]/diffcountkey") == ""
  99. && grd_diffinputlist.rowStatus(i) == 2){
  100. grd_diffinputlist.rowStatus(i) = 4;
  101. }
  102. }
  103. model.setvalue("/root/send/data1" , grd_diffinputlist.getUpdateData());
  104. submit("TXLLF02301");
  105. model.copyNode("/root/send/data1","/root/hidden/default");
  106. grd_diffinputlist.clearStatus();
  107. fGetBasclist();
  108. }
  109. function fInsRowDel(pGridId){
  110. pGridId.rowStatus(pGridId.row) = 2;
  111. }
  112. ]]>
  113. </script>
  114. </xhtml:head>
  115. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  117. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  118. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:137px; height:14px; ">DIFF입력코드리스트</caption>
  119. <datagrid id="grd_diffinputlist" nodeset="/root/main/diffinputlist" class="datagrid2" caption="검사코드^검사명^검사구분^Diff Count. Key" colsep="▦" colwidth="140, 260, 120, 120" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:650px; ">
  120. <col ref="tclscd" type="output"/>
  121. <col ref="tclsnm" type="output"/>
  122. <col ref="tclskind" type="output"/>
  123. <col ref="diffcountkey" type="input"/>
  124. <script ev:event="onaftersort" type="javascript">
  125. <![CDATA[
  126. grd_diffinputlist.gridToInstance();
  127. ]]>
  128. </script>
  129. <script ev:event="onkeypress" type="javascript">
  130. <![CDATA[
  131. if(grd_diffinputlist.col == 4){
  132. //finupkeyboard();
  133. }
  134. ]]>
  135. </script>
  136. </datagrid>
  137. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  138. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  139. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  140. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  141. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  142. <choices>
  143. <item>
  144. <label>코드</label>
  145. <value>1</value>
  146. </item>
  147. <item>
  148. <label>코드명</label>
  149. <value>2</value>
  150. </item>
  151. </choices>
  152. </select1>
  153. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  154. <script ev:event="onkeypress" type="javascript">
  155. <![CDATA[
  156. if(event.keyCode == "13"){
  157. model.setvalue("/root/hidden/ref/searchnm",ipt_searchtext.currentText);
  158. model.refresh();
  159. fGetBasclist();
  160. ipt_searchtext.selBegin = 0;
  161. ipt_searchtext.selEnd = ipt_searchtext.currentText.length;
  162. }
  163. ]]>
  164. </script>
  165. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  166. <caption>조회</caption>
  167. <script ev:event="DOMActivate" type="javascript">
  168. <![CDATA[
  169. fGetBasclist();
  170. ]]>
  171. </script>
  172. </button>
  173. </group>
  174. <button id="button1" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
  175. <caption>행삭제</caption>
  176. <script ev:event="DOMActivate" type="javascript">
  177. <![CDATA[
  178. fInsRowDel(grd_diffinputlist);
  179. ]]>
  180. </script>
  181. </button>
  182. </group>
  183. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  184. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  185. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  186. <caption>저장</caption>
  187. <script ev:event="DOMActivate" type="javascript">
  188. <![CDATA[
  189. fExeBasclist();
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  194. <caption>초기화</caption>
  195. <script ev:event="DOMActivate" type="javascript">
  196. <![CDATA[
  197. fSetInit();
  198. ]]>
  199. </script>
  200. </button>
  201. </group>
  202. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  203. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">DIFF입력키관리</caption>
  204. </group>
  205. </xhtml:body>
  206. </xhtml:html>