123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLJ00400_검체바코드재출력.xrw
- * 설 명 : 검체바코드재출력
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.06.19
- * 수정이력 : 조회내역 1row 면 바로 출력되게 수정해야함
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <!--
- <spcinfodetl>
- <chk/>
- <spcno>I20061129000010</spcno>
- <prcpdd>20061225</prcpdd>
- <regno>1234567890</regno>
- <nm>홍길동</nm>
- <sexage>20/M</sexage>
- <rregno>123456-1234567</rregno>
- <orddept>산부인과</orddept>
- <reqdr>나의사</reqdr>
- <wardroom>5A병동/5302호</wardroom>
- <testitem>검사항목1</testitem>
- <spcnm>WB</spcnm>
- <er/>
- <remark/>
- </spcinfodetl>
- -->
- <getspcinfolist>
- <chk/>
- <bcno/>
- <prcpdd/>
- <pid/>
- <patnm/>
- <sexage/>
- <rrgstno/>
- <orddeptcd/>
- <orddrid/>
- <wardroom/>
- <tclsnmlist/>
- <tsectnm/>
- <spcnm/>
- <erprcpflag/>
- <prcpremfact/>
- <tclscdlist/>
- </getspcinfolist>
- <barcdprntsetup/>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <bcollflag/>
- <refflag/>
- <reftext/>
- <scrnid/>
- <bcdgbn/>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <prcpfromdd/>
- <prcptodd/>
- <bcollflag>0</bcollflag>
- <refflag>1</refflag>
- <reftext/>
- <bcdgbn>1</bcdgbn>
- </ref>
- <barcd/>
- <test>
- <startdt/>
- <enddt/>
- </test>
- </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" src="../../../lis/commonweb/js/HanFont24.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var today = getCurrentDate();
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-2);
- model.setValue("/root/hidden/ref/prcpfromdd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/prcptodd", today);
- grp_ref.refresh();
-
- // 그리드 전체 선택 기능
- grd_spclist.fixedcellcheckbox(0,1)=true;
-
- model.setValue("/root/send/scrnid", getScreenID());
- //lzzfMakeBrcdPrntObj("CommAX");//이전 OCX
-
- // body.createChild("xforms:object", "id:"+ "CommAX" +"; clsid:{AD952C59-FBD8-4EB9-8960-7CE23A898328}; visibility:hidden; left:0px; top:0px; width:0px; height:0px; ");
- submit("TRLLC90101");
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- ]]>
- </script>
- <submission id="TRLLJ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getspcinfolist"/>
- <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TXLLJ00409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRLLJ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcode"/>
- <submission id="TRLZZ90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/PatNmBarCdPrint"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetInit() {
- model.reset();
- }
-
- // 검체정보상세내역 조회
- function fGetSpcInfoDetlList(Ref){
-
- if(Ref =="ref"){
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/prcpfromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/prcptodd"));
- model.setValue("/root/send/bcollflag", model.getValue("/root/hidden/ref/bcollflag"));
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/ref/refflag"));
- model.setValue("/root/send/reftext", model.getValue("/root/hidden/ref/reftext"));
- model.makeValue("/root/send/ddflag", fSetRefFromdd());
-
- }else if(Ref=="enter"){
- if(model.getValue("/root/hidden/ref/reftext") == "") {
- messageBox(cmb_ref.label,"C001");
- return;
- }
-
- model.setValue("/root/send/fromdd", "");
- model.setValue("/root/send/todd", "");
- model.setValue("/root/send/bcollflag", "");
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/ref/refflag"));
- model.makeValue("/root/send/ddflag", true);
- }
-
- if(model.getValue("/root/send/ddflag") == "True") {
- // 검체정보상세내역 조회
- submit("TRLLJ00401");
- }
-
- // 바코드번호 리딩시 또는 Sample보관바코드선택하고 등록번호 리딩시 바로 출력되게
- if(Ref=="enter"){
- if(model.getValue("/root/hidden/ref/refflag")=="1"
- || (model.getValue("/root/hidden/ref/refflag")=="2" && model.getValue("/root/hidden/ref/bcdgbn") == "4")){
- if(grd_spclist.rows > 1){
- model.setValue("/root/main/getspcinfolist/chk", "Y");
- grd_spclist.rebuild();
- fExeBarcdReprnt();
- }
- }
- }
- }
-
- // 바코드 재출력
- function fExeBarcdReprnt(){
-
- //model.removeNodeset("/root/hidden/barcode/barcodeinfo");
-
- var bcno = "";
- var pid = "";
- var bcollTF = false;
- var bcdgbn = model.getValue("/root/hidden/ref/bcdgbn");
- if(bcdgbn == "3"){
- bcdgbn = "1";
- }
-
- if(bcdgbn == "4"){
- pid = model.getvalue("/root/main/getspcinfolist[1]/pid");
- bcollTF = true;
- }else{
- for(i=1; i< grd_spclist.rows; i++){
- if(model.getValue("/root/main/getspcinfolist["+i+"]/chk")=="Y"){
- bcno = bcno + "'" + model.getvalue("/root/main/getspcinfolist["+i+"]/bcno") + "'" + ",";
- bcollTF = true;
- }
- }
- }
-
- if(bcollTF == false){
- messageBox("재출력할 검체를 선택하십시오. ", "I");
- return;
- }
-
- if(bcollTF) {
- if(bcdgbn == "4"){
- model.removeNodeset("/root/send/data1");
- model.makeValue("/root/send/data1" , pid);
- submit("TRLZZ90101");
- }else{
-
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- model.setValue("/root/send/bcdgbn", bcdgbn);
-
- submit("TRLLJ00402");
- }
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
-
- 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/bcdgbn")=="1"){ // 채혈 바코드
- if((prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" ||prtkind == "2" || prtkind == "6" || prtkind == "7"){ // sato 바코드
- fLisSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo");
- }else if(prtkind == "8" ){ // B472
- fLisSpcBarcodePrint3("/root/hidden/barcode/barcodeinfo");
- }else{ // ZEBRA & 기타
- fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo");
- }
- }else if(model.getValue("/root/hidden/ref/bcdgbn")=="2"){ // 분주 바코드
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisSpcBarcodePrintB2("/root/hidden/barcode/barcodeinfo"); // 분주 바뀐거
- }else{
- fLisSpcBarcodePrintB("/root/hidden/barcode/barcodeinfo"); // 분주 바뀐거
- }
- }else if(model.getValue("/root/hidden/ref/bcdgbn")=="3"){ // 분자배지 바코드
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisSpcBarcodePrintD2("/root/hidden/barcode/barcodeinfo");
- }else{
- fLisSpcBarcodePrintD("/root/hidden/barcode/barcodeinfo");
- }
- }else if(model.getValue("/root/hidden/ref/bcdgbn")=="4"){ // sample 보관 바코드
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fSampleKeepBarCdLabelSaTo("/root/hidden/PatNmBarCdPrint/printinfo");
- }else{
- fSampleKeepBarCdLabel("/root/hidden/PatNmBarCdPrint/printinfo");
- }
- }
-
-
- }
-
- //model.removeNodeset("/root/hidden/barcode/barcodeinfo");
- }
-
- // 조회일자 3일 이전으로 못가게 막기
- function fSetRefFromdd(){
-
- //var today = getCurrentDate();
- var todd = model.getValue("/root/hidden/ref/prcptodd");
-
- var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
- var fromdd = model.getValue("/root/hidden/ref/prcpfromdd");
- //alert("mDate= " +mDate);
- //alert("fromdd= " + fromdd);
- if( mDate.getDateFormat("YYYYMMDD") > fromdd){
- //model.alert("3일 이내의 기간으로 검색하세요.");
- messageBox("3일 이내의 기간만 검색","I006");
- //model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
- return false;
- }else if(todd < fromdd){
- //model.alert("기간설정이 잘못 되었습니다.");
- messageBox("기간설정이 잘못", "E005");
- return false;
- }else{
- return true;
- }
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_text"){
- model.setValue("/root/hidden/ref/reftext", (ipt_text.currentText).toUpperCase());
- model.setvalue("/root/send/reftext", (ipt_text.currentText).toUpperCase());
- fGetSpcInfoDetlList("enter");
-
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- }
-
- }
- }
-
- // test 삭제예정
- function fSetTest(){
- model.setValue("/root/send/reftext", grd_spclist.getUpdateData());
-
- submit("TXLLJ00409");
- }
-
-
- //프린터 설정
- 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:70px; x2:1194px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">검체정보상세내역</caption>
- <group id="grp_ref" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1123px; y1:7px; x2:1123px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">처방일자 :</caption>
- <caption id="caption3" class="search_no_b" style="left:190px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <caption id="caption5" class="search_name" style="left:780px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <input id="ipt_text" ref="/root/hidden/ref/reftext" class="input_s_button" inputtype="button" style="left:978px; top:8px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/hidden/ref/reftext", (ipt_text.currentText).toUpperCase());
- model.setvalue("/root/send/reftext", (ipt_text.currentText).toUpperCase());
- fGetSpcInfoDetlList("enter");
- ]]>
- </script>
- </input>
- <select1 id="cmb_ref" ref="/root/hidden/ref/refflag" class="combo_search" appearance="minimal" style="left:875px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>바코드번호</label>
- <value>1</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>2</value>
- </item>
- <item>
- <label>성명</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_from" ref="/root/hidden/ref/prcpfromdd" class="input_search" inputtype="date" style="left:100px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_to" ref="/root/hidden/ref/prcptodd" class="input_search" inputtype="date" style="left:205px; top:8px; width:85px; height:19px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1133px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpcInfoDetlList("ref");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:300px; top:9px; width:80px; height:17px; ">구분 :</caption>
- <select1 id="rdo_bcdgbn" ref="/root/hidden/ref/bcdgbn" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:370px; top:10px; width:405px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>채혈바코드</label>
- <value>1</value>
- </item>
- <item>
- <label>분주바코드</label>
- <value>2</value>
- </item>
- <item>
- <label>분자배지바코드</label>
- <value>3</value>
- </item>
- <item>
- <label>Sample보관바코드</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_spclist" nodeset="/root/main/getspcinfolist" caption="^바코드번호^처방일시^등록번호^성명^Sex/Age^주민등록번호^진료과^의뢰의사^병동/병실^검사항목^시행부서^검체명^응급^Remark" colsep="^" colwidth="30, 85, 85, 80, 70, 60, 100, 80, 80, 112, 160, 80, 103, 30, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="bcno" type="input"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="rrgstno"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col ref="wardroom"/>
- <col ref="tclsnmlist"/>
- <col ref="tsectnm"/>
- <col ref="spcnm"/>
- <col ref="erprcpflag"/>
- <col ref="prcpremfact"/>
- </datagrid>
- <!-- <object id="CommAX" visibility="hidden" clsid="{AD952C59-FBD8-4EB9-8960-7CE23A898328}" style="left:145px; top:200px; width:45px; height:45px; "/>-->
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_barcdreprnt" class="btn4_letter6" style="left:1019px; top:3px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarcdReprnt();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </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="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검체바코드재출력</caption>
- </group>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|