123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <cmb_info>
- <initexecrid>
- <execridnm/>
- <execridid/>
- </initexecrid>
- <initexcueq>
- <excueqcdid/>
- <excueqcdnm/>
- </initexcueq>
- </cmb_info>
- </init>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data>
- <srchdate1/>
- <srchdate2/>
- <machine/>
- <basesuppdeptcd/>
- </data>
- <data2>
- <eqlist/>
- </data2>
- <data1>
- </data1>
- </send>
- <hidden>
- <item/>
- </hidden>
- <main>
- <search>
- <fromdd/>
- <todd/>
- <machine/>
- </search>
- <ecamlist>
- <eqlist>
- <recdd/>
- <peak1/>
- <peak2/>
- <fwhm1/>
- <fwhm2/>
- <unformity1/>
- <unformity2/>
- <execrid/>
- <eqmtcd/>
- <suppdeptcd/>
- <m/>
- </eqlist>
- </ecamlist>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 부서 코드 조회
- aezfSetSuppDeptcd();
- // 기본 정보 조회
- submit("TRAER00301", false);
-
- model.setValue("/root/main/search/fromdd" , getCurrentDate());
- model.setValue("/root/main/search/todd" , getCurrentDate());
-
- model.removeNodeset("/root/main/ecamlist/eqlist");
- //2009-07-16 장비종류 - GE 만 조회되도록 처리 (임시막기)
- cmb_eqcdlist.choices.itemset.attribute("nodeset") = "/root/init/cmb_info/initexcueq[excuposseqcd = 'GE']";
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TXAEQ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEQ01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/ecamlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //행추가
- function fgAddRow()
- {
- var machine = model.getValue("/root/main/search/machine");
-
- if (machine ==""){
- messageBox("장비종류를 ", "C001");
- }
- else{
- dgEqList.addRow();
- var cnt = dgEqList.rows -2 ;
- var dept = model.getValue("/root/send/globalinstance/instance1");
- model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/recdd" , getCurrentDate());
- model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/eqmtcd" , machine);
- model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/suppdeptcd" , dept);
- model.setValue("/root/main/ecamlist/eqlist["+cnt+"]/execrid" , getUserInfo("userid"));
- model.refresh();
- }
- }
- //저장
- function fgSaveList()
- {
- model.makeValue("/root/send/data2/eqlist", dgEqList.getUpdateData());
- if(submit("TXAEQ01501")){
- fgSearchList();
- }
- }
-
- //행삭제
- function fgDelList()
- {
- deleteSelectedRows(dgEqList, true);
- }
- //리스트 조회
- function fgSearchList()
- {
-
- var _from = model.getValue("/root/main/search/fromdd");
- var _to = model.getValue("/root/main/search/todd");
- var _eqm = model.getValue("/root/main/search/machine");
-
- if( _from =="" || _to =="" ){
- messageBox("조회기간을 ", "C001");
- return;
- }
-
- if(_eqm ==""){
- messageBox("장비종류를 ", "C001");
- return;
- }
-
- model.makeValue("/root/send/data/srchdate1" , _from ); //조회시작일
- model.makeValue("/root/send/data/srchdate2" , _to); //조회종료일
- model.makeValue("/root/send/data/machine" , _eqm); //장비
- model.makeValue("/root/send/data/basesuppdeptcd" , model.getValue("/root/send/globalinstance/instance1"));
- model.refresh();
- submit("TRAEQ01501");
-
- }
-
- //엑셀저장
- function fgSaveExcel(){
-
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- dgEqList.saveExcel(file);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">Daily Q.C GE</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" style="left:185px; top:18px; width:20px; height:20px; vertical-align:middle; ">~</caption>
- <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; ">
- <col ref="recdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
- <col ref="peak1" type="input" format="#.999" style="text-align:right; "/>
- <col ref="peak2" type="input" format="#.999" style="text-align:right; "/>
- <col ref="fwhm1" type="input" format="#.999" style="text-align:right; "/>
- <col ref="fwhm2" type="input" format="#.999" style="text-align:right; "/>
- <col ref="unformity1" type="input" format="#.999" style="text-align:right; "/>
- <col ref="unformity2" type="input" format="#.999" style="text-align:right; "/>
- <col ref="execrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
- <label ref="execridnm"/>
- <value ref="execridid"/>
- </itemset>
- </choices>
- </col>
- <col ref="eqmtcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcueq">
- <label ref="excueqcdnm"/>
- <value ref="excueqcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="suppdeptcd"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:1px; y1:73px; x2:1150px; y2:73px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1108px; top:53px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgSaveExcel();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:998px; top:53px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1053px; top:53px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgDelList();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1169px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1154px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:65px; height:17px; ">기간 :</caption>
- <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; "/>
- <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; "/>
- <line id="line13" class="line_4" style="x1:1066px; y1:6px; x2:1066px; y2:28px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1090px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgSearchList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:316px; top:9px; width:86px; height:17px; ">장비종류 :</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcueq">
- <label ref="excueqcdnm"/>
- <value ref="excueqcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/search/machine", cmb_eqcdlist.value);
- model.refresh();
- fgSearchList();
-
- ]]>
- </script>
- </select1>
- </group>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:1095px; top:705px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fgSaveList();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|