123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLMP00200_미생물바코드재출력.xrw
- * 설 명 : 미생물바코드재출력
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.07.23
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <testlist>
- <chk/>
- <spcno/>
- <workno/>
- <prcpdd/>
- <pid/>
- <patnm/>
- <sexage/>
- <rregno/>
- <orddrnm/>
- <wardroom/>
- <testnmlist/>
- <spcnm/>
- <er/>
- <mdianm/>
- <remark/>
- <testcdlist/>
- </testlist>
- <barcdprntsetup/>
- </main>
- <send>
- <codeflag/>
- <workfromdd/>
- <worktodd/>
- <testmdlcd/>
- <workgroup/>
- <worksno/>
- <workeno/>
- <workno/>
- <bcnolist/>
- <scrnid/>
- <userdeptflagcd/>
- <bio/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <workno/>
- <autoprnt/>
- <workfromdd/>
- <worktodd/>
- <testmdlcd/>
- <workgroup/>
- <worksno/>
- <workeno/>
- <barcd/>
- <printcnt>1</printcnt>
- </ref>
- <barcd/>
- </hidden>
- </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="../../../com/commonweb/js/stringHelper.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();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLMP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
- <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLMP00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLMP00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <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 fSetTestMdlCd() {
- var etc = model.getvalue("/root/hidden/ref/testmdlcd");
-
- if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc02") == "3" || etc == "00") {
- cmb_workgroup.attribute("visibility") = "visible";
- }else {
- cmb_workgroup.attribute("visibility") = "hidden";
- }
-
- fGetWorkNo();
-
- model.refresh();
- }
-
- //작업번호 길이
- function fGetWorkNo() {
- var etc = model.getvalue("/root/hidden/ref/testmdlcd");
- var workLeng = model.getvalue("/root/init/LB0112[cd='"+ etc +"']/etc03");
- var a= "0";
- var b="9";
-
- model.setvalue("/root/hidden/ref/worksno" , a.getLeftPad(workLeng , 0) );
- model.setvalue("/root/hidden/ref/workeno" , b.getLeftPad(workLeng , 9) );
-
- model.refresh();
- }
-
- //전체선택
- function fInsAllChoi(pGridId){
- pGridId.fixedcellischeck(0,1)=true;
- }
-
- //초기화
- function fSetInit() {
- var toDay = getCurrentDate();
-
- grd_testList.fixedcellcheckbox(0,1)=true;
-
- model.removeNodeset("/root/main/testlist");
- model.setValue("/root/hidden/ref/workno", "");
- model.setValue("/root/hidden/ref/autoprnt", "");
- model.setValue("/root/hidden/ref/workfromdd", toDay);
- model.setValue("/root/hidden/ref/worktodd", toDay);
- model.setValue("/root/hidden/ref/testmdlcd", "00");
- model.setValue("/root/hidden/ref/workgroup", "00");
- model.setValue("/root/hidden/ref/barcd", "1");
-
- model.setValue("/root/send/codeflag", "0112|0113|0000|");
- submit("TRLZZ00101");
-
- //lzzfMakeBrcdPrntObj("CommAX"); //이전 OCX
-
-
- model.setValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
-
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- grd_testList.colHidden(15) = true;
-
- fGetWorkNo();
-
- model.setFocus("ipt_workno");
- model.refresh();
- }
-
- //조회
- function fGetTestList(Ref) {
-
- if(Ref == "ref") {
- var etc = model.getvalue("/root/hidden/ref/testmdlcd");
-
- model.setValue("/root/send/workfromdd", model.getValue("/root/hidden/ref/workfromdd"));
- model.setValue("/root/send/worktodd", model.getValue("/root/hidden/ref/worktodd"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
-
- if(model.getValue("/root/init/LB0112[cd='"+ etc +"']/etc02") == "3" || etc == "00") {
- model.setValue("/root/send/workgroup", model.getValue("/root/hidden/ref/workgroup"));
- }else {
- model.setValue("/root/send/workgroup", "00");
- }
-
- model.setValue("/root/send/worksno", model.getValue("/root/hidden/ref/worksno"));
- model.setValue("/root/send/workeno", model.getValue("/root/hidden/ref/workeno"));
- model.setValue("/root/send/workno", "");
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- if(submit("TRLMP00201")) {
- grd_testList.fixedcellischeck(0,1)=false;
- }
-
- } else if(Ref == "enter") {
- model.setValue("/root/send/workfromdd", "");
- model.setValue("/root/send/worktodd", "");
- model.setValue("/root/send/testmdlcd", "00");
- model.setValue("/root/send/workgroup", "00");
- model.setValue("/root/send/worksno", "");
- model.setValue("/root/send/workeno", "");
- model.setValue("/root/send/workno", model.getValue("/root/hidden/ref/workno"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLMP00201");
-
- if(getNodesetCount("/root/main/testlist") < 1) {
- alert("조회된 데이터가 없습니다.");
- return
- }
-
- if(model.getValue("/root/hidden/ref/autoprnt") == 1) {
- fInsAllChoi(grd_testList);
- fExeBarcdReprnt();
- }
- }
- }
-
- //바코드재출력
- function fExeBarcdReprnt() {
- model.removeNodeset("/root/hidden/barcode");
- var bcno = "";
- var bcollTF = false;
- var workno = "";
- for(i=1; i< grd_testList.rows; i++){
- if(model.getValue("/root/main/testlist["+i+"]/chk")=="true"){
- bcno = bcno + "'" + model.getvalue("/root/main/testlist["+i+"]/spcno") + "'" + ",";
- bcollTF = true;
- workno = workno + "'" + model.getvalue("/root/main/testlist["+i+"]/workno") + "'" + ",";
- }
- }
-
- if(bcollTF == false){
- alert("재출력할 검체를 선택하십시오. ");
- }
-
- if(bcollTF) {
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- workno = workno.substring( 0 , workno.length - 1);
- model.makeValue("/root/send/worklist" , workno);
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
- if(model.getValue("/root/hidden/ref/barcd") == "2") { // 배지라벨
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLMP00202");
-
- for(i=1; i<= getNodesetCount("/root/hidden/barcode/barcodeinfo"); i++){
- var spcno = model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/bcno");
- var find = grd_testList.findRow(spcno, 1, 2, true, true);
- //var cnt = model.getValue("/root/main/testlist["+ find +"]/prntcnt");
- var cnt = model.getValue("/root/hidden/ref/printcnt");
-
- model.makeValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prntcnt", cnt);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+ i +"]/flag", "reprnt");
- }
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisMicroBarcodePrint2("/root/hidden/barcode/barcodeinfo");
- }else{
- fLisMicroBarcodePrint("/root/hidden/barcode/barcodeinfo");
- }
- }else if (model.getValue("/root/hidden/ref/barcd") == "1") { // 작업번호라벨
- model.setValue("/root/send/bio", "Y");
-
- if(getUserInfo("dutplceinstcd") =="011"){ // 여의도성모는 한 바코드에 작업번호 여러개여도 하나만 출력되도록 해야됨 , 작업번호 필요없음
- submit("TRLMP00203");
- }else{
- submit("TRLZZ00102");
- }
-
- for(i=1; i<= getNodesetCount("/root/hidden/barcode/barcodeinfo"); i++){
- var spcno = model.getValue("/root/hidden/barcode/barcodeinfo["+ i +"]/bcno");
- var find = grd_testList.findRow(spcno, 1, 2, true, true);
- //var cnt = model.getValue("/root/main/testlist["+ find +"]/prntcnt");
- var cnt = model.getValue("/root/hidden/ref/printcnt");
-
- model.makeValue("/root/hidden/barcode/barcodeinfo["+ i +"]/prntcnt", cnt);
- model.makeValue("/root/hidden/barcode/barcodeinfo["+ i +"]/flag", "reprnt");
- }
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){ // sato
-
- fLisMicroWorknoSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo");
-
- }else{ // zebra
-
- if(getUserInfo("dutplceinstcd") =="011"){ // 여의도 성모일때 미생물바코드 출력해야함
- fLisMicroWorknoSpcBarcodePrint011("/root/hidden/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력(출력노드, 분주 또는 진검 바코드여부)
- }else{
- fLisMicroWorknoSpcBarcodePrint("/root/hidden/barcode/barcodeinfo");
- }
- }
- }
- }
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
- // 작업번호 입력시
- if(event.target == "ipt_workno"){
- model.setvalue("/root/hidden/ref/workno", ipt_workno.currentText.toUpperCase());
-
- fGetTestList("enter");
-
- ipt_workno.selBegin = 0;
- ipt_workno.selEnd = ipt_workno.currentText.length;
- }
- }
- }
-
- //프린터 설정
- 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; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:89px; width:70px; height:13px; ">검사목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <button id="button2" class="btn2_letter4" style="left:1130px; top:83px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsAllChoi(grd_testList);
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:66px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:66px; "/>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:38px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestList("ref");
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1108px; y1:37px; x2:1108px; y2:59px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:39px; width:90px; height:17px; vertical-align:middle; ">작업일자 :</caption>
- <caption id="caption3" class="search_no_b" style="left:211px; top:39px; width:15px; height:17px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:330px; top:39px; width:90px; height:17px; ">작업그룹 :</caption>
- <caption id="caption5" class="search_name" style="left:801px; top:39px; width:90px; height:17px; ">작업번호 :</caption>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">바코드번호 :</caption>
- <caption id="caption8" class="search_no_b" style="left:989px; top:38px; width:15px; height:17px; ">~</caption>
- <line id="line5" class="line_7" style="x1:15px; y1:32px; x2:1185px; y2:31px; "/>
- <input id="ipt_workfromdd" ref="/root/hidden/ref/workfromdd" class="input_search" inputtype="date" style="left:108px; top:38px; width:100px; height:19px; "/>
- <input id="ipt_worktodd" ref="/root/hidden/ref/worktodd" class="input_search" inputtype="date" style="left:225px; top:38px; width:100px; height:19px; "/>
- <select1 id="cmb_mdlcd" ref="/root/hidden/ref/testmdlcd" class="combo_search" appearance="minimal" itemcount="10" style="left:423px; top:38px; width:183px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0112">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTestMdlCd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_workgroup" ref="/root/hidden/ref/workgroup" class="combo_search" appearance="minimal" itemcount="10" style="left:609px; top:38px; width:187px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0113">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_workno" ref="/root/hidden/ref/workno" class="input_button" inputtype="button" style="left:119px; top:8px; width:217px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetTestList("enter");
- ]]>
- </script>
- </input>
- <select id="chk_AutoPrnt" ref="/root/hidden/ref/autoprnt" class="checkbox_search" overflow="visible" appearance="full" style="left:341px; top:10px; width:67px; height:13px; ">
- <choices>
- <item>
- <label>자동출력</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <input id="ipt_worksno" ref="/root/hidden/ref/worksno" class="input_search" style="left:896px; top:38px; width:90px; height:19px; "/>
- <input id="ipt_workeno" ref="/root/hidden/ref/workeno" class="input_search" style="left:1007px; top:38px; width:90px; height:19px; "/>
- <select1 id="rdo_barcd" ref="/root/hidden/ref/barcd" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:515px; top:10px; width:205px; height:15px; border-style:none; ">
- <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[
- if(rdo_barcd.value == "1") {
- grd_testList.colHidden(15) = true;
- } else {
- grd_testList.colHidden(15) = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:422px; top:10px; width:90px; height:17px; ">출력라벨 :</caption>
- <caption id="caption10" class="search_name" style="left:801px; top:10px; width:90px; height:17px; ">출력매수 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/printcnt" appearance="minimal" style="left:896px; top:8px; width:54px; height:19px; ">
- <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>
- </select1>
- </group>
- <datagrid id="grd_testList" nodeset="/root/main/testlist" class="datagrid2" caption="^바코드번호^출력수^작업번호^처방일시^등록번호^성명^Sex/Age^주민등록번호^의뢰의사^병동/병실^검사항목^검체명^응급^배지그룹명^Remark" colsep="^" colwidth="22, 83, 45, 101, 76, 55, 73, 60, 100, 73, 90, 170, 100, 24, 100, 142" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:109px; width:1194px; height:630px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="spcno" type="input" style="text-align:center; "/>
- <col ref="prntcnt" type="input" visibility="hidden"/>
- <col ref="workno" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="rregno" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="wardroom"/>
- <col ref="tclsnmlist"/>
- <col ref="spcnm"/>
- <col ref="er" style="text-align:center; "/>
- <col ref="mdianm"/>
- <col ref="remark"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:155px; top:210px; width:45px; height:45px; "/>-->
- </group>
- <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="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button1" class="btn4_letter6" style="left:1021px; top:3px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarcdReprnt();
- ]]>
- </script>
- </button>
- <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="caption9" class="tit_1" style="left:0px; top:0px; width:800px; height:13px; ">미생물바코드재출력</caption>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|