123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP01610_필터환자별불출내역조회.xrw
- * 설 명 : 필터환자별불출내역조회
- * 설 계 자 : 이재오
- * 작 성 자 : 이재오
- * 작 성 일 : 2012.09.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <getpiddelivelist>
- <blodcomstat/>
- <blodno/>
- <prepblodseqno/>
- <btype/>
- <blodcomnm/>
- <iryn/>
- <patnm/>
- <pid/>
- <wardroom/>
- <dept/>
- <prepdt/>
- <prepid/>
- <cmid/>
- <deliveid/>
- <acptid/>
- <rslt/>
- <cmrslt01/>
- <cmrslt02/>
- <cmrslt03/>
- <cmrslt04/>
- <cmrslt05/>
- <cmrslt06/>
- <delivedt/>
- <testdt/>
- <validt/>
- <rtnabn/>
- <rtnabndt/>
- <tnsstrddtm/>
- <tnssideeffect/>
- <orddrnm/>
- <returncnt/>
- <cmt/>
- <filteryn/>
- <prcpdd/>
- </getpiddelivelist>
- <stslist/>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <blodcomcd/>
- <btype/>
- <pid/>
- <blodno/>
- <cnt/>
- <stsfromdd/>
- <ststodd/>
- </send>
- <init/>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <pid/>
- <patnm/>
- <blodcomcd>00</blodcomcd>
- <btype>00</btype>
- <return/>
- <blodno/>
- <prcCnt>3</prcCnt>
- </ref>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- fSwitch(1);
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <bind id="returnCnt" ref="/root/hidden/ref/return" calculate="sum(/root/main/getpiddelivelist/returncnt)" type="xsd:int"/>
- <submission id="TRLBP01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getpiddelivelist"/>
- <submission id="TRLLS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/stslist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit() {
- fBaseInfoRef("0606|");
-
- //var ttime = getCurrentTime();
- var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(1);
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd", getCurrentDate());
- //model.setValue("/root/hidden/ref/todd", mDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/fromtm", "0000");
- model.setValue("/root/hidden/ref/totm", "2359");
-
- model.refresh();
-
- }
-
- // 조회버튼
- function fGetPidDelive(cnt){
-
- if ( case1.selected == true )
- {
- model.removeNodeset("/root/main/getpiddelivelist");
- model.refresh();
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
- model.setValue("/root/send/fromtm", model.getValue("/root/hidden/ref/fromtm"));
- model.setValue("/root/send/totm", model.getValue("/root/hidden/ref/totm"));
-
- model.setValue("/root/send/blodcomcd", model.getValue("/root/hidden/ref/blodcomcd").getTrim());
- model.setValue("/root/send/btype", model.getValue("/root/hidden/ref/btype").getTrim());
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid").getTrim());
- model.setValue("/root/send/blodno", model.getValue("/root/hidden/ref/blodno").getTrim());
-
- if(!cnt) cnt = 0;
- model.setValue("/root/send/cnt", cnt);
-
- submit("TRLBP01602");
-
-
- // 환자명 보이기
- if(model.getValue("/root/hidden/ref/pid").getTrim() != ""){
- if(grd_delive.rows > 1){
- grd_delive.row = 1;
- model.setValue("/root/hidden/ref/patnm", model.getValue("/root/main/getpiddelivelist["+grd_delive.row+"]/patnm"));
- opt_patnm.refresh();
- }
- }else{
- model.setValue("/root/hidden/ref/patnm", "");
- opt_patnm.refresh();
- }
-
- // 반환 노란색으로
- if(grd_delive.rows > 1){
- //setRowStyle("grd_delive", "4", "혈액폐기", "blodcomstat", "equal"); // 4 - 하늘색
- setRowStyle("grd_delive", "6", "혈액반환", "blodcomstat", "equal"); // 7 - 주황색
- setRowStyle("grd_delive", "0", "수혈접수", "blodcomstat", "equal");
- setRowStyle("grd_delive", "0", "혈액준비", "blodcomstat", "equal");
- setRowStyle("grd_delive", "0", "매칭검사", "blodcomstat", "equal");
- setRowStyle("grd_delive", "0", "불출대기", "blodcomstat", "equal");
-
- }
- }else{
-
- model.setValue("/root/send/stsfromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/ststodd", model.getValue("/root/hidden/ref/todd"));
- //alert(model.getValue("/root/send/stsfromdd"));
- //model.setValue("/root/send/fromtm", model.getValue("/root/hidden/ref/fromtm"));
- //model.setValue("/root/send/totm", model.getValue("/root/hidden/ref/totm"));
- submit("TRLLS00103");
- }
-
-
- }
- //통계 종류에따라 조건 변경 flag 1: 상세, 2: sum
- function fSwitch(flag){
- if(flag == 1){
- model.toggle("case1");
- }else if(flag == 2){
- model.toggle("case2");
- }
- }
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_blodno"){
- model.setvalue("/root/hidden/ref/pid", (ipt_blodno.currentText).toUpperCase());
-
-
- fGetPidDelive();
-
- ipt_blodno.selBegin = 0;
- ipt_blodno.selEnd = ipt_blodno.currentText.length;
- }
-
- // 혈액번호 바코드 리딩시
- if(event.target == "ipt_blodno2"){
- model.setvalue("/root/hidden/ref/blodno", (ipt_blodno2.currentText).toUpperCase().substr(0,10));
-
-
- fGetPidDelive();
-
- ipt_blodno2.selBegin = 0;
- ipt_blodno2.selEnd = ipt_blodno2.currentText.length;
- }
-
- }
-
-
- }
-
- //환자코멘트 가져오기
- function fGetpatCMT(){
- var row = grd_delive.row;
-
- if(model.getValue("/root/main/getpiddelivelist["+ row +"]/patcmt") != ""){
- var cmt = model.getValue("/root/main/getpiddelivelist["+ row +"]/patcmt");
- /*
- var cmts = cmt.split("[");
- //var cmt2 = cmt.replace("▦[", "\n[");
- var cmt2 = "";
- for( i=1; i<cmts.length; i++){
- cmt2 += cmts[i].replace("[", "\n [");
- }
- */
-
- // messageBox("* 환자별 코멘트 \n" + cmt, "I");
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" style="left:0px; top:0px; width:1170px; height:760px; ">
- <group id="group2" style="left:5px; top:25px; width:1145px; height:61px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1145px; height:60px; "/>
- <input id="input1" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:107px; top:18px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:523px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPidDelive();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">조회일자 :</caption>
- <line id="line13" class="line_4" style="x1:481px; y1:10px; x2:481px; y2:52px; "/>
- <input id="input2" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:299px; top:18px; width:100px; height:19px; "/>
- <caption id="caption13" class="search_no_b" style="left:275px; top:19px; width:15px; height:17px; ">~</caption>
- <input id="ipt_blodno" ref="/root/hidden/ref/pid" class="input_s_button" visibility="hidden" inputtype="button" style="left:767px; top:30px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //fBloodHistRef();
- if(model.getValue("/root/hidden/ref/pid") == ""){
- alert("등록번호를 입력하십시오");
- }else{
- fGetPidDelive();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" visibility="hidden" style="left:675px; top:31px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption20" class="search_name" visibility="hidden" style="left:250px; top:35px; width:91px; height:17px; ">혈액성분 :</caption>
- <select1 id="combo1" ref="/root/hidden/ref/blodcomcd" visibility="hidden" appearance="minimal" style="left:1007px; top:29px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0606">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="search_name" visibility="hidden" style="left:825px; top:15px; width:91px; height:17px; ">혈액형 :</caption>
- <select1 id="combo2" ref="/root/hidden/ref/btype" visibility="hidden" appearance="minimal" style="left:820px; top:25px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>-전체-</label>
- <value>00</value>
- </item>
- <item>
- <label>A+</label>
- <value>A+</value>
- </item>
- <item>
- <label>B+</label>
- <value>B+</value>
- </item>
- <item>
- <label>O+</label>
- <value>O+</value>
- </item>
- <item>
- <label>AB+</label>
- <value>AB+</value>
- </item>
- <item>
- <label>other</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption22" class="search_name" visibility="hidden" style="left:930px; top:25px; width:79px; height:17px; ">반환 :</caption>
- <output id="out_return" ref="/root/hidden/ref/return" class="output_search" visibility="hidden" style="left:1015px; top:25px; width:115px; height:19px; font-size:12pt; font-weight:bold; color:#cc0000; text-align:right; word-wrap:hard; padding-right:4; "/>
- <input id="input6" ref="/root/hidden/ref/totm" format="hh:nn" style="left:402px; top:18px; width:50px; height:19px; text-align:center; "/>
- <output id="opt_patnm" ref="/root/hidden/ref/patnm" class="output_search" visibility="hidden" appearance="output" style="left:880px; top:30px; width:115px; height:19px; "/>
- <caption id="caption23" class="search_name" visibility="hidden" style="left:930px; top:15px; width:91px; height:17px; ">혈액번호 :</caption>
- <input id="ipt_blodno2" ref="/root/hidden/ref/blodno" class="input_s_button" visibility="hidden" inputtype="button" style="left:1025px; top:15px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(model.getValue("/root/hidden/ref/blodno") == ""){
- alert("혈액번호를 입력하십시오");
- }else{
- fGetPidDelive();
- }
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/hidden/ref/fromtm" format="hh:nn" style="left:210px; top:18px; width:50px; height:19px; text-align:center; "/>
- <button id="btn_cle" class="btn4_letter3" style="left:710px; top:17px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="button46" class="btn4_letter2" visibility="hidden" style="left:645px; top:15px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="button51" class="btn2_letter2" style="left:595px; top:17px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
-
- if(filename != "") {
- if ( case1.selected == true )
- {
- grd_delive.saveExcel(filename);
- }else{
- grd_stsList.saveExcel(filename);
- }
- window.exec(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1170px; height:13px; ">
- <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:185px; height:13px; ">혈소판 필터 불출내역 조회</caption>
- </group>
- <button id="button3" class="btn_sw" visibility="visible" group="tab" style="left:78px; top:83px; width:70px; height:22px; ">
- <caption>총계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(2);
- //model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_sw" group="tab" selected="true" style="left:8px; top:83px; width:70px; height:22px; ">
- <caption>상세</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSwitch(1);
- //model.toggle("case1");
- ]]>
- </script>
- </button>
- </group>
- <line id="line2" class="line_1" style="x1:5px; y1:79px; x2:1149px; y2:79px; "/>
- <switch id="switch1" style="left:5px; top:107px; width:1145px; height:630px; ">
- <case id="case1" style="left:0px; top:0px; width:1179px; height:710px; ">
- <datagrid id="grd_delive" nodeset="/root/main/getpiddelivelist" caption="상태^혈액번호^seq^혈액형^성분제제^Irr^환자명^등록번호^처방일^처방부서^처방의^병동/병실^접수자^검사자^불출자^수령자^검사결과^실온 Saline^37˚c ALB/LISS^Coombs^Special^4˚c Saline^Enzyme^불출일자^준비일자^검사일자^유효일자^반환,폐기^반환,폐기일^지정Donor^Filter^수혈시작시간^수혈부작용^수혈부서^Comment" colsep="^" colwidth="0, 0, 0, 0, 0, 30, 80, 74, 80,70,70,90, 0, 0, 60, 60, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1135px; height:625px; ">
- <col ref="blodcomstat" style="left:20px; top:23px; width:60px; height:23px; "/>
- <col ref="blodno"/>
- <col ref="prepblodseqno"/>
- <col ref="btype"/>
- <col ref="blodcomnm"/>
- <col ref="iryn" type="output" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="prcpdd" style="text-align:center; "/>
- <col ref="dept" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="wardroom"/>
- <col ref="prepid" style="text-align:center; "/>
- <col ref="cmid" style="text-align:center; "/>
- <col checkvalue="true,false" ref="deliveid" style="text-align:center; "/>
- <col ref="acptid" style="text-align:center; "/>
- <col disabled="true" ref="rslt" 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>
- <item>
- <label>보류</label>
- <value>6</value>
- </item>
- <item>
- <label>최소적합</label>
- <value>7</value>
- </item>
- </choices>
- </col>
- <col ref="cmrslt01"/>
- <col ref="cmrslt02"/>
- <col ref="cmrslt03"/>
- <col ref="cmrslt04"/>
- <col ref="cmrslt05"/>
- <col ref="cmrslt06"/>
- <col ref="delivedt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prepdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="testdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="validt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="rtnabn"/>
- <col ref="rtnabndt" format="yyyy-mm-dd hh:nn"/>
- <col ref="dnornm" style="text-align:center; "/>
- <col ref="filteryn" style="text-align:center; "/>
- <col ref="tnsstrddtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="tnssideeffect"/>
- <col ref="cmt"/>
- <col/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_delive.isCell(event.target) && grd_delive.row >= grd_delive.fixedRows){
- //환자별 코멘트 가져오기
- fGetpatCMT();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_delive.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <datagrid id="grd_stsList" nodeset="/root/main/stslist" caption="부서명^일자^Total^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31" colsep="^" colwidth="0,50, 60, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="23" frozencols="2" frozenrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:0px; width:1125px; height:600px; text-align:center; ">
- <col ref="stsnm2" style="text-align:left; "/>
- <col ref="stsnm" style="text-align:center; "/>
- <col ref="total" format="#,###.#" style="text-align:right; "/>
- <col ref="d01" format="#,###.#" style="text-align:right; "/>
- <col ref="d02" format="#,###.#" style="text-align:right; "/>
- <col ref="d03" format="#,###.#" style="text-align:right; "/>
- <col ref="d04" format="#,###.#" style="text-align:right; "/>
- <col ref="d05" format="#,###.#" style="text-align:right; "/>
- <col ref="d06" format="#,###.#" style="text-align:right; "/>
- <col ref="d07" format="#,###.#" style="text-align:right; "/>
- <col ref="d08" format="#,###.#" style="text-align:right; "/>
- <col ref="d09" format="#,###.#" style="text-align:right; "/>
- <col ref="d10" format="#,###.#" style="text-align:right; "/>
- <col ref="d11" format="#,###.#" style="text-align:right; "/>
- <col ref="d12" format="#,###.#" style="text-align:right; "/>
- <col ref="d13" format="#,###.#" style="text-align:right; "/>
- <col ref="d14" format="#,###.#" style="text-align:right; "/>
- <col ref="d15" format="#,###.#" style="text-align:right; "/>
- <col ref="d16" format="#,###.#" style="text-align:right; "/>
- <col ref="d17" format="#,###.#" style="text-align:right; "/>
- <col ref="d18" format="#,###.#" style="text-align:right; "/>
- <col ref="d19" format="#,###.#" style="text-align:right; "/>
- <col ref="d20" format="#,###.#" style="text-align:right; "/>
- <col ref="d21" format="#,###.#" style="text-align:right; "/>
- <col ref="d22" format="#,###.#" style="text-align:right; "/>
- <col ref="d23" format="#,###.#" style="text-align:right; "/>
- <col ref="d24" format="#,###.#" style="text-align:right; "/>
- <col ref="d25" format="#,###.#" style="text-align:right; "/>
- <col ref="d26" format="#,###.#" style="text-align:right; "/>
- <col ref="d27" format="#,###.#" style="text-align:right; "/>
- <col ref="d28" format="#,###.#" style="text-align:right; "/>
- <col ref="d29" format="#,###.#" style="text-align:right; "/>
- <col ref="d30" format="#,###.#" style="text-align:right; "/>
- <col ref="d31" format="#,###.#" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_stsList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </xhtml:body>
- </xhtml:html>
|