1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099 |
- <?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>QC 검사항목별 결과관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <testrslt>
- <chk/>
- <bcno/>
- <matrnm/>
- <levlnm/>
- <acptdt/>
- <testcd/>
- <testnm/>
- </testrslt>
- <testrsltinfo>
- <bcno/>
- <matrcd/>
- <levlcd/>
- <testcd/>
- <acptdt/>
- <rsltcnfmdt/>
- <rsltcnfmid/>
- <orgrslt/>
- <viewrslt/>
- <wgmrstat/>
- <measfactcnts/>
- <judgmark/>
- <wgmrmark/>
- <rsltstat/>
- <rsltkind/>
- <refkind/>
- <refflag/>
- <refl/>
- <refh/>
- <refls/>
- <refhs/>
- <refcval/>
- <intrsltfrmt/>
- <avge/>
- <rsltunit/>
- <wgmrscop/>
- <sdval/>
- <judgkind/>
- <rundkind/>
- <lotno/>
- <matrnm/>
- <prodcmpy/>
- <levlnm/>
- <bfcolumn0/>
- <bfcolumn1/>
- <bfcolumn2/>
- <bfcolumn3/>
- <bfcolumn4/>
- <bfcolumn5/>
- <bfcolumn6/>
- <bfcolumn7/>
- <bfcolumn8/>
- <bfrsltcnfmid/>
- <bfrsltcnfmdt/>
- <iud/>
- <instcd/>
- <userdeptflagcd/>
- <eqmtcd/>
- <acptflag/>
- </testrsltinfo>
- </main>
- <send>
- <testnm/>
- <testnm2/>
- <testcd/>
- <testcd2/>
- <rsltstat/>
- </send>
- <init/>
- <hidden>
- <ref>
- <acptfromdd/>
- <acpttodd/>
- <testroom>00</testroom>
- <eqmtcd>00</eqmtcd>
- <testnm/>
- <levlcd/>
- <basecdid/>
- <testlist>
- <testnm/>
- <testcd/>
- <testcd2/>
- <testnm2/>
- </testlist>
- <testcdlist/>
- <rsltflag>2</rsltflag>
- <acptflag>00</acptflag>
- <levllist>
- <levlnm/>
- <levlcd/>
- <levlcd2/>
- </levllist>
- </ref>
- <rsltinfo>
- <rsltstat>
- <rsltstat/>
- <wgmrmark/>
- <judgmark/>
- </rsltstat>
- <refval/>
- <wgmrscop/>
- <wgmrstat/>
- <avge/>
- <sdval/>
- <lotno/>
- <prodcmpy/>
- <orgrslt/>
- <measfactcnts/>
- <acptdt/>
- <bfrsltcnfmdt/>
- <rsltcnfmid/>
- <bfrsltcnfmid/>
- <rsltcnfmdt/>
- <rsltunit/>
- <bfrslt/>
- <ddosevalue/>
- <cdosevalue/>
- <bfvalue/>
- </rsltinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![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"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LQZ001.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0111"/>
- <submission id="TRLQJ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <bind id="bind0" ref="/root/main/testrslt/column0" readonly="../column0/@readonly = 'true'"/>
- <bind id="bind1" ref="/root/main/testrslt/column1" readonly="../column1/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/testrslt/column2" readonly="../column2/@readonly = 'true'"/>
- <bind id="bind3" ref="/root/main/testrslt/column3" readonly="../column3/@readonly = 'true'"/>
- <bind id="bind4" ref="/root/main/testrslt/column4" readonly="../column4/@readonly = 'true'"/>
- <bind id="bind5" ref="/root/main/testrslt/column5" readonly="../column5/@readonly = 'true'"/>
- <bind id="bind6" ref="/root/main/testrslt/column6" readonly="../column6/@readonly = 'true'"/>
- <bind id="bind7" ref="/root/main/testrslt/column7" readonly="../column7/@readonly = 'true'"/>
- <bind id="bind8" ref="/root/main/testrslt/column8" readonly="../column8/@readonly = 'true'"/>
- <bind id="bind9" ref="/root/main/testrslt/column9" readonly="../column9/@readonly = 'true'"/>
- <bind id="bind10" ref="/root/main/testrslt/column10" readonly="../column10/@readonly = 'true'"/>
- <bind id="bind11" ref="/root/main/testrslt/column11" readonly="../column11/@readonly = 'true'"/>
- <bind id="bind12" ref="/root/main/testrslt/column12" readonly="../column12/@readonly = 'true'"/>
- <bind id="bind13" ref="/root/main/testrslt/column13" readonly="../column13/@readonly = 'true'"/>
- <bind id="bind14" ref="/root/main/testrslt/column14" readonly="../column14/@readonly = 'true'"/>
- <bind id="bind15" ref="/root/main/testrslt/column15" readonly="../column15/@readonly = 'true'"/>
- <bind id="bind16" ref="/root/main/testrslt/column16" readonly="../column16/@readonly = 'true'"/>
- <bind id="bind17" ref="/root/main/testrslt/column17" readonly="../column17/@readonly = 'true'"/>
- <bind id="bind18" ref="/root/main/testrslt/column18" readonly="../column18/@readonly = 'true'"/>
- <bind id="bind19" ref="/root/main/testrslt/column19" readonly="../column19/@readonly = 'true'"/>
- <bind id="bind20" ref="/root/main/testrslt/column20" readonly="../column20/@readonly = 'true'"/>
- <bind id="bind21" ref="/root/main/testrslt/column21" readonly="../column21/@readonly = 'true'"/>
- <bind id="bind22" ref="/root/main/testrslt/column22" readonly="../column22/@readonly = 'true'"/>
- <bind id="bind23" ref="/root/main/testrslt/column23" readonly="../column23/@readonly = 'true'"/>
- <bind id="bind24" ref="/root/main/testrslt/column24" readonly="../column24/@readonly = 'true'"/>
- <bind id="bind25" ref="/root/main/testrslt/column25" readonly="../column25/@readonly = 'true'"/>
- <bind id="bind26" ref="/root/main/testrslt/column26" readonly="../column26/@readonly = 'true'"/>
- <bind id="bind27" ref="/root/main/testrslt/column27" readonly="../column27/@readonly = 'true'"/>
- <bind id="bind28" ref="/root/main/testrslt/column28" readonly="../column28/@readonly = 'true'"/>
- <bind id="bind29" ref="/root/main/testrslt/column29" readonly="../column29/@readonly = 'true'"/>
- <bind id="bind30" ref="/root/main/testrslt/column30" readonly="../column30/@readonly = 'true'"/>
- <bind id="bind31" ref="/root/main/testrslt/column31" readonly="../column31/@readonly = 'true'"/>
- <bind id="bind32" ref="/root/main/testrslt/column32" readonly="../column32/@readonly = 'true'"/>
- <bind id="bind33" ref="/root/main/testrslt/column33" readonly="../column33/@readonly = 'true'"/>
- <bind id="bind34" ref="/root/main/testrslt/column34" readonly="../column34/@readonly = 'true'"/>
- <submission id="TXLQJ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var vStartCol = 7; //결과값이 조회되는 컬럼
- //초기화
- function fSetinit(){
-
- //var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30)
-
- //model.setValue("/root/hidden/ref/acptfromdd" , fromdate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/acptfromdd" , getCurrentDate());
- model.setValue("/root/hidden/ref/acpttodd" , getCurrentDate());
-
- 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|0704|"); //사용자 부서별로 레벨코드를 조회하기 위해 사용자부서 코드를 가져온 다음 다시 레벨코드 조회
- submit("TRLZZ00101");
-
- grd_testRslt.fixedcellcheckbox(0, 1) = true;
- grd_testRslt.fixedcellischeck(0, 1) = false;
-
- //grd_testRslt.rowHidden(1) = true; //검사코드
- }
-
- //검사실에 따른 장비 조회
- function fSetEqmtCd(){
-
- model.removeNodeset("/root/init/LB0701");
-
- var testroom = model.getValue("/root/hidden/ref/testroom");
-
- model.makeValue("/root/send/basecdid", testroom); //검사실구분 코드(장비코드앞자리)
- model.setValue("/root/send/codeflag","0701|");
- model.setValue("/root/hidden/ref/eqmtcd", "00");
-
- submit("TRLZZ00101");
- }
-
- //장비별 검사항목 조회 팝업
- function fTestListSch(){
-
- var eqmtcd = model.getValue("/root/hidden/ref/eqmtcd"); //장비코드
- var deptflag = model.getValue("/root/init/LB0000/nm"); //사용자부서코드
- var sflag = "nu" + "▦" + eqmtcd + "▦" + deptflag;
-
- setParameter("opener_parameter_id", sflag);
- modal("SPLQP00100", "", "", "", "", "", "");
-
- model.setValue("/root/hidden/ref/testnm", model.getValue("/root/hidden/ref/testlist/testnm")); //검사명
-
- 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 = model.getValue("/root/init/LB0000/nm"); //사용자부서코드
- var tlentgh = model.getValue("/root/hidden/ref/testlist/testcd").split("▦");
- var testcd = model.getValue("/root/hidden/ref/testlist/testcd");
- for(i = 0; i < tlentgh.length; i++){
- testcd = testcd.replace("▦", "▤");
- }
- var sflag = "nu" + "▦" + eqmtcd + "▦" + deptflag + "▦" + testcd;
- setParameter("opener_parameter_id", sflag);
- modal("SPLQP00200", "", "", "", "", "", "");
-
- //model.makeValue("/root/send/levlnm" , model.getValue("/root/hidden/ref/levllist/levlnm")); //레벨명
- model.setValue("/root/hidden/ref/levlcd" , model.getValue("/root/hidden/ref/levllist/levlcd")); //레벨코드
- //model.makeValue("/root/send/levlcd2" , model.getValue("/root/hidden/ref/levllist/levlcd2"));
- //model.refresh();
- fGrdSet();
- }
-
- //검사항목에 따른 그리드 셋팅
- function fGrdSet(){
-
- if(model.getValue("/root/hidden/ref/levllist/levlnm") != ""){
- model.removeNodeset("/root/main/rslt");
- grd_testRslt.addRow(); //요거 안해주면 컬럼 안사라져서 이상하게됨 -_-
-
- //그리드 컬럼 추가 및 캡션 설정 //컬럼 추가때 사용
- var vCap = "^검사명^검체번호^Control^Standard^접수일시"; //캡션 초기화(고정인 컬럼 캡션)//검사명
- var vCap2 = vCap //검사코드
- var vTestnm = model.getValue("/root/hidden/ref/levllist/levlcd").split("▦"); //검사항목을 ▦단위로 쪼개서 담고
- var vTestcd = model.getValue("/root/hidden/ref/levllist/levlnm").split(", "); //검사항목을 ▦단위로 쪼개서 담고
-
- //1번째 컬럼을 제외하고 다 지운다~~
- for(i = grd_testRslt.cols; i>vStartCol; i--){
- grd_testRslt.removeColumn(false);
- }
-
- //검사항목 갯수만큼 컬럼 추가
- for(i = 0; i<vTestnm.length ; i++){ //선택한 검사항목 갯수만큼
- vCap = vCap + "^" + vTestnm[i]; //캡션에 하나씩 넣어주고
- vCap2 = vCap2 + "^" + vTestcd[i];
- grd_testRslt.addColumn("ref:column"+ i +"; type:input;", false); //컬럼 ref설정 및 input타입으로 컬럼 추가
- }
- grd_testRslt.caption = vCap + "|" + vCap2;
- }
- //grd_testRslt.refresh();
-
- model.resetInstanceNode("/root/hidden/rsltinfo");
- model.removeNodeset("/root/main/testrslt");
- model.refresh();
- }
-
- //결과조회
- function fGetTestRslt(){
-
- var eqmtcd = model.getValue("/root/hidden/ref/eqmtcd");
- var levlcd = model.getValue("/root/hidden/ref/levlcd");
- if(eqmtcd == "00"){
- messageBox("장비를", "C002","");
- return;
- }
- if(model.getValue("/root/hidden/ref/testlist/testnm") == ""){
- messageBox("검사항목을", "C002","");
- return;
- }
- if(levlcd == "" || levlcd == "00"){
- messageBox("Standard를", "C002","");
- return;
- }
-
- model.makeValue("/root/send/acptfromdd" , model.getValue("/root/hidden/ref/acptfromdd"));
- model.makeValue("/root/send/acpttodd" , model.getValue("/root/hidden/ref/acpttodd"));
- model.makeValue("/root/send/testroom" , model.getValue("/root/hidden/ref/testroom"));
- model.makeValue("/root/send/eqmtcd" , eqmtcd);
- model.makeValue("/root/send/levlcd" , levlcd);
- model.makeValue("/root/send/rsltflag" , model.getValue("/root/hidden/ref/rsltflag"));
- model.makeValue("/root/send/acptflag" , model.getValue("/root/hidden/ref/acptflag"));
- model.makeValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
-
-
- submit("TRLQJ00302");
-
- fGrdReMake();//조회후 그리드 readonly에 따른 배경색 지정
- }
-
- //조회후 그리드 배경색 지정
- function fGrdReMake(){
- var levlcd = model.getValue("/root/send/levlcd");
- var length = levlcd.split("▦").length;
-
- for (i = 1; i<grd_testRslt.rows; i++){ //row
- for(j = 0; j<length; j++){ //col
- if(model.getValue("/root/main/testrslt[" + i + "]/column"+ j +"/@readonly") == "true"){
- grd_testRslt.cellStyle("background-color", i+1, j+vStartCol) = "#eaeaea"; //상단 검사코드때문에 i+1
- }else {
- if(model.getValue("/root/main/testrslt[" + i + "]/column"+ j +"/@wgmrmark") == "W"){
- grd_testRslt.cellStyle("background-color", i+1, j+vStartCol) = "#99cf16";
- }/*else{
- grd_testRslt.cellStyle("background-color", i+1, j+vStartCol) = "#ffffff";
- }*/
-
- if(model.getValue("/root/main/testrslt[" + i + "]/column"+ j +"/@judgmark") == "H"){
- grd_testRslt.cellStyle("color", i+1, j+vStartCol) = "#ff0000";
- }else if(model.getValue("/root/main/testrslt[" + i + "]/column"+ j +"/@judgmark") == "L"){
- grd_testRslt.cellStyle("color", i+1, j+vStartCol) = "#0000ff";
- }/*else{
- grd_testRslt.cellStyle("color", i+1, j+vStartCol) = "#000000";
- }*/
- }
- }
- }
- }
-
- //결과상세정보 복사
- function fGetRsltInfo(row, col){
- var xPath = "/root/main/testrslt";
- var nNode = model.instances(0).selectSingleNode(xPath);
- var obj = nNode.childNodes(parseInt(col-2));
- var objNm = obj.nodeName;
- //alert(model.getValue("/root/main/testrslt[" + row + "]/column0/@bcno"));return;
- var findData = model.getValue("/root/main/testrslt[" + row + "]/"+ objNm + "/@bcno") + model.getValue("/root/main/testrslt[" + row + "]/testnm/@testcd");////검체코드+검사코드
- var findRow = grd_testRsltInfo.findRow(findData, 0, 1);
-
- if(findRow != "-1"){
- var acptdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/acptdt"); //접수일시
- var rsltcnfmdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltcnfmdt"); //결과확인일시
- var rsltcnfmid = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltcnfmid"); //확인자
- var orgrslt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/orgrslt"); //실제결과
- var rsltstat = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltstat"); //결과상태
- var wgmrstat = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrstat"); //WGMR상태
- var measfactcnts = model.getValue("/root/main/testrsltinfo[" + findRow + "]/measfactcnts"); //조치사항
- var judgmark = model.getValue("/root/main/testrsltinfo[" + findRow + "]/judgmark"); //판정마크
- var wgmrmark = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrmark"); //WGMR판정마크
- //var rsltkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltkind"); //결과유형
- var refkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refkind"); //참고치유형
- //var refflag = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refflag"); //참고치구분
- var refl = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refl"); //참고치하한
- var refh = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refh"); //참고치상한
- //var refls = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refls"); //하부등호
- //var refhs = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refhs"); //상부등호
- var refcval = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refcval"); //참고치문자
- //var intrsltfrmt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/intrsltfrmt"); //숫자결과포멧
- var avge = model.getValue("/root/main/testrsltinfo[" + findRow + "]/avge"); //평균
- var rsltunit = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltunit"); //단위
- var wgmrscop = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrscop"); //WGMR범위
- var sdval = model.getValue("/root/main/testrsltinfo[" + findRow + "]/sdval"); //표준편차
- //var judgkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/judgkind"); //판정유형
- //var rundkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rundkind"); //반올림유형
- var lotno = model.getValue("/root/main/testrsltinfo[" + findRow + "]/lotno"); //LotNO
- var prodcmpy = model.getValue("/root/main/testrsltinfo[" + findRow + "]/prodcmpy"); //제조회사
- var bfrsltcnfmid = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfrsltcnfmid"); //이전결과확인자
- var bfrsltcnfmdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfrsltcnfmdt"); //이전결과검사일시
- var bfrslt1 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn0"); //이전결과1
- //var bfrslt2 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn1"); //이전결과2
- //var bfrslt3 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn2");
- //var bfrslt4 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn3");
- //var bfrslt5 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn4");
- //var bfrslt6 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn5");
- //var bfrslt7 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn6");
- //var bfrslt8 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn7");
- //var bfrslt9 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn8");
- var ddosevalue = model.getValue("/root/main/testrsltinfo[" + findRow + "]/ddosevalue");
- var cdosevalue = model.getValue("/root/main/testrsltinfo[" + findRow + "]/cdosevalue");
- var bfvalue = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfvalue");
-
- model.setValue("/root/hidden/rsltinfo/rsltstat/judgmark" , judgmark);
- model.setValue("/root/hidden/rsltinfo/rsltstat/wgmrmark", wgmrmark);
- model.setValue("/root/hidden/rsltinfo/rsltstat/rsltstat" , rsltstat);
- model.setValue("/root/hidden/rsltinfo/wgmrstat" , wgmrstat);
- model.setValue("/root/hidden/rsltinfo/avge" , avge);
- model.setValue("/root/hidden/rsltinfo/sdval" , sdval);
- model.setValue("/root/hidden/rsltinfo/wgmrscop" , wgmrscop);
- model.setValue("/root/hidden/rsltinfo/lotno" , lotno);
- model.setValue("/root/hidden/rsltinfo/prodcmpy" , prodcmpy);
- model.setValue("/root/hidden/rsltinfo/orgrslt" , orgrslt);
- model.setValue("/root/hidden/rsltinfo/rsltunit" , rsltunit);
- model.setValue("/root/hidden/rsltinfo/acptdt" , acptdt);
- model.setValue("/root/hidden/rsltinfo/rsltcnfmdt" , rsltcnfmdt);
- model.setValue("/root/hidden/rsltinfo/rsltcnfmid" , rsltcnfmid);
- model.setValue("/root/hidden/rsltinfo/bfrsltcnfmdt" , bfrsltcnfmdt);
- model.setValue("/root/hidden/rsltinfo/bfrsltcnfmid" , bfrsltcnfmid);
- model.setValue("/root/hidden/rsltinfo/measfactcnts" , measfactcnts);
- model.setValue("/root/hidden/rsltinfo/bfrslt" , bfrslt1);
- model.setValue("/root/hidden/rsltinfo/ddosevalue" , ddosevalue);
- model.setValue("/root/hidden/rsltinfo/cdosevalue" , cdosevalue);
- model.setValue("/root/hidden/rsltinfo/bfvalue" , bfvalue);
- if(refkind == "1"){ //1:문자, 2:숫자, 0:없음
- model.setValue("/root/hidden/rsltinfo/refval", refcval);
- }else if(refkind == "2"){
- model.setValue("/root/hidden/rsltinfo/refval", refl + "~" + refh);
- }
-
- }else{ //검체번호+검사코드가 없으면 결과상세정보 초기화
- model.resetInstanceNode("/root/hidden/rsltinfo");
- }
- model.refresh();
- }
-
- //결과입력 키 이벤트
- function fGrdKeyEvent(row, col){
- var xPath = "/root/main/testrslt";
- var nNode = model.instances(0).selectSingleNode(xPath);
- var obj = nNode.childNodes(parseInt(col-2));
- var objNm = obj.nodeName;
- var findData = model.getValue("/root/main/testrslt[" + row + "]/"+ objNm + "/@bcno") + model.getValue("/root/main/testrslt[" + row + "]/testnm/@testcd");////검체코드+검사코드
- var findRow = grd_testRsltInfo.findRow(findData, 0, 1);
-
- var inptrslt = grd_testRslt.valueMatrix(grd_testRslt.row, col);
-
- if(inptrslt == ""){
- //다음행으로
- for (i = row+2; i < grd_testRslt.rows; i++) {
- var isReadonly = model.getValue("/root/main/testrslt[" + (i-1) + "]/column"+ (col-vStartCol) +"/@readonly");
- if (isReadonly == "false") {
- grd_testRslt.row = i;
- break;
- }
- }
- return;
- }
- //if(findRow != "-1"){
- var vViewRslt = "";
- var vJudgLH = "";
- //var vJudgWGMR = "";
- //var acptdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/acptdt"); //접수일시
- //var rsltcnfmdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltcnfmdt"); //결과확인일시
- //var rsltcnfmid = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltcnfmid"); //확인자
- //var orgrslt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/orgrslt"); //실제결과
- //var rsltstat = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltstat"); //결과상태
- //var wgmrstat = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrstat"); //WGMR상태
- //var measfactcnts = model.getValue("/root/main/testrsltinfo[" + findRow + "]/measfactcnts"); //조치사항
- //var judgmark = model.getValue("/root/main/testrsltinfo[" + findRow + "]/judgmark"); //판정마크
- //var wgmrmark = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrmark"); //WGMR판정마크
- var rsltkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltkind"); //결과유형
- var refkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refkind"); //참고치유형
- var refflag = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refflag"); //참고치구분
- var refl = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refl"); //참고치하한
- var refh = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refh"); //참고치상한
- var refls = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refls"); //하부등호
- var refhs = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refhs"); //상부등호
- var refcval = model.getValue("/root/main/testrsltinfo[" + findRow + "]/refcval"); //참고치문자
- var intrsltfrmt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/intrsltfrmt"); //숫자결과포멧
- var avge = model.getValue("/root/main/testrsltinfo[" + findRow + "]/avge"); //평균
- //var rsltunit = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rsltunit"); //단위
- //var wgmrscop = model.getValue("/root/main/testrsltinfo[" + findRow + "]/wgmrscop"); //WGMR범위
- var sdval = model.getValue("/root/main/testrsltinfo[" + findRow + "]/sdval"); //표준편차
- var judgkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/judgkind"); //판정유형
- var rundkind = model.getValue("/root/main/testrsltinfo[" + findRow + "]/rundkind"); //반올림유형
- //var lotno = model.getValue("/root/main/testrsltinfo[" + findRow + "]/lotno"); //LotNO
- //var prodcmpy = model.getValue("/root/main/testrsltinfo[" + findRow + "]/prodcmpy"); //제조회사
- //var bfrsltcnfmid = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfrsltcnfmid"); //이전결과확인자
- //var bfrsltcnfmdt = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfrsltcnfmdt"); //이전결과검사일시
- //var bfrslt1 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn0"); //이전결과1
- //var bfrslt2 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn1"); //이전결과2
- //var bfrslt3 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn2");
- //var bfrslt4 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn3");
- //var bfrslt5 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn4");
- //var bfrslt6 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn5");
- //var bfrslt7 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn6");
- //var bfrslt8 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn7");
- //var bfrslt9 = model.getValue("/root/main/testrsltinfo[" + findRow + "]/bfcolumn8");
- var inptrslt = grd_testRslt.valueMatrix(grd_testRslt.row, col);
-
- vViewRslt = fCOMLIS_CvtRslt(inptrslt, rsltkind, intrsltfrmt, rundkind); //결과유형 판별 및 반올림옵션 적용
- vJudgLH = fCOMLIS_QCJudgLH(inptrslt, judgkind, refkind, refflag, refl, refls, refh, refhs); //L/H구분 //판정하기 위해 함수 호출
- //if (wgmrscop != "NNNNNN"){
- // if(wgmrscop != "YYNNNN" && wgmrscop != "YNNNNN" && wgmrscop != "NYNNNN" ){ //이전결과와 비교하는 판정은 일치하지 않을 수도 있기에 YYNNNN까지만 판정
- // wgmrscop = "YYNNNN";
- // }
- // vJudgWGMR = fCOMLIS_QCJudgWGMR(inptrslt, wgmrscop, avge, sdval, bfrslt1, bfrslt2, bfrslt3, bfrslt4, bfrslt5, bfrslt6, bfrslt7, bfrslt8, bfrslt9); //WGMR 판정 함수 호출
- //}
-
- if(vViewRslt == "err") { //결과유형이 숫자로 되어있는데 문자로 입력되어있을때 등등... (239Line - fCOMLIS_CvtRslt)
- model.setValue("/root/main/testrslt/[" + row+1 + "]/column"+ col-vStartCol,"");
- alert("결과유형이 맞지 않습니다");
- return;
- }
-
- //model.setValue("/root/hidden/rsltinfo/wgmrstat" , vJudgWGMR); //결과상세정보에 복사
- model.setValue("/root/hidden/rsltinfo/orgrslt" , inptrslt); //결과상세정보의 실제결과로
-
- //model.setValue("/root/main/testrsltinfo[" + findRow + "]/wgmrstat" , vJudgWGMR); //grd2로
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/orgrslt" , inptrslt); //실제결과를 grd2로
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/viewrslt" , vViewRslt); //보이는결과를 grd2로
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/judgmark" , vJudgLH); //판정마크를 숨grd2로
-
- model.setValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol), vViewRslt); //보이는결과를 결과 그리드에 넣어줌
- model.setValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@judgmark", vJudgLH);
- model.setValue("/root/hidden/rsltinfo/rsltstat[" +1+"]/judgmark", vJudgLH); //결과상세정보로
-
- //if(vJudgWGMR != ""){
- // model.setValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@wgmrmark", "W"); //결과의 wgmr어트리뷰트에 넣어줌
- // model.setValue("/root/hidden/rsltinfo/rsltstat[" +1+"]/wgmrmark" , "W"); //결과상세정보의 결과 내역으로 넣어줌
- // model.setValue("/root/main/testrsltinfo[" + findRow + "]/wgmrmark", "W");
- //}else {
- // model.setValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@wgmrmark", "");
- // model.setValue("/root/hidden/rsltinfo/rsltstat[" +1+"]/wgmrmark", "");
- // model.setValue("/root/main/testrsltinfo[" + findRow + "]/wgmrmark", "");
- //}
-
-
- //판정에 따라 그리드 색 변경
- //if(model.getValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@wgmrmark") == "W"){
- // grd_testRslt.cellStyle("background-color", (row+1), col) = "#99cf16";
- //}else{
- // grd_testRslt.cellStyle("background-color", (row+1), col) = "#fffff";
- //}
- if(model.getValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@judgmark") == "H"){
- grd_testRslt.cellStyle("color", (row+1), col) = "#ff0000";
- }else if(model.getValue("/root/main/testrslt[" + (row) + "]/column"+ (col-vStartCol) +"/@judgmark") == "L"){
- grd_testRslt.cellStyle("color", (row+1), col) = "#0000ff";
- }else{
- grd_testRslt.cellStyle("color", (row+1), col) = "#000000";
- }
- //}
- model.setValue("/root/main/testrslt[" + row + "]/chk", "1"); //체크 선택
-
- //readonly가 아닌 다음행으로 고고싱
- for (i = row+2; i <= grd_testRslt.rows; i++) {
- var isReadonly = model.getValue("/root/main/testrslt[" + (i-1) + "]/column"+ (col-vStartCol) +"/@readonly");
- if(i == grd_testRslt.rows){ //마지막행일때는 옆칸 첫행으로 이동함
- grd_testRslt.row = 2
- grd_testRslt.col += 1 ;
- }
- if (isReadonly == "false") {
- grd_testRslt.row = i;
- break;
- }
- }
-
- //grd_testRslt.row = row+2; //다음행으로
-
- fGetRsltInfo(grd_testRslt.row-1, col); //검사상세정보 조회
- //model.refresh();
- }
-
- //키다운 이벤트
- function fGrdKeyDown(){
- if(event.keyCode == "38"){ //방향키↑키라면
- fGetRsltInfo(grd_testRslt.row-2, grd_testRslt.col);
- }else if(event.keyCode == "40"){//방향키↓키라면
- fGetRsltInfo(grd_testRslt.row, grd_testRslt.col);
- }else if(event.keyCode == "37"){//방향키←키라면
- fGetRsltInfo(grd_testRslt.row-1, grd_testRslt.col-1);
- }else if(event.keyCode == "39"){//방향키→키라면
- fGetRsltInfo(grd_testRslt.row-1, grd_testRslt.col+1);
- }
- }
-
- //소견저장
- function fCntsSet(row, col, pRef){
- var xPath = "/root/main/testrslt";
- var nNode = model.instances(0).selectSingleNode(xPath);
- var obj = nNode.childNodes(parseInt(grd_testRslt.col-2));
- var objNm = obj.nodeName;
- var findData = model.getValue("/root/main/testrslt[" + row + "]/"+ objNm +"/@bcno") + model.getValue("/root/main/testrslt[" + row + "]/testnm/@testcd"); //검체코드+검사코드
- var findRow = grd_testRsltInfo.findRow(findData, 0, 1);
- var SaveValue = model.getValue("/root/hidden/rsltinfo/" + pRef);
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/" + pRef, SaveValue);
- model.setValue("/root/main/testrslt[" +(grd_testRslt.row-1)+"]/chk", "1");
- grd_testRsltInfo.addStatus(findRow, "update");
- }
-
- function fPopMenu(row, col){
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
-
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 제외");
- model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fRemove");
- }
-
- if(isDataCell() && grd_testRslt.col >= vStartCol){
- setPopupMenu("grd_testRslt", false, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
-
- function fRemove(){
-
- grd_testRsltInfo.clearStatus();
- var xPath = "/root/main/testrslt";
- var nNode = model.instances(0).selectSingleNode(xPath);
- var obj = nNode.childNodes(parseInt(grd_testRslt.col-2));
- var objNm = obj.nodeName;
- var findData = model.getValue("/root/main/testrslt[" + (grd_testRslt.row-1) + "]/"+ objNm +"/@bcno") + model.getValue("/root/main/testrslt[" + (grd_testRslt.row-1) + "]/testnm/@testcd"); //검체코드+검사코드
-
- //var findData = model.getValue("/root/main/testrslt[" + (grd_testRslt.row-1) + "]/bcno") + grd_testRslt.valueMatrix(1, grd_testRslt.col); //검체코드+검사코드
- var findRow = grd_testRsltInfo.findRow(findData, 0, 1);
- //alert(findRow+ " "+ findData);
- grd_testRsltInfo.addStatus(findRow, "update");
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/iud", "R"); //결과상태를 iud에
-
- if(model.getValue("/root/main/testrsltinfo[" + findRow + "]/measfactcnts") == ""){
- alert("제외하실 항목을 선택 후\n조치사항에 사유를 입력하세요!");
- }else{
- fSetSave("R");
- }
- }
- // 보고 방법 변경 버튼
- function fSetreptmthdchng(){
-
- }
-
- // 저장 버튼
- function fSetSave(stat){
-
- if(messageBox("", "Q004")==6){ //실행하시겠습니까? 6:ok
- var findData, findRow;
- if(stat != "R"){
- grd_testRsltInfo.clearStatus();
- for(i = 1; i < grd_testRslt.rows; i++){
- if (model.getValue("/root/main/testrslt[" + i + "]/chk") == "1"){
- for(j = 0; j<grd_testRslt.cols-vStartCol; j++){
- if (model.getValue("/root/main/testrslt[" + i + "]/column"+j) != ""){
- findData = model.getValue("/root/main/testrslt[" + i + "]/column"+ j +"/@bcno") + model.getValue("/root/main/testrslt[" + i + "]/testnm/@testcd"); //검체코드+검사코드
- findRow = grd_testRsltInfo.findRow(findData, 0, 1);
- grd_testRsltInfo.addStatus(findRow, "update");
- model.setValue("/root/main/testrsltinfo[" + findRow + "]/iud", stat); //결과상태를 iud에*/
-
- }
- }
- }
- }
- }
-
- if(checkGridUpdate(grd_testRsltInfo)){ //저장데이터 유무 체크
- model.setValue("/root/send/rsltstat", stat);
- model.makeValue("/root/send/testrsltlist", grd_testRsltInfo.getUpdateData());
- if(submit("TXLQJ00301")){
- grd_testRslt.fixedcellischeck(0, 1) = false; //올첵 해제
- fGetTestRslt(); //결과 재조회
- }
- }else{
- alert("저장할 자료가 존재하지 않습니다!");
- return;
- }
- }//end if(실행할래?);
- }
-
- function fSetChk(){
- }
-
- //저장 데이터 확인
- function checkGridUpdate(grid){
- var uData = grid.getUpdateDataXml("update");
- if (uData==""){
- return false;
- }else{
- return true;
- }
- }
-
- //결과값 바뀔때
- function fRsltChange(){
-
- if(grd_testRslt.col >= vStartCol){
- var xPath = "/root/main/testrslt";
- var nNode = model.instances(0).selectSingleNode(xPath);
- var obj = nNode.childNodes(parseInt(grd_testRslt.col-2));
- var objNm = obj.nodeName;
- var findData = model.getValue("/root/main/testrslt[" + (grd_testRslt.row-1) + "]/"+ objNm +"/@bcno") + model.getValue("/root/main/testrslt[" + (grd_testRslt.row-1) + "]/testnm/@testcd"); //검체코드+검사코드
- var findRow = grd_testRsltInfo.findRow(findData, 0, 1);
- grd_testRsltInfo.addStatus(findRow, "update");
- }else if(grd_testRslt.col == 1){
- if (model.getValue("/root/main/testrslt[" + grd_testRslt.col + "]/chk") == "1"){
-
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:40px; width:1195px; height:744px; font-size:18pt; ">
- <datagrid id="grd_testRslt" nodeset="/root/main/testrslt" caption="^검사명^검체번호^Control^Standard^접수일시|^검사명^검체번호^Control^Standard^접수일시" colsep="^" colwidth="20, 80, 90, 120, 80,120,60" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:100px; width:1013px; height:621px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="testnm"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="matrnm" visibility="hidden"/>
- <col ref="levlnm" visibility="hidden"/>
- <col ref="acptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell() && grd_testRslt.col >= vStartCol){
- fGetRsltInfo(grd_testRslt.row-1, grd_testRslt.col); //row에 -1을 해준 이유는 캡션의 검사코드 row때문에..
- }/*else if(isDataCell() && grd_testRslt.col == 1){
- fSetChk(); //체크박스
- }*/
- else{
- model.resetInstanceNode("/root/hidden/rsltinfo");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- fGrdKeyEvent(grd_testRslt.row-1, grd_testRslt.col); //결과 입력 키이벤트
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGrdKeyDown();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fPopMenu(grd_testRslt.row-1, grd_testRslt.col);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fRsltChange();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_testRsltInfo" nodeset="/root/main/testrsltinfo" visibility="hidden" caption="검체번호+검사코드^^DDose^CDose^BFV^검체번호^물질코드^레벨코드^검사코드^접수일시^확인일시^검사자^실제결과^보이는결과^wgmr상태^조치사항^판정마크^wgmr판정^결과상태^결과유형^참고치유형^참고치구분^하한^상한^하부등호^상부등호^참고치문자^숫자결과포멧^평균^단위^wgmr범위^편차^판정유형^반올림유형^LotNo^물질명^제조회사^레벨명^이전결과1^이전결과2^이전결과3^이전결과4^이전결과5^이전결과6^이전결과7^이전결과8^이전결과9^이전검사일시^이전결과검사자^기관코드^사용자부서^장비코드^접수구분" colsep="^" colwidth="130,20, 60, 60, 60, 80, 100, 60, 60" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:380px; width:1013px; height:321px; ">
- <col ref="finddata"/>
- <col ref="iud"/>
- <col ref="ddosevalue"/>
- <col ref="cdosevalue"/>
- <col ref="bfvalue"/>
- <col ref="bcno"/>
- <col ref="matrcd"/>
- <col ref="levlcd"/>
- <col ref="testcd"/>
- <col ref="acptdt"/>
- <col ref="rsltcnfmdt"/>
- <col ref="rsltcnfmid"/>
- <col ref="orgrslt"/>
- <col ref="viewrslt"/>
- <col ref="wgmrstat"/>
- <col ref="measfactcnts"/>
- <col ref="judgmark"/>
- <col ref="wgmrmark"/>
- <col ref="rsltstat"/>
- <col ref="rsltkind"/>
- <col ref="refkind"/>
- <col ref="refflag"/>
- <col ref="refl"/>
- <col ref="refh"/>
- <col ref="refls"/>
- <col ref="refhs"/>
- <col ref="refcval"/>
- <col ref="intrsltfrmt"/>
- <col ref="avge"/>
- <col ref="rsltunit"/>
- <col ref="wgmrscop"/>
- <col ref="sdval"/>
- <col ref="judgkind"/>
- <col ref="rundkind"/>
- <col ref="lotno"/>
- <col ref="matrnm"/>
- <col ref="prodcmpy"/>
- <col ref="levlnm"/>
- <col ref="bfcolumn0"/>
- <col ref="bfcolumn1"/>
- <col ref="bfcolumn2"/>
- <col ref="bfcolumn3"/>
- <col ref="bfcolumn4"/>
- <col ref="bfcolumn5"/>
- <col ref="bfcolumn6"/>
- <col ref="bfcolumn7"/>
- <col ref="bfcolumn8"/>
- <col ref="bfrsltcnfmdt"/>
- <col ref="bfrsltcnfmid"/>
- <col ref="instcd"/>
- <col ref="userdeptflagcd"/>
- <col ref="eqmtcd"/>
- <col ref="acptflag"/>
- </datagrid>
- <line id="line14" class="line_1" style="x1:0px; y1:95px; x2:1010px; y2:95px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:139px; height:13px; ">검사항목별 결과정보</caption>
- <group id="group3" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:60px; "/>
- <button id="button6" class="btn1_letter2" style="left:1124px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestRslt();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:51px; "/>
- <caption id="caption2" class="search_no_b" style="left:199px; top:9px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">접수일자 :</caption>
- <caption id="caption5" class="search_name" style="left:15px; top:33px; width:89px; height:17px; ">검사항목 :</caption>
- <input id="input1" ref="/root/hidden/ref/acptfromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/hidden/ref/acpttodd" class="input_search" inputtype="date" style="left:215px; top:8px; width:90px; height:19px; "/>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:1010px; top:10px; width:88px; height:17px; ">검 사 실 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/testroom" class="combo_default" visibility="hidden" appearance="minimal" style="left:985px; top:30px; width:120px; 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="combo4" ref="/root/hidden/ref/eqmtcd" class="combo_default" appearance="minimal" style="left:480px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getValue("/root/hidden/ref/eqmtcd") != "00"){ //장비코드가 전체가 아니면
- fTestListSch(); //장비에대한 검사항목 조회 팝업뜬다~~~
- }
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:390px; top:9px; width:90px; height:17px; ">장 비 :</caption>
- <caption id="caption22" class="search_name" style="left:695px; top:35px; width:87px; height:17px; ">접수구분 :</caption>
- <select1 id="cbo_acptFlag" ref="/root/hidden/ref/acptflag" class="combo_search" appearance="minimal" style="left:790px; top:33px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0704">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:695px; top:9px; width:87px; height:17px; ">작업구분 :</caption>
- <select1 id="radio1" ref="/root/hidden/ref/rsltflag" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:785px; top:11px; width:204px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>미완료</label>
- <value>1</value>
- </item>
- <item>
- <label>완료</label>
- <value>2</value>
- </item>
- <item>
- <label>제외</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio1.value == "1"){
-
- //button2.disabled = false;
- button3.disabled = false;
- }else{
- //button2.disabled = true;
- button3.disabled = true;
- }
- model.resetInstanceNode("/root/hidden/rsltinfo");
- model.removeNodeset("/root/main/testrslt");
- model.refresh();
- ]]>
- </script>
- </select1>
- <output id="output17" ref="/root/hidden/ref/testnm" class="output_fix" style="left:105px; top:32px; width:200px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:309px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/hidden/ref/eqmtcd") == "00"){ //장비코드가 전체이면
- messageBox("장비를", "C002","");
- }else{
- fTestListSch(); //장비별 검사항목 팝업 뜨지롱
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:390px; top:33px; width:92px; height:17px; ">Standard:</caption>
- <img id="img5" class="icon_search" visibility="hidden" style="left:602px; top:34px; width:16px; height:16px; "/>
- <button id="btn_levl" class="icon_search" style="left:602px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTestLevlSch(); //레벨조회 팝업 뜨지롱
- ]]>
- </script>
- </button>
- <select1 id="cbo_levlCd" ref="/root/hidden/ref/levlcd" class="combo_search" appearance="minimal" style="left:480px; top:32px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0501">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <output id="output16" ref="/root/hidden/ref/levllist/levlnm" class="output_fix" style="left:480px; top:32px; width:120px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:1015px; y1:95px; x2:1194px; y2:95px; "/>
- <caption id="caption11" class="tit_2" style="left:1020px; top:80px; width:115px; height:14px; ">결과 상세정보</caption>
- <output id="output1" ref="/root/hidden/rsltinfo/refval" class="output_fix" style="left:1015px; top:172px; width:179px; height:19px; "/>
- <line id="line7" class="line_3" style="x1:1015px; y1:720px; x2:1194px; y2:720px; "/>
- <datagrid id="datagrid2" nodeset="/root/hidden/rsltinfo/rsltstat" caption="S^W^N" colsep="^" colwidth="78, 53, 78" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:1015px; top:100px; width:179px; height:48px; ">
- <col ref="rsltstat" style="left:20px; top:23px; width:50px; height:23px; font-size:9pt; font-weight:bolder; color:#339966; text-align:center; "/>
- <col ref="wgmrmark" visibility="hidden" style="font-weight:bolder; text-align:center; "/>
- <col ref="judgmark" style="font-weight:bolder; text-align:center; "/>
- </datagrid>
- <line id="line1" class="line_2" style="x1:1015px; y1:193px; x2:1194px; y2:193px; "/>
- <line id="line5" class="line_2" style="x1:1015px; y1:221px; x2:1194px; y2:221px; "/>
- <output id="output2" ref="/root/hidden/rsltinfo/wgmrstat" class="output_fix" visibility="hidden" style="left:780px; top:70px; width:179px; height:19px; "/>
- <line id="line6" class="line_2" visibility="hidden" style="x1:1015px; y1:197px; x2:1195px; y2:197px; "/>
- <output id="output3" ref="/root/hidden/rsltinfo/avge" class="output_fix" style="left:1101px; top:200px; width:93px; height:19px; "/>
- <output id="output4" ref="/root/hidden/rsltinfo/sdval" class="output_fix" style="left:1101px; top:224px; width:93px; height:19px; "/>
- <line id="line8" class="line_2" style="x1:1015px; y1:248px; x2:1194px; y2:248px; "/>
- <line id="line9" class="line_2" style="x1:1015px; y1:245px; x2:1194px; y2:245px; "/>
- <line id="line10" class="line_2" style="x1:1015px; y1:269px; x2:1194px; y2:269px; "/>
- <output id="output5" ref="/root/hidden/rsltinfo/lotno" class="output_fix" style="left:1101px; top:248px; width:93px; height:19px; "/>
- <line id="line11" class="line_2" style="x1:1015px; y1:273px; x2:1194px; y2:273px; "/>
- <output id="output6" ref="/root/hidden/rsltinfo/wgmrscop" class="output_fix" visibility="hidden" style="left:411px; top:76px; width:93px; height:19px; "/>
- <output id="output7" ref="/root/hidden/rsltinfo/prodcmpy" class="output_fix" style="left:1101px; top:276px; width:93px; height:19px; "/>
- <output id="output8" ref="/root/hidden/rsltinfo/orgrslt" class="output_fix" style="left:1101px; top:300px; width:93px; height:19px; "/>
- <line id="line12" class="line_2" style="x1:1015px; y1:297px; x2:1194px; y2:297px; "/>
- <line id="line15" class="line_2" style="x1:1015px; y1:321px; x2:1194px; y2:321px; "/>
- <line id="line16" class="line_2" style="x1:1015px; y1:389px; x2:1194px; y2:389px; "/>
- <line id="line17" class="line_2" style="x1:1015px; y1:433px; x2:1194px; y2:433px; "/>
- <line id="line18" class="line_2" style="x1:1015px; y1:457px; x2:1194px; y2:457px; "/>
- <line id="line19" class="line_2" style="x1:1015px; y1:501px; x2:1194px; y2:501px; "/>
- <textarea id="textarea1" ref="/root/hidden/rsltinfo/measfactcnts" style="left:1015px; top:647px; width:179px; height:73px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "measfactcnts");
- ]]>
- </script>
- </textarea>
- <caption id="caption1" class="cell_1" style="left:1015px; top:199px; width:85px; height:21px; ">평균</caption>
- <caption id="caption12" class="cell_1" style="left:1015px; top:223px; width:85px; height:21px; ">표준편차</caption>
- <caption id="caption13" class="cell_1" style="left:1015px; top:150px; width:179px; height:21px; ">참고치</caption>
- <caption id="caption14" class="cell_1" style="left:1015px; top:247px; width:85px; height:21px; ">LOT NO</caption>
- <caption id="caption15" class="cell_1" visibility="hidden" style="left:590px; top:70px; width:179px; height:21px; ">WGMR판정</caption>
- <caption id="caption16" class="cell_1" visibility="hidden" style="left:325px; top:75px; width:85px; height:21px; ">적용률</caption>
- <caption id="caption17" class="cell_1" style="left:1015px; top:275px; width:85px; height:21px; ">제조회사</caption>
- <caption id="caption18" class="cell_1" style="left:1015px; top:299px; width:85px; height:21px; ">실제 결과</caption>
- <caption id="caption19" class="cell_1" style="left:1015px; top:624px; width:179px; height:21px; ">조치사항(사유)</caption>
- <caption id="caption31" class="cell_1" style="left:1015px; top:435px; width:85px; height:21px; ">검사자</caption>
- <caption id="caption32" class="cell_1" style="left:1015px; top:503px; width:85px; height:21px; ">이전결과</caption>
- <output id="output9" ref="/root/hidden/rsltinfo/acptdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" style="left:1015px; top:369px; width:179px; height:19px; "/>
- <output id="output10" ref="/root/hidden/rsltinfo/rsltcnfmdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" style="left:1015px; top:413px; width:179px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:1015px; top:347px; width:179px; height:21px; ">접수일시</caption>
- <caption id="caption21" class="cell_1" style="left:1015px; top:391px; width:179px; height:21px; ">결과보고(확인)일시</caption>
- <output id="output11" ref="/root/hidden/rsltinfo/rsltcnfmid" class="output_fix" style="left:1101px; top:436px; width:93px; height:19px; "/>
- <output id="output12" ref="/root/hidden/rsltinfo/bfrsltcnfmdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" style="left:1015px; top:481px; width:179px; height:19px; "/>
- <caption id="caption23" class="cell_1" style="left:1015px; top:459px; width:179px; height:21px; ">이전결과(확인)일시</caption>
- <output id="output13" ref="/root/hidden/rsltinfo/bfrslt" class="output_fix" style="left:1101px; top:504px; width:93px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:1014px; y1:525px; x2:1193px; y2:525px; "/>
- <output id="output14" ref="/root/hidden/rsltinfo/rsltunit" class="output_fix" style="left:1101px; top:324px; width:93px; height:19px; "/>
- <line id="line20" class="line_2" style="x1:1015px; y1:345px; x2:1194px; y2:345px; "/>
- <caption id="caption24" class="cell_1" style="left:1015px; top:323px; width:85px; height:21px; ">단위</caption>
- <output id="output15" ref="/root/hidden/rsltinfo/bfrsltcnfmid" class="output_fix" style="left:1101px; top:528px; width:93px; height:19px; "/>
- <caption id="caption25" class="cell_1" style="left:1015px; top:527px; width:85px; height:21px; ">검사자</caption>
- <line id="line21" class="line_2" style="x1:1014px; y1:549px; x2:1193px; y2:549px; "/>
- <input id="output20" ref="/root/hidden/rsltinfo/bfvalue" class="input" style="left:1100px; top:601px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "bfvalue");
- ]]>
- </script>
- </input>
- <line id="line22" class="line_2" style="x1:1014px; y1:598px; x2:1193px; y2:598px; "/>
- <line id="line23" class="line_2" style="x1:1014px; y1:574px; x2:1193px; y2:574px; "/>
- <line id="line24" class="line_2" style="x1:1013px; y1:622px; x2:1192px; y2:622px; "/>
- <input id="output18" ref="/root/hidden/rsltinfo/ddosevalue" class="input" style="left:1101px; top:553px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "ddosevalue");
- ]]>
- </script>
- </input>
- <caption id="caption26" class="cell_1" style="left:1015px; top:552px; width:85px; height:21px; ">DEF. DOSE</caption>
- <input id="output19" ref="/root/hidden/rsltinfo/cdosevalue" class="input" style="left:1101px; top:577px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "cdosevalue");
- ]]>
- </script>
- </input>
- <caption id="caption27" class="cell_1" style="left:1015px; top:576px; width:85px; height:21px; ">CALC. DOSE</caption>
- <caption id="caption28" class="cell_1" style="left:1014px; top:600px; width:85px; height:21px; ">% B / F</caption>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; ">
- <![CDATA[QC검사항목별결과관리]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_testRsltInfo.visible){
- grd_testRsltInfo.visible = false;
- }else{
- grd_testRsltInfo.visible = true;
- }
- ]]>
- </script>
- </caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button2" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetSave(2);
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" visibility="hidden" style="left:950px; top:3px; width:56px; height:22px; ">
- <caption>제외</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //fInsSave();
- var a = model.getValue("/root/main/testrslt[" + 2 + "]/column0/@readonly")
- alert (a);
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:1009px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetSave(1);
- ]]>
- </script>
- </button>
- <button id="btn_reptmthdchng" class="btn4_letter6" visibility="hidden" style="left:844px; top:3px; width:104px; height:22px; ">
- <caption>보고방법변경</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetreptmthdchng();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|