123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874 |
- <?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>
- <acptlist>
- <rsltmark/>
- <bcno/>
- <matrnm/>
- <levlnm/>
- <matrcd/>
- <levlcd/>
- <acptdt/>
- </acptlist>
- <rsltinfo>
- <testrsltinfo>
- <chk/>
- <testnm/>
- <buforgrslt/>
- <viewrslt/>
- <judgmark/>
- <rsltstat/>
- <wgmrmark/>
- <wgmrstat/>
- <bcno/>
- <testcd/>
- <measfactcd/>
- <measfactcnts/>
- <judgkind/>
- <refkind/>
- <refflag/>
- <refl/>
- <refh/>
- <refls/>
- <refhs/>
- <orgrslt/>
- <rsltkind/>
- <wgmrscop/>
- <sdval/>
- <avg/>
- <rundkind/>
- <graphdispyn/>
- <refcval/>
- <intrsltfrmt/>
- <bfrslt1/>
- <rsltcnfmdt/>
- <bfrsltcnfmdt/>
- <bfrsltcnfmid/>
- <bfrslt2/>
- <bfrslt3/>
- <bfrslt4/>
- <bfrslt5/>
- <bfrslt6/>
- <bfrslt7/>
- <bfrslt8/>
- <bfrslt9/>
- <rsltunit/>
- <rsltrid/>
- </testrsltinfo>
- <spcinfo>
- <matrnm/>
- <levlnm/>
- <lotno/>
- <prodcmpy/>
- <eqmtnm/>
- </spcinfo>
- <spcinfo2>
- <wgmr/>
- <avg/>
- <sdval/>
- <refval/>
- <unit/>
- </spcinfo2>
- </rsltinfo>
- </main>
- <init/>
- <hidden>
- <bcno/>
- <acptfromdd/>
- <acpttodd/>
- <testroom>00</testroom>
- <eqmtcd>00</eqmtcd>
- <acptflag>00</acptflag>
- <matrcd/>
- <rsltstat>2</rsltstat>
- <check>0</check>
- </hidden>
- <send/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.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="TRLQJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/main/acptlist"/>
- <submission id="TRLQJ00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsltinfo"/>
- <submission id="TRLQJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsltinfo/spcinfo2"/>
- <submission id="TXLQJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화 버튼
- function fSetInit(){
- model.removeNodeset("/root/main/acptlist");
- grd_acptList.rebuild();
- model.removeNodeset("/root/main/rsltinfo/testrsltinfo");
- grd_testRsltInfo.rebuild();
- model.resetInstanceNode("/root/main/rsltinfo");
-
- //grd_testRsltInfo.fixedcellcheckbox(0,1) = true;
-
- /*var cDate = getCurrentDate();
- var toDate = cDate.toDate().getAddDate(-1);
- model.setValue("/root/hidden/acptfromdd", toDate.getDateFormat()); //이전날짜로 셋팅할경우..*/
- model.setValue("/root/hidden/acptfromdd" , getCurrentDate());
- model.setValue("/root/hidden/acpttodd" , getCurrentDate());
-
- model.makeValue("/root/send/codeflag" ,"0000|0111|0701|0703|"); //0000:사용자부서코드, 0111:시행부서계 0701: 장비코드 0703: 조치사유
- submit("TRLZZ00101");
-
- model.setValue("/root/send/codeflag","0704|"); //0704: 접수구분
- model.makeValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
- submit("TRLZZ00101");
- }
-
- //장비코드설정
- function fSetEqmtCd(){
-
- model.removeNodeset("/root/init/LB0701");
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/hidden/testroom")); //검사실구분 코드(장비코드앞자리)
- model.makeValue("/root/send/codeflag","0701|");
- model.makeValue("/root/hidden/eqmtcd", '00');
-
- submit("TRLZZ00101");
- }
-
- //키입력이벤트
- function fKeyEvent(){
- if(event.keyCode == "13" ){
- if(event.target == "ipt_matr" || event.target == "ipt_bcno"){ //검체번호나 QC물질일때..
- model.setValue("/root/hidden/bcno", (ipt_bcno.currentText).toUpperCase());
- model.setValue("/root/hidden/matrcd", ipt_matr.currentText);
- //QC 접수리스트 조회
- fGetAcptList(1);
- }
- }
- }
-
- //키다운 이벤트
- function fGrdKeyDown(){
-
- if(event.keyCode == "38"){ //방향키↑키라면
- if(grd_testRsltInfo.row != "1"){ //첫 행이 아니라면
- if(grd_testRsltInfo.col == 3){ //입력 결과 칸이라면 실제 결과 조회
- //model.setValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1)+ "]/buforgrslt", model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/orgrslt"));
- for(i =1; i<grd_testRsltInfo.rows; i++){
- if (i == (grd_testRsltInfo.row-1)){
- if(model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/orgrslt") != ""){
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/orgrslt")); //실제 결과를 보여준다
- }
- }
- else {
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", ""); //다른행을 선택하면""
- }
- }
- }
- var refkind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/refkind");
- var refval = "";
- if(refkind == "1"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/refcval");
- }else if(refkind == "2"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/refl") + " ~ " + model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/refh");
- }else if(refkind == "0"){
- refval = "없음";
- }
- model.setValue("/root/main/rsltinfo/spcinfo2/wgmr" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/wgmrscop"));
- model.setValue("/root/main/rsltinfo/spcinfo2/sdval" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/sdval"));
- model.setValue("/root/main/rsltinfo/spcinfo2/avg" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/avg"));
- model.setValue("/root/main/rsltinfo/spcinfo2/unit" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/rsltunit"));
- model.setValue("/root/main/rsltinfo/spcinfo2/refval" , refval);
- /*
- model.makeValue("/root/send/testcd" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row-1) + "]/testcd")); //다른정보는 결과조회하면서 send에 있음
- submit("TRLQJ00203");//검체 정보 조회*/
- }
- }
- if(event.keyCode == "40"){ //방향키↓키라면
- if(grd_testRsltInfo.row != grd_testRsltInfo.rows-1){ //젤 마지막 행이 아니라면
- if(grd_testRsltInfo.col == 3){ //입력 결과 칸이라면 실제 결과 조회
- //model.setValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/buforgrslt", model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/orgrslt"));
- for(i =1; i<grd_testRsltInfo.rows; i++){
- if (i == (grd_testRsltInfo.row+1)){
- if(model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/orgrslt") != ""){
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", model.getvalue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/orgrslt")); //실제 결과를 보여준다
- }
- }
- else {
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", ""); //다른행을 선택하면""
- }
- }
- }
- var refkind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/refkind");
- var refval = "";
- if(refkind == "1"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/refcval");
- }else if(refkind == "2"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/refl") + " ~ " + model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/refh");
- }else if(refkind == "0"){
- refval = "없음";
- }
- model.setValue("/root/main/rsltinfo/spcinfo2/wgmr" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/wgmrscop"));
- model.setValue("/root/main/rsltinfo/spcinfo2/sdval" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/sdval"));
- model.setValue("/root/main/rsltinfo/spcinfo2/avg" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/avg"));
- model.setValue("/root/main/rsltinfo/spcinfo2/unit" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/rsltunit"));
- model.setValue("/root/main/rsltinfo/spcinfo2/refval" , refval);
-
- /*model.makeValue("/root/send/testcd" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + (grd_testRsltInfo.row+1) + "]/testcd")); //다른정보는 결과조회하면서 send에 있음
- submit("TRLQJ00203");//검체 정보 조회*/
- }
- }
- model.refresh();
- }
-
- //검사항목별 결과정보 결과에서 엔터키..
- function fGrdKeyEvent(){
-
- if(grd_testRsltInfo.col == 3){ //입력 결과 컬럼일때..
-
- if(event.keyCode == "13"){ //엔터키이면
- var vOrgRslt = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/buforgrslt"); //입력결과
- var vJudgKind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/judgkind"); //판정유형 0:미사용, 1:L/H
- var vRefKind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refkind"); //참고치유형 0:없음, 1:문자, 2:숫자
- var vRefFalg = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refflag"); //참고치구분 0:사용안함, 1:하한만사용, 2:상한만사용, 3:모두사용
- var vRefL = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refl"); //참고치하한
- var vRefH = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refh"); //참고치상한
- var vRefLS = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refls"); //참고치하한부등호 0:<, 1:<=
- var vRefHS = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refhs"); //참고치상한부등호 0:>, 1>=
- var vWgmr = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/wgmrscop"); //WGMR범위
- var vAvg = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/avg"); //평균
- var vSdVal = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/sdval"); //표준편차
- var vIntFrmt = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/intrsltfrmt"); //소수점이하자릿수
- var vRundKind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/rundkind"); //반올림옵션 0:사용안함, 1:반올림, 2:올림, 3:내림
- var vRsltKind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/rsltkind"); //결과유형 0:문자+숫자, 1:숫자
- var vBfRslt = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt1"); //이전결과
-
- var vBfRslt2 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt2"); //이전결과 접수일자 기준 최근 2번째
- var vBfRslt3 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt3"); //이전결과 접수일자 기준 최근 3번째
- var vBfRslt4 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt4"); //이전결과
- var vBfRslt5 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt5"); //이전결과
- var vBfRslt6 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt6"); //이전결과
- var vBfRslt7 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt7"); //이전결과
- var vBfRslt8 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt8"); //이전결과
- var vBfRslt9 = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/bfrslt9"); //이전결과
-
- var vViewRslt = fCOMLIS_CvtRslt(vOrgRslt, vRsltKind, vIntFrmt, vRundKind); //결과유형 판별 및 반올림옵션 적용
- var vJudgLH = fCOMLIS_QCJudgLH(vOrgRslt, vJudgKind, vRefKind, vRefFalg, vRefL, vRefLS, vRefH, vRefHS); //L/H구분 //판정하기 위해 함수 호출
- var vJudgWGMR = "";
- if (vWgmr != "NNNNNN"){
- vJudgWGMR = fCOMLIS_QCJudgWGMR(vOrgRslt, vWgmr, vAvg, vSdVal, vBfRslt, vBfRslt2, vBfRslt3, vBfRslt4, vBfRslt5, vBfRslt6, vBfRslt7, vBfRslt8, vBfRslt9); //WGMR 판정 함수 호출
- }
-
- if(vViewRslt == "err") { //결과유형이 숫자로 되어있는데 문자로 입력되어있을때 등등... (239Line - fCOMLIS_CvtRslt)
- model.setvalue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/buforgrslt","");
- return;
- }
-
- model.setvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/judgmark", vJudgLH); //L/H 판정 받은 값을 넣어줌
- model.setvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/wgmrstat", vJudgWGMR); //WGMR 판정 값을 WGMR판정에 넣어줌
-
- if(model.getvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/wgmrstat") != ""){
- model.setvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/wgmrmark", "W"); //WGMR 판정 값이 있다면 WGMR상태에 "W"넣어줌
- }else model.setvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/wgmrmark", ""); //WGMR 판정 값이 없다면 WGMR상태에 ""넣어줌
-
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/viewrslt", vViewRslt); //입력결과를 반올림처리한 보이는 결과로
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/orgrslt", vOrgRslt); //입력결과를 실제 결과로 저장
-
- //판정값에 따라 그리드 셀 배경색 변경
- // L/H값에 따른 배경색 변경
- if(vJudgLH == "H"){ //판정값이 H일때 배경색 변경
- grd_testRsltInfo.cellStyle ("background-color", grd_testRsltInfo.row, 7, grd_testRsltInfo.row, 7) = "#f7a08b";
- }
- else if(vJudgLH == "L"){ //판정값이 L일때 배경색 변경
- grd_testRsltInfo.cellStyle ("background-color", grd_testRsltInfo.row, 7, grd_testRsltInfo.row, 7) = "#b9e5fb";
- }
- else{ //L이나 H가 아닐경우 허연색으로
- grd_testRsltInfo.cellStyle ("background-color", grd_testRsltInfo.row, 7, grd_testRsltInfo.row, 7) = "#fffff:";
- }
- //WGMR판정에 따른 배경색 변경
- if(model.getvalue("root/main/rsltinfo/testrsltinfo["+grd_testRsltInfo.row +"]/wgmrmark") == "W"){ //판정 값이 W면..
- grd_testRsltInfo.cellStyle ("background-color", grd_testRsltInfo.row, 9, grd_testRsltInfo.row, 9) = "#99cf16";
- }
- else{ //판정값이 ""일경우 허연색으로..
- grd_testRsltInfo.cellStyle ("background-color", grd_testRsltInfo.row, 9, grd_testRsltInfo.row, 9) = "#fffff:";
- }
- grd_testRsltInfo.refresh();
-
- //결과값이 입력되면 체크 선택
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/orgrslt") != ""){
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/chk", "1");
- }else{
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/chk", "0");
- }
-
- //엔터키 누른 후 다음칸으로 내려가게 조정하기 위하여 설정
- grd_testRsltInfo.row = grd_testRsltInfo.row+1;
- grd_testRsltInfo.col = 3;
- fRsltGrdEvent(); //검체 정보 조회(적용룰, 평균, 편차, 참고치, 단위등) 및 다음행 실제 결과를 임시결과칸으로 보여지게..
- //fGetSpcInfo(); // 다음 항목 참고치등 검체 정보 조회(▲ 함수에 같이 들어있음..아래꺼도..)
- //model.setValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/buforgrslt"
- // , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/orgrslt")); //다음행 실제 결과를 임시결과칸으로 보여지게..
- }
- }
- }
-
- //QC 접수 리스트 조회
- function fGetAcptList(pVal){
-
- model.makeValue("/root/send/bcno" , model.getValue("/root/hidden/bcno"));
- model.makeValue("/root/send/acptfromdd" , model.getValue("/root/hidden/acptfromdd"));
- model.makeValue("/root/send/acpttodd" , model.getValue("/root/hidden/acpttodd"));
- model.makeValue("/root/send/testroom" , model.getValue("/root/hidden/testroom"));
- model.makeValue("/root/send/eqmtcd" , model.getValue("/root/hidden/eqmtcd"));
- model.makeValue("/root/send/acptflag" , model.getValue("/root/hidden/acptflag"));
- model.makeValue("/root/send/matrcd" , model.getValue("/root/hidden/matrcd"));
- model.makeValue("/root/send/rsltstat" , model.getValue("/root/hidden/rsltstat"));
- model.makeValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLQJ00201")
- if(grd_acptList.rows != 1){
- grd_acptList.row = pVal;
- fGetDetlInfo();
- }
- }
-
- //접수리스트 선택 시 검체 정보 및 결과정보 조회
- function fGetDetlInfo(){
-
- model.removeNodeset("/root/main/rsltinfo/testrsltinfo");
- grd_testRsltInfo.rebuild();
-
- model.makeValue("/root/send/bcno" , model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/bcno"));
- model.makeValue("/root/send/matrcd" , model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/matrcd"));
- model.makeValue("/root/send/levlcd" , model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/levlcd"));
- model.makeValue("/root/send/eqmtcd" , model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/eqmtcd"));
- model.makeValue("/root/send/acptdt" , model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/acptdt"));
- model.makeValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLQJ00202");
- if(model.getValue("/root/main/acptlist[" + grd_acptList.row + "]/rsltmark") == "◆"){
- btn_measfact.visible = true;
- }else{
- btn_measfact.visible = false;
- }
- //조회 후 판정값에 따라 배경 색 변환
- for( i =1; i<grd_testRsltInfo.rows; i++){
- var vJudgLH = model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/judgmark");
- var vJudgWGMR = model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/wgmrmark");
- var vRsltStat = model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat");
-
- //L/H판정 값에 따른 색변경
- if(vJudgLH == "H"){ //판정값이 H일때 배경색 변경
- grd_testRsltInfo.cellStyle ("background-color", i, 7) = "#f7a08b";
- }
- else if(vJudgLH == "L"){ //판정값이 L일때 배경색 변경
- grd_testRsltInfo.cellStyle ("background-color", i, 7) = "#b9e5fb";
- }
- grd_testRsltInfo.cellstyle("background-color" , i,3) = "#EEFFFF";
- //WGMR판정값에 따른 배경색 변경
- if(vJudgWGMR == "W"){ //판정 값이 W다면..
- grd_testRsltInfo.cellStyle ("background-color", i, 9) = "#99cf16";
- }
- //결과상태 R(제외)일때 색 변경
- if(vRsltStat == "R"){
- grd_testRsltInfo.cellStyle ("background-color", i, 8) = "#fec34d";
- }
-
- //결과값이 있다면 자동..체크..
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "△"){ //orgrslt") != ""에서 조건 변경
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk", "1");
- }else{
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk", "0");
- }
- }
- model.setFocus("ipt_bcno");
- }
-
- //검사항목별 결과정보 그리드 클릭시
- function fRsltGrdEvent(){
- //if(isDataCell(grd_testRsltInfo)){ //클릭한 시점이 data영역이면 (tfHelper)//요것땜에 문제 있어서 제거함.엔터키눌르면 값이 안사라짐..
- fGetSpcInfo(); //검체 정보 조회(적용룰, 평균, 편차, 참고치, 단위등)
-
- //입력결과 컬럼 선택할때
- var col = grd_testRsltInfo.col;
- var vOrgRslt = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/orgrslt"); //입력결과 선택 시 실제결과 보이게 하기 위한 변수
-
- for(i =1; i<grd_testRsltInfo.rows; i++){
- if (i == grd_testRsltInfo.row){
- if(col==3){ //입력결과 컬럼을 클릭하면
- if(vOrgRslt != ""){
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", vOrgRslt); //실제 결과를 보여준다
- }
- }else {
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i+ "]/buforgrslt", ""); //다른칸을 선택하면""
- }
- }
- else {
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/buforgrslt", ""); //다른행을 선택하면""
- }
- }
- model.refresh();
- //}
- }
-
- //검사항목별 결과 정보 선택 시 검체정보 조회
- function fGetSpcInfo(){
- var refkind = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refkind");
- var refval = "";
- if(refkind == "0"){
- refval = "없음";
- }else if(refkind == "1"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refcval");
- }else if(refkind == "2"){
- refval = model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refl") + " ~ " + model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/refh");
- }
- model.setValue("/root/main/rsltinfo/spcinfo2/wgmr" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/wgmrscop"));
- model.setValue("/root/main/rsltinfo/spcinfo2/sdval" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/sdval"));
- model.setValue("/root/main/rsltinfo/spcinfo2/avg" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/avg"));
- model.setValue("/root/main/rsltinfo/spcinfo2/unit" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/rsltunit"));
- model.setValue("/root/main/rsltinfo/spcinfo2/refval" , refval);
- //아래꺼에서 위에걸로 변경 submit안타게 처리_20081015_승현
- /*model.makeValue("/root/send/testcd" , model.getValue("/root/main/rsltinfo/testrsltinfo[" + grd_testRsltInfo.row + "]/testcd")); //다른정보는 결과조회하면서 send에 있음
- submit("TRLQJ00203");*/
- model.refresh();
- }
-
- // 보고 방법 변경 버튼
- function fSetreptmthdchng(){
-
- }
-
- // 재검 버튼
- function fExeReTest(){
-
- }
-
- // 확인, 저장 할 데이터 확인
- function fInsSave(){
-
- if(model.getValue("/root/send/rsltstat")=="1"){ //저장일때
- for( i =1; i<grd_testRsltInfo.rows; i++){
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk") == "1"){ // 선택된 항목만 저장
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "◆" || model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "R"){// 확인인 항목이 있다면 저장을 하면 안되기에..
- alert("선택된 항목 중 확인 완료된 항목이 있습니다.");
- return 0;
- }
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/viewrslt") == ""){// 저장된 값이 없다면 저장을 하면 안되기에..
- alert("선택된 항목 중 결과값이 입력되지 않은항목이 있습니다.");
- return 0;
- }
- grd_testRsltInfo.addStatus(i, "update"); //status 를 update 변경
- }else{
- grd_testRsltInfo.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
- }
- }
-
- }else if(model.getValue("/root/send/rsltstat")=="2"){ // 확인일때
- for( i =1; i<grd_testRsltInfo.rows; i++){
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk") == "1"){ // 선택된 항목만 저장
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/viewrslt") == ""){ // 결과값 입력 유무 체크
- alert("선택된 항목 중 결과값이 입력되지 않은항목이 있습니다.");
- return 0; //결과값이 없다면 알림창 띄우고 땡~
- }
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "◆" || model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "R"){// 확인인 항목이 있다면 저장을 하면 안되기에..
- alert("선택된 항목 중 확인 완료된 항목이 있습니다.");
- return 0;
- }
- grd_testRsltInfo.addStatus(i, "update"); //status 를 update 변경
- }else{
- grd_testRsltInfo.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
- }
- }
- }else if(model.getValue("/root/send/rsltstat")=="R"){ //제외일때
- for( i =1; i<grd_testRsltInfo.rows; i++){
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk") == "1"){ // 선택된 항목만 저장
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/viewrslt") == ""){ // 결과값 입력 유무 체크
- var rtn = messageBox("결과값이 입력되지 않은항목이 있습니다.\n", "Q003");
- if(rtn != "6"){
- return 0;
- }
- }
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/measfactcnts") == ""){ // 조치사항사유 입력 유무 체크
- alert("제외를 위해 조치사항에 사유를 입력하세요");
- return 0; //결과값이 없다면 알림창 띄우고 땡~
- }
- grd_testRsltInfo.addStatus(i, "update"); //status 를 update 변경
- }else{
- grd_testRsltInfo.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
- }
- }
- }else if(model.getValue("/root/send/rsltstat")=="F"){ //조치사유
- for( i =1; i<grd_testRsltInfo.rows; i++){
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk") == "1"){ // 선택된 항목만 저장
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/viewrslt") == ""){ // 결과값 입력 유무 체크
- var rtn = messageBox("결과값이 입력되지 않은항목이 있습니다.\n", "Q003");
- if(rtn != "6"){
- return 0;
- }
- }
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/measfactcnts") == ""){ // 조치사항사유 입력 유무 체크
- alert("선택된 항목에 조치사항을 입력하세요");
- return 0; //결과값이 없다면 알림창 띄우고 땡~
- }
- grd_testRsltInfo.addStatus(i, "update"); //status 를 update 변경
- }else{
- grd_testRsltInfo.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
- }
- }
- }
- }
-
- //결과 저장 및 확인 버튼
- function fExeSave(){
- if(fInsSave() !=0){
- model.makeValue("/root/send/testrsltlist", grd_testRsltInfo.getUpdateData());
- submit("TXLQJ00201", false);
- //fGetDetlInfo(); //검사항목별 결과정보 다시 조회
- fGetAcptList(grd_acptList.row);
- }
- }
-
- //전체선택 기능(결과 입력된 값만)
- function btnAllCheck(){
- var checked = model.getValue("/root/hidden/check");
-
- if(checked=="0") {
- checked ="1";
- } else {
- checked ="0";
- }
- model.setValue("/root/hidden/check", checked);
-
- for(i=1 ; i<grd_testRsltInfo.rows; i++){ //결과입력상태인 항목만 체크 함
- if(model.getValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/rsltstat") == "△"){ //orgrslt != "" 에서 조건 변경
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk", checked);
- }else{
- model.setValue("/root/main/rsltinfo/testrsltinfo[" + i + "]/chk", "0");
- }
-
- }
- btn_check.attribute("background-image") = "../../../lis/commonweb/images/chkRPT" + checked + ".gif"; //전체 체크 이미지셋팅
- }
-
- function fFactCntSet(){
- model.setValue("/root/main/rsltinfo/testrsltinfo["+ grd_testRsltInfo.row + "]/measfactcnts", grd_testRsltInfo.labelMatrix(grd_testRsltInfo.row, grd_testRsltInfo.col));
- model.setValue("/root/main/rsltinfo/testrsltinfo["+ grd_testRsltInfo.row + "]/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_testRsltInfo" nodeset="/root/main/rsltinfo/testrsltinfo" caption="^검사항목명^결과^결과^결과등록일시^결과보고시간^N^S^W^WGMR판정^조치사항^조치사항^검사자^bcno^testcd^판정유형^참고치유형^참고치구분^하한^상한^refls^refhs^실제결과^결과유형^단위^wgmr범위^표준편차^평균^반올림옵션^그래프표시^참고치문자^숫자결과포멧^이전결과^이전결과일^이전검사자" colsep="^" colwidth="25, 200, 50, 50, 0, 90, 25, 25, 25, 80, 25, 150, 70, 80, 50, 30, 30, 30, 30, 30, 30, 30, 30, 25, 30 , 60, 35, 35, 25, 25, 40, 40, 60, 120, 70" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:325px; top:130px; width:869px; height:605px; ">
- <col checkimage="../../../lis/commonweb/images/chkRPT1.gif" checkvalue="1,0" ref="chk" type="checkbox" uncheckimage="../../../lis/commonweb/images/chkRPT0.gif"/>
- <col ref="testnm"/>
- <col ref="buforgrslt" type="input"/>
- <col ref="viewrslt"/>
- <col ref="rsltrgstdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="rsltcnfmdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="judgmark" style="font-weight:bolder; text-align:center; "/>
- <col ref="rsltstat" style="font-size:9pt; font-weight:bolder; color:#339966; text-align:center; "/>
- <col ref="wgmrmark" style="font-weight:bolder; text-align:center; "/>
- <col ref="wgmrstat"/>
- <col ref="measfactcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0703">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="measfactcnts" type="input"/>
- <col ref="rsltrid" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="judgkind" visibility="hidden"/>
- <col ref="refkind" visibility="hidden"/>
- <col ref="refflag" visibility="hidden"/>
- <col ref="refl" visibility="hidden"/>
- <col ref="refh" visibility="hidden"/>
- <col ref="refls" visibility="hidden"/>
- <col ref="refhs" visibility="hidden"/>
- <col ref="orgrslt" visibility="hidden"/>
- <col ref="rsltkind" visibility="hidden"/>
- <col ref="rsltunit" visibility="hidden"/>
- <col ref="wgmrscop" visibility="hidden"/>
- <col ref="sdval" visibility="hidden"/>
- <col ref="avg" visibility="hidden"/>
- <col ref="rundkind" visibility="hidden"/>
- <col ref="graphdispyn" visibility="hidden"/>
- <col ref="refcval" visibility="hidden"/>
- <col ref="intrsltfrmt" visibility="hidden"/>
- <col ref="bfrslt1"/>
- <col ref="bfrsltcnfmdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="bfrsltcnfmid" style="text-align:center;"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell(grd_testRsltInfo)){
- fRsltGrdEvent(); //검체 정보 조회와 3번째칸 클릭하면 실제 결과 보여줌
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGrdKeyEvent(); //결과 입력 키이벤트
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGrdKeyDown(); //방향키
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_testRsltInfo.col == 11){
- fFactCntSet();
- }
- ]]>
- </script>
- <!--<script type="javascript" ev:event="onentercell">
- <![CDATA[
- if(grd_testRsltInfo.colType(grd_testRsltInfo.col) == "input"){
- grd_testRsltInfo.editCell();
- }
- ]]>
- </script>-->
- </datagrid>
- <button id="btn_check" style="left:348px; top:133px; width:20px; height:20px; text-align:center; background-image:../../../lis/commonweb/images/chkRPT0.gif; background-position:center; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btnAllCheck(); //결과 입력된 값 전체 체크
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:245px; x2:320px; y2:245px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:230px; width:115px; height:13px; ">QC 접수 리스트</caption>
- <datagrid id="grd_acptList" nodeset="/root/main/acptlist" caption="^검체번호^물질명^레벨명^물질코드^레벨코드^접수일시^장비코드" colsep="^" colwidth="20, 90, 90, 80, 80, 80, 130, 60" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:250px; width:320px; height:483px; ">
- <col ref="rsltmark" style="font-size:9pt; color:#339966; text-align:center; "/>
- <col ref="bcno"/>
- <col ref="matrnm"/>
- <col ref="levlnm"/>
- <col ref="matrcd" visibility="hidden"/>
- <col ref="levlcd" visibility="hidden"/>
- <col ref="acptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="eqmtcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell(grd_acptList)){
- fGetDetlInfo(); //결과정보 및 검체정보 조회(물질, 레벨, LOT번호, 제조회사, 장비)
- }
- ]]>
- </script>
- </datagrid>
- <line id="line14" class="line_1" style="x1:325px; y1:125px; x2:1194px; y2:125px; "/>
- <caption id="caption3" class="tit_2" style="left:330px; top:110px; width:139px; height:14px; ">검사항목별 결과정보</caption>
- <group id="group3" style="left:0px; top:10px; width:320px; height:210px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:320px; height:210px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:112px; width:89px; height:17px; ">접수구분 :</caption>
- <button id="btn_getAcptList" class="btn1_letter2" style="left:249px; top:181px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAcptList(1); //QC 접수리스트 조회
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:234px; y1:181px; x2:234px; y2:203px; "/>
- <caption id="caption2" class="search_no_b" style="left:199px; top:39px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <select1 id="cbo_acptFlag" ref="/root/hidden/acptflag" class="combo_search" appearance="minimal" style="left:105px; top:111px; width:200px; 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:15px; top:39px; width:89px; height:17px; ">접수일자 :</caption>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:15px; top:136px; width:94px; height:17px; ">QC 물질 :</caption>
- <input id="ipt_acptfromdd" ref="/root/hidden/acptfromdd" class="input_search" inputtype="date" style="left:105px; top:38px; width:90px; height:19px; "/>
- <input id="ipt_acpttodd" ref="/root/hidden/acpttodd" class="input_search" inputtype="date" style="left:215px; top:38px; width:90px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">검체번호 :</caption>
- <input id="ipt_bcno" ref="/root/hidden/bcno" class="input_button" imemode="disabled" inputtype="button" maxlength="10" _chartype="upper" style="left:105px; top:9px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <line id="line6" class="line_7" style="x1:14px; y1:32px; x2:299px; y2:32px; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:63px; width:88px; height:17px; ">검 사 실 :</caption>
- <select1 id="cbo_testRoom" ref="/root/hidden/testroom" class="combo_search" appearance="minimal" style="left:105px; top:63px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetEqmtCd(); //검사실에 따른 장비 설정
- ]]>
- </script>
- </select1>
- <select1 id="cbo_eqmtCd" ref="/root/hidden/eqmtcd" class="combo_search" appearance="minimal" style="left:105px; top:87px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:15px; top:87px; width:88px; height:17px; ">장 비 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:159px; width:94px; height:17px; ">작업구분 :</caption>
- <select1 id="rdo_Rsltflag" ref="/root/hidden/rsltstat" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:105px; top:161px; width:210px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>완료</label>
- <value>3</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(rdo_Rsltflag.value == "3"){
- btn_save.disabled = true;
- btn_cfm.disabled = true;
- //btn_measfact.visible = true;
- }else{
- btn_save.disabled = false;
- btn_cfm.disabled = false;
- //btn_measfact.visible = false;
- }
- model.removeNodeset("/root/main/acptlist");
- model.removeNodeset("/root/main/rsltinfo/testrsltinfo");
- model.removeNodeset("/root/main/rsltinfo/spcinfo");
- model.removeNodeset("/root/main/rsltinfo/spcinfo2");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_matr" ref="/root/hidden/matrcd" class="input_s_search" visibility="hidden" inputtype="button" style="left:105px; top:135px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <line id="line2" class="line_1" style="x1:325px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="caption11" class="tit_2" style="left:330px; top:10px; width:115px; height:14px; ">검체정보</caption>
- <caption id="caption19" class="cell_1" style="left:325px; top:78px; width:60px; height:23px; ">평균</caption>
- <caption id="caption20" class="cell_1" style="left:757px; top:78px; width:60px; height:23px; ">참고치</caption>
- <caption id="caption21" class="cell_1" style="left:541px; top:78px; width:60px; height:23px; ">표준편차</caption>
- <caption id="caption22" class="cell_1" style="left:974px; top:78px; width:60px; height:23px; ">단위</caption>
- <output id="opt_matrcd" ref="/root/main/rsltinfo/spcinfo/matrnm" class="output_fix" style="left:388px; top:31px; width:225px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:325px; y1:52px; x2:1194px; y2:52px; "/>
- <line id="line5" class="line_2" style="x1:325px; y1:76px; x2:1194px; y2:76px; "/>
- <output id="opt_levlcd" ref="/root/main/rsltinfo/spcinfo/levlnm" class="output_fix" style="left:679px; top:31px; width:225px; height:19px; "/>
- <output id="opt_lotno" ref="/root/main/rsltinfo/spcinfo/lotno" class="output_fix" style="left:969px; top:31px; width:225px; height:19px; "/>
- <output id="opt_wgRule" ref="/root/main/rsltinfo/spcinfo2/wgmr" class="output_fix" style="left:388px; top:55px; width:225px; height:19px; "/>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_wgRule.hint = "1 : 1(2S) " + "\n" + "2 : 1(3S) " + "\n" + "3 : 2(2S) " + "\n" + "4 : R(4S) " + "\n" + "5 : 4(1S) " + "\n" + "6 : 10X ";
- ]]>
- </script>
- <output id="opt_prodCmpy" ref="/root/main/rsltinfo/spcinfo/prodcmpy" class="output_fix" style="left:679px; top:55px; width:225px; height:19px; "/>
- <output id="opt_eqmtCd" ref="/root/main/rsltinfo/spcinfo/eqmtnm" class="output_fix" style="left:969px; top:55px; width:225px; height:19px; "/>
- <output id="opt_avg" ref="/root/main/rsltinfo/spcinfo2/avg" class="output_fix" style="left:388px; top:79px; width:150px; height:19px; "/>
- <line id="line7" class="line_3" style="x1:325px; y1:100px; x2:1194px; y2:100px; "/>
- <output id="opt_sDVal" ref="/root/main/rsltinfo/spcinfo2/sdval" class="output_fix" style="left:604px; top:79px; width:150px; height:19px; "/>
- <output id="opt_refVal" ref="/root/main/rsltinfo/spcinfo2/refval" class="output_fix" style="left:821px; top:79px; width:150px; height:19px; "/>
- <output id="opt_unit" ref="/root/main/rsltinfo/spcinfo2/unit" class="output_fix" style="left:1037px; top:79px; width:157px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:616px; top:30px; width:60px; height:23px; ">레벨</caption>
- <caption id="caption13" class="cell_1" style="left:325px; top:30px; width:60px; height:23px; ">QC 물질</caption>
- <caption id="caption14" class="cell_1" style="left:907px; top:30px; width:60px; height:23px; ">LOT번호</caption>
- <caption id="caption15" class="cell_1" style="left:325px; top:54px; width:60px; height:23px; ">적용룰</caption>
- <caption id="caption16" class="cell_1" style="left:907px; top:54px; width:60px; height:23px; ">장비</caption>
- <caption id="caption17" class="cell_1" style="left:616px; top:54px; width:60px; height:23px; ">제조회사</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:126px; height:14px; ">물질별결과관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_cle" 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>
- <button id="btn_exception" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>제외</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/send/rsltstat", "R");
- fExeSave();//fInsSave();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:1009px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/send/rsltstat", "2");
- fExeSave();//fInsSave();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:950px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/send/rsltstat", "1");
- fExeSave();//fInsSave();
- ]]>
- </script>
- </button>
- <button id="btn_measfact" class="btn4_letter6" visibility="hidden" style="left:843px; top:3px; width:104px; height:22px; ">
- <caption>조치사유등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.makeValue("/root/send/rsltstat", "F");
- fExeSave();
- ]]>
- </script>
- </button>
- <button id="btn_retest" class="btn4_letter2" visibility="hidden" style="left:891px; top:3px; width:56px; height:22px; ">
- <caption>재검</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeReTest();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|