SMLQF00800_QCQnCall마스터관리.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLQF00300.xrw
  4. * 설 명 : QC OnCall 마스터 관리
  5. * 설 계 자 : 서승현
  6. * 작 성 자 : 서승현
  7. * 작 성 일 : 2008.11.02
  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>QC OnCall 마스터 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <itemlist>
  20. <chk/>
  21. <seq/>
  22. <basecd/>
  23. <basecdnm/>
  24. </itemlist>
  25. </main>
  26. <init>
  27. </init>
  28. <hidden>
  29. </hidden>
  30. <send>
  31. <basecdid>00</basecdid>
  32. <searchtext/>
  33. <searchflag>1</searchflag>
  34. <itemlist/>
  35. </send>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <submission id="TRLQF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
  41. <submission id="TXLQF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fSetInit();
  45. ]]>
  46. </script>
  47. </model>
  48. <script type="javascript">
  49. <![CDATA[
  50. function fSetInit(){
  51. model.removeNodeset("/root/main/testlist");
  52. grd_itemList.rebuild();
  53. }
  54. //저장 데이터 확인
  55. function checkGridUpdate(grid){
  56. var iData = grid.getUpdateDataXml("insert");
  57. var uData = grid.getUpdateDataXml("update");
  58. var dData = grid.getUpdateDataXml("delete");
  59. if (iData=="" && uData=="" && dData=="") return false;
  60. else{
  61. return true;
  62. }
  63. }
  64. //조회버튼
  65. function fGetItemList(){
  66. var basecdid = model.getValue("/root/send/basecdid");
  67. var basecdidnm = cbo_searchFlag.label;
  68. if( basecdid == "00"){
  69. alert("조회구분을 선택하세요!!");
  70. }else{
  71. model.makeValue("/root/send/basecdidnm", basecdidnm);
  72. submit("TRLQF00801");
  73. }
  74. }
  75. //키이벤트
  76. function fKeyEvent(){
  77. if(event.keyCode == "13"){
  78. if(event.target =="ipt_search"){
  79. model.setValue("/root/send/searchtext", ipt_search.currentText);
  80. fGetItemList();
  81. }
  82. }
  83. }
  84. ]]>
  85. </script>
  86. </xhtml:head>
  87. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  89. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  90. <datagrid id="grd_itemList" nodeset="/root/main/itemlist" class="datagrid2" autoresize="true" caption="^항목코드^항목명^조회순서" colsep="^" colwidth="25, 84, 352, 60" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:75px; width:1189px; height:647px; ">
  91. <col checkvalue="true,false" ref="chk" type="checkbox" visibility="hidden"/>
  92. <col disabled="true" ref="basecd" type="input"/>
  93. <col ref="basecdnm" type="input"/>
  94. <col ref="seq" type="input"/>
  95. </datagrid>
  96. <caption id="caption2" class="tit_2" style="left:5px; top:56px; width:173px; height:14px; ">검사코드상세내역</caption>
  97. <button id="btn_add" class="btn2_letter3" disabled="false" visibility="visible" style="left:1075px; top:50px; width:53px; height:19px; ">
  98. <caption>행추가</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. grd_itemList.additem();
  102. grd_itemList.bottomRow = grd_itemList.rows;
  103. ]]>
  104. </script>
  105. </button>
  106. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  107. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  108. <button id="button1" class="btn1_letter2" style="left:1115px; top:7px; width:56px; height:22px; ">
  109. <caption>검색</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fGetItemList();
  113. ]]>
  114. </script>
  115. </button>
  116. <select1 id="cbo_searchFlag" ref="/root/send/basecdid" class="combo_search" appearance="minimal" style="left:115px; top:9px; width:157px; height:19px; ">
  117. <choices>
  118. <item>
  119. <label>- 선택 -</label>
  120. <value>00</value>
  121. </item>
  122. <item>
  123. <label>검사방법(Method)</label>
  124. <value>LQ001</value>
  125. </item>
  126. <item>
  127. <label>온도(Temperature)</label>
  128. <value>LQ002</value>
  129. </item>
  130. <item>
  131. <label>검사실번호(LabNo)</label>
  132. <value>LQ003</value>
  133. </item>
  134. <item>
  135. <label>단위(Unit)</label>
  136. <value>LQ004</value>
  137. </item>
  138. <item>
  139. <label>장비코드(Instrument)</label>
  140. <value>LQ005</value>
  141. </item>
  142. <item>
  143. <label>검사항목코드(Analyte)</label>
  144. <value>LQ006</value>
  145. </item>
  146. <item>
  147. <label>시약코드(Reagent)</label>
  148. <value>LQ007</value>
  149. </item>
  150. </choices>
  151. <script type="javascript" ev:event="xforms-select">
  152. <![CDATA[
  153. model.removeNodeset("/root/main/itemlist");
  154. grd_itemList.rebuild();
  155. fGetItemList();
  156. ]]>
  157. </script>
  158. </select1>
  159. <input id="ipt_search" ref="/root/send/searchtext" class="input_s_button" inputtype="button" style="left:510px; top:10px; width:140px; height:19px; ">
  160. <script type="javascript" ev:event="onkeypress">
  161. <![CDATA[
  162. fKeyEvent();
  163. ]]>
  164. </script>
  165. </input>
  166. <caption id="caption25" class="search_name" style="left:25px; top:9px; width:87px; height:17px; ">조회구분 :</caption>
  167. <line id="line2" class="line_4" style="x1:1100px; y1:5px; x2:1100px; y2:27px; "/>
  168. <caption id="caption1" class="search_name" style="left:295px; top:10px; width:90px; height:17px; ">검색구분 :</caption>
  169. <select1 id="combo1" ref="/root/send/searchflag" class="combo_search" appearance="minimal" style="left:390px; top:10px; width:117px; height:19px; ">
  170. <choices>
  171. <item>
  172. <label>항목코드</label>
  173. <value>1</value>
  174. </item>
  175. <item>
  176. <label>항목명</label>
  177. <value>2</value>
  178. </item>
  179. </choices>
  180. </select1>
  181. </group>
  182. <button id="btn_del" class="btn2_letter3" visibility="visible" style="left:1135px; top:50px; width:53px; height:19px; ">
  183. <caption>행삭제</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. grd_itemList.rowStatus(grd_itemList.row) = 4; //멀티업데이트 시 Delete로 설정 //0:new, 1:insert, 2:update, 3:insert&new, 4:delete
  187. ]]>
  188. </script>
  189. </button>
  190. </group>
  191. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  192. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  193. <caption>초기화</caption>
  194. <script type="javascript" ev:event="onclick">
  195. <![CDATA[
  196. window.reload();
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  201. <button id="btn_exec" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  202. <caption>저장</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. if(messageBox("", "Q002")==6){
  206. if(!checkGridUpdate(grd_itemList)){
  207. alert("저장할 자료가 존재하지 않습니다.");
  208. return;
  209. }
  210. model.setValue("/root/send/itemlist" , grd_itemList.getUpdateData());
  211. if ( submit("TXLQF00801") ) {
  212. grd_itemList.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  213. fGetItemList();
  214. }
  215. }
  216. ]]>
  217. </script>
  218. </button>
  219. </group>
  220. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  221. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">QC OnCall 마스터 관리</caption>
  222. </group>
  223. </xhtml:body>
  224. </xhtml:html>