123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 혈액재고조회.xrw.xrw
- * 설 명 : 혈액재고조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.06.20
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <blodinfo>
- <blodcomlist>
- <blodkind/>
- <blodno/>
- <blodbasevol/>
- <blodcomnm/>
- <aborh/>
- <windt/>
- <validt/>
- <dondt/>
- <blodcomcd/>
- <blodbarcd/>
- <wininstcd/>
- </blodcomlist>
- </blodinfo>
- <blodhist>
- <doninfo>
- <rrgstno/>
- <patnm/>
- <sexage/>
- </doninfo>
- <tnsinfo>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <orddrnm/>
- <wardroom/>
- <prcphopedt/>
- </tnsinfo>
- <blodhistlist>
- <blodcomnm/>
- <state/>
- <execdt/>
- <execnm/>
- <acptid/>
- <acptnm/>
- <gbn/>
- <pid/>
- <patnm/>
- <prcphopedt/>
- <abo/>
- <rh/>
- <rtnabnresn/>
- <iokind/>
- </blodhistlist>
- <blodhistlist2>
- <blodno/>
- <blodcomnm/>
- <windt/>
- <tnsstrddtm/>
- <patnm/>
- <rrgstno/>
- <addr/>
- <termhngnm/>
- <mpphontel/>
- <hometel/>
- <blodcomstat/>
- </blodhistlist2>
- </blodhist>
- </main>
- <send>
- <data1/>
- <blodno/>
- <blodno2/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <refparam>
- <blodno/>
- <GGSgbn/>
- </refparam>
- </hidden>
- <codedata>
- <popupmenu>
- <grid>
- <item>
- <name>삭제</name>
- <func>fdelblodhistory</func>
- </item>
- </grid>
- </popupmenu>
- </codedata>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBP01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/blodinfo"/>
- <submission id="TRLBP01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/blodhist"/>
- <submission id="TRLBP01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/blodhist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit() {
-
- model.setValue("/root/send/codeflag", "0121|"); //0121 혈액원기관코드
- submit("TRLZZ00101");
-
- fGridViewblodlist(); // 혈액이력리스트 그리드 보여주기 *** 이력리스트그리드 2개입니다
-
- model.resetInstanceNode("/root/main/blodhist/blodhistlist");
- model.resetInstanceNode("/root/main/blodhist/tnsinfo");
- model.resetInstanceNode("/root/main/blodhist/doninfo");
- model.resetInstanceNode("/root/main/blodinfo/blodcomlist");
- model.resetInstanceNode("/root/main/blodinfo/bloodinfo");
- model.resetInstanceNode("/root/main/blodhist/blodhistlist2");
-
- model.refresh();
- model.setFocus("ipt_blodno");
- }
-
- //혈액이력리스트 그리드
- function fGridViewblodlist(){
- // datagrid2 일반 혈액이력리스트
- // datagrid1 관공서용 혈액이력리스트
- if(model.getValue("/root/hidden/refparam/GGSgbn")=="Y"){
- datagrid2.visible = false; //일반혈액이력리스트
- datagrid1.visible = true; //관공서용 이력리스트
- }else{
- datagrid2.visible = true;
- datagrid1.visible = false;
- }
- }
-
- function fBloodHistRef(){
- model.resetInstanceNode("/root/send/data1");
- //model.setValue("/root/send/blodno" , model.getvalue("/root/hidden/refparam/blodno"));
- model.makeValue("/root/send/blodno", model.getvalue("/root/hidden/refparam/blodno"));
- submit("TRLBP01001"); // 성분제제리스트 조회
-
- // 성분제제리스트 있으면 첫번째성분으로 혈액이력조회
- if(getNodesetCount("/root/main/blodinfo/blodcomlist") > 0){
-
- // 관공서 체크돼있으면 이력조회 안되게
- if(model.getValue("/root/hidden/refparam/GGSgbn") == "Y"){
-
- if(datagrid3.rows == "2"){ // 성분제제리스트가 하나면 혈액이력리스트에 보여주기
- fBlodHistList2("1");
- }
-
- }else{
- fBlodHistList("1");
- }
- datagrid3.row = 1;
- }
-
- }
-
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target == "ipt_blodno"){
- model.setvalue("/root/hidden/refparam/blodno", (ipt_blodno.currentText).substr(0,10));
- model.refresh();
-
- fBloodHistRef();
-
- ipt_blodno.selBegin = 0;
- ipt_blodno.selEnd = ipt_blodno.currentText.length;
-
- }
- }
- }
-
- function fBlodHistList(gbn){
-
- // 관공서 체크돼있으면 안타야함
- if(model.getValue("/root/hidden/refparam/GGSgbn") != 'Y'){
-
- if(gbn == "1") {
- var row = 1;
- }else{
- if(datagrid3.isCell(event.target) && datagrid3.row >= datagrid3.fixedRows ){
- var row = datagrid3.row;
- }
- else return;
-
- }
-
- model.copyNode("/root/send/data1" , "/root/main/blodinfo/blodcomlist["+row+"]");
-
- submit("TRLBP01002");
-
- }
- }
-
- // 관공서용 조회
- function fBlodHistList2(gbn){
-
- if(gbn == "1") {
- var row = 1;
- }
- else {
- if(datagrid3.isCell(event.target) && datagrid3.row >= datagrid3.fixedRows ){
- var row = datagrid3.row;
- }
- else return;
-
- }
-
- // 관공서 체크된것만 갑니다.
- model.copyNode("/root/send/data1" , "/root/main/blodinfo/blodcomlist["+row+"]");
-
- submit("TRLBP01003"); // submit 고급 add bottom 방식
-
- datagrid1.topRow = datagrid1.rows;
-
- }
-
-
- //엑셀저장
- function fSaveExcel() {
- var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*) || *.* ||Excel Files(*.xls) || *.xls");
-
- if(model.getValue("/root/hidden/refparam/GGSgbn")=="Y"){ // 관공서체크
- if(filename != "") {
- datagrid1.saveExcel(filename);
- }
- }else{
- if(filename != "") {
- datagrid2.saveExcel(filename);
- }
- }
- }
-
- // 관공서 클릭하면 노드 초기화
- function fSethistnodeclear(){
- fGridViewblodlist();
- model.resetInstanceNode("/root/main/blodinfo/blodcomlist");
- model.resetInstanceNode("/root/main/blodhist/doninfo");
- model.resetInstanceNode("/root/main/blodhist/tnsinfo");
- model.removeNodeset("/root/main/blodhist/blodhistlist");
- model.removeNodeset("/root/main/blodhist/blodhistlist2");
-
- model.refresh();
- }
-
- // 혈액이력리스트에 팝업메뉴 띄우기
- function fMouseDown_datagrid2(){
- //model.removeNodeset("/root/hidden/popupmenu");
- if(event.button == 3){
- if(datagrid2.isCell(event.target) && datagrid2.mouseRow >= datagrid2.fixedrows){
- window.setPopupMenu(true, "/root/codedata/popupmenu/grid/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
- // 혈액이력리스트에 팝업메뉴 띄우기
- function fMouseDown_datagrid1(){
- //model.removeNodeset("/root/hidden/popupmenu");
- if(event.button == 3){
- if(datagrid1.isCell(event.target) && datagrid1.mouseRow >= datagrid1.fixedrows){
- window.setPopupMenu(true, "/root/codedata/popupmenu/grid/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
-
- // 혈액이력리스트에서 삭제
- function fdelblodhistory(){
- if(model.getValue("/root/hidden/refparam/GGSgbn")=="Y"){
- datagrid1.deleteRow(datagrid1.row);
- }else{
- datagrid2.deleteRow(datagrid2.row);
- }
-
- }
- ]]>
- </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; ">
- <datagrid id="datagrid1" nodeset="/root/main/blodhist/blodhistlist2" caption="혈액번호^상태^제제명^입고일시^수혈일시^성명^주민등록번호^주소^진단명^핸드폰번호^집전화" colsep="^" colwidth="80, 80, 90, 110, 110, 65, 100, 170, 170, 90, 85" dataheight="23" defaultrows="1" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:345px; width:1194px; height:393px; ">
- <col ref="blodno"/>
- <col ref="blodcomstat"/>
- <col ref="blodcomnm"/>
- <col ref="windt" format="9999-99-99 99:99"/>
- <col ref="tnsstrddtm" format="9999-99-99 99:99"/>
- <col ref="patnm"/>
- <col ref="rrgstno"/>
- <col ref="addr"/>
- <col ref="termhngnm"/>
- <col ref="mpphontel"/>
- <col ref="hometel"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseDown_datagrid1();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/blodhist/blodhistlist" caption="혈액번호^성분제제^작업구분^작업일시^작업자^수령자ID^수령자^구분^등록번호^성명^수혈희망일시^ABO^Rh^반납/폐기사유^출고구분" colsep="^" colwidth="80, 90, 117, 110, 62, 74, 62, 40, 74, 62, 110, 50, 40, 120, 80" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:345px; width:1194px; height:393px; ">
- <col ref="blodno"/>
- <col ref="blodcomnm"/>
- <col ref="state"/>
- <col ref="execdt" format="9999-99-99 99:99"/>
- <col ref="execnm"/>
- <col ref="acptid"/>
- <col ref="acptnm"/>
- <col ref="gbn"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="prcphopedt" format="9999-99-99 99:99"/>
- <col ref="abo" style="text-align:right; "/>
- <col ref="rh"/>
- <col ref="rtnabnresn"/>
- <col ref="iokind"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseDown_datagrid2();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:99px; height:17px; ">혈액번호 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fBloodHistRef();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <input id="ipt_blodno" ref="/root/hidden/refparam/blodno" class="input_s_button" inputtype="button" style="left:113px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fBloodHistRef();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/hidden/refparam/GGSgbn" overflow="visible" appearance="full" style="left:260px; top:10px; width:100px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>관공서</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 관공서 선택하면 노드 초기화
- fSethistnodeclear();
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption4" class="tit_2" style="left:5px; top:325px; width:131px; height:13px; ">혈액 이력 리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:340px; x2:1194px; y2:340px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:225px; width:131px; height:14px; ">헌혈자 정보</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:240px; x2:500px; y2:240px; "/>
- <datagrid id="datagrid3" nodeset="/root/main/blodinfo/blodcomlist" caption="구분^혈액번호^용량^성분제제^혈액형^입고일시^유효일시^헌혈일시^성분제제코드^혈액바코드^입고기관" colsep="^" colwidth="80, 100, 70, 150, 100, 120, 120, 120, 90, 80, 90" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1190px; height:140px; text-align:center; ">
- <col ref="blodkind"/>
- <col ref="blodno"/>
- <col ref="blodbasevol"/>
- <col ref="blodcomnm" style="text-align:left; "/>
- <col ref="aborh"/>
- <col ref="windt" 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="dondt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="blodcomcd"/>
- <col ref="blodbarcd"/>
- <col ref="wininstcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0121">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 혈액번호 입력했을때 , 관공서 아니고
- fBlodHistList();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid3.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 관공서용 더블클릭
- fBlodHistList2();
- ]]>
- </script>
- </datagrid>
- <output id="output4" ref="/root/main/blodhist/doninfo/rrgstno" class="output_fix" style="left:203px; top:246px; width:297px; height:19px; "/>
- <output id="output1" ref="/root/main/blodhist/doninfo/patnm" class="output_fix" style="left:203px; top:270px; width:297px; height:19px; "/>
- <output id="output2" ref="/root/main/blodhist/doninfo/sexage" class="output_fix" style="left:203px; top:294px; width:297px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:267px; x2:449px; y2:267px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:291px; x2:449px; y2:291px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">성분제제 리스트</caption>
- <line id="line16" class="line_1" style="x1:0px; y1:70px; x2:1190px; y2:70px; "/>
- <output id="output19" ref="/root/main/blodhist/tnsinfo/patnm" class="output_fix" style="left:668px; top:246px; width:180px; height:19px; "/>
- <caption id="caption27" class="tit_2" style="left:510px; top:225px; width:131px; height:13px; ">수혈자 정보</caption>
- <line id="line17" class="line_1" style="x1:505px; y1:240px; x2:1194px; y2:240px; "/>
- <output id="output20" ref="/root/main/blodhist/tnsinfo/sexage" class="output_fix" style="left:668px; top:270px; width:180px; height:19px; "/>
- <output id="output21" ref="/root/main/blodhist/tnsinfo/orddeptnm" class="output_fix" style="left:668px; top:294px; width:180px; height:19px; "/>
- <output id="output3" ref="/root/main/blodhist/tnsinfo/wardroom" class="output_fix" style="left:1013px; top:270px; width:180px; height:19px; "/>
- <output id="output5" ref="/root/main/blodhist/tnsinfo/prcphopedt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" style="left:1013px; top:294px; width:180px; height:19px; "/>
- <output id="output6" ref="/root/main/blodhist/tnsinfo/orddrnm" class="output_fix" style="left:1013px; top:246px; width:180px; height:19px; "/>
- <line id="line20" class="line_2" style="x1:505px; y1:267px; x2:1194px; y2:267px; "/>
- <line id="line21" class="line_2" style="x1:505px; y1:291px; x2:1194px; y2:291px; "/>
- <caption id="caption30" class="cell_1" style="left:505px; top:245px; width:160px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
- <caption id="caption10" class="cell_1" style="left:850px; top:269px; width:160px; height:23px; text-align:left; vertical-align:middle; ">병동병실</caption>
- <caption id="caption11" class="cell_1" style="left:850px; top:293px; width:160px; height:23px; text-align:left; vertical-align:middle; ">수혈희망일시</caption>
- <caption id="caption28" class="cell_1" style="left:505px; top:269px; width:160px; height:23px; text-align:left; vertical-align:middle; ">Sex/Age</caption>
- <caption id="caption9" class="cell_1" style="left:850px; top:245px; width:160px; height:23px; text-align:left; vertical-align:middle; ">의뢰의사</caption>
- <caption id="caption29" class="cell_1" style="left:505px; top:293px; width:160px; height:23px; text-align:left; vertical-align:middle; ">진료과</caption>
- <line id="line19" class="line_3" style="x1:505px; y1:315px; x2:1194px; y2:315px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:269px; width:200px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:293px; width:200px; height:23px; text-align:left; vertical-align:middle; ">Sex/Age</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:245px; width:200px; height:23px; text-align:left; vertical-align:middle; ">주민등록번호</caption>
- <line id="line10" class="line_3" style="x1:0px; y1:315px; x2:500px; y2:315px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:319px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- </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="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </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>
|