123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLOR00200_위탁검사결과관리.xrw
- * 설 명 : 위탁검사결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.07.03
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <outerlist>
- <workdd/>
- <instcd/>
- <pid/>
- <bcno/>
- <patnm/>
- <testcd/>
- <inptrslt/>
- <rsltstat/>
- <srvstat/>
- <imgyn/>
- <imgnm/>
- <rkey/>
- <imgfull/>
- <imgwidt/>
- <imght/>
- <imgrslt/>
- <testnm/>
- <imgtrue/>
- <descrslt/>
- </outerlist>
- </list>
- <list2>
- <outerlist>
- <chk/>
- <workdd/>
- <instcd/>
- <pid/>
- <bcno/>
- <patnm/>
- <testcd/>
- <inptrslt/>
- <rsltstat/>
- <srvstat/>
- <imgyn/>
- <imgnm/>
- <rkey/>
- <imgfull/>
- <imgwidt/>
- <imght/>
- <imgrslt/>
- <testnm/>
- <imgtrue/>
- <descrslt/>
- </outerlist>
- </list2>
- <msglist>
- <msg/>
- </msglist>
- <view>
- <imgnm/>
- <imgrslt/>
- <imgwidt/>
- <imght/>
- <rsltseqno/>
- <savdelflag>1</savdelflag>
- </view>
- </main>
- <send>
- <attach>
- <file/>
- <bcno/>
- <rsltstat/>
- <imght/>
- <imgwidt/>
- <testcd/>
- <imgrslt/>
- </attach>
- <codeflag/>
- <outerrslt>
- </outerrslt>
- <data3/>
- <bcnolist/>
- <testcdlist/>
- <cnfmdata/>
- <refparam/>
- <savegbn/>
- <deptflag/>
- <data2/>
- <testlist/>
- </send>
- <init>
- </init>
- <hidden>
- <filename/>
- <imgname/>
- <cnfmlist>
- <bcno/>
- <testcd/>
- <rsltstat/>
- <rkey/>
- </cnfmlist>
- <ResultFlag>
- <error/>
- </ResultFlag>
- <cmt>
- <cd>00</cd>
- <cnts/>
- </cmt>
- <tclslist>
- <tclscd/>
- <tclsnm/>
- <tclsabbrnm/>
- </tclslist>
- <refparam>
- <startdd/>
- <enddd/>
- <sectcd/>
- <tsectcd/>
- <rstflag>0</rstflag>
- <extrcd/>
- </refparam>
- <rsltstat2/>
- <spcltestinfo>
- <bcno/>
- <testcd/>
- <spccd/>
- <tclscd/>
- <pid/>
- <rsltstat/>
- </spcltestinfo>
- </hidden>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //grd_outer.deleteRow(1, false);
- /////grd_outer.removeRow();
- grd_outer2.fixedcellcheckbox(0,1) = true; // 전체체크박스 만들기
- //grd_outer2.fixedcellischeck(0,1) = true; // 전체체크박스에 체크표시
-
- //model.removeNodeset("/root/main/outerlist");
- model.removeNodeset("/root/main/list/outerlist");
- model.removeNodeset("/root/main/list2/outerlist");
- model.removeNodeset("/root/hidden/cnfmlist");
- grd_attach.removeRow();
- model.resetInstanceNode("/root/send");
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0210|0111|0106|0000|0110|"); //0210 소견코드 0111 시행부서 0106 상세시행부서 0110 위탁기관
- submit("TRLZZ00101");
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/send/codeflag", "0134|"); // 0134 외부기관 핵의학구분
- submit("TRLZZ00101");
-
- model.setValue("/root/hidden/refparam/startdd", getCurrentDate());
- model.setValue("/root/hidden/refparam/enddd", getCurrentDate());
-
- model.setValue("/root/hidden/refparam/sectcd", "X");
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ "X" +"']";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = false;
-
- model.refresh();
- ]]>
- </script>
- <!-- 기초코드 조회-->
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0210"/>
- <submission id="TXLOR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/ResultFlag"/>
- <submission id="TRLOR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cnfmlist"/>
- <submission id="TXTSS00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
- <submission id="TXLOR00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach"/>
- <submission id="TRLOR00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/tclslist"/>
- <submission id="TRLOR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2/outerlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 파일 가져오기
- //2010-03-18 박정은 수정 변경요청번호 3430 체크박스 표시되도록
- function fGetFileName(){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls|CSV Files(*.csv)|*.csv");
-
- if (fileName == "" || fileName == null) {
- alert("파일을 선택하세요");
- return;
- }
-
- model.setValue("/root/hidden/filename", fileName);
- opt_file.refresh();
-
- //grd_outer.loadExcel(fileName, 1, true);
- grd_outer.loadExcel(fileName); // 엑셀파일 그리드로 가져오기
- grd_outer.deleteRow(1);
-
- grd_outer.refresh();
-
- if(grd_outer.rows < 1){
- alert("입력할 데이터가 없습니다. 엑셀파일을 확인하세요 ");
- return;
- }
-
- // 검사명 조회하기
- //if(grd_outer.rows > 1){
- var bcnolist = "";
- var tclscdlist = "";
-
- for(j=1; j<grd_outer.rows; j++){
- bcnolist += "'" + model.getValue("/root/main/list/outerlist["+j+"]/bcno") + "'" + ",";
- tclscdlist += "'" + model.getValue("/root/main/list/outerlist["+j+"]/testcd") + "'" + ",";
-
- //요셉
- //model.setValue("/root/main/list/outerlist["+j+"]/descrslt" , model.getValue("/root/main/list/outerlist["+j+"]/descrslt").replace("<", "〈").replace(">", "〉"));
- }
- model.setValue("/root/send/bcnolist", bcnolist.substr(0, (bcnolist.length-1)) );
- model.setValue("/root/send/testcdlist", tclscdlist.substr(0, (tclscdlist.length-1)) );
-
- submit("TRLOR00202");
-
- ///for(q=1; q< grd_outer.rows; q++){
- // var tcd = model.getValue("/root/main/list/outerlist["+q+"]/testcd").getTrim()
- // model.setValue("/root/main/list/outerlist["+q+"]/testnm", model.getValue("/root/hidden/tclslist[testcd="+tcd+"]/tclsnm"));
- //}
-
- /*
- var tclsrow = getNodesetCount("/root/hidden/tclslist");
-
- for(j= 1; j<=tclsrow; j++){
- for(k=1; k<grd_outer.rows; k++){
- if(model.getValue("/root/hidden/tclslist["+j+"]/testcd")==model.getValue("/root/main/list/outerlist["+k+"]/testcd")){
- model.setValue("/root/main/list/outerlist["+k+"]/testnm", model.getValue("/root/hidden/tclslist["+j+"]/tclsnm"));
- model.setValue("/root/main/list/outerlist["+k+"]/tclscd", model.getValue("/root/hidden/tclslist["+j+"]/tclscd"));
- model.setValue("/root/main/list/outerlist["+k+"]/spccd", model.getValue("/root/hidden/tclslist["+j+"]/spccd"));
- }
- }
- }
- */
-
-
- //} // grd_outer.rows > 1
-
- /* for(i=1; i<grd_outer.rows; i++){
- var tcd = model.getValue("/root/main/list/outerlist["+i+"]/testcd").getTrim();
-
- model.setValue("/root/main/list/outerlist["+i+"]/testnm", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclsnm"));
- model.setValue("/root/main/list/outerlist["+i+"]/tclscd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclscd"));
- model.setValue("/root/main/list/outerlist["+i+"]/spccd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/spccd"));
- model.setValue("/root/main/list/outerlist["+i+"]/srvstat", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/rsltstat"));
- //grd_outer.rowStatus(i) = 1;
- var bcbc = model.getValue("/root/main/list/outerlist["+i+"]/bcno");
- var tctc = model.getValue("/root/main/list/outerlist["+i+"]/testcd");
- model.setValue("/root/main/list/outerlist["+i+"]/rkey", bcbc + tctc);
- grd_outer2.rowStatus(i) = 1;
- //grd_outer2.fixedcellischeck(i,1) = true;
-
- }
- */
- model.copyNode("/root/main/list2", "/root/main/list");
-
- for(j=1; j<grd_outer.rows; j++){
- var tcd = model.getValue("/root/main/list/outerlist["+j+"]/testcd");
- var sbcno = model.getValue("/root/main/list/outerlist["+j+"]/bcno");
-
- // JJH 2011-03-15
- // XML기호 오류료 변환하여 삽입
- var vDesc = model.getValue("/root/main/list2/outerlist["+j+"]/descrslt");
-
- //alert( "Befor :" + vDesc );
- vDesc = vDesc.setReplaceWord("<" , "〈") ;
- vDesc = vDesc.setReplaceWord(">", " 〉");
- vDesc = vDesc.setReplaceWord("&", "&");
- // vDesc = vDesc.replace("<", "〈");
- // vDesc = vDesc.replace(">", "〉");
- // vDesc = vDesc.replace("<", "<");
- // vDesc = vDesc.replace(">", ">");
- //vDesc = vDesc.replace("&", "&");
- //alert( "After :" + vDesc);
- model.setValue ("/root/main/list2/outerlist["+j+"]/descrslt", vDesc);
-
- model.setValue("/root/main/list2/outerlist["+j+"]/testnm", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclsnm"));
- model.setValue("/root/main/list2/outerlist["+j+"]/tclscd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclscd"));
- model.setValue("/root/main/list2/outerlist["+j+"]/spccd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/spccd"));
- model.setValue("/root/main/list2/outerlist["+j+"]/srvstat", model.getValue("/root/hidden/tclslist[bcno='"+sbcno+"' and testcd='"+ tcd +"']/rsltstat"));
- var bcbc = model.getValue("/root/main/list2/outerlist["+j+"]/bcno");
- var tctc = model.getValue("/root/main/list2/outerlist["+j+"]/testcd");
- model.setValue("/root/main/list2/outerlist["+j+"]/rkey", bcbc + tctc);
- model.makeValue("/root/main/list2/outerlist["+j+"]/tclskind", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclskind"));
-
- if( (model.getValue("/root/main/list2/outerlist["+j+"]/srvstat") =="4" ) || (model.getValue("/root/main/list2/outerlist["+j+"]/srvstat") =="5" )){ // 최종보고나 수정보고일때
- model.makeValue("/root/main/list2/outerlist["+j+"]/chk", "N");
- }else{
- if(model.getValue("/root/main/list2/outerlist["+j+"]/tclskind")=="1"){
- model.makeValue("/root/main/list2/outerlist["+j+"]/chk", "N");
- }else{
- model.makeValue("/root/main/list2/outerlist["+j+"]/chk", "Y");
- }
- }
- grd_outer2.rowStatus(j) = 1;
- }
-
- grd_outer2.refresh();
-
- model.setValue("/root/send/savegbn", "F"); // File로 저장시
- }
-
- // 이미지경로 가져오기
- function fGetImgPath(){
-
- var folderName = window.folderDialog("");
-
- if (folderName == "" || folderName == null) {
- alert("폴더를 선택하세요");
- return;
- }
-
- //model.setValue("/root/hidden/imgname", folderName + "\\");
- model.setValue("/root/hidden/imgname", folderName);
- opt_img.refresh();
- }
-
- // 이미지 업로드
- function fSetImgUpload(){
-
- var vCnt = 0;
- var imgPath = new Array();
-
- var maxsize = upload1.attribute("filesize");
-
- for(i=1; i<grd_outer2.rows; i++){
- if(model.getValue("/root/main/list2/outerlist["+i+"]/imgyn")=="Y"){
- if(model.getValue("/root/main/list2/outerlist["+i+"]/imgnm")!= ""){
- var imglennm = model.getValue("/root/main/list2/outerlist["+i+"]/imgnm") + ",";
- var imglen = imglennm.split(",");
-
- for(var imgRow = 0 ; imgRow < imglen.length - 1 ; imgRow++){
-
-
- fChangeImage(model.getValue("/root/hidden/imgname") + "\\" + imglen[imgRow].getTrim());
-
- grd_attach.addRow(); // grd_attach 업로드용 그리드
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = model.getValue("/root/hidden/imgname") + "\\" + model.getValue("/root/main/list2/outerlist["+i+"]/imgnm");
- grd_attach.valueMatrix(grd_attach.rows - 1, 1) = model.getValue("/root/main/list2/outerlist["+i+"]/bcno");
- grd_attach.valueMatrix(grd_attach.rows - 1, 2) = model.getValue("/root/main/list2/outerlist["+i+"]/testcd");
- grd_attach.valueMatrix(grd_attach.rows - 1, 3) = model.getValue("/root/main/list2/outerlist["+i+"]/rsltstat");
- //grd_attach.valueMatrix(grd_attach.rows - 1, 4) = "450";
- //grd_attach.valueMatrix(grd_attach.rows - 1, 5) = "317";
- grd_attach.valueMatrix(grd_attach.rows - 1, 4) = model.getValue("/root/main/view/imght");
- grd_attach.valueMatrix(grd_attach.rows - 1, 5) = model.getValue("/root/main/view/imgwidt");
- grd_attach.valueMatrix(grd_attach.rows - 1, 6) = model.getValue("/root/main/view/imgrslt");
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
- }
-
- }
- }
- }
-
- }
-
- function fChangeImage(imgsrc){ // 이미지 전환
-
- var vimg = imgsrc.getTrim();
- var vimg2 = vimg.setReplaceWord("\n" , "");
- img2.src = vimg2
- //img2.src = model.getValue("/root/hidden/imgname") + "\\" + vimg2;
- //이재오 막다 2012 5월 9일 //
- //img2.src = imgsrc;
- //이재오 막다 2012 5월 9일 //
- var data = img2.getbase64data();
- var imgSize = getImageSize(imgsrc);
-
- model.setValue("/root/main/view/imgrslt",data,true);
- //model.setValue("/root/main/view/imgrslt", data);
-
- // setImageRefInstance("/root/main/view/imgrslt");
-
- if( imgSize.split("^")[0] >= 2500){
- model.setValue("/root/main/view/imgwidt", parseInt(imgSize.split("^")[0] * 0.3) );
- model.setValue("/root/main/view/imght", parseInt(imgSize.split("^")[1] * 0.3) );
- }else if( imgSize.split("^")[0] > 2000 && imgSize.split("^")[0] < 2500){
- model.setValue("/root/main/view/imgwidt", parseInt(imgSize.split("^")[0] * 0.4) );
- model.setValue("/root/main/view/imght", parseInt(imgSize.split("^")[1] * 0.4) );
- }else{
- model.setValue("/root/main/view/imgwidt", imgSize.split("^")[0]);
- model.setValue("/root/main/view/imght", imgSize.split("^")[1]);
- }
-
- model.refresh();
- }
-
- // 결과전송
- function fExeOuterRslt(){
-
- // 이미지 결과 Y인것 업로드 하기
- //fGetImgFile();
-
- for(i=1; i<grd_outer2.rows; i++){
- if(model.getValue("/root/main/list2/outerlist["+i+"]/chk")=="Y"){ // 체크된것만 보내기
- grd_outer2.rowStatus(i) = 1;
- }
- }
-
- var grdouter = grd_outer2.getUpdateData();
-
- model.setValue("/root/send/outerrslt", grdouter);
- //model.copyNode("/root/send/data3", "/root/hidden/cmt");
- fSetImgUpload();
-
- if(submit("TXLOR00201", false)){
- //model.removeNodeset("/root/main/outerlist");
- //model.resetInstanceNode("/root/main/outerlist");
- model.resetInstanceNode("/root/main/list2/outerlist");
- model.resetInstanceNode("/root/main/view");
- }
-
-
-
-
- //submit("TXLOR00202",false);
- model.removeNodeset("/root/send/attach");
- model.resetInstanceNode("/root/send");
-
-
-
- model.refresh();
-
- }
-
-
- // 전송확인
- function fGetOuterRsltConfirm(){
- model.removeNodeset("/root/hidden/cnfmlist");
-
- if(grd_outer2.rows < 2){
- //alert("전송확인할 항목이 없습니다.");
- messageBox("전송확인할 항목이 ", "I004", "");
- return;
- }
-
- var keylist = model.getValue("/root/main/list2/outerlist[1]/rkey");
- var bcnolist = model.getValue("/root/main/list2/outerlist[1]/bcno");
- var testlist = model.getValue("/root/main/list2/outerlist[1]/testcd");
-
- for(i=2; i<grd_outer2.rows; i++ ){
- keylist = keylist + "','" + model.getValue("/root/main/list2/outerlist["+i+"]/rkey");
- bcnolist = bcnolist + "','" + model.getValue("/root/main/list2/outerlist["+i+"]/bcno");
- testlist = testlist + "','" + model.getValue("/root/main/list2/outerlist["+i+"]/testcd");
- }
-
- model.setValue("/root/send/cnfmdata", "'" + keylist + "'");
- model.setValue("/root/send/bcnolist", "'" + bcnolist + "'");
- model.setValue("/root/send/testlist", "'" + testlist + "'");
- //alert("aaa= " + model.getValue("/root/send/cnfmdata"));
- if(submit("TRLOR00201")){
-
- var refRow = getNodesetCount("/root/hidden/cnfmlist");
-
- /*for(j=1; j<=refRow; j++){
- for(i=1; i<grd_outer2.rows; i++ ){
-
- if(model.getValue("/root/main/list2/outerlist["+j+"]/rkey")==model.getValue("/root/hidden/cnfmlist["+i+"]/rkey")){
- model.setValue("/root/main/list2/outerlist["+i+"]/srvstat", model.getValue("/root/hidden/cnfmlist["+j+"]/rsltstat"));
- }
- }
- }
-
- */
-
- for(j=1; j<grd_outer2.rows; j++){
-
- var tcd = model.getValue("/root/main/list/outerlist["+j+"]/testcd");
- var sbcno = model.getValue("/root/main/list/outerlist["+j+"]/bcno");
-
- //model.setValue("/root/main/list2/outerlist["+j+"]/testnm", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclsnm"));
- //model.setValue("/root/main/list2/outerlist["+j+"]/tclscd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclscd"));
- //model.setValue("/root/main/list2/outerlist["+j+"]/spccd", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/spccd"));
- model.setValue("/root/main/list2/outerlist["+j+"]/srvstat", model.getValue("/root/hidden/tclslist[bcno='"+sbcno+"' and testcd='"+ tcd +"']/rsltstat"));
- //var bcbc = model.getValue("/root/main/list2/outerlist["+j+"]/bcno");
- //var tctc = model.getValue("/root/main/list2/outerlist["+j+"]/testcd");
- //model.setValue("/root/main/list2/outerlist["+j+"]/rkey", bcbc + tctc);
- //model.makeValue("/root/main/list2/outerlist["+j+"]/tclskind", model.getValue("/root/hidden/tclslist[testcd='"+ tcd +"']/tclskind"));
-
-
-
- }
- }else{
- alert("조회오류");
- }
-
- }
-
- // 소견콤보 선택시 textarea 로 보여주기
- function fSetCmt(){
- var cmtcnt = model.getValue("/root/init/LB0210[etc01='X' and cd=" + "'"+cmb_cmt.value+"'" + "]/etc03");
-
- model.setValue("/root/hidden/cmt/cnts", cmtcnt);
- tar_cmt.refresh();
- }
-
- // 초기화
- function fSetReset(){
- model.reset();
- }
-
- // 엑셀 저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
-
- // 이미지 있을때 업로드 하기
- function fGetImgFile(){
-
- var maxsize = upload1.attribute("filesize");
- //alert("maxsize= " + maxsize);
- //files = window.fileDialog("open", "|", true);
- //filelist = files.split("|");
-
- var imgpath = model.getValue("/root/hidden/imgname");
-
- var filefullName = imgpath + "\\" + model.getValue("/root/main/list2/outerlist/imgnm");
- model.setValue("/root/main/list2/outerlist/imgfull", filefullName);
-
- img2.src = filefullName;
- var data = img2.getbase64data();
- //alert("data= " + data);
- var imgsize = getImageSize(filefullName);
- //alert("imgsize= " + imgsize);
- model.setValue("/root/main/view/imgrslt", data, true);
- setImageRefInstance("/root/main/view/imgrslt");
- model.setValue("/root/main/view/imgwidt", imgsize.split("^")[0]);
- model.setValue("/root/main/view/imght", imgsize.split("^")[1]);
-
- img2.attribute("width")= imgsize.split("^")[0];
- img2.attribute("height")= imgsize.split("^")[1];
-
- model.copyNode("/root/send/data2" , "/root/main/view" )
- model.refresh();
-
- /*for(i=1; i<grd_outer.rows; i++ ){
- //alert("i= " + i + " rows= " + grd_outer.rows);
- if(("Y" == model.getValue("/root/main/outerlist["+i+"]/imgyn")) || ("" != model.getValue("/root/main/outerlist["+i+"]/imgnm"))){
-
- if(imgpath == ""){
- alert("이미지 경로가 없습니다.");
- return;
- }
-
- var filefullName = imgpath + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm");
- model.setValue("/root/main/outerlist["+i+"]/imgfull", filefullName);
-
- img2.src = filefullName;
- var data = img2.getbase64data();
- //alert("data= " + data);
- var imgsize = getImageSize(filefullName);
- //alert("imgsize= " + imgsize);
- model.setValue("/root/main/outerlist["+i+"]/imgrslt", data, true);
- model.setValue("/root/main/outerlist["+i+"]/imgwidt", imgsize.split("^")[0]);
- model.setValue("/root/main/outerlist["+i+"]/imght", imgsize.split("^")[1]);
-
- if (!checkFileSize(upload1)){
- //grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
-
- }
-
- }*/
-
-
- }
-
- // 조회기간 3일간만 조회가능
- function fSetRefFromdd() {
-
- var fromdd = model.getValue("/root/hidden/refparam/startdd");
- var todd = model.getValue("/root/hidden/refparam/enddd");
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
-
- if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
- messageBox("3일 이내의 기간만 검색","I006");
-
- return false;
- }else if(todd < fromdd) {
- messageBox("기간설정이 잘못", "E005");
-
- return false;
- }else {
- return true;
- }
- }
-
- // 위탁검사 시행부서별 조회
- function fGetWiTakRslt(){
-
- //if(!fSetRefFromdd()){ // 3일 내로만 조회되게
- // return;
- //}
-
- model.copynode("/root/send/refparam", "/root/hidden/refparam");
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
- submit("TRLOR00101");
-
- for(i=1; i<grd_outer2.rows; i++){
- grd_outer2.rowStatus(i) = 1;
- }
- model.setValue("/root/send/savegbn", "R"); // 조회했을때
- model.refresh();
- }
-
- // 저장상태 변경
- function fSetRsltStat(){
-
- if(grd_outer2.rows> 1){
- for(i=1; i<grd_outer2.rows; i++){
- if( (model.getValue("/root/main/list2/outerlist["+i+"]/srvstat") =="4" ) || (model.getValue("/root/main/list2/outerlist["+i+"]/srvstat") =="5" )){ // 최종보고나 수정보고일때
- model.setValue("/root/main/list2/outerlist["+i+"]/rsltstat", "-");
- }else{
- if( model.getValue("/root/main/list2/outerlist["+i+"]/tclskind")=="1"){ // 판넬일때는
- model.setValue("/root/main/list2/outerlist["+i+"]/rsltstat", "-"); // 저장안해도됨
- }else{
- model.setValue("/root/main/list2/outerlist["+i+"]/rsltstat", model.getValue("/root/hidden/rsltstat2"));
- }
- }
- }
- model.refresh();
- }else{
- alert("변경할 내용이 없습니다. ");
- }
- }
-
- // 이미지결과 보여주기
- function fSetImgRsltView(){
- //model.resetInstanceNode("/root/hidden/spcltestinfo");
-
- var row = "";
- if(model.getValue("/root/send/savegbn")=="F"){ // 파일로딩했을때
- row = grd_outer2.row;
- }else{ // 조회했을때
- //row = grd_outer.row + 2;
- row = grd_outer2.row ;
- }
- //alert("row=" + row);
- if(row> 0){
- if(model.getValue("/root/main/list2/outerlist["+row+"]/imgyn")=="Y"){
- model.setValue("/root/hidden/spcltestinfo/bcno", model.getValue("/root/main/list2/outerlist["+row+"]/bcno"));
- model.setValue("/root/hidden/spcltestinfo/testcd", model.getValue("/root/main/list2/outerlist["+row+"]/testcd"));
- model.setValue("/root/hidden/spcltestinfo/spccd", model.getValue("/root/main/list2/outerlist["+row+"]/spccd"));
- model.setValue("/root/hidden/spcltestinfo/tclscd", model.getValue("/root/main/list2/outerlist["+row+"]/tclscd"));
- model.setValue("/root/hidden/spcltestinfo/pid", model.getValue("/root/main/list2/outerlist["+row+"]/pid"));
- model.setValue("/root/hidden/spcltestinfo/rsltstat", model.getValue("/root/main/list2/outerlist["+row+"]/rsltstat"));
-
- modal("SMLRR01500","", "", "","", "/root/hidden/spcltestinfo", "/root/hidden/spcltestinfo");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <datagrid id="datagrid1" nodeset="/root/main/outerlist" class="datagrid" caption="의뢰일자^기관코드^등록번호^검체번호^성명^검사코드^결과^상태구분^서버상태^이미지결과^이미지명^rkey^imgfull^imgwidt^imght^imgrslt^검사명^이미지결과^tclscd^spccd" colsep="^" colwidth="80, 80, 71, 86, 70, 70, 110, 92, 70, 80, 100, 10, 10, 10, 10, 10, 140, 64, 22, 19" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:109px; width:1195px; height:471px; ">
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="instcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="bcno"/>
- <col ref="patnm"/>
- <col ref="testcd"/>
- <col ref="inptrslt"/>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="srvstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="imgyn"/>
- <col ref="imgnm" style="left:940px; top:23px; width:100px; height:23px; "/>
- <col ref="rkey"/>
- <col ref="imgfull"/>
- <col ref="imgwidt"/>
- <col ref="imght"/>
- <col ref="imgrslt"/>
- <col ref="testnm"/>
- <col ref="imgtrue" type="inputbutton"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fSetImgRsltView();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_1" style="x1:0px; y1:104px; x2:1195px; y2:104px; "/>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:69px; "/>
- <caption id="caption13" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">파일경로 :</caption>
- <line id="line8" class="line_4" style="x1:1108px; y1:51px; x2:1108px; y2:73px; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:89px; width:131px; height:13px; ">검체코드상세내역</caption>
- <button id="button9" class="btn2_letter4" style="left:1131px; top:83px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_outer);
- ]]>
- </script>
- </button>
- <caption id="caption15" class="search_name" style="left:605px; top:19px; width:99px; height:17px; ">이미지경로 :</caption>
- <caption id="caption16" class="tit_2" style="left:710px; top:592px; width:131px; height:14px; ">소견입력</caption>
- <line id="line9" class="line_1" style="x1:705px; y1:607px; x2:1195px; y2:607px; "/>
- <caption id="caption17" class="tit_2" style="left:0px; top:592px; width:131px; height:13px; ">결과전송상태</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:607px; x2:700px; y2:607px; "/>
- <line id="line12" class="line_2" style="x1:705px; y1:634px; x2:1195px; y2:634px; "/>
- <line id="line13" class="line_3" style="x1:705px; y1:727px; x2:1195px; y2:727px; "/>
- <input id="input3" ref="/root/hidden/filename" class="output_search" appearance="input" style="left:108px; top:18px; width:442px; height:19px; "/>
- <output id="output1" ref="/root/hidden/imgname" class="output_search" style="left:715px; top:18px; width:435px; height:19px; "/>
- <datagrid id="datagrid2" nodeset="/root/hidden/ResultFlag" caption="Message" colsep="^" colwidth="677" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:612px; width:700px; height:115; ">
- <col ref="error"/>
- </datagrid>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>????</label>
- <value>4</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <select1 id="combo6" ref="/root/hidden/cmt/cd" class="combo_default" appearance="minimal" style="left:705px; top:612px; width:490px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0210">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCmt();
- ]]>
- </script>
- </select1>
- <textarea id="textarea1" ref="/root/hidden/cmt/cnts" style="left:705px; top:637px; width:490px; height:87px; "/>
- <button id="button10" class="icon_search" appearance="button" style="left:1158px; top:20px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //이미지 경로 가져오기
- fGetImgPath();
-
- ]]>
- </script>
- <caption/>
- </button>
- <button id="button11" visibility="visible" style="left:185px; top:380px; width:115px; height:20px; ">
- <caption>이미지업로드 임시용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetImgUpload();
- ]]>
- </script>
- </button>
- <upload id="upload2" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="5242880" validate="true" style="left:305px; top:380px; width:25px; height:20px; "/>
- <datagrid id="datagrid3" nodeset="/root/send/attach" visibility="visible" caption="파일경로^bcno^testcd^rsltstat^imght^imgwidt^" colwidth="415, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:0px; top:415px; width:930px; height:150px; ">
- <col ref="file"/>
- <col ref="bcno"/>
- <col ref="testcd"/>
- <col ref="rsltstat"/>
- <col ref="imght"/>
- <col ref="imgwidt"/>
- </datagrid>
- <button id="button12" class="btn5_letter4" visibility="hidden" style="left:600px; top:390px; width:64px; height:19px; ">
- <caption>upload</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TXTSS00201")) {
- //model.removeNodeset("/root/send/attach");
- //model.resetInstanceNode("/root/send/title");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter4" visibility="hidden" style="left:530px; top:390px; width:64px; height:19px; ">
- <caption>addfile</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" class="search_name" style="left:15px; top:50px; width:86px; height:17px; ">작업일자 :</caption>
- <input id="input4" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:51px; width:90px; height:19px; "/>
- <input id="input5" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:210px; top:51px; width:90px; height:19px; "/>
- <caption id="caption19" class="search_no_b" style="left:196px; top:51px; width:12px; height:17px; ">~</caption>
- <line id="line14" class="line_7" style="x1:14px; y1:44px; x2:1180px; y2:44px; "/>
- <select1 id="combo7" ref="/root/hidden/refparam/sectcd" class="combo_default" appearance="minimal" style="left:410px; top:51px; width:100px; 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[
- var etc = model.getvalue("/root/hidden/refparam/sectcd");
-
- if(etc == "00"){
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = true;
- }
- else{
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = false;
- }
- combo4.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo8" ref="/root/hidden/refparam/tsectcd" class="combo_default" appearance="minimal" style="left:515px; top:51px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption20" class="search_name" style="left:320px; top:52px; width:94px; height:17px; ">시행부서 :</caption>
- <caption id="caption21" class="search_name" style="left:640px; top:52px; width:94px; height:17px; ">결과구분 :</caption>
- <select1 id="combo9" ref="/root/hidden/refparam/rstflag" class="combo_default" appearance="minimal" style="left:730px; top:51px; width:95px; height:19px; ">
- <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>3</value>
- </item>
- </choices>
- </select1>
- <button id="button14" class="btn1_letter2" style="left:1124px; top:51px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWiTakRslt();
- ]]>
- </script>
- </button>
- <caption id="caption22" class="search_name" style="left:850px; top:52px; width:92px; height:17px; ">위탁기관 :</caption>
- <select1 id="combo10" ref="/root/hidden/refparam/extrcd" class="combo_default" appearance="minimal" style="left:940px; top:51px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button15" class="btn2_letter7" style="left:658px; top:83px; width:97px; height:19px; ">
- <caption>↓저장상태변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRsltStat();
- ]]>
- </script>
- </button>
- <select1 id="combo11" ref="/root/hidden/rsltstat2" appearance="minimal" style="left:570px; top:83px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="tit_2" style="left:445px; top:86px; width:126px; height:13px; ">저장상태일괄변경</caption>
- <button id="button16" class="icon_search" appearance="button" style="left:557px; top:20px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //결과 파일명 가져오기
- fGetFileName();
-
- ]]>
- </script>
- <caption/>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1195px; y2:104px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:69px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">파일경로 :</caption>
- <line id="line11" class="line_4" style="x1:1108px; y1:51px; x2:1108px; y2:73px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:89px; width:131px; height:13px; ">검체코드상세내역</caption>
- <button id="button2" class="btn2_letter4" style="left:1131px; top:83px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_outer);
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:605px; top:19px; width:99px; height:17px; ">이미지경로 :</caption>
- <caption id="caption3" class="tit_2" style="left:710px; top:602px; width:131px; height:13px; ">소견입력</caption>
- <line id="line2" class="line_1" style="x1:705px; y1:617px; x2:1195px; y2:617px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:602px; width:131px; height:13px; ">결과전송상태</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:617px; x2:700px; y2:617px; "/>
- <line id="line4" class="line_2" style="x1:705px; y1:644px; x2:1195px; y2:644px; "/>
- <line id="line5" class="line_3" style="x1:705px; y1:737px; x2:1195px; y2:737px; "/>
- <input id="opt_file" ref="/root/hidden/filename" class="output_search" appearance="input" style="left:108px; top:18px; width:442px; height:19px; "/>
- <output id="opt_img" ref="/root/hidden/imgname" class="output_search" style="left:715px; top:18px; width:435px; height:19px; "/>
- <datagrid id="grd_outer" nodeset="/root/main/list/outerlist" class="datagrid" caption="의뢰일자^기관코드^등록번호^검체번호^성명^검사코드^결과^상태구분^서버상태^이미지결과^이미지명^rkey^imgfull^imgwidt^imght^imgrslt^검사명^img결과^서술결과^tclscd^spccd" colsep="^" colwidth="72, 72, 70, 82, 64, 66, 140, 70, 70, 62, 100, 0, 0, 0, 0, 0, 130, 60, 90, 0, 0" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:109px; width:1195px; height:481px; ">
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="instcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="bcno"/>
- <col ref="patnm"/>
- <col ref="testcd"/>
- <col ref="inptrslt"/>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="srvstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="imgyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="imgnm" style="left:940px; top:23px; width:100px; height:23px; "/>
- <col ref="rkey"/>
- <col ref="imgfull"/>
- <col ref="imgwidt"/>
- <col ref="imght"/>
- <col ref="imgrslt"/>
- <col ref="testnm"/>
- <col ref="imgtrue" type="inputbutton"/>
- <col ref="descrslt"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fSetImgRsltView();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rsltstat" nodeset="/root/hidden/ResultFlag" caption="Message" colsep="^" colwidth="677" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:622px; width:700px; height:116px; ">
- <col ref="error"/>
- </datagrid>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>????</label>
- <value>4</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <select1 id="cmb_cmt" ref="/root/hidden/cmt/cd" class="combo_default" appearance="minimal" style="left:705px; top:622px; width:490px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0210[etc01='X']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCmt();
- ]]>
- </script>
- </select1>
- <textarea id="tar_cmt" ref="/root/hidden/cmt/cnts" style="left:705px; top:647px; width:490px; height:87px; "/>
- <button id="button6" class="icon_search" appearance="button" style="left:1158px; top:20px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //이미지 경로 가져오기
- fGetImgPath();
-
- ]]>
- </script>
- <caption/>
- </button>
- <button id="button7" visibility="hidden" style="left:185px; top:380px; width:115px; height:20px; ">
- <caption>이미지업로드 임시용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetImgUpload();
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="5242880" validate="true" style="left:305px; top:380px; width:25px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^bcno^testcd^rsltstat^imght^imgwidt^imgrslt^" colwidth="415, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:0px; top:415px; width:1080px; height:150px; ">
- <col ref="file"/>
- <col ref="bcno"/>
- <col ref="testcd"/>
- <col ref="rsltstat"/>
- <col ref="imght"/>
- <col ref="imgwidt"/>
- <col ref="imgrslt"/>
- </datagrid>
- <button id="btn_upload" class="btn5_letter4" visibility="hidden" style="left:600px; top:390px; width:64px; height:19px; ">
- <caption>upload</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TXTSS00201")) {
- //model.removeNodeset("/root/send/attach");
- //model.resetInstanceNode("/root/send/title");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_addfile" class="btn2_letter4" visibility="hidden" style="left:530px; top:390px; width:64px; height:19px; ">
- <caption>addfile</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:15px; top:50px; width:86px; height:17px; ">작업일자 :</caption>
- <input id="input1" ref="/root/hidden/refparam/startdd" class="input_search" inputtype="date" style="left:105px; top:51px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/hidden/refparam/enddd" class="input_search" inputtype="date" style="left:210px; top:51px; width:90px; height:19px; "/>
- <caption id="caption8" class="search_no_b" style="left:196px; top:51px; width:12px; height:17px; ">~</caption>
- <line id="line6" class="line_7" style="x1:14px; y1:44px; x2:1180px; y2:44px; "/>
- <select1 id="combo3" ref="/root/hidden/refparam/sectcd" class="combo_default" appearance="minimal" style="left:410px; top:51px; width:100px; 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[
- var etc = model.getvalue("/root/hidden/refparam/sectcd");
-
- if(etc == "00"){
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = true;
- }
- else{
- combo4.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- model.setvalue("/root/hidden/refparam/tsectcd" , "00");
- combo4.disabled = false;
- }
- combo4.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/hidden/refparam/tsectcd" class="combo_default" appearance="minimal" style="left:515px; top:51px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:320px; top:52px; width:94px; height:17px; ">시행부서 :</caption>
- <caption id="caption10" class="search_name" style="left:640px; top:52px; width:94px; height:17px; ">결과구분 :</caption>
- <select1 id="combo2" ref="/root/hidden/refparam/rstflag" class="combo_default" appearance="minimal" style="left:730px; top:51px; width:95px; height:19px; ">
- <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>3</value>
- </item>
- </choices>
- </select1>
- <button id="button8" class="btn1_letter2" style="left:1124px; top:51px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWiTakRslt();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:850px; top:52px; width:92px; height:17px; ">위탁기관 :</caption>
- <select1 id="combo1" ref="/root/hidden/refparam/extrcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:940px; top:51px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button1" class="btn2_letter7" style="left:658px; top:83px; width:97px; height:19px; ">
- <caption>↓저장상태변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRsltStat();
- ]]>
- </script>
- </button>
- <select1 id="combo5" ref="/root/hidden/rsltstat2" appearance="minimal" style="left:570px; top:83px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetRsltStat();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="tit_2" style="left:445px; top:86px; width:126px; height:13px; ">저장상태일괄변경</caption>
- <img id="img2" visibility="hidden" style="left:795px; top:210px; width:140px; height:120px; background-color:#ff6600; background-stretch:stretch; "/>
- <button id="bt1" class="icon_search" appearance="button" style="left:557px; top:20px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //결과 파일명 가져오기
- fGetFileName();
-
- ]]>
- </script>
- <caption/>
- </button>
- <img id="img1" ref="/root/main/view/imgrslt" visibility="hidden" style="left:620px; top:210px; width:155px; height:130px; background-color:#800000; background-stretch:stretch; "/>
- <select1 id="combo12" ref="/root/hidden/refparam/extrcd" navindex="6" appearance="minimal" style="left:940px; top:51px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0134">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_outer2" nodeset="/root/main/list2/outerlist" class="datagrid" caption="^의뢰일자^기관코드^등록번호^검체번호^성명^검사코드^결과^상태구분^서버상태^이미지결과^이미지명^rkey^imgfull^imgwidt^imght^imgrslt^검사명^img결과^서술결과^tclscd^spccd" colsep="^" colwidth="24, 72, 72, 70, 82, 64, 66, 140, 70, 70, 62, 100, 0, 0, 0, 0, 0, 130, 60, 90, 0, 0" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:109px; width:1195px; height:481px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="instcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid" type="input"/>
- <col ref="bcno" type="input"/>
- <col ref="patnm"/>
- <col ref="testcd"/>
- <col ref="inptrslt"/>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="srvstat" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고중</label>
- <value>3</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="imgyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="imgnm" style="left:940px; top:23px; width:100px; height:23px; "/>
- <col ref="rkey"/>
- <col ref="imgfull"/>
- <col ref="imgwidt"/>
- <col ref="imght"/>
- <col ref="imgrslt"/>
- <col ref="testnm"/>
- <col ref="imgtrue" type="inputbutton"/>
- <col ref="descrslt"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_outer2.col !="1"){
- fSetImgRsltView();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption24" visibility="hidden" style="left:880px; top:85px; width:226px; height:20px; ">엑셀load하는 grd_outer 그리드 숨어있음</caption>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:185px; height:13px; ">위탁검사결과보고</caption>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetReset();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button3" class="btn4_letter4" style="left:961px; top:3px; width:80px; height:22px; ">
- <caption>결과전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeOuterRslt();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
- <caption>전송확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetOuterRsltConfirm();
- ]]>
- </script>
- </button>
- <caption id="caption25" style="left:12px; top:8px; width:359px; height:16px; color:#3333cc; ">※ 판넬검사는 세부검사만 결과저장하면 최종보고 됩니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|