123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <fstdeptfstwardinfo>
- </fstdeptfstwardinfo>
- <cond>
- <pid/>
- <fromdd/>
- <todd/>
- </cond>
- <patinfo>
- <pname/>
- <sa/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden/>
- <init>
- <initdate>
- <today/>
- </initdate>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/fstdeptfstwardinfo");
- model.setValue("/root/main/patinfo/pname", "");
- model.setValue("/root/main/patinfo/sa", "");
-
- try {
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/pid", opener.model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid"));
- btn_cnfm.visible = true;
- } catch(E) {
- btn_cnfm.visible = false;
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRASI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/fstdeptfstwardinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/trgtmancnt", "I");
- model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- model.makeValue("/root/send/cond/todd", today);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1116" pageheight="619" guideline="2,-3;" style="margin-left:8; margin-right:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:592px; ">
- <line id="line56" class="line_3" style="x1:0px; y1:51px; x2:1100px; y2:51px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:8px; width:121px; height:14px; ">전과전동내역조회</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:23px; x2:1100px; y2:23px; "/>
- <caption id="caption3" style="left:365px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:378px; top:29px; width:113px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:247px; top:29px; width:113px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_s_essential" disabled="false" style="left:58px; top:30px; width:103; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_fstdeptfstwardlist" nodeset="/root/main/fstdeptfstwardinfo/fstdeptfstwardlist" caption="성명^성별/나이^구분^전과전동일시^전과^전병동코드^전병동^전병실^전동전입원기간^전스탭id(전문의)^전스탭(전문의)^전주치의^현병동입실기간^후과^후병동^후병실^후스탭id(전문의)^후스탭(전문의)^후주치의" colsep="^" colwidth="7, 7, 53, 110, 95, 7, 95, 90, 10, 10, 90, 90, 8, 95, 95, 90, 5, 90, 90" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:53px; width:1100px; height:537px; ">
- <col ref="pname" visibility="hidden"/>
- <col ref="sa" visibility="hidden"/>
- <col disabled="true" ref="adflag" type="combo">
- <choices>
- <item>
- <label>전실</label>
- <value>1</value>
- </item>
- <item>
- <label>전과</label>
- <value>2</value>
- </item>
- <item>
- <label>입원(W)</label>
- <value>3</value>
- </item>
- <item>
- <label>입원</label>
- <value>4</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="fstdeptfstwarddt" format="yyyy-mm-dd hh:nn"/>
- <col disabled="true" ref="latdeptnm"/>
- <col ref="fstwardcd" visibility="hidden"/>
- <col disabled="true" ref="latwardnm"/>
- <col ref="latroomcd"/>
- <col ref="fstwardfstindd" visibility="hidden"/>
- <col ref="fstmedispclid" visibility="hidden"/>
- <col ref="latmedispcl"/>
- <col ref="latatdoct"/>
- <col ref="prestdeptwardindd" visibility="hidden"/>
- <col disabled="true" ref="fstdeptnm"/>
- <col ref="fstwardnm"/>
- <col ref="fstroomcd"/>
- <col ref="latmedispclid" visibility="hidden"/>
- <col ref="fstmedispcl"/>
- <col ref="fstatdoct"/>
- <col ref="fstdeptfstwarddd" visibility="hidden"/>
- <col ref="fstdeptfstwardtm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if((grd_fstdeptfstwardlist.mouseRow > 0) && ( grd_fstdeptfstwardlist.mouseRow <= grd_fstdeptfstwardlist.rows )) {
- var iRow = grd_fstdeptfstwardlist.row;
- try {
- var fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstwardcd");
- // 최초 입원 병동의 경우 latwardcd 값 사용
- if ( fstwardcd == null || fstwardcd == "" ) {
- fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latwardcd");
- }
- var fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstroomcd");
- // 최초 입원 병실의 경우 latroomcd 값 사용
- if ( fstroomcd == null || fstroomcd == "" ) {
- fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latroomcd");
- }
-
- // 부모창의 전문의 정보를 전과전동 후스탭(전문의)로 설정한다 ( 2010-07-05 )
- var fstmedispcl = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstmedispcl");
- var fstmedispclid = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstmedispclid");
-
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", fstwardcd);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", fstroomcd);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwarddd"));
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomtm", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwardtm"));
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtnm", fstmedispcl);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtcd", fstmedispclid);
- opener.model.refresh();
- window.close();
- } catch(E) {
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fstdeptfstwardlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:1042px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( !isRequiredControls("ipt_pid","ipt_fromdd","ipt_todd") ){
- return;
- }
-
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASI00401");
-
- model.setValue("/root/main/patinfo/pname", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist/pname"));
- model.setValue("/root/main/patinfo/sa", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist/sa"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn2_letter2" visibility="hidden" style="left:1055px; top:2px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_fstdeptfstwardlist.row;
- try {
- var fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstwardcd");
- // 최초 입원 병동의 경우 latwardcd 값 사용
- if ( fstwardcd == null || fstwardcd == "" ) {
- fstwardcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latwardcd");
- }
- var fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstroomcd");
- // 최초 입원 병실의 경우 latroomcd 값 사용
- if ( fstroomcd == null || fstroomcd == "" ) {
- fstroomcd = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latroomcd");
- }
-
- // 부모창의 전문의 정보를 전과전동 후스탭(전문의)로 설정한다 ( 2010-07-05 )
- var latmedispcl = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latmedispcl");
- var latmedispclid = model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/latmedispclid");
-
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccaswardcd", fstwardcd);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/infccasroomcd", fstroomcd);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomdd", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwarddd"));
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/chngroomtm", model.getValue("/root/main/fstdeptfstwardinfo/fstdeptfstwardlist[" + iRow + "]/fstdeptfstwardtm"));
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtnm", latmedispcl);
- opener.model.setValue("/root/main/hospinfcinfo/hospinfc/info/atdrtcd", latmedispclid);
- opener.model.refresh();
- window.close();
- } catch(E) {
- window.close();
- }
- ]]>
- </script>
- </button>
- <caption id="cap_pid" class="cell_1" style="left:0px; top:28px; width:55px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="cap_fromdd" class="cell_1" style="left:164px; top:28px; width:79px; height:23px; vertical-align:middle; ">전과전동기간</caption>
- <caption id="cap_todd" class="cell_1" visibility="hidden" style="left:164px; top:28px; width:79px; height:23px; vertical-align:middle; ">전과전동기간</caption>
- <caption id="cap_pname" ref="/root/main/patinfo/pname" class="cell_3" style="left:559px; top:28px; width:111px; height:23px; vertical-align:middle; "/>
- <caption id="cap_age" ref="/root/main/patinfo/sa" class="cell_3" style="left:674px; top:28px; width:41px; height:23px; vertical-align:middle; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:592px; width:1100px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1028px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/fstdeptfstwardinfo");
- model.setValue("/root/main/patinfo/pname", "");
- model.setValue("/root/main/patinfo/sa", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter3" style="left:60px; top:3px; width:59px; height:22px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_fstdeptfstwardlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|