123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : PCR,방사선결과.xrw
- * 설 명 : PCR,방사선결과
- * 설 계 자 : (주)에이씨케이 - 송요셉
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2006.11.11
- * 기 타 :
- -->
- <?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>미생물추가처방</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <prcplist>
- <chk/>
- <prcpcd/>
- <prcpnm/>
- <reptrslt/>
- </prcplist>
- <barcdprntsetup/>
- </main>
- <send>
- <pid/>
- <bcno/>
- <ioflag/>
- <data1/>
- <userdeptflagcd/>
- <bcdgbn/>
- <scrnid/>
- </send>
- <init>
- </init>
- <hidden>
- <inparam>
- <pid/>
- <bcno/>
- </inparam>
- <patinfo>
- <pid/>
- <patnm/>
- <rrgstno/>
- <rrgstno2/>
- <sex/>
- <age/>
- <orddeptnm/>
- <orddd/>
- <wardroom/>
- <dschnotiyn/>
- <ref>
- <printcnt>1</printcnt>
- </ref>
- <ioflag/>
- <msg/>
- </patinfo>
- <barcode/>
- <dethmsg>
- <dethyn/>
- <msg/>
- </dethmsg>
- </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="../../../emr/carecomweb/js/CareCom.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[
- getPatCBBaseInfo();
- ]]>
- </script>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRLMR90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist"/>
- <submission id="TRLMR90902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
- <submission id="TXLMR90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/dethmsg"/>
- <submission id="TRMNC00999" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_diaginfo" replace="instance" resultref="/root/diaginfo"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLLJ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcode"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function getPatCBBaseInfo(){
-
-
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/inparam/pid"));
- model.setValue("/root/send/bcno", model.getValue("/root/hidden/inparam/bcno"));
-
- submit("TRLMR90902");
-
- if(model.getValue("/root/hidden/patinfo/dschnotiyn") == "Y"){
- alert("퇴원확정 된 환자입니다. 추가처방을 발행할 수 없습니다. ");
- return;
- }
-
- if(model.getValue("/root/hidden/patinfo/msg") != ""){
- messageBox(model.getValue("/root/hidden/patinfo/msg"), "I");
- }
-
- //추가 입원 외래 환자 구분이 용이하도록 taskno 48893
- /*
- if(model.getValue("/root/hidden/patinfo/ioflag") == "I"){
- caption9.attribute("background-color") = "#b9e5fb";
- caption9.value = "입원환자 입니다."
- }else{
- caption9.attribute("background-color") = "#fec34d";
- caption9.value = "외래환자 입니다."
- }
- */
-
- submit("TRLMR90901");
-
- model.setValue("/root/send/scrnid", getScreenID());
-
- submit("TRLLC90101");
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- }
-
-
- function fExePrcp(){
-
- var ioflag = model.getValue("/root/hidden/patinfo/ioflag");
-
-
-
- if(ioflag == "O"){
- var setPid = model.getValue("/root/hidden/patinfo/pid");
- var setDd = getCurrentDate();
-
- setParameter("preDiagCond", "Etc▦"+setPid+"▦"+setDd+"▦▦▦/root");
-
- fFindDiagInfo();
-
- var sParamArr = getParameter("preDiagResult").split("▦");
- var sOrddd_Old = sParamArr[1];
- var sIndd_Old = sParamArr[2];
- var sCretno_Old = sParamArr[3];
- var sGenrflagcd_Old = sParamArr[4];
-
- if( sGenrflagcd_Old != 'O' ){
- model.makeValue("/root/send/orddd_old", sIndd_Old);
- }else{
- model.makeValue("/root/send/orddd_old", sOrddd_Old);
- }
- model.makeValue("/root/send/cretno_old", sCretno_Old);
- model.makeValue("/root/send/genrflagcd_old", sGenrflagcd_Old);
- model.makeValue("/root/send/orddeptcd_old", "");
- model.makeValue("/root/send/copyflag", "Y");
- }
-
-
-
-
- var grd_prcplistRow = grd_prcplist.rows;
-
- for(var Ro = 1; Ro <= grd_prcplistRow ; Ro++){
- var chkVal = model.getValue("/root/main/prcplist["+Ro+"]/chk");
- var prcpyn = model.getValue("/root/main/prcplist["+Ro+"]/prcpyn");
- if(chkVal == "true"){
- if(prcpyn == "Y"){
- alert("이미 추가 처방 되었습니다.");
- grd_prcplist.rowStatus(Ro) = 0;
- }else{
- grd_prcplist.rowStatus(Ro) = 2;
- }
- }else{
- grd_prcplist.rowStatus(Ro) = 0;
- }
- }
- model.setValue("/root/send/data1", grd_prcplist.getUpdateData());
- model.setValue("/root/send/pid", model.getValue("/root/hidden/patinfo/pid"));
- model.setValue("/root/send/ioflag", model.getValue("/root/hidden/patinfo/ioflag"));
-
- //alert(grd_prcplist.getUpdateData());
-
- if(submit("TXLMR90901")){
- if(model.getValue("/root/hidden/dethmsg/dethyn") == "Y"){
- messageBox(model.getValue("/root/hidden/dethmsg/msg"), "I");
- }
- }
- submit("TRLMR90901");
-
- }
-
-
- //바코드출력
- function fExeBarcdReprnt() {
- //model.removeNodeset("/root/hidden/barcode");
- var bcno = "";
- var bcollTF = false;
- for(i=1; i< grd_prcplist.rows; i++){
- if(model.getValue("/root/main/prcplist["+i+"]/chk")=="true"){
-
- bcno = bcno + "'" + model.getvalue("/root/main/prcplist["+i+"]/bcno") + "'" + ",";
- bcollTF = true;
- }
- }
-
- if(bcollTF == false){
- alert("출력할 검체를 선택하십시오. ");
- }
-
- if(bcollTF) {
- bcno = bcno.substring( 0 ,bcno.length );
- model.makeValue("/root/send/bcnolist" , bcno);
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- bcno = bcno.substring( 0 ,bcno.length - 1);
- model.makeValue("/root/send/bcnolist" , bcno);
-
- model.setValue("/root/send/bcdgbn", "1");
-
- submit("TRLLJ00402");
-
- copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
-
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- if( 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");
- }
- model.removeNodeset("/root/hidden/barcode");
- }
- }
-
- 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 pagewidth="900" pageheight="600" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:770px; height:565px; ">
- <caption id="caption1" class="tit_2" style="left:0px; top:5px; width:100px; height:14px; ">환자정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
- <input id="ipt_wbc" ref="/root/hidden/patinfo/pid" class="input_default" disabled="true" navindex="2" appearance="input" style="left:75px; top:31px; width:120px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:53px; x2:765px; y2:53px; "/>
- <caption id="cpt_wbc" class="cell_1" style="left:0px; top:30px; width:72px; height:23px; ">등록번호</caption>
- <input id="input1" ref="/root/hidden/patinfo/patnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:275px; top:31px; width:120px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:200px; top:30px; width:72px; height:23px; ">성 명</caption>
- <caption id="caption3" class="cell_1" style="left:400px; top:30px; width:72px; height:23px; ">주민번호</caption>
- <input id="input2" ref="/root/hidden/patinfo/rrgstno" class="input_default" disabled="true" navindex="2" appearance="input" style="left:475px; top:31px; width:60px; height:19px; "/>
- <input id="input3" ref="/root/hidden/patinfo/rrgstno2" class="input_default" disabled="true" navindex="2" appearance="input" style="left:537px; top:31px; width:70px; height:19px; "/>
- <input id="input4" ref="/root/hidden/patinfo/orddeptnm" class="input_default" disabled="true" navindex="2" appearance="input" style="left:75px; top:56px; width:120px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:72px; height:23px; ">진 료 과</caption>
- <caption id="caption5" class="cell_1" style="left:200px; top:55px; width:72px; height:23px; ">진 료 일</caption>
- <input id="input5" ref="/root/hidden/patinfo/orddd" class="input_default" disabled="true" navindex="2" appearance="input" style="left:275px; top:56px; width:120px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:610px; top:30px; width:72px; height:23px; ">성별/나이</caption>
- <input id="input6" ref="/root/hidden/patinfo/sex" class="input_default" disabled="true" navindex="2" appearance="input" style="left:685px; top:31px; width:40px; height:19px; "/>
- <input id="input7" ref="/root/hidden/patinfo/age" class="input_default" disabled="true" navindex="2" appearance="input" style="left:728px; top:31px; width:37px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:400px; top:55px; width:72px; height:23px; ">병 실</caption>
- <input id="input8" ref="/root/hidden/patinfo/wardroom" class="input_default" disabled="true" navindex="2" appearance="input" style="left:475px; top:56px; width:85px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:78px; x2:765px; y2:78px; "/>
- <caption id="caption8" class="tit_2" style="left:0px; top:90px; width:100px; height:14px; ">처방목록</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:105px; x2:765px; y2:105px; "/>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcplist" class="datagrid2" caption="^처방코드^처방명칭^처방여부^결과값^바코드번호" colsep="▦" colwidth="26, 100, 340, 75, 100, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:765px; height:434px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="prcpcd" type="output" format="yyyy-mm-dd"/>
- <col ref="prcpnm" type="output"/>
- <col ref="prcpyn" type="output"/>
- <col ref="reptrslt" type="combo">
- <choices>
- <item>
- <label>POSITIVE</label>
- <value>POSITIVE</value>
- </item>
- <item>
- <label>NEGATIVE</label>
- <value>NEGATIVE</value>
- </item>
- <item>
- <label>추가 검사 처방 항목입니다.</label>
- <value>추가 검사 처방 항목입니다.</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col ref="bcno" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button145" class="btn5_letter5" style="left:690px; top:85px; width:75px; height:19px; ">
- <caption>후인증저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExePrcp();
-
- ]]>
- </script>
- </button>
- <button id="btn_prntset" class="btn3_letter5" style="left:672px; top:2px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter5" style="left:611px; top:85px; width:75px; height:19px; ">
- <caption>바코드출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeBarcdReprnt();
- ]]>
- </script>
- </button>
- <caption id="caption9" style="left:565px; top:56px; width:200px; height:20px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|