123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLQP00400_QC결과연동.xrw
- * 설 명 : QC결과연동
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2006.12.26
- * 수정이력 :
- * 기 타 :
- -->
- <?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>QC 결과연동</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <testrslt>
- <acptdt/>
- <testnm/>
- <orgrslt/>
- <testdt/>
- <run/>
- <oclevlcd/>
- <lotno/>
- <ocitemcd/>
- <ocmthdcd/>
- <eqmtcd/>
- <ocreagentcd/>
- <ocunitcd/>
- <octmprcd/>
- <comment/>
- <reserved/>
- <orgrslt/>
- <levlnm/>
- <point/>
- <testroom/>
- <matrnm/>
- <ocitemnm/>
- <ocmthdnm/>
- <ocunitnm/>
- <octmprnm/>
- <newElement/>
- <oclotno/>
- </testrslt>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <testroom>00</testroom>
- <eqmtcd>00</eqmtcd>
- <fromtm/>
- <totm/>
- </send>
- <init>
- <LB0702/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0111"/>
- <submission id="TRLQP00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/testrslt"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetInit(){
-
- //var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30)
- //fromdate.getDateFormat("YYYYMMDD")
- var totm = getCurrentTime().substring(0,4)
-
- model.setValue("/root/send/fromdd" , getCurrentDate());
- model.setValue("/root/send/fromtm" , "0000");
- model.setValue("/root/send/todd" , getCurrentDate());
- model.setValue("/root/send/totm" , totm);
-
- model.makeValue("/root/send/codeflag" ,"0000|0111|0701|"); //0000:사용자부서코드, 0111:시행부서계 0707: 장비코드
- submit("TRLZZ00101", false);
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/send/codeflag" , "0501|"); //사용자 부서별로 레벨코드를 조회하기 위해 사용자부서 코드를 가져온 다음 다시 레벨코드 조회
- submit("TRLZZ00101");
- }
-
- //장비코드설정
- function fSetEqmtCd(){
-
- model.removeNodeset("/root/init/LB0701");
-
- var testroom = model.getValue("/root/send/testroom");
- model.makeValue("/root/send/basecdid" , testroom); //검사실구분 코드(장비코드앞자리)
- model.makeValue("/root/send/codeflag" , "0701|");
- model.setValue("/root/send/eqmtcd" , '00');
-
- submit("TRLZZ00101");
- }
-
- //결과조회(검사항목별)
- function fGetRslt(){
- if(model.getValue("/root/send/eqmtcd") == "00"){
- messageBox("장비를", "C002","");
- return;
- }
- submit("TRLQP00401");
- }
-
- //결과저장할 그리드 숨겼다보이기
- function fGrdVisible(){
- if(grd_rslt2.visible == true){
- grd_rslt2.visible = false;
- }else{
- grd_rslt2.visible = true;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:11px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload(); //초기화reload
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <group id="group5" style="left:0px; top:0px; width:1193px; height:40px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:40px; "/>
- <caption id="caption1" class="search_no_b" style="left:245px; top:12px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <caption id="caption3" class="search_name" style="left:500px; top:11px; width:75px; height:17px; ">검사실 :</caption>
- <caption id="caption4" class="search_name" style="left:790px; top:11px; width:75px; height:17px; ">장비 :</caption>
- <select1 id="cbo_testRoom" ref="/root/send/testroom" class="combo_search" appearance="minimal" style="left:580px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetEqmtCd(); //검사실에 대한 장비 조회
- ]]>
- </script>
- </select1>
- <select1 id="cbo_emqt" ref="/root/send/eqmtcd" class="combo_search" appearance="minimal" style="left:855px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_getRslt" class="btn1_letter2" style="left:1123px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRslt();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:32px; "/>
- <caption id="caption6" class="search_name" style="left:15px; top:11px; width:90px; height:17px; ">접수일자 :</caption>
- <input id="ipt_acptFromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:105px; top:10px; width:85px; height:19px; "/>
- <input id="ipt_acptTodd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:260px; top:10px; width:85px; height:19px; "/>
- <input id="ipt_acpfromtm" ref="/root/send/fromtm" class="input_search" format="hh:nn" style="left:191px; top:10px; width:50px; height:19px; "/>
- <input id="ipt_acpttotm" ref="/root/send/totm" class="input_search" format="hh:nn" style="left:346px; top:10px; width:50px; height:19px; "/>
- </group>
- <datagrid id="grd_rslt" nodeset="/root/main/testrslt" caption="접수일자^검사명^결과^검사(확인)일시^횟수^물질^레벨^LOT번호^항목코드^방법^장비^시약^단위^온도^Comment^검사자" colsep="^" colwidth="120, 140, 50, 120, 30, 110, 60, 60, 110, 110, 40, 110, 60, 40, 80,80" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:666px; ">
- <col ref="acptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="testnm" style="left:140px; top:23px; width:100px; height:23px; "/>
- <col ref="orgrslt"/>
- <col ref="testdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="run"/>
- <col ref="matrnm"/>
- <col ref="levlnm"/>
- <col ref="lotno"/>
- <col ref="ocitemnm"/>
- <col ref="ocmthdnm"/>
- <col ref="eqmtcd" visibility="hidden"/>
- <col ref="ocreagentnm"/>
- <col ref="ocunitnm"/>
- <col ref="octmprnm"/>
- <col ref="comment" visibility="hidden"/>
- <col ref="operator"/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:5px; top:48px; width:130px; height:13px; ">검체정보상세내역</caption>
- <button id="button6" class="btn2_letter2" style="left:1148px; top:42px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "QC_"+getCurrentDate()+"_"+(cbo_emqt.label).substr(6, (cbo_emqt.label).length), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_rslt.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:63px; x2:1194px; y2:63px; "/>
- <datagrid id="grd_rslt2" nodeset="/root/main/testrslt" visibility="hidden" caption="Point^검사(접수)일시^횟수^레벨^시행부서^LOT번호^항목코드^방법^장비^시약^단위^온도^검사자^Comment^Reserved^결과^colseq" colsep="^" colwidth="70,130,70,70,60,60,60,60,60,70,70,70,70,70,80^60^80^30" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:430px; width:1194px; height:306px; ">
- <col ref="point"/>
- <col ref="acptdt"/>
- <col ref="run"/>
- <col ref="oclevlcd"/>
- <col ref="testroom"/>
- <col ref="oclotno"/>
- <col ref="ocitemcd"/>
- <col ref="ocmthdcd"/>
- <col ref="eqmtcd2"/>
- <col ref="ocreagentcd"/>
- <col ref="ocunitcd"/>
- <col ref="octmprcd"/>
- <col ref="operator"/>
- <col ref="comment"/>
- <col ref="reserved"/>
- <col ref="orgrslt"/>
- <col ref="temp" visibility="hidden"/>
- </datagrid>
- <button id="btn_saveTxt" class="btn2_letter3" style="left:1092px; top:42px; width:53px; height:19px; ">
- <caption>TEXT</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "QC_"+getCurrentDate()+"_"+(cbo_emqt.label).substr(6, (cbo_emqt.label).length), "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_rslt2.saveText(fileName, "\n", "|");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:95px; height:13px; ">
- <![CDATA[QC 결과연동]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGrdVisible();
- ]]>
- </script>
- </caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|