1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLOR00300_CMC수탁검사결과조회(전송).xrw
- * 설 명 : CMC수탁검사결과조회(전송)
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2009.12.14
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <outerlist>
- <chk/>
- <reqdd/>
- <reqinstcd/>
- <reqbcno/>
- <trustbcno/>
- <tclsnm/>
- <spcnm/>
- <reqpid/>
- <trustpid/>
- <hngnm/>
- <sex/>
- <age/>
- <rsltstat/>
- <reptrslt/>
- <descrsltyn/>
- <readrslt/>
- <descrslt/>
- <imagrsltyn/>
- <imgrslt/>
- <imghht/>
- <imgwidt/>
- <rrgstno/>
- <usernm/>
- <deptengabbr/>
- <wardroom/>
- <urinextrvol/>
- <tclscd/>
- <spccd/>
- <testcd/>
- <tclskind/>
- <trustinstcd/>
- <userflagcd/>
- <level/>
- </outerlist>
- </main>
- <send>
- <codeflag/>
- <fromdd/>
- <fromtm/>
- <todd/>
- <totm/>
- <acptgbn/>
- <extrinstcd/>
- <outerdata/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <fromtm>0000</fromtm>
- <todd/>
- <totm>2359</totm>
- <acptgbn>1</acptgbn>
- <extrinstcd>00</extrinstcd>
- </ref>
- <descrslt>
- <descrslt/>
- </descrslt>
- <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" ev:event="xforms-ready">
- <![CDATA[
- // 초기화
- fSetReset();
- /*
- //grd_outer.deleteRow(1, false);
- grd_outer.removeRow();
- model.removeNodeset("/root/main/outerlist");
- model.removeNodeset("/root/hidden/cnfmlist");
- grd_attach.removeRow();
- model.resetInstanceNode("/root/send");
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0210|0111|0106|0110|0000|"); //0210 소견코드 0111 시행부서 0106 상세시행부서 0110 위탁기관
- 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="TRLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/outerlist"/>
- <submission id="TXLOR00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetReset(){
-
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/outerlist");
- grd_outer.fixedcellcheckbox(0,1)=true;
-
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd", getCurrentDate());
- button3.visible = true; //결과전송
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0110|0000|"); //0110 외부기관코드 0000 유저플래그
- submit("TRLZZ00101");
-
- model.refresh();
- }
-
- // 수탁검사결과조회
- function fGetSutakRslt(){
-
- //if(!fSetRefFromdd()){ // 3일 내로만 조회되게
- // return;
- //}
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/fromtm", model.getValue("/root/hidden/ref/fromtm"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
- model.setValue("/root/send/totm", model.getValue("/root/hidden/ref/totm"));
- model.setValue("/root/send/acptgbn", model.getValue("/root/hidden/ref/acptgbn"));
- model.setValue("/root/send/extrinstcd", model.getValue("/root/hidden/ref/extrinstcd"));
- model.makeValue("/root/send/userflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLOR00301");
-
- setTree(grd_outer, 3, 2, true); // 그리드 , level, tree, ..
- //model.refresh();
- }
-
- // 결과전송
- function fExeSutakRslt(){
-
- for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
-
- if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
- grd_outer.rowStatus(tRow) = 2; // 수정
- }else{
- grd_outer.rowStatus(tRow) = 0; // 취소
- }
- }
-
- model.setValue("/root/send/outerdata", getGridUpdateData(grd_outer));
-
- // 위수탁 결과 CMCDB로 전송
- //alert(model.getValue("/root/send/outerdata"));
- submit("TXLOR00301");
-
-
- fGetSutakRslt();
-
- }
-
- function fSetallcheck(){
-
- for(var tRow = 1; tRow < grd_outer.rows ; tRow++){
-
-
- if(model.getValue("/root/main/outerlist["+ tRow +"]/chk") == "true"){
-
- grd_outer.rowStatus(tRow) = 2; // 수정
- }else{
- grd_outer.rowStatus(tRow) = 0; // 취소
- }
- }
-
- }
-
- // 검체번호 같은겉 전부선택되게
- function fSetBcnocheck(){
-
- for(i=1; i<grd_outer.rows; i++ ){
- if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/chk")=="true"){
- if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
- model.setValue("/root/main/outerlist["+i+"]/chk", "true");
-
- }
- //grd_outer.rowStatus(i) = 2; // 수정
- }else{
- //alert("i= " + i);
- if(model.getValue("/root/main/outerlist["+grd_outer.row+"]/trustbcno")== model.getValue("/root/main/outerlist["+i+"]/trustbcno")){
- model.setValue("/root/main/outerlist["+i+"]/chk", "false");
-
- }
- //grd_outer.rowStatus(i) = 0; // 취소
- }
-
- if(model.getValue("/root/main/outerlist["+ i +"]/chk") == "true"){
-
- grd_outer.rowStatus(i) = 2; // 수정
- }else{
- grd_outer.rowStatus(i) = 0; // 취소
- }
- }
-
- grd_outer.refresh();
- }
-
- function fSetSendbutton(){
- if(model.getValue("/root/hidden/ref/acptgbn")=="1"){ //의뢰일때만 결과전송버튼 보이게
- button3.visible = true;
- }else{
- button3.visible = false;
- }
- //button3.refresh();
- model.refresh();
- }
-
- /////////////////옛날소스
-
- // 파일 가져오기
- 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){
- var bcnolist = "";
- var tclscdlist = "";
-
- for(j=1; j<grd_outer.rows; j++){
- bcnolist += "'" + model.getValue("/root/main/outerlist["+j+"]/bcno") + "'" + ",";
- tclscdlist += "'" + model.getValue("/root/main/outerlist["+j+"]/testcd") + "'" + ",";
- }
- model.setValue("/root/send/bcnolist", bcnolist.substr(0, (bcnolist.length-1)) );
- model.setValue("/root/send/testcdlist", tclscdlist.substr(0, (tclscdlist.length-1)) );
-
- submit("TRLOR00202");
-
- 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/outerlist["+k+"]/testcd")){
- model.setValue("/root/main/outerlist["+k+"]/testnm", model.getValue("/root/hidden/tclslist["+j+"]/tclsnm"));
- model.setValue("/root/main/outerlist["+k+"]/tclscd", model.getValue("/root/hidden/tclslist["+j+"]/tclscd"));
- model.setValue("/root/main/outerlist["+k+"]/spccd", model.getValue("/root/hidden/tclslist["+j+"]/spccd"));
- }
- }
- }
- }
-
- for(i=1; i<grd_outer.rows; i++){
- grd_outer.rowStatus(i) = 1;
- var bcbc = model.getValue("/root/main/outerlist["+i+"]/bcno");
- var tctc = model.getValue("/root/main/outerlist["+i+"]/testcd");
- model.setValue("/root/main/outerlist["+i+"]/rkey", bcbc + tctc);
-
- }
- 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_outer.rows; i++){
- if(model.getValue("/root/main/outerlist["+i+"]/imgyn")=="Y"){
- if(model.getValue("/root/main/outerlist["+i+"]/imgnm")!= ""){
-
- fChangeImage(model.getValue("/root/hidden/imgname") + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm"));
-
- grd_attach.addRow(); // grd_attach 업로드용 그리드
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = model.getValue("/root/hidden/imgname") + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm");
- grd_attach.valueMatrix(grd_attach.rows - 1, 1) = model.getValue("/root/main/outerlist["+i+"]/bcno");
- grd_attach.valueMatrix(grd_attach.rows - 1, 2) = model.getValue("/root/main/outerlist["+i+"]/testcd");
- grd_attach.valueMatrix(grd_attach.rows - 1, 3) = model.getValue("/root/main/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){ // 이미지 전환
- img2.src = imgsrc;
- 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();
-
-
-
- var grdouter = grd_outer.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/view");
- }
-
-
-
- //submit("TXLOR00202",false);
- model.removeNodeset("/root/send/attach");
- model.resetInstanceNode("/root/send");
-
-
-
- model.refresh();
-
- }
-
-
- // 전송확인
- function fGetOuterRsltConfirm(){
- model.removeNodeset("/root/hidden/cnfmlist");
-
- if(grd_outer.rows < 2){
- //alert("전송확인할 항목이 없습니다.");
- messageBox("전송확인할 항목이 ", "I004", "");
- return;
- }
-
- var keylist = model.getValue("/root/main/outerlist[1]/rkey");
- var bcnolist = model.getValue("/root/main/outerlist[1]/bcno");
- var testlist = model.getValue("/root/main/outerlist[1]/testcd");
-
- for(i=2; i<grd_outer.rows; i++ ){
- keylist = keylist + "','" + model.getValue("/root/main/outerlist["+i+"]/rkey");
- bcnolist = bcnolist + "','" + model.getValue("/root/main/outerlist["+i+"]/bcno");
- testlist = testlist + "','" + model.getValue("/root/main/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_outer.rows; i++ ){
-
- if(model.getValue("/root/main/outerlist["+j+"]/rkey")==model.getValue("/root/hidden/cnfmlist["+i+"]/rkey")){
- model.setValue("/root/main/outerlist["+i+"]/srvstat", model.getValue("/root/hidden/cnfmlist["+j+"]/rsltstat"));
- }
- }
- }
-
- }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 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/outerlist/imgnm");
- model.setValue("/root/main/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 fSetRsltStat(){
-
- if(grd_outer.rows> 1){
- for(i=1; i<grd_outer.rows; i++){
- model.setValue("/root/main/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_outer.row;
- }else{ // 조회했을때
- //row = grd_outer.row + 2;
- row = grd_outer.row ;
- }
- //alert("row=" + row);
- if(row> 0){
- if(model.getValue("/root/main/outerlist["+row+"]/imagrsltyn")=="Y"){
- model.makeValue("/root/hidden/spcltestinfo/bcno", model.getValue("/root/main/outerlist["+row+"]/trustbcno"));
- model.makeValue("/root/hidden/spcltestinfo/testcd", model.getValue("/root/main/outerlist["+row+"]/testcd"));
- model.makeValue("/root/hidden/spcltestinfo/spccd", model.getValue("/root/main/outerlist["+row+"]/spccd"));
- model.makeValue("/root/hidden/spcltestinfo/tclscd", model.getValue("/root/main/outerlist["+row+"]/tclscd"));
- model.makeValue("/root/hidden/spcltestinfo/pid", model.getValue("/root/main/outerlist["+row+"]/trustpid"));
- model.makeValue("/root/hidden/spcltestinfo/rsltstat", model.getValue("/root/main/outerlist["+row+"]/rsltstat"));
-
- modal("SMLRR01500","", "", "","", "/root/hidden/spcltestinfo", "/root/hidden/spcltestinfo");
- }
- }
- }
-
- // 서술결과버튼 클릭하면 상세보기 팝업
- function fGetDescrslt(){
- model.resetInstanceNode("/root/hidden/descrslt");
-
- var row = grd_outer.row;
-
- if(row> 0){
- if(model.getValue("/root/main/outerlist["+row+"]/descrsltyn")=="Y"){
-
- model.makeValue("/root/hidden/descrslt/readrslt", model.getValue("/root/main/outerlist["+row+"]/readrslt"));
-
- modal("SPLOR90100","", "", "","", "/root/hidden/descrslt", "/root/hidden/descrslt");
- }
- }
- }
-
-
- ]]>
- </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:69px; x2:1195px; y2:69px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:34px; "/>
- <line id="line11" class="line_4" style="x1:1108px; y1:17px; x2:1108px; y2:39px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:131px; height:13px; ">위탁검사목록</caption>
- <button id="button2" class="btn2_letter4" style="left:1131px; top:48px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_outer);
- ]]>
- </script>
- </button>
- <datagrid id="grd_outer" nodeset="/root/main/outerlist" class="datagrid2" caption="^▣^level^접수일자^의뢰기관^의뢰병원
바코드번호^CMCnU
바코드번호^검사명^검체명^의뢰병원
등록번호^CMCnU
등록번호^환자명^성별^나이^결과
상태^결과^서술결과여부^서술결과^이미지
결과여부^이미지결과^주민등록번호^의뢰의사명^진료과명^병동/병실^소변량^tclscd^spccd^testcd^tclskind^instcd^imgth^imgwidt^descrslt^userflagcd" colsep="^" colwidth="30, 25, 33, 72, 90, 74, 74, 120, 80, 70, 70, 62, 34, 34, 60, 80, 40, 33, 46, 50, 110, 70, 60, 69, 50, 50, 40, 50, 24, 62, 47, 37, 100, 100" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:74px; width:1195px; height:661px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox" format="yyyy-mm-dd"/>
- <col/>
- <col ref="level" visibility="hidden"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqinstcd" type="combo">
- <choices>
- <item>
- <label>성모병원</label>
- <value>011</value>
- </item>
- <item>
- <label>서울성모병원</label>
- <value>012</value>
- </item>
- <item>
- <label>의정부성모병원</label>
- <value>013</value>
- </item>
- <item>
- <label>부천성모병원</label>
- <value>014</value>
- </item>
- <item>
- <label>성빈센트병원</label>
- <value>017</value>
- </item>
- <item>
- <label>성바오로병원</label>
- <value>015</value>
- </item>
- <item>
- <label>성모자애병원</label>
- <value>016</value>
- </item>
- <item>
- <label>대전성모병원</label>
- <value>018</value>
- </item>
- </choices>
- </col>
- <col ref="reqbcno" type="input"/>
- <col ref="trustbcno" type="input"/>
- <col ref="tclsnm"/>
- <col ref="spcnm"/>
- <col ref="reqpid" type="input"/>
- <col ref="trustpid" type="input"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="age" style="left:940px; top:23px; width:100px; height:23px; "/>
- <col ref="rsltstat" type="combo">
- <choices>
- <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="reptrslt"/>
- <col ref="descrsltyn"/>
- <col type="inputbutton"/>
- <col ref="imagrsltyn"/>
- <col ref="imgrslt" type="inputbutton"/>
- <col ref="rrgstno" format="999999-9999999"/>
- <col ref="usernm"/>
- <col ref="deptengabbr"/>
- <col ref="wardroom"/>
- <col ref="urinextrvol"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <col ref="testcd"/>
- <col ref="tclskind" visibility="hidden"/>
- <col ref="trustinstcd"/>
- <col ref="imght" visibility="hidden"/>
- <col ref="imgwidt" visibility="hidden"/>
- <col ref="descrslt" visibility="hidden"/>
- <col ref="userflagcd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //fSetImgRsltView();
- if(grd_outer.col == "18"){ // 서술결과버톤
- fGetDescrslt();
- }else if(grd_outer.col== "20"){ // 이미지결과버튼
- fSetImgRsltView();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
- if(grd_outer.row == "0"){
- fSetallcheck();
- }else{
- fSetBcnocheck();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
- if(grd_outer.row == "0"){
- fSetallcheck();
- }else{
- fSetBcnocheck();
- }
- ]]>
- </script>
- </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>
- <caption id="caption7" class="search_name" style="left:15px; top:17px; width:86px; height:17px; ">접수일시 :</caption>
- <input id="input1" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:105px; top:18px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:260px; top:18px; width:90px; height:19px; "/>
- <caption id="caption8" class="search_no_b" style="left:246px; top:18px; width:12px; height:17px; ">~</caption>
- <caption id="caption10" class="search_name" style="left:450px; top:19px; width:94px; height:17px; ">접수구분 :</caption>
- <select1 id="combo2" ref="/root/hidden/ref/acptgbn" class="combo_default" appearance="minimal" style="left:540px; top:18px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>의뢰</label>
- <value>1</value>
- </item>
- <item>
- <label>전송</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetSendbutton();
- ]]>
- </script>
- </select1>
- <button id="button8" class="btn1_letter2" style="left:1124px; top:17px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSutakRslt();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:690px; top:19px; width:92px; height:17px; ">위탁기관 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/extrinstcd" class="combo_default" appearance="minimal" style="left:780px; top:18px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input6" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" style="left:198px; top:18px; width:45px; height:19px; text-align:center; "/>
- <input id="input7" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" style="left:353px; top:18px; width:45px; height:19px; text-align:center; "/>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">CMC 수탁검사결과조회(전송)</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:1043px; top:3px; width:80px; height:22px; ">
- <caption>결과전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fExeOuterRslt();
- fExeSutakRslt();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|