123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP00500_환자별수혈내역조회.xrw
- * 설 명 : 환자별수혈내역조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.06.25
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <!--
- <tnslist>
- <pid>12345678</pid>
- <nm>나상실</nm>
- <sexage>F/27</sexage>
- <orddept>진료과</orddept>
- <wardroom>A병동</wardroom>
- <hopedt>200701100900</hopedt>
- <tnsgbn>일반(수혈)</tnsgbn>
- <comprod>Red blood cell(RBC)</comprod>
- <abo>B+</abo>
- <reqcnt>2</reqcnt>
- <pseudelive>0</pseudelive>
- <delivecnt>2</delivecnt>
- <rtncnt>0</rtncnt>
- <abncnt>0</abncnt>
- <btype/>
- <blodno/>
- <gbn>접수</gbn>
- </tnslist>
- -->
- <getTnsReqList>
- <lvl/>
- <pid/>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <wardroom/>
- <prcphopedd/>
- <tnsreqacptflag/>
- <blodcomnm/>
- <req/>
- <ccnt/>
- <dcnt/>
- <rcnt/>
- <xcnt/>
- <btype/>
- <blodno/>
- <stat/>
- </getTnsReqList>
- </main>
- <send>
- <pid/>
- <hopefromdd/>
- <hopetodd/>
- <tnsflag/>
- <tnsstat/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <pid/>
- <hopefromdd/>
- <hopetodd/>
- <tnsflag>0</tnsflag>
- <tnsstat>
- <stat1/>
- <stat2/>
- <stat3/>
- <stat4/>
- <stat5/>
- <stat6/>
- <stat7/>
- <value/>
- </tnsstat>
- </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/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/ref/hopefromdd", toDay);
- model.setValue("/root/hidden/ref/hopetodd", toDay);
- grp_ref.refresh();
- ]]>
- </script>
- <submission id="TRLBP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getTnsReqList"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //키이벤트 엔터키 입력시
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- // 검사자 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setvalue("/root/hidden/ref/pid", (ipt_pid.currentText).toUpperCase());
-
- fGetTnsReqList();
-
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
-
- }
- }
- // 초기화
- function fSetInit() {
- model.reset();
- }
-
- // 수혈의뢰현황조회
- function fGetTnsReqList(){
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid")); // 등록번호
- model.setValue("/root/send/hopefromdd", model.getValue("/root/hidden/ref/hopefromdd")); // 수혈희망시작일
- model.setValue("/root/send/hopetodd", model.getValue("/root/hidden/ref/hopetodd")); // 수혈희망종료일
- model.setValue("/root/send/tnsflag", model.getValue("/root/hidden/ref/tnsflag")); // 상태
- model.setValue("/root/send/tnsstat", model.getValue("/root/hidden/ref/tnsstat/value")); // 상태
- //alert("tnsstat= " + model.getValue("/root/hidden/ref/tnsstat/value"));
- //alert("tnsflag= " + model.getValue("/root/hidden/ref/tnsflag"));
-
- //if(model.getValue("/root/send/tnsstat")==""){
- // alert("수혈상태를 하나이상 선택하십시오");
- // return;
- //}
-
-
- if(submit("TRLBP00501")==true){
- //fSetMakeTree();
- //grd_tnslist.rebuild();
-
- // 트리 만들고 + 하위노드 접기
- setTree(grd_tnslist, 1, 1, true);
- }
- }
-
- // 수혈상태 변경
- function fSetTnsStat(Ref){
- //alert("Ref= " + Ref);
- var tstat = "";
- if(chk_a.value == "1"){
- tstat += "'1'";
- }
- if(chk_b.value == "2"){
- if(tstat == ""){
- tstat += "'2'";
- }else{
- tstat += ",'2'";
- }
- }
- if(chk_c.value == "3"){
- if(tstat == ""){
- tstat += "'3'";
- }else{
- tstat += ",'3'";
- }
- }
- if(chk_d.value == "4"){
- if(tstat == ""){
- tstat += "'4'";
- }else{
- tstat += ",'4'";
- }
- }
- if(chk_e.value == "5"){
- if(tstat == ""){
- tstat += "'5'";
- }else{
- tstat += ",'5'";
- }
- }
- if(chk_f.value == "6"){
- if(tstat == ""){
- tstat += "'6'";
- }else{
- tstat += ",'6'";
- }
- }
- if(chk_g.value == "7"){
- if(tstat == ""){
- tstat += "'7'";
- }else{
- tstat += ",'7'";
- }
- }
- //alert("tstat= " + tstat);
- model.setValue("/root/hidden/ref/tnsstat/value", tstat);
- }
-
- // 트리구조 만들기 사용안함
- function fSetMakeTree(){
-
- for(var i = 1; i<grd_tnslist.rows; i++) {
- grd_tnslist.IsSubtotal(i) = true; //그리드의 모든 row를 subtotal 속성을 가진 row로 변경 해주셔야 합니다..
- grd_tnslist.outlinelevel(i) = grd_tnslist.TextMatrix(i, 1); //인스턴스H_DEPTH 값임 (이넘이 그리드에서 각 로우가 트리상 어떤 Depth를 갖는지 결정하는 넘입니다..)
- }
- grd_tnslist.OutlineCol = 1; // 트리 만들 col
- grd_tnslist.OutlineBar = 4; //+ , - , 사각형 안보이게 하려면 0 으로 세팅 //4가 정상
- grd_tnslist.TreeColor = "gray";
-
- }
-
- // 엑셀 저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:145px; height:14px; ">수혈의뢰현황 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_tnslist);
- ]]>
- </script>
- </button>
- <group id="grp_ref" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:60px; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:34px; width:89px; height:17px; ">수혈상태 :</caption>
- <line id="line2" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:52px; "/>
- <caption id="caption4" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
- <caption id="caption10" class="search_name" style="left:630px; top:9px; width:99px; height:17px; ">수혈구분 :</caption>
- <caption id="caption11" class="search_name" style="left:256px; top:9px; width:112px; height:17px; ">수혈희망일자 :</caption>
- <input id="input7" ref="/root/hidden/ref/hopefromdd" class="input_s_essential" inputtype="date" style="left:380px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="input8" ref="/root/hidden/ref/hopetodd" class="input_s_essential" inputtype="date" style="left:496px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption12" class="search_no_b" style="left:482px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
- <select1 id="radio1" ref="/root/hidden/ref/tnsflag" appearance="full" cellspacing="20" cols="4" overflow="visible" style="left:730px; top:10px; width:290px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>All</label>
- <value>0</value>
- </item>
- <item>
- <label>준비</label>
- <value>1</value>
- </item>
- <item>
- <label>수혈</label>
- <value>2</value>
- </item>
- <item>
- <label>교차미필</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTnsReqList();
- ]]>
- </script>
- </button>
- <select id="chk_a" ref="/root/hidden/ref/tnsstat/stat1" class="checkbox_search" overflow="visible" appearance="full" style="left:109px; top:34px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>접수</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_b" ref="/root/hidden/ref/tnsstat/stat2" class="checkbox_search" overflow="visible" appearance="full" style="left:169px; top:34px; width:115px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>가출고 전 검사중</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_c" ref="/root/hidden/ref/tnsstat/stat3" class="checkbox_search" overflow="visible" appearance="full" style="left:290px; top:34px; width:60px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>가출고</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_d" ref="/root/hidden/ref/tnsstat/stat4" class="checkbox_search" overflow="visible" appearance="full" style="left:356px; top:34px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>대기</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_e" ref="/root/hidden/ref/tnsstat/stat5" class="checkbox_search" overflow="visible" appearance="full" style="left:415px; top:34px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>출고</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_f" ref="/root/hidden/ref/tnsstat/stat6" class="checkbox_search" overflow="visible" appearance="full" style="left:475px; top:34px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>반납</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <select id="chk_g" ref="/root/hidden/ref/tnsstat/stat7" class="checkbox_search" overflow="visible" appearance="full" style="left:535px; top:34px; width:55px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>폐기</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTnsStat();
- ]]>
- </script>
- </select>
- <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_s_essential" style="left:107px; top:7px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_tnslist" nodeset="/root/main/getTnsReqList" class="datagrid2" caption="레벨^등록번호^성명^SexAge^진료과^병동/병실^수혈희망일^수혈구분^성분제제^의뢰
수량^가출고
수량^출고
수량^반납
수량^폐기
수량^혈액형^혈액번호^구분" colsep="^" colwidth="25, 75, 70, 50, 60, 70, 100, 80, 130, 50, 50, 50, 50, 50, 60, 80, 60" dataheight="23" defaultrows="1" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="40" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:100px; width:1194px; height:631px; ">
- <col ref="lvl"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="sexage"/>
- <col ref="orddeptnm"/>
- <col ref="wardroom"/>
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="tnsreqacptflag"/>
- <col checkvalue="1,0" ref="blodcomnm"/>
- <col ref="req" format="yyyy-mm-dd"/>
- <col ref="ccnt" format="yyyy-mm-dd"/>
- <col ref="dcnt"/>
- <col ref="rcnt"/>
- <col ref="xcnt"/>
- <col ref="btype"/>
- <col ref="blodno"/>
- <col ref="stat"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자별수혈내역조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|