123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP00300_세포유전대장.xrw
- * 설 명 : 세포유전대장
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2009.03.17
- * 수정이력 : worksheet 수정해야함
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>슬라이드라벨출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <slidelist>
- <chk/>
- <spcacptdt/>
- <workno/>
- <pid/>
- <patnm/>
- <sexage/>
- <spcnm/>
- <tclsnm/>
- <prntcnt/>
- </slidelist>
- </main>
- <send>
- <codeflag/>
- <data/>
- <scrnid/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <execdeptcd>D1</execdeptcd>
- <getgbn>1</getgbn>
- <pattext/>
- <bcno/>
- <tclscdlist>
- <tclsnmlist/>
- <tclscdlist/>
- <tclscdlist2/>
- <testgrup/>
- <tclsnmlist2/>
- </tclscdlist>
- </ref>
- <barcd/>
- </hidden>
- <temp>
- <printlabel/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- model.setValue("/root/send/scrnid", getScreenID());
- lzzfMakeBrcdPrntObjHanDo("CommAX");
- submit("TRLLC90101");
- ]]>
- </script>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/slidelist"/>
- <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB01032"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
-
- var toDay = getCurrentDate();
-
- model.setValue("/root/hidden/ref/fromdd", toDay);
- model.setValue("/root/hidden/ref/todd", toDay);
- fBaseInfoRef("0103|0106|");
- model.removenode("/root/init/LB0106[1]");
- model.removeNodeset("/root/main/slidelist");
- grd_slidelist.fixedcellcheckbox(0, 1) = true;
- model.refresh();
-
- }
-
- // 조회
- function fGetSlideLabelList(){
-
- var tclscdlist = model.getValue("/root/hidden/ref/tclscdlist/tclscdlist");
- var pattext = model.getValue("/root/hidden/ref/pattext");
-
- model.setValue("/root/hidden/ref/bcno", "");
-
- if(pattext == ""){
- if(tclscdlist == ""){
-
- alert("환자명이나 등록번호 조회가 아닐 때에는 검사그룹은 필수 입니다.");
- return;
- }
- }
- model.copyNode("/root/send/data", "/root/hidden/ref");
-
-
- model.removeNodeset("/root/main/slidelist");
- submit("TRLLP01901");
-
- }
-
- function fGetSlideLabelListBcno(){
-
- model.setValue("/root/hidden/ref/pattext", "");
-
- model.copyNode("/root/send/data", "/root/hidden/ref");
- //model.removeNodeset("/root/main/slidelist");
- submit("TRLLP01901");
- }
-
- //엑셀저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
- }
-
- function fSelectTestGrup(){
-
- model.makeValue("/root/send/testgrupnm", combo3.label);
- submit("TRLLF90401" ,false);
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl")
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclsnm2 = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- sendtclsnm2 = sendtclsnm2 + "▦ " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist2", sendtclsnm2);
- }
- model.refresh();
- }
- }
-
- function fSetTclscdClean(){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- }
-
- function fExeSlideLabelPrint(){
- var totalcnt = 0;
- var rowcnt = 1;
- model.removeNodeset("/root/hidden/barcode");
-
- for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++){
-
- var chk = model.getValue("/root/main/slidelist["+sRow+"]/chk");
- var etc = model.getValue("/root/main/slidelist["+sRow+"]/etc");
- if( chk == "true" && etc == ""){
-
- var prntcnt = model.getValue("/root/main/slidelist["+sRow+"]/prntcnt");
- for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++){
-
- totalcnt ++;
-
- if(totalcnt%4 == 1){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt", pCnt+1);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 2){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", pCnt+1);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 3){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", pCnt+1);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 0){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", pCnt+1);
- rowcnt++;
- }
-
- } // for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++)
- } // if( chk == "true")
- }// for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++)
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- fLisSpcSlideLabelPrint("/root/hidden/barcode/barcodeinfo", "1");
-
- }
-
-
-
- function fExeSlideLabelPrintH(){
- var totalcnt = 0;
- var rowcnt = 1;
- model.removeNodeset("/root/hidden/barcode");
-
- for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++){
-
- var chk = model.getValue("/root/main/slidelist["+sRow+"]/chk");
- var etc = model.getValue("/root/main/slidelist["+sRow+"]/etc");
- var patnm = model.getValue("/root/main/slidelist["+sRow+"]/patnm");
- patnm = getNameInitial(patnm);
- if( chk == "true" && etc != ""){
-
-
- var prntcnt = model.getValue("/root/main/slidelist["+sRow+"]/prntcnt");
- for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++){
-
- totalcnt ++;
-
- if(totalcnt%4 == 1){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm", patnm);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 2){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", patnm);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 3){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", patnm);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
-
- }else if(totalcnt%4 == 0){
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", patnm);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
- rowcnt++;
- }
-
- } // for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++)
- } // if( chk == "true")
- }// for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++)
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- fLisSpcSlideLabelPrint("/root/hidden/barcode/barcodeinfo", "2");
-
- }
-
-
- function getNameInitial(nameStr){
- //받은 이름 문자열을 스페이스바로 분리
- var part = nameStr.split(' ');
-
- var str = "";
- var nameChr = "";
- var chr;
- var cnt = 3;
-
- //영문이름을 위한 대문자 변환
- nameStr = nameStr.toUpperCase();
- //스페이스로 구분되어 있는 이름(영문)의 경우 첫단어와 마지막 단어의 이니셜만 처리
- if(part.length>1){
- if(part[0].length == 0) part[0] = " ";
- if(part[part.length-1].length == 0) part[part.length-1] = " ";
- nameChr = part[0].substr(0,1) + "." + part[part.length-1].substr(0,1);
- }
- else{
- nameChr = part[0];
- }
-
- //변환할 값이 0보다 큰지 확인
- if(nameChr.length < cnt) cnt = nameChr.length;
- if(cnt <= 0) return str;
-
- //영문일 때를 위해 대문자로 변환
- nameChr = nameChr.toUpperCase();
-
- for(i=0;i<cnt;i++){
- chr = nameChr.substr(i,1).charCodeAt(0);
- if(chr<128) str = str + nameChr.substr(i,1);
- else{
- switch(nameChr.substr(i,1)){
- case "박":
- str = str + "P";
- break;
- case "김":
- str = str + "K";
- break;
- case "이":
- if(i==0) str = str + "L";
- else str = str + "I";
- break;
- default :
- if(chr>=44032 && chr<45208) str = str + "G";
- else if(chr>=45208 && chr<45796) str = str + "N";
- else if(chr>=45796 && chr<46972) str = str + "D";
- else if(chr>=46972 && chr<47560) str = str + "R";
- else if(chr>=47560 && chr<48148) str = str + "M";
- else if(chr>=48148 && chr<49324) str = str + "B";
- else if(chr>=49324 && chr<50500) str = str + "S";
- else if(chr>=50500 && chr<50556) str = str + "A";
- else if(chr>=50556 && chr<50612) str = str + "Y";
- else if(chr>=50612 && chr<50668) str = str + "E";
- else if(chr>=50668 && chr<50724) str = str + "Y";
- else if(chr>=50724 && chr<50752) str = str + "O";
- else if(chr>=50752 && chr<50808) str = str + "W";
- else if(chr>=50808 && chr<50836) str = str + "O";
- else if(chr>=50836 && chr<50864) str = str + "Y";
- else if(chr>=50864 && chr<50892) str = str + "U";
- else if(chr>=50892 && chr<50976) str = str + "W";
- else if(chr>=50976 && chr<51004) str = str + "Y";
- else if(chr>=51004 && chr<51032) str = str + "E";
- else if(chr>=51032 && chr<51060) str = str + "U";
- else if(chr>=51060 && chr<51088) str = str + "I";
- else if(chr>=51088 && chr<52264) str = str + "J";
- else if(chr>=52264 && chr<52852) str = str + "C";
- else if(chr>=52852 && chr<53440) str = str + "K";
- else if(chr>=53440 && chr<54028) str = str + "T";
- else if(chr>=54028 && chr<54616) str = str + "P";
- else if(chr>=54616 && chr<55203) str = str + "H";
- else str = str + " ";
- break;
- }
- }
- }
-
- return str;
- }
-
-
-
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:90px; width:75px; height:13px; ">결과대장</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:70px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSlideLabelList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
- <caption id="caption5" class="search_name" style="left:15px; top:12px; width:117px; height:17px; ">작업일자 :</caption>
- <caption id="caption8" style="left:201px; top:12px; width:15px; height:20px; vertical-align:middle; ">~</caption>
- <input id="ipt_usdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:106px; top:11px; width:90px; height:19px; "/>
- <input id="ipt_uedd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:216px; top:11px; width:90px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:330px; top:12px; width:94px; height:17px; ">시행부서 :</caption>
- <select1 id="combo4" ref="/root/hidden/ref/execdeptcd" appearance="minimal" style="left:421px; top:11px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/hidden/ref/getgbn" appearance="minimal" style="left:645px; top:11px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>환자명</label>
- <value>1</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:556px; top:12px; width:94px; height:17px; ">조회구분 :</caption>
- <caption id="caption11" class="search_name" style="left:15px; top:42px; width:100px; height:17px; ">검사그룹 :</caption>
- <button id="button61" class="icon_search" style="left:789px; top:41px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- model.removeNodeset("/root/init/LB01032");
- fBaseInfoRef2("01032|");
- ]]>
- </script>
- </button>
- <select1 id="combo3" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:106px; top:41px; width:119px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/hidden/ref/pattext" style="left:724px; top:11px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
- model.setvalue("/root/hidden/ref/pattext",input1.currentText);
- fGetSlideLabelList();
-
- }
- ]]>
- </script>
- </input>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_search" rclass="input_search" style="left:228px; top:41px; width:557px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검사항목 지웠을때
- fSetTclscdClean();
-
-
- ]]>
- </script>
- </input>
- <input id="ipt_text" ref="/root/hidden/ref/bcno" class="input_s_button" inputtype="button" style="left:968px; top:41px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/hidden/ref/bcno", (ipt_text.currentText).toUpperCase());
- fGetSlideLabelListBcno();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:865px; top:42px; width:102px; height:17px; ">바코드번호 :</caption>
- </group>
- <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1152px; top:84px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_rsltregst);
- ]]>
- </script>
- </button>
- <datagrid id="grd_slidelist" nodeset="/root/main/slidelist" caption="^접수일시^작업번호^등록번호^환자명^성별/나이^검체명^검사항목명^출력매수^etc" colsep="^" colwidth="30, 125, 120, 90, 105, 90, 115, 250, 85" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:110px; width:1194px; height:620px; text-align:center; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="workno"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="spcnm"/>
- <col ref="tclsnm"/>
- <col ref="prntcnt" type="combo">
- <choices>
- <item>
- <label>1장</label>
- <value>1</value>
- </item>
- <item>
- <label>2장</label>
- <value>2</value>
- </item>
- <item>
- <label>3장</label>
- <value>3</value>
- </item>
- <item>
- <label>4장</label>
- <value>4</value>
- </item>
- <item>
- <label>5장</label>
- <value>5</value>
- </item>
- <item>
- <label>6장</label>
- <value>6</value>
- </item>
- <item>
- <label>7장</label>
- <value>7</value>
- </item>
- <item>
- <label>8장</label>
- <value>8</value>
- </item>
- <item>
- <label>9장</label>
- <value>9</value>
- </item>
- <item>
- <label>10장</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="etc"/>
- <col ref="lblnm" visibility="hidden"/>
- <col ref="worknoprnt" visibility="hidden"/>
- <col ref="etc1" visibility="hidden"/>
- <col ref="etc2" visibility="hidden"/>
- <col ref="spclno" visibility="hidden"/>
- <col ref="spclworkdd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_slidelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter7" style="left:95px; top:3px; width:116px; height:22px; ">
- <caption>Slide라벨출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSlideLabelPrint();
- fExeSlideLabelPrintH();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_prntset" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">슬라이드라벨출력</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|