SMAEQ01500_Daily QC GE.xrw 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <cmb_info>
  11. <initexecrid>
  12. <execridnm/>
  13. <execridid/>
  14. </initexecrid>
  15. <initexcueq>
  16. <excueqcdid/>
  17. <excueqcdnm/>
  18. </initexcueq>
  19. </cmb_info>
  20. </init>
  21. <send>
  22. <globalinstance>
  23. <instance1/>
  24. </globalinstance>
  25. <data>
  26. <srchdate1/>
  27. <srchdate2/>
  28. <machine/>
  29. <basesuppdeptcd/>
  30. </data>
  31. <data2>
  32. <eqlist/>
  33. </data2>
  34. <data1>
  35. </data1>
  36. </send>
  37. <hidden>
  38. <item/>
  39. </hidden>
  40. <main>
  41. <search>
  42. <fromdd/>
  43. <todd/>
  44. <machine/>
  45. </search>
  46. <ecamlist>
  47. <eqlist>
  48. <recdd/>
  49. <peak1/>
  50. <peak2/>
  51. <fwhm1/>
  52. <fwhm2/>
  53. <unformity1/>
  54. <unformity2/>
  55. <execrid/>
  56. <eqmtcd/>
  57. <suppdeptcd/>
  58. <m/>
  59. </eqlist>
  60. </ecamlist>
  61. </main>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. // 부서 코드 조회
  67. aezfSetSuppDeptcd();
  68. // 기본 정보 조회
  69. submit("TRAER00301", false);
  70. model.setValue("/root/main/search/fromdd" , getCurrentDate());
  71. model.setValue("/root/main/search/todd" , getCurrentDate());
  72. model.removeNodeset("/root/main/ecamlist/eqlist");
  73. //2009-07-16 장비종류 - GE 만 조회되도록 처리 (임시막기)
  74. cmb_eqcdlist.choices.itemset.attribute("nodeset") = "/root/init/cmb_info/initexcueq[excuposseqcd = 'GE']";
  75. model.refresh();
  76. ]]>
  77. </script>
  78. <submission id="TRZBC00101"/>
  79. <submission id="TRAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  80. <submission id="TXAEQ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden"/>
  81. <submission id="TRAEQ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/ecamlist"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  86. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. //행추가
  92. function fgAddRow()
  93. {
  94. var machine = model.getValue("/root/main/search/machine");
  95. if (machine ==""){
  96. messageBox("장비종류를 ", "C001");
  97. }
  98. else{
  99. dgEqList.addRow();
  100. var cnt = dgEqList.rows -2 ;
  101. var dept = model.getValue("/root/send/globalinstance/instance1");
  102. model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/recdd" , getCurrentDate());
  103. model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/eqmtcd" , machine);
  104. model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/suppdeptcd" , dept);
  105. model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/execrid" , getUserInfo("userid"));
  106. model.refresh();
  107. }
  108. }
  109. //저장
  110. function fgSaveList()
  111. {
  112. model.makeValue("/root/send/data2/eqlist", dgEqList.getUpdateData());
  113. if(submit("TXAEQ01501")){
  114. fgSearchList();
  115. }
  116. }
  117. //행삭제
  118. function fgDelList()
  119. {
  120. deleteSelectedRows(dgEqList, true);
  121. }
  122. //리스트 조회
  123. function fgSearchList()
  124. {
  125. var _from = model.getValue("/root/main/search/fromdd");
  126. var _to = model.getValue("/root/main/search/todd");
  127. var _eqm = model.getValue("/root/main/search/machine");
  128. if( _from =="" || _to =="" ){
  129. messageBox("조회기간을 ", "C001");
  130. return;
  131. }
  132. if(_eqm ==""){
  133. messageBox("장비종류를 ", "C001");
  134. return;
  135. }
  136. model.makeValue("/root/send/data/srchdate1" , _from ); //조회시작일
  137. model.makeValue("/root/send/data/srchdate2" , _to); //조회종료일
  138. model.makeValue("/root/send/data/machine" , _eqm); //장비
  139. model.makeValue("/root/send/data/basesuppdeptcd" , model.getValue("/root/send/globalinstance/instance1"));
  140. model.refresh();
  141. submit("TRAEQ01501");
  142. }
  143. //엑셀저장
  144. function fgSaveExcel(){
  145. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  146. dgEqList.saveExcel(file);
  147. }
  148. ]]>
  149. </script>
  150. </xhtml:head>
  151. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  152. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  153. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">Daily Q.C GE</caption>
  154. </group>
  155. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  156. <caption id="caption1" style="left:185px; top:18px; width:20px; height:20px; vertical-align:middle; ">~</caption>
  157. <datagrid id="dgEqList" nodeset="/root/main/ecamlist/eqlist" caption="DATE^PEAK^PEAK^FWHM^FWHM^UNIFORMITY^UNIFORMITY^실시자^장비^부서|DATE^D1^D2^D1^D2^D1^D2^실시자^장비^부서" colsep="^" colwidth="107, 129, 121, 127, 121, 115, 119, 150, 140, 44" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1150px; height:615px; ">
  158. <col ref="recdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  159. <col ref="peak1" type="input" format="#.999" style="text-align:right; "/>
  160. <col ref="peak2" type="input" format="#.999" style="text-align:right; "/>
  161. <col ref="fwhm1" type="input" format="#.999" style="text-align:right; "/>
  162. <col ref="fwhm2" type="input" format="#.999" style="text-align:right; "/>
  163. <col ref="unformity1" type="input" format="#.999" style="text-align:right; "/>
  164. <col ref="unformity2" type="input" format="#.999" style="text-align:right; "/>
  165. <col ref="execrid" type="combo">
  166. <choices>
  167. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  168. <label ref="execridnm"/>
  169. <value ref="execridid"/>
  170. </itemset>
  171. </choices>
  172. </col>
  173. <col ref="eqmtcd" type="combo">
  174. <choices>
  175. <itemset nodeset="/root/init/cmb_info/initexcueq">
  176. <label ref="excueqcdnm"/>
  177. <value ref="excueqcdid"/>
  178. </itemset>
  179. </choices>
  180. </col>
  181. <col ref="suppdeptcd"/>
  182. </datagrid>
  183. <line id="line1" class="line_1" style="x1:1px; y1:73px; x2:1150px; y2:73px; "/>
  184. <button id="btn_excel" class="btn2_letter2" style="left:1108px; top:53px; width:42px; height:19px; ">
  185. <caption>엑셀</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. fgSaveExcel();
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_grdadd" class="btn2_letter3" style="left:998px; top:53px; width:53px; height:19px; ">
  193. <caption>행추가</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. fgAddRow();
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="btn_grddel" class="btn2_letter3" style="left:1053px; top:53px; width:53px; height:19px; ">
  201. <caption>행삭제</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. fgDelList();
  205. ]]>
  206. </script>
  207. </button>
  208. <group id="grp_sea" style="left:0px; top:10px; width:1169px; height:35px; vertical-align:top; ">
  209. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1154px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  210. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:65px; height:17px; ">기간 :</caption>
  211. <input id="input5" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:77px; top:8px; width:100px; height:19px; text-align:center; "/>
  212. <input id="input1" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:204px; top:8px; width:100px; height:19px; text-align:center; "/>
  213. <line id="line13" class="line_4" style="x1:1066px; y1:6px; x2:1066px; y2:28px; "/>
  214. <button id="btn_sea" class="btn1_letter2" style="left:1090px; top:5px; width:56px; height:22px; ">
  215. <caption>조회</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fgSearchList();
  219. ]]>
  220. </script>
  221. </button>
  222. <caption id="caption3" class="search_name" style="left:316px; top:9px; width:86px; height:17px; ">장비종류 :</caption>
  223. <select1 id="cmb_eqcdlist" ref="/root/main/search/machine" class="combo_search" appearance="minimal" style="left:405px; top:7px; width:166px; height:19px; text-align:left; ">
  224. <choices>
  225. <itemset nodeset="/root/init/cmb_info/initexcueq">
  226. <label ref="excueqcdnm"/>
  227. <value ref="excueqcdid"/>
  228. </itemset>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. model.setValue("/root/main/search/machine", cmb_eqcdlist.value);
  233. model.refresh();
  234. fgSearchList();
  235. ]]>
  236. </script>
  237. </select1>
  238. </group>
  239. </group>
  240. <button id="btn_save" class="btn4_letter2" style="left:1095px; top:705px; width:56px; height:22px; ">
  241. <caption>저장</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fgSaveList();
  245. ]]>
  246. </script>
  247. </button>
  248. </xhtml:body>
  249. </xhtml:html>