123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLQP00100_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>
- <rsltlist>
- <row>
- <a/>
- <b/>
- <c/>
- <d/>
- <e/>
- <f/>
- </row>
- <header/>
- </rsltlist>
- </main>
- <send>
- <acptfromdd/>
- <acpttodd/>
- <testroom>00</testroom>
- <eqmtcd>00</eqmtcd>
- <testcd>00</testcd>
- <testcd2/>
- <levlcd>00</levlcd>
- <testnm/>
- <levlcd2/>
- <levlnm/>
- <testnm2/>
- <deptflag/>
- <acptflag>00</acptflag>
- </send>
- <init>
- <LB0702/>
- </init>
- <hidden>
- <ref>
- <testlist>
- <testnm/>
- <testcd/>
- <testcd2/>
- <testnm2/>
- </testlist>
- <levllist>
- <levlnm/>
- <levlcd/>
- <levlcd2/>
- </levllist>
- </ref>
- <testdetlinfo>
- <testdetlinfo/>
- </testdetlinfo>
- <measfact/>
- </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="TRLQP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/testdetlinfo/testdetlinfo"/>
- <submission id="TRLQP00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/eqmttestlist"/>
- <submission id="TRLQP00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/testdetlinfo/testdetlinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSetInit(){
- //model.removeNodeset("/root/main/testdetlinfo");
- //grd_testDetlInfo.rebuild();
- model.toggle("case1");
- //fbuttonvisible("A");
-
- var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30)
-
- model.setValue("/root/send/acptfromdd", fromdate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/acpttodd", getCurrentDate());
-
- model.makeValue("/root/send/codeflag","0000|0111|0701|"); //0000:사용자부서코드, 0111:시행부서계 0707: 장비코드
- submit("TRLZZ00101", false);
-
- model.makeValue("/root/send/basecdid", "M");
- model.setValue("/root/send/codeflag", "0501|0704|"); //사용자 부서별로 레벨코드를 조회하기 위해 사용자부서 코드를 가져온 다음 다시 레벨코드 조회
- submit("TRLZZ00101");
- }
-
- // 스위치에 따라 버튼 보이기
- function fbuttonvisible(ref){
- // 검사항목별
- if(ref == "A"){
- group3.visible = false;
- group5.visible = true;
-
- model.setValue("/root/send/testnm", "");
- model.setValue("/root/send/eqmtcd", "00");
- fGrdReSet();
- }
- // 레벨별
- else if(ref == "B"){
- group3.visible = true;
- group5.visible = false;
- model.setValue("/root/send/eqmtcd", "00");
- //model.setValue("/root/send/levlcd", "");
- //ipt_levl.refresh();
- fGrdReSet();
- }
- }
-
- //그리드초기화
- function fGrdReSet(){
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- //1번째 컬럼을 제외하고 다 지운다~~
- for(i = grd_testDetlInfo.cols; i>2; i--){
- grd_testDetlInfo.removeColumn(false);
- }
- model.refresh();
- }
-
-
- //장비코드설정
- 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");
- }
-
- //#2 검사항목 설정
- function fSetTestCd(){
- model.removeNodeset("/root/init/eqmttestlist");
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/send/eqmtcd"));
- model.makeValue("/root/send/codeflag", "0702|");
-
- submit("TRLQP00112");
- model.setValue("/root/send/testcd", "00");
- cbo_testlist.refresh();
- }
-
- //장비별 검사항목 조회 팝업
- function fTestListSch(){
- var eqmtcd = model.getValue("/root/send/eqmtcd"); //장비코드
- var deptflag = "M"; //사용자부서코드
- var sflag = "nu" + "▦" + eqmtcd + "▦" + deptflag;
- setParameter("opener_parameter_id", sflag);
- modal("SPLQP00100", "", "", "", "", "", "");
-
- model.setValue("/root/send/testnm" , model.getValue("/root/hidden/ref/testlist/testnm")); //검사명
- model.setValue("/root/send/testnm2" , model.getValue("/root/hidden/ref/testlist/testnm2")); //검사명
- model.setValue("/root/send/testcd" , model.getValue("/root/hidden/ref/testlist/testcd")); //검사코드를 받아와서 셋팅~
- model.setValue("/root/send/testcd2" , model.getValue("/root/hidden/ref/testlist/testcd2"));
- model.refresh();
-
- //fGrdSet();//검사항목에 따른 그리드 셋팅
- }
-
- //검사항목별 레벨 조회 팝업
- function fTestLevlSch(){
- var eqmtcd = model.getValue("/root/send/eqmtcd"); //장비코드
- var deptflag = "M" //사용자부서코드
- var sflag = "nu" + "▦" + eqmtcd + "▦" + deptflag;
- setParameter("opener_parameter_id", sflag);
- modal("SPLQP00200", "", "", "", "", "", "");
-
- model.setValue("/root/send/levlnm" , model.getValue("/root/hidden/ref/levllist/levlnm")); //검사명
- model.setValue("/root/send/levlcd" , model.getValue("/root/hidden/ref/levllist/levlcd")); //검사코드를 받아와서 셋팅~
- model.setValue("/root/send/levlcd2" , model.getValue("/root/hidden/ref/levllist/levlcd2"));
- model.refresh();
-
- //fGrdSet2();//검사항목에 따른 그리드 셋팅
- }
-
- //검사항목에 따른 그리드 셋팅
- function fGrdSet(){
- if(model.getValue("/root/hidden/ref/testlist/testnm") != ""){
- model.removeNodeset("/root/main/testdetlinfo");
- grd_testDetlInfo.addRow(); ///////////////////////////////////////////////////removeNodeset하면 컬럼이 사라지지 않는 현상 발생...
-
-
- //그리드 컬럼 추가 및 캡션 설정 //컬럼 추가때 사용
- var vCap = "검사정보"; //캡션 test로 초기화(고정인 컬럼 캡션)
- var vTestnm = model.getValue("/root/hidden/ref/testlist/testnm2").split("▦"); //검사항목을 ", "단위로 쪼개서 담고
- /*
- if(vTestnm.length > 10){
- alert("최대조회 항목 수는 10개입니다\n검사항목을 다시 선택하세요!!");
- fTestListSch();
- return;
- }*/
- //1번째 컬럼을 제외하고 다 지운다~~
- for(i = grd_testDetlInfo.cols; i>2; i--){
- grd_testDetlInfo.removeColumn(false);
- }
-
- //검사항목 갯수만큼 컬럼 추가
- for(i = 0; i<vTestnm.length ; i++){ //선택한 검사항목 갯수만큼
- vCap = vCap + "^" + vTestnm[i]; //캡션에 하나씩 넣어주고
- grd_testDetlInfo.addColumn("ref:column"+(i)+ " ; type:output;", false); //컬럼 ref설정 및 output타입으로 컬럼 추가
- }
- grd_testDetlInfo.caption = vCap;
- }
- grd_testDetlInfo.rowHidden(1) = true; ///////////////////////////////////////////////////removeNodeset하면 컬럼이 사라지지 않는 현상 발생...
- grd_testDetlInfo.refresh();
- }
-
- // 요셉
- function fMicroGetRslt(){
-
-
- if(model.getValue("/root/send/eqmtcd") == "00"){
- messageBox("장비를", "C002","");
- return 0;
- }
- if(model.getValue("/root/hidden/ref/testlist/testnm") == ""){
- messageBox("검사항목을", "C002","");
- return 0;
- }
- //if(model.getValue("/root/send/levlcd") == "00"){
- // messageBox("레벨을", "C002","");
- // return 0;
- //}
- else{
-
- // 그리드 컬럼 초기화
- var cols = grd_testDetlInfo.cols-grd_testDetlInfo.fixedCols;
- var rows = grd_testDetlInfo.rows-grd_testDetlInfo.fixedRows;
- //alert(cols)
- for( var i = 0; i < cols; i++ ) {
- grd_testDetlInfo.removeColumn(false);
- }
-
- for( var i = 0; i < rows; i++ ) {
- grd_testDetlInfo.removeRow(false);
- }
-
- model.removeNodeset("/root/main/");
- model.setValue("/root/send/deptflag", "M");
- submit("TRLQP00901", false);
- //submit("TRLMP00301", false);
-
- var gridCaption = model.getValue("/root/hidden/testdetlinfo/rsltlist/header/caption");
-
- if(gridCaption == "") return;
- //ref 정보
- var gridColRef = model.getValue("/root/hidden/testdetlinfo/rsltlist/header/colref");
- var gridColRefArray = gridColRef.split("^");
-
- for( var i = 0; i < gridColRefArray.length; i++ ) {
-
- grd_testDetlInfo.addColumn("ref:" + gridColRefArray[i] + ";", false);
- }
- grd_testDetlInfo.colWidth(1) = 200;
- grd_testDetlInfo.colWidth(2) = 100;
- grd_testDetlInfo.ellipsis = true;
-
-
- for( i = 3; i < grd_testDetlInfo.cols; i++ ) {
-
- grd_testDetlInfo.colWidth(i) = 60;
- grd_testDetlInfo.colWidth(i+1) = 0;
- grd_testDetlInfo.colWidth(i+2) = 20;
- grd_testDetlInfo.colWidth(i+3) = 40;
- i = i+3;
- }
- grd_testDetlInfo.caption = gridCaption;
- //grd_keepbaclist.colType(1) = "checkbox"; //선택컬럼 체크박스로
-
- var node = instance1.selectSingleNode("/root/main");
- node.replaceChild(instance1.root.hidden.testdetlinfo.rsltlist, instance1.root.main.rsltlist);
-
- grd_testDetlInfo.rebuild();
-
- var R = grd_testDetlInfo.rows;
- var C = grd_testDetlInfo.cols;
- var re1, re2;
-
- //grd_testDetlInfo.colStyle(1,"left","text-align");
- grd_testDetlInfo.colAttribute(1, "text-align") = "left";
-
- for(re1 = 2 ; re1 < R ; re1++){
- for(re2 = 3 ; re2 < C ; re2++){
- if(re2 % 4 == 0){
- if(grd_testDetlInfo.valueMatrix(re1, re2) != ""){
- grd_testDetlInfo.cellStyle("background-image", re1, re2+1) = "../../../lis/commonweb/images/icnMULTIRST.gif";
- }
- }
- }
- }
- }
- }
-
-
- function fgetcomment(){
-
- var gridCol = grd_testDetlInfo.col;
- var gridRow = grd_testDetlInfo.row;
-
- if(gridCol < 3){
- model.setValue("/root/hidden/measfact", "");
- model.refresh();
- return;
- }
- if(gridRow < 2){
- model.setValue("/root/hidden/measfact", "");
- model.refresh();
- return;
- }
- var calCol = grd_testDetlInfo.col - 1;
-
- if(calCol % 4 == 0){
- var cnts = grd_testDetlInfo.valueMatrix(gridRow, calCol);
- model.setValue("/root/hidden/measfact", cnts);
- }else{
- model.setValue("/root/hidden/measfact", "");
- }
-
- model.refresh();
- }
-
- ]]>
- </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; ">
- <datagrid id="grd_testDetlInfo" nodeset="/root/main/rsltlist/row" class="datagrid2" colsep="^" colwidth="120" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:95px; width:1194px; height:525px; text-align:center; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_testDetlInfo.isCell(event.target) && grd_testDetlInfo.row >= grd_testDetlInfo.fixedRows ){
- fgetcomment();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:5px; top:75px; width:130px; height:28px; ">검체정보상세내역</caption>
- <button id="button6" class="btn2_letter2" style="left:1148px; top:69px; width:42px; height:34px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_testDetlInfo.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <button id="button1" class="icon_search" visibility="hidden" style="left:773px; top:33px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- ]]>
- </script>
- </button>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:60px; "/>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMicroGetRslt();
- //grd_testDetlInfo.frozenRows = 4;
- ]]>
- </script>
- </button>
- <select1 id="cbo_exeDept" ref="/root/send/testroom" class="combo_search" visibility="hidden" appearance="minimal" style="left:515px; top:8px; 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>
- <button id="btn_testListSch" class="icon_search" style="left:363px; top:34px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/eqmtcd") == "00"){ //장비코드가 전체이면
- messageBox("장비를", "C002","");
- }else{
- fTestListSch(); //장비별 검사항목 팝업 뜨지롱
- }
- ]]>
- </script>
- </button>
- <select1 id="cbo_eqmtList" ref="/root/send/eqmtcd" class="combo_search" appearance="minimal" style="left:940px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701[etc01 = 'M']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fTestListSch(); //장비에대한 검사항목 조회 팝업뜬다~~~
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_no_b" style="left:195px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:33px; width:93px; height:17px; ">검사항목 :</caption>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:435px; top:9px; width:75px; height:17px; ">검사실 :</caption>
- <input id="ipt_testCd" ref="/root/send/testnm" class="input_search" style="left:105px; top:32px; width:255px; height:19px; "/>
- <select1 id="combo3" ref="/root/send/acptflag" class="combo_search" appearance="minimal" style="left:940px; top:31px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0704">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:850px; top:9px; width:75px; height:17px; ">장비 :</caption>
- <select1 id="cbo_levlCd" ref="/root/send/levlcd" class="combo_search" appearance="minimal" style="left:515px; top:32px; width:255px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0501">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:435px; top:33px; width:93px; height:17px; ">레벨 :</caption>
- <caption id="caption6" class="search_name" style="left:850px; top:32px; width:86px; height:17px; ">접수구분 :</caption>
- <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; "/>
- <input id="ipt_acptFromdd" ref="/root/send/acptfromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">접수일자 :</caption>
- <input id="ipt_acpTtodd" ref="/root/send/acpttodd" class="input_search" inputtype="date" style="left:210px; top:8px; width:85px; height:19px; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:655px; x2:1194px; y2:655px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:640px; width:130px; height:14px; ">조치사항 상세내역</caption>
- <textarea id="textarea1" ref="/root/hidden/measfact" style="left:0px; top:660px; width:1194px; height:75px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption16" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">QC 결과조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|