1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLQP00100_QC결과대장.xrw
- * 설 명 : QC결과대장
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2006.12.26
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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/>
- </testrslt>
- <testdetlinfo>
- <testdetlinfo>
- <rsltcnfmdt/>
- </testdetlinfo>
- </testdetlinfo>
- <testrsltinfo>
- <rsltcnfmdt/>
- <bcno/>
- <matrcd/>
- <levlcd/>
- <testcd/>
- <acptdt/>
- <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>
- <acptfromdd/>
- <acpttodd/>
- <testroom>N</testroom>
- <eqmtcd>00</eqmtcd>
- <testcd>00</testcd>
- <testcd2/>
- <testnm/>
- <testnm2/>
- <deptflag/>
- <rsltstat/>
- <acptflag>0</acptflag>
- <levllist>
- <levlcd2/>
- <levlnm/>
- <levlcd>00</levlcd>
- </levllist>
- <testlist/>
- <allcheck/>
- <divgrupcd/>
- <testdetlinfo/>
- </send>
- <init>
- <LB0702/>
- </init>
- <hidden>
- <ref>
- <acptfromdd/>
- <acpttodd/>
- <testroom>00</testroom>
- <eqmtcd>00</eqmtcd>
- <testnm/>
- <levlcd/>
- <basecdid/>
- <testlist>
- <testnm/>
- <testcd/>
- <testcd2/>
- <testnm2/>
- </testlist>
- <testcdlist/>
- <levllist>
- <levlnm/>
- <levlcd/>
- <levlcd2/>
- </levllist>
- <rsltflag>1</rsltflag>
- <acptflag>00</acptflag>
- <divgrupcd>00</divgrupcd>
- </ref>
- <testdetlinfo>
- <testdetlinfo/>
- </testdetlinfo>
- <rsltinfo>
- <rsltstat>
- <rsltstat/>
- <wgmrmark/>
- <judgmark/>
- </rsltstat>
- <refval/>
- <wgmrscop/>
- <wgmrstat/>
- <avge/>
- <sdval/>
- <lotno/>
- <prodcmpy/>
- <orgrslt/>
- <measfactcnts/>
- <measfactcnts2/>
- <acptdt/>
- <bfrsltcnfmdt/>
- <rsltcnfmid/>
- <bfrsltcnfmid/>
- <rsltcnfmdt/>
- <rsltunit/>
- <bfrslt/>
- <ddosevalue/>
- <cdosevalue/>
- <bfvalue/>
- </rsltinfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <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="TRLQP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/testdetlinfo/testdetlinfo"/>
- <submission id="TRLQP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/testdetlinfo/testdetlinfo"/>
- <submission id="TRLQP00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/testdetlinfo/testdetlinfo"/>
- <submission id="TRLQP00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/eqmttestlist"/>
- <submission id="TRLQJ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <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"/>
- <submission id="TRLQJ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRLQP00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/eqmttestlist"/>
- <submission id="TRLNP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/divgrupnmlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var vStartCol = 7; //결과값이 조회되는 컬럼
- var vStartCol2= 2;
- //초기화
- function fSetInit(){
- //model.removeNodeset("/root/main/testdetlinfo");
- //grd_testDetlInfo.rebuild();
- model.toggle("case2");
- fbuttonvisible("B");
- model.refresh();
- var fromdate = getCurrentDate().toDate("YYYYMMDD")//.getAddDate(-30);
-
- model.setValue("/root/send/acptfromdd", fromdate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/acpttodd", getCurrentDate());
-
- model.setValue("/root/hidden/ref/acptfromdd" , fromdate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/acpttodd" , getCurrentDate());
-
- model.makeValue("/root/send/codeflag","0000|0111|0701|0116|"); //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;
-
- }
-
- // 스위치에 따라 버튼 보이기
- function fbuttonvisible(ref){
- // r결과입력
- if(ref == "A"){
- group3.visible = false;
- group6.visible = false;
- group5.visible = true;
- group7.visible = true;
- button10.visible = true;
- button9.visible = true;
- button8.visible = true;
- button11.visible = false;
- textarea2.visible = false;
- textarea1.visible = true;
-
-
- // var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30);
- // model.setValue("/root/send/testnm", "");
- model.setValue("/root/hidden/ref/eqmtcd", "00");
- model.setValue("/root/hidden/ref/levllist/levlnm", "");
-
- // fSetTestCd2();
- // model.setValue("/root/hidden/ref/acptfromdd" , fromdate.getDateFormat("YYYYMMDD"));
- // model.setValue("/root/hidden/ref/acpttodd" , getCurrentDate());
- // model.setValue("/root/send/acptflag","00");
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- model.removeNodeset("/root/hidden/divgrupnmlist");
- model.setValue("/root/hidden/ref/divgrupcd", "00");
- // model.removeNodeset("/root/hidden/ref/divgrupcd");
- // model.setValue("/root/hidden/ref/testlist/testcd","");
- // model.setValue("/root/hidden/ref/levllist/levlnm","");
- fGrdReSet();
- model.refresh();
- }
- // 결과조회
- else if(ref == "B"){
- group3.visible = true;
- group6.visible = true;
- group7.visible = false;
- group5.visible = false;
- button10.visible = false;
- button9.visible = false;
- button8.visible = false;
- button11.visible = true;
- textarea2.visible = true;
- textarea1.visible = false;
-
- // var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-30);
- model.setValue("/root/send/eqmtcd", "00");
- model.setValue("/root/hidden/ref/divgrupcd", "00");
- model.setValue("/root/send/levllist/levlnm", "");
- // model.setValue("/root/send/acptfromdd" , fromdate.getDateFormat("YYYYMMDD"));
- // model.setValue("/root/send/acpttodd" , getCurrentDate());
- // model.setValue("/root/send/acptflag","0");
-
- model.removeNodeset("/root/main/testrsltinfo");
- model.removeNodeset("/root/main/testrslt");
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- model.removeNodeset("/root/hidden/divgrupnmlist");
- // model.removeNodeset("/root/hidden/ref/divgrupcd");
- // model.setValue("/root/send/testcd","");
- // model.setValue("/root/send/levllist/levlnm","");
- //model.setValue("/root/send/levlcd", "");
- //ipt_levl.refresh();
- //fGrdReSet();
- model.refresh();
- }
- }
-
- //그리드초기화
- function fGrdReSet(){
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- //1번째 컬럼을 제외하고 다 지운다~~
- for(i = grd_testDetlInfo.cols; i>2; i--){
- grd_testDetlInfo.removeColumn(false);
- }
- model.refresh();
- }
-
-
- //장비코드설정
- function fSetEqmtCd(){
-
- model.removeNodeset("/root/init/LB0701");
-
- var testroom = model.getValue("/root/send/testroom");
- model.makeValue("/root/send/basecdid", testroom); //검사실구분 코드(장비코드앞자리)
- model.makeValue("/root/send/codeflag","0701|");
- model.setValue("/root/send/eqmtcd", '00');
-
- submit("TRLZZ00101");
- }
-
- //#2 검사항목 설정
- function fSetTestCd(){
- model.removeNodeset("/root/init/eqmttestlist");
- model.removeNodeset("/root/hidden/divgrupnmlist");
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/send/eqmtcd"));
- model.makeValue("/root/send/codeflag", "0702|");
-
- submit("TRLQP00112");
- model.setValue("/root/hidden/ref/divgrupcd", "00");
- model.refresh();
- }
- function fSetTestCd2(){
- model.removeNodeset("/root/init/eqmttestlist");
- model.removeNodeset("/root/hidden/divgrupnmlist");
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/hidden/ref/eqmtcd"));
- model.makeValue("/root/send/codeflag", "0702|");
-
- submit("TRLQP00114");
- model.setValue("/root/send/testcd", "00");
- model.setValue("/root/hidden/ref/testlist/testcd", "00");
- model.setValue("/root/hidden/ref/divgrupcd", "00");
- combo2.refresh();
- }
-
- //장비별 검사항목 조회 팝업
- function fTestListSch(){
- var eqmtcd = model.getValue("/root/send/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 fTestListSch2(){
-
- var eqmtcd = model.getValue("/root/send/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/send/testcd")); //검사코드를 받아와서 셋팅~
- model.setValue("/root/send/testcd2" , model.getValue("/root/hidden/ref/testlist/testcd2"));
-
- model.refresh();
-
- //fGrdSet2();//검사항목에 따른 그리드 셋팅
- }
-
- //검사항목별 레벨 조회 팝업
- function fTestLevlSch(){
- var eqmtcd = model.getValue("/root/send/eqmtcd"); //장비코드
- var deptflag = model.getValue("/root/init/LB0000/nm"); //사용자부서코드
- var testcd = model.getValue("/root/send/testcd");
- var sflag = "nu" + "▦" + eqmtcd + "▦" + deptflag + "▦" + testcd;
- setParameter("opener_parameter_id", sflag);
- modal("SPLQP00200", "", "", "", "", "", "");
-
- model.setValue("/root/send/levllist/levlnm" , model.getValue("/root/hidden/ref/levllist/levlnm")); //검사명
- model.setValue("/root/send/levllist/levlcd" , model.getValue("/root/hidden/ref/levllist/levlcd")); //검사코드를 받아와서 셋팅~
- model.setValue("/root/send/levllist/levlcd2" , model.getValue("/root/hidden/ref/levllist/levlcd2"));
- model.refresh();
-
- //fGrdSet2();//검사항목에 따른 그리드 셋팅
- }
- //검사항목별 레벨 조회 팝업(결과입력)
- function fTestLevlSch2(){
- var eqmtcd = model.getValue("/root/hidden/ref/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/send/levllist/levlcd" , model.getValue("/root/hidden/ref/levllist/levlcd")); //레벨코드
- model.makeValue("/root/send/levlcd2" , model.getValue("/root/hidden/ref/levllist/levlcd2"));
- fGrdSet2();
- model.refresh();
-
- }
-
- //검사항목에 따른 그리드 셋팅
- function fGrdSet(){
- if(model.getValue("/root/hidden/ref/testlist/testnm") != ""){
- model.removeNodeset("/root/main/testdetlinfo");
- grd_testDetlInfo.addRow(); ///////////////////////////////////////////////////removeNodeset하면 컬럼이 사라지지 않는 현상 발생...
-
-
- //그리드 컬럼 추가 및 캡션 설정 //컬럼 추가때 사용
- var vCap = "검사정보"; //캡션 test로 초기화(고정인 컬럼 캡션)
- var vTestnm = model.getValue("/root/hidden/ref/testlist/testnm2").split("▦"); //검사항목을 ", "단위로 쪼개서 담고
-
- if(vTestnm.length > 10){
- alert("최대조회 항목 수는 10개입니다\n검사항목을 다시 선택하세요!!");
- fTestListSch();
- return;
- }
- //1번째 컬럼을 제외하고 다 지운다~~
- for(i = grd_testDetlInfo.cols; i>2; i--){
- grd_testDetlInfo.removeColumn(false);
- }
-
- //검사항목 갯수만큼 컬럼 추가
- for(i = 0; i<vTestnm.length ; i++){ //선택한 검사항목 갯수만큼
- vCap = vCap + "^" + vTestnm[i]; //캡션에 하나씩 넣어주고
- grd_testDetlInfo.addColumn("ref:column"+(i)+ " ; type:output;", false); //컬럼 ref설정 및 output타입으로 컬럼 추가
- }
- grd_testDetlInfo.caption = vCap;
- }
- grd_testDetlInfo.rowHidden(1) = true; ///////////////////////////////////////////////////removeNodeset하면 컬럼이 사라지지 않는 현상 발생...
- grd_testDetlInfo.refresh();
- }
- //검사항목에 따른 그리드 셋팅
- function fGrdSet2(){
-
- 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 vTestnm2 = rdo_divgrupnmlist2.label; //검사항목을 ▦단위로 쪼개서 담고
- 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 + "^" + vTestnm2; //캡션에 하나씩 넣어주고
- 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 fGetRslt(){
- //if(model.getValue("/root/send/eqmtcd") == "00"){
- // messageBox("장비를", "C002","");
- // return 0;
- //}
- if(model.getValue("/root/send/testcd") == ""){
- messageBox("검사항목을", "C002","");
- return 0;
- }
- if(model.getValue("/root/send/levlcd") == "00"){
- messageBox("레벨을", "C002","");
- return 0;
- }else{
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- //grd_testDetlInfo.addRow();
- model.makeNode("/root/hidden/testdetlinfo/testdetlinfo"); //replaceChild하면 요 노드가 사라지기땜시 생성
-
- for(h = grd_testDetlInfo.cols; h > 2; h--){ //조회하기전에 검사정보 컬럼 제외 모두 삭제
- grd_testDetlInfo.removeColumn(false);
- }
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
- submit("TRLQP00101");
-
- var vCount = model.getValue("/root/hidden/testdetlinfo/count/count"); //컬럼 추가하기 위한 count
- var vTestNm = cbo_testlist.label;
- var vCap = "검사정보";
- var node = instance1.selectSingleNode("/root/main"); //조기 아래 replaceChild관련
-
- for( i = 0; i < vCount; i++){
- grd_testDetlInfo.addColumn("ref:column"+(i)+ " ; type:output;", false); //컬럼 ref설정 및 output타입으로 컬럼 추가
- }
- grd_testDetlInfo.caption = "검사정보^" + model.getValue("/root/hidden/testdetlinfo/count/cap"); //그리드 caption SET
- }
- node.replaceChild(instance1.root.hidden.testdetlinfo, instance1.root.main.testdetlinfo); //노드 옮김
- model.refresh();
- }
-
- //결과조회(레벨별2)
- function fGetRslt2(){
-
- //if(model.getValue("/root/send/eqmtcd") == "00"){
- // messageBox("장비를", "C002","");
- // return 0;
- //}
- if(model.getValue("/root/send/testcd") == "00"){
- messageBox("검사항목을", "C002","");
- return 0;
- }
- if(model.getValue("/root/send/levlcd") == "00"){
- messageBox("Standard를", "C002","");
- return 0;
- }else{
- model.removeNodeset("/root/main/testdetlinfo/testdetlinfo");
- //grd_testDetlInfo.addRow();
- model.makeNode("/root/hidden/testdetlinfo/testdetlinfo"); //replaceChild하면 요 노드가 사라지기땜시 생성
-
- for(h = grd_testDetlInfo.cols; h > 2; h--){ //조회하기전에 검사정보 컬럼 제외 모두 삭제
- grd_testDetlInfo.removeColumn(false);
- }
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
- submit("TRLQP00102", false);
-
- var vCount = model.getValue("/root/hidden/testdetlinfo/count/count"); //컬럼 추가하기 위한 count
- var vTestNm = rdo_divgrupnmlist.label;
- var vCap = "검사정보";
- var node = instance1.selectSingleNode("/root/main"); //조기 아래 replaceChild관련
-
- for( i = 0; i < vCount; i++){
- grd_testDetlInfo.addColumn("ref:column"+(i)+ " ; type:output;", false); //컬럼 ref설정 및 output타입으로 컬럼 추가
- vCap += "^" + rdo_divgrupnmlist.label;
- }
- grd_testDetlInfo.caption = vCap; //그리드 caption SET
- }
- node.replaceChild(instance1.root.hidden.testdetlinfo, instance1.root.main.testdetlinfo); //노드 옮김
- model.refresh();
-
- }
-
- //결과조회
- function fGetTestRslt(){
-
- var eqmtcd = model.getValue("/root/hidden/ref/eqmtcd");
- var levlcd = model.getValue("/root/send/levllist/levlcd");
- //alert(levlcd);
- //if(eqmtcd == "00"){
- // messageBox("장비를", "C002","");
- // return;
- //}
- if(model.getValue("/root/hidden/ref/testlist/testcd") == "00"){
- messageBox("검사항목을", "C002","");
- return 0;
- }
- 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/testcd", model.getValue("/root/hidden/ref/testlist/testcd"));
- 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"));
-
- model.removeNodeset("/root/main/testrslt");
- model.refresh();
- submit("TRLQJ00303");
-
- fGrdReMake();//조회후 그리드 readonly에 따른 배경색 지정
- }
- //조회후 그리드 배경색 지정
- function fGrdReMake(){
- var levlcd = model.getValue("/root/hidden/ref/levllist/levlcd");
- var length = levlcd.split("▦").length;
- //alert(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 +"/@measfactcnts") != ""){
- grd_testRslt.cellStyle("background-image", i+1, j+vStartCol) = "../../../lis/commonweb/images/icnRPTY.gif";
- grd_testRslt.cellstyle("background-position",i+1, j+vStartCol) = "right";
- }
- 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 fGetRsltInfo2(row, col){
- // alert("!!!!!!!!!!!!!!!!!!!!!!");
- //alert(row);
- // alert(col);
-
- // alert(findRow);
- var measfactcntsCol = col-2;
- //alert(measfactcntsCol);
- //alert(model.getValue("/root/main/testdetlinfo/testdetlinfo["+ row +"]/measfactcnts"+measfactcntsCol+""));
- model.setValue("/root/hidden/rsltinfo/measfactcnts2",model.getValue("/root/main/testdetlinfo/testdetlinfo["+ row +"]/measfactcnts"+measfactcntsCol+""));
- // if(row != "-1"){
- // //WGMR상태
- // var measfactcnts = model.getValue("/root/main/testrsltinfo[" + findRow + "]/measfactcnts"); //조치사항
- //
- //
- //
- // model.setValue("/root/hidden/rsltinfo/measfactcnts" , measfactcnts);
- //
- //
- //
- // }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가 아닌 다음행으로 고고싱
- var j = row+2;
- for (i = col+1; i <= grd_testRslt.cols; i++) {
- var isReadonly = model.getValue("/root/main/testrslt[" + (j -2) + "]/column"+ (col-vStartCol+1) +"/@readonly");
- //alert("isReadonly= " +isReadonly + " j= " + j + " col= " + col + " vStartCol= " + vStartCol);
- if(i == grd_testRslt.cols){ //마지막열일때
- grd_testRslt.row += 1
- grd_testRslt.col = 5 ;
- }
- if(isReadonly == "false"){
- grd_testRslt.col += 1;
- }else{
- grd_testRslt.col += 2;
- }
- return;
- }
- /*
- //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 fSelectDivGrup(){
-
- model.removenodeset("/root/main/divgrupnmlist");
- model.refresh();
- model.setValue("/root/send/testcd", "");
- model.setValue("/root/send/divgrupcd", combo2.value);
- //model.setValue("/root/send/divgrupcd", "TFT");
- submit("TRLNP00102" ,false);
-
- // if(model.getValue("/root/hidden/ref/divgrupcd") == "00"){
- // checkbox5.visible = false;
- // }
- // else{
- // checkbox5.visible = true;
- // }
- //model.setValue("/root/send/allcheck", "");
-
- model.refresh();
- }
- function fExeallcheck(){
- var count = getNodesetCount("/root/main/divgrupnmlist");
- if(model.getValue("/root/send/allcheck") == "1"){
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.select(i);
- }
- }
- }
- else{
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.deselect(i);
- }
- }
- }
- }
-
- function fSetPopUpTclscdList(){
- var divgrupnmlist = chk_divgrupnmlist.value;
- var divgrupnmlistlabel = chk_divgrupnmlist.label;
- var divgrupnm = divgrupnmlistlabel.split("▦");
- var divgrupcd = divgrupnmlist.split("▦");
- var count = divgrupnm.length;
-
-
- if(count > 0){
-
- var sendtclsnm = divgrupnm[0];
- var sendtclscd = divgrupcd[0];
- var sendtclscd2 = divgrupcd[0];
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/send/tclscdlist/tclscdlist", "");
- model.setValue("/root/send/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=1; i< count; i++){
- sendtclsnm = sendtclsnm + ", " + divgrupnm[i];
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + divgrupcd[i];
- sendtclscd2 = sendtclscd2 + "▦" + divgrupcd[i];
- }
- model.setValue("/root/send/estnm", sendtclsnm);
- model.setValue("/root/send/testcd", "'" + sendtclscd + "'");
- model.setValue("/root/send/testcd2", sendtclscd2);
-
- }
-
- model.refresh();
- // fGrdReMake();
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:11px; width:1195px; height:27px; ">
- <button id="button9" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetSave(2);
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter3" style="left:1057px; top:3px; width:68px; height:22px; ">
- <caption>그래프</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.copyNode("/root/send/testlist","/root/hidden/ref/testlist");
- model.makeNode("/root/send/levlcd");
- model.setValue("/root/send/testnm", rdo_divgrupnmlist.label);
- model.setValue("/root/send/deptflag",model.getValue("/root/init/LB0000/nm"));
- model.copyNode("/root/send/testdetlinfo", "/root/main/testdetlinfo");
- modal("SMLQP10200 ","","","","","/root/send","/root/hidden/ref"); //초기화reload
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload(); //초기화reload
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button8" class="btn4_letter2" style="left:1011px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetSave(1);
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter2" style="left:953px; top:3px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- model.makeNode("/root/hidden/ref/acptdt");
- modal("SMLQJ10100 ","","","","","/root/hidden/ref","/root/hidden/ref");
- //window.mdiChildren.item("SMLQJ10100").minimize();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <![CDATA[>]]>
- <group id="group6" visibility="hidden" style="left:0px; top:130px; width:1195px; height:600px; ">
- <datagrid id="grd_testDetlInfo" nodeset="/root/main/testdetlinfo/testdetlinfo" class="datagrid2" caption="검사정보" colsep="^" colwidth="120" dataheight="25" defaultrows="1" frozenbottomrows="3" frozenrows="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:40px; width:1193px; height:520px; ">
- <col ref="rsltcnfmdt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell() && grd_testDetlInfo.col >= vStartCol2){
- fGetRsltInfo2(grd_testDetlInfo.row, grd_testDetlInfo.col); //row에 -1을 해준 이유는 캡션의 검사코드 row때문에..
- }/*else if(isDataCell() && grd_testRslt.col == 1){
- fSetChk(); //체크박스
- }*/
- else{
- model.resetInstanceNode("/root/hidden/rsltinfo");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_testRsltInfos" 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, 80, 80, 80, 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:265px; 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="line2" class="line_1" style="x1:0px; y1:35px; x2:1193px; y2:35px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:20px; width:130px; height:13px; ">검체정보상세내역</caption>
- <button id="button6" class="btn2_letter2" style="left:1149px; top:14px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_testDetlInfo.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group7" style="left:0px; top:130px; width:1195px; height:600px; ">
- <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, 80, 80, 80, 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:265px; 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>
- <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:40px; width:1013px; height:520px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="testnm" visibility="hidden"/>
- <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){
- //alert(grd_testRslt.col);
- 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[
- if(isDataCell() && grd_testRslt.col >= vStartCol){
- fGrdKeyDown(grd_testRslt.row-1, grd_testRslt.col);
- }
- ]]>
- </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();
- if(isDataCell() && grd_testRslt.col >= vStartCol){
- fGrdKeyEvent(grd_testRslt.row-1, grd_testRslt.col);
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:21px; width:139px; height:13px; ">검사항목별 결과정보</caption>
- <line id="line14" class="line_1" style="x1:0px; y1:35px; x2:1015px; y2:35px; "/>
- <output id="output4" ref="/root/hidden/rsltinfo/sdval" class="output_fix" style="left:1101px; top:164px; width:93px; height:19px; "/>
- <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:40px; 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>
- <input id="output20" ref="/root/hidden/rsltinfo/bfvalue" class="input" style="left:1100px; top:540px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "bfvalue");
- ]]>
- </script>
- </input>
- <output id="output5" ref="/root/hidden/rsltinfo/lotno" class="output_fix" style="left:1101px; top:188px; width:93px; height:19px; "/>
- <output id="output10" ref="/root/hidden/rsltinfo/rsltcnfmdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" style="left:1015px; top:353px; width:179px; height:19px; "/>
- <output id="output11" ref="/root/hidden/rsltinfo/rsltcnfmid" class="output_fix" style="left:1101px; top:376px; width:93px; height:19px; "/>
- <output id="output7" ref="/root/hidden/rsltinfo/prodcmpy" class="output_fix" style="left:1101px; top:216px; 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:421px; width:179px; height:19px; "/>
- <output id="output8" ref="/root/hidden/rsltinfo/orgrslt" class="output_fix" style="left:1101px; top:240px; width:93px; height:19px; "/>
- <output id="output13" ref="/root/hidden/rsltinfo/bfrslt" class="output_fix" style="left:1101px; top:444px; width:93px; height:19px; "/>
- <caption id="caption31" class="cell_1" style="left:1015px; top:375px; 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:309px; width:179px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:1015px; top:287px; width:179px; height:21px; ">접수일시</caption>
- <caption id="caption32" class="cell_1" style="left:1015px; top:443px; width:85px; height:21px; ">이전결과</caption>
- <caption id="caption21" class="cell_1" style="left:1015px; top:331px; width:179px; height:21px; ">결과보고(확인)일시</caption>
- <output id="output14" ref="/root/hidden/rsltinfo/rsltunit" class="output_fix" style="left:1101px; top:264px; width:93px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:1015px; top:139px; width:85px; height:21px; ">평균</caption>
- <output id="output15" ref="/root/hidden/rsltinfo/bfrsltcnfmid" class="output_fix" style="left:1101px; top:468px; width:93px; height:19px; "/>
- <caption id="caption19" class="tit_2" style="left:1020px; top:20px; width:115px; height:13px; ">결과 상세정보</caption>
- <caption id="caption23" class="cell_1" style="left:1015px; top:399px; width:179px; height:21px; ">이전결과(확인)일시</caption>
- <caption id="caption22" class="cell_1" style="left:1015px; top:163px; width:85px; height:21px; ">표준편차</caption>
- <caption id="caption24" class="cell_1" style="left:1015px; top:263px; width:85px; height:21px; ">단위</caption>
- <caption id="caption25" class="cell_1" style="left:1015px; top:90px; width:179px; height:21px; ">참고치</caption>
- <input id="output18" ref="/root/hidden/rsltinfo/ddosevalue" class="input" style="left:1101px; top:492px; 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:467px; width:85px; height:21px; ">검사자</caption>
- <caption id="caption27" class="cell_1" style="left:1015px; top:187px; width:85px; height:21px; ">LOT NO</caption>
- <input id="output19" ref="/root/hidden/rsltinfo/cdosevalue" class="input" style="left:1101px; top:516px; 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="caption28" class="cell_1" style="left:1015px; top:491px; width:85px; height:21px; ">DEF. DOSE</caption>
- <line id="line4" class="line_1" style="x1:1015px; y1:35px; x2:1194px; y2:35px; "/>
- <caption id="caption29" class="cell_1" style="left:1015px; top:515px; width:85px; height:21px; ">CALC. DOSE</caption>
- <caption id="caption30" class="cell_1" style="left:1014px; top:539px; width:85px; height:21px; ">% B / F</caption>
- <caption id="caption33" class="cell_1" style="left:1015px; top:215px; width:85px; height:21px; ">제조회사</caption>
- <caption id="caption34" class="cell_1" style="left:1015px; top:239px; width:85px; height:21px; ">실제 결과</caption>
- <output id="output1" ref="/root/hidden/rsltinfo/refval" class="output_fix" style="left:1015px; top:112px; width:179px; height:19px; "/>
- <output id="output3" ref="/root/hidden/rsltinfo/avge" class="output_fix" style="left:1101px; top:140px; width:93px; height:19px; "/>
- <output id="output6" ref="/root/hidden/rsltinfo/wgmrscop" class="output_fix" visibility="visible" style="left:413px; top:13px; width:93px; height:19px; "/>
- <caption id="caption35" class="cell_1" visibility="visible" style="left:590px; top:13px; width:179px; height:21px; ">WGMR판정</caption>
- <caption id="caption36" class="cell_1" visibility="visible" style="left:325px; top:13px; width:85px; height:21px; ">적용률</caption>
- <output id="output2" ref="/root/hidden/rsltinfo/wgmrstat" class="output_fix" visibility="visible" style="left:772px; top:13px; width:179px; height:19px; "/>
- </group>
- <textarea id="textarea1" ref="/root/hidden/rsltinfo/measfactcnts" style="left:124px; top:695px; width:1070px; height:45px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "measfactcnts");
- ]]>
- </script>
- </textarea>
- <textarea id="textarea2" ref="/root/hidden/rsltinfo/measfactcnts2" style="left:124px; top:695px; width:1070px; height:45px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCntsSet(grd_testRslt.row-1, grd_testRslt.col, "measfactcnts");
- ]]>
- </script>
- </textarea>
- <caption id="caption12" class="tit_2" style="left:5px; top:705px; width:130px; height:13px; ">조치사항(사유)</caption>
- <switch id="switch1" class="sw_box" style="left:0px; top:25px; width:1195px; height:108px; ">
- <case id="case1" selected="true">
- <group id="group5" style="left:0px; top:1px; width:1193px; height:105px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:105px; "/>
- <button id="button2" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestRslt();
- ]]>
- </script>
- </button>
- <select1 id="rdo_divgrupnmlist2" ref="/root/hidden/divgrupnmlist" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:20px; top:55px; width:615px; height:45px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/divgrupnmlist">
- <label ref="tclsscrnnm"/>
- <value ref="tclscd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/hidden/ref/testlist/testcd" , rdo_divgrupnmlist2.value);
- model.setValue("/root/hidden/ref/testlist/testnm", rdo_divgrupnmlist2.label);
- fTestLevlSch2();
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:811px; top:33px; 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:901px; top:35px; 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[
- radio1.value== "1";
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/send/acptflag" class="combo_search" appearance="minimal" style="left:480px; top:9px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value>00</value>
- </item>
- <item>
- <label>QC</label>
- <value>0</value>
- </item>
- <item>
- <label>Evaluation</label>
- <value>1</value>
- </item>
- <item>
- <label>Calibration</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:390px; top:10px; width:86px; height:17px; ">접수구분 :</caption>
- <button id="btn_levlSch" class="icon_search" visibility="visible" style="left:783px; top:33px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- fTestLevlSch2(); //레벨조회 팝업 뜨지롱
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_no_b" style="left:195px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption11" class="search_name" style="left:15px; top:33px; width:93px; height:17px; ">검사항목 :</caption>
- <caption id="caption13" class="search_name" style="left:612px; top:10px; width:75px; height:17px; ">장비 :</caption>
- <select1 id="cbo_eqmtList" ref="/root/hidden/ref/eqmtcd" class="combo_search" appearance="minimal" style="left:675px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetTestCd2();
- ]]>
- </script>
- </select1>
- <caption id="caption14" class="search_name" style="left:390px; top:33px; width:93px; height:17px; ">레벨 :</caption>
- <line id="line3" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; "/>
- <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>
- <caption id="caption8" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">접수일자 :</caption>
- <input id="ipt_acptFromdd" ref="/root/hidden/ref/acptfromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_acpTtodd" ref="/root/hidden/ref/acpttodd" class="input_search" inputtype="date" style="left:210px; top:8px; width:85px; height:19px; "/>
- <output id="output16" ref="/root/hidden/ref/levllist/levlnm" class="output_fix" style="left:480px; top:32px; width:295px; height:19px; "/>
- <select1 id="combo2" ref="/root/hidden/ref/divgrupcd" class="combo_search" appearance="minimal" style="left:105px; top:31px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0116">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectDivGrup();
- ]]>
- </script>
- </select1>
- </group>
- </case>
- <case id="case2">
- <group id="group3" style="left:0px; top:1px; width:1193px; height:105px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:105px; "/>
- <button id="button1" class="icon_search" visibility="hidden" style="left:363px; top:34px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/eqmtcd") == "00"){ //장비코드가 전체이면
- messageBox("장비를", "C002","");
- }else{
- fTestListSch(); //장비별 검사항목 팝업 뜨지롱
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="icon_search" visibility="visible" style="left:783px; top:33px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTestLevlSch(); //레벨조회 팝업 뜨지롱
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_no_b" style="left:195px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="caption5" class="search_name" style="left:15px; top:33px; width:93px; height:17px; ">검사항목 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/divgrupcd" class="combo_search" appearance="minimal" style="left:105px; top:31px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0116">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectDivGrup();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_divgrupnmlist" ref="/root/hidden/divgrupnmlist" class="radio_search" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:20px; top:55px; width:615px; height:50px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/divgrupnmlist">
- <label ref="tclsscrnnm"/>
- <value ref="tclscd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/testcd" , rdo_divgrupnmlist.value);
- model.setValue("/root/send/testnm", rdo_divgrupnmlist.label);
- fTestLevlSch();
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:612px; top:10px; width:75px; height:17px; ">장비 :</caption>
- <select1 id="combo4" ref="/root/send/eqmtcd" class="combo_search" appearance="minimal" style="left:675px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0701">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetTestCd();
- ]]>
- </script>
- </select1>
- <button id="button12" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetPopUpTclscdList();
- fGetRslt2();
- grd_testDetlInfo.frozenRows = 3;
- ]]>
- </script>
- </button>
- <select1 id="combo5" ref="/root/send/acptflag" class="combo_search" appearance="minimal" style="left:480px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0704">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:390px; top:9px; width:86px; height:17px; ">접수구분 :</caption>
- <caption id="caption9" class="search_name" style="left:390px; top:33px; width:93px; height:17px; ">레벨 :</caption>
- <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; "/>
- <input id="ipt_levl" ref="/root/send/levllist/levlnm" class="combo_search" appearance="minimal" style="left:480px; top:32px; width:295px; height:19px; "/>
- <caption id="caption16" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">접수일자 :</caption>
- <input id="input2" ref="/root/send/acptfromdd" class="input_search" inputtype="date" style="left:105px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_acptTodd" ref="/root/send/acpttodd" class="input_search" inputtype="date" style="left:210px; top:8px; width:85px; height:19px; "/>
- </group>
- </case>
- </switch>
- </group>
- <button id="btn_swacpt" class="btn_sw" group="tab" style="left:70px; top:44px; width:70px; height:22px; ">
- <caption>결과입력</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbuttonvisible("A");
- ]]>
- </script>
- </button>
- <button id="btn_swref" class="btn_sw" group="tab" selected="true" style="left:0px; top:44px; width:70px; height:22px; ">
- <caption>결과조회</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbuttonvisible("B");
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption17" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">QC 결과입력</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|