123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <cond>
- <fromdate/>
- <todate/>
- <inouttp>1</inouttp>
- <printdd/>
- </cond>
- <inchnghostlist>
- <chnghosplist>
- <bedposcnts/>
- <srno/>
- <pid/>
- <patnm/>
- <gndrage/>
- <orddeptnm/>
- <inddtm/>
- <diagnm/>
- <cc/>
- <hospnm/>
- <outrmcd/>
- <outrmddtm/>
- <indd/>
- <cretno/>
- <instcd/>
- <visitno/>
- <chngcellyn/>
- <hospnm1/>
- </chnghosplist>
- <inhosplist>
- <srno/>
- <pid/>
- <patnm/>
- <gndrage/>
- <orddeptnm/>
- <inddtm/>
- <diagnm/>
- <cc/>
- <hospnm/>
- <outrmcd/>
- <outrmddtm/>
- <outrmname/>
- </inhosplist>
- </inchnghostlist>
- </main>
- <item>
- </item>
- <send/>
- <hidden/>
- <init>
- <erbaselist>
- <outrmcdsupcd/>
- <outrminfo/>
- </erbaselist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_outpat.attribute("visibility")="visible";
- grd_inpat.attribute("visibility")="hidden";
- btn_updhosp.attribute("visibility") = "visible";
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TXMNE01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inchnghostlist"/>
- <submission id="TRMNE00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/erbaselist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/rexpert.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/ercareweb/js/SMMNE01700.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1176;" 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; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:197px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급실 전원전입환자 일지</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <datagrid id="grd_outpat" nodeset="/root/main/inchnghostlist/chnghosplist" visibility="hidden" caption="BedNo.^등록번호^환자명^성별^나이^진료과^입실일시^진단명^주호소^대상 병원명^퇴실종류^퇴실일시^indd^cretno^instcd^visitno" colsep="^" colwidth="55, 80, 90, 34, 34, 74, 120, 180, 140, 140, 194, 120, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col ref="bedposcnts" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="inddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="cc"/>
- <col ref="hospnm" type="input"/>
- <col disabled="true" ref="outrmcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/erbaselist/outrminfo">
- <label ref="typenm"/>
- <value ref="basetypecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="outrmddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="indd"/>
- <col ref="cretno"/>
- <col ref="instcd"/>
- <col ref="visitno"/>
- <col ref="chngcellyn"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- model.setValue("/root/main/inchnghostlist/chnghosplist["+grd_outpat.row+"]/chngcellyn", "Y");
- ]]>
- </script>
- </datagrid>
- <line id="line8" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <group id="group2" style="left:0px; top:11px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:939px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSearchList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:929px; y1:7px; x2:929px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:240px; top:9px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색일자 :</caption>
- <input id="input_refFrDT" ref="/root/main/cond/fromdate" class="input_s_essential" inputtype="date" style="left:329px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption5" style="left:431px; top:12px; width:15px; height:13px; ">~</caption>
- <input id="input_refToDT" ref="/root/main/cond/todate" class="input_s_essential" inputtype="date" style="left:445px; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <select1 id="rdo_searchflag" ref="/root/main/cond/inouttp" class="radio_search" visibility="visible" appearance="full" cols="2" overflow="visible" style="left:90px; top:10px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전원</label>
- <value>1</value>
- </item>
- <item>
- <label>전입</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(rdo_searchflag.value==1)
- {
- grd_outpat.attribute("visibility")="visible";
- grd_inpat.attribute("visibility")="hidden";
- btn_updhosp.attribute("visibility")="visible";
- model.removeNodeset("/root/main/inchnghostlist/inhosplist");
- }
- else
- {
- grd_outpat.attribute("visibility")="hidden";
- grd_inpat.attribute("visibility")="visible";
- btn_updhosp.attribute("visibility")="hidden";
- model.removeNodeset("/root/main/inchnghostlist/chnghosplist");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:20px; top:10px; width:71px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구 분 :</caption>
- <button id="btn_excelprint" class="btn1_letter2" style="left:1060px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/cond/inouttp") == "1"){
- exeReportPreview("RPMNE01700", "XMLSTR");
- }else{
- exeReportPreview("RPMNE01701", "XMLSTR");
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_updhosp" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chngcellyncheck = "";
- for(i= 1 ; i < grd_outpat.rows; i++ ) {
- if(model.getValue("/root/main/inchnghostlist/chnghosplist/chngcellyn") == "Y"){
- var chngcellyncheck = "Y";
- }
- }
-
- if(chngcellyncheck != "Y" || grd_outpat.rows == "1" ){
- return;
- }else{
- var tRow = grd_outpat.rows;
-
- var sSrchData = "";
- var sSrchHeader = "pid▦indd▦cretno▦instcd▦visitno▦chnghospnm▩";
-
- for(i= 1 ; i < tRow ; i++ ) {
- // if(model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/chngcellyn") == "Y"){
- if(model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm") != model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm1")){
- var sSrchData = model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/pid")+"▦"
- + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/indd")+"▦"
- + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/cretno")+"▦"
- + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/instcd")+"▦"
- + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/visitno")+"▦"
- + model.getValue("/root/main/inchnghostlist/chnghosplist["+i+"]/hospnm")+"▩";
- }
- }
- model.makeValue("/root/send/setcond", sSrchHeader + sSrchData );
- submit("TXMNE01701");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn1_letter2" style="left:999px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fromdd = model.getValue("/root/main/cond/fromdate");
- var todd = model.getValue("/root/main/cond/todate");
- var dt = "";
-
- if(fromdd == todd) {
- dt = fromdd;
- } else {
- dt = fromdd + "~" + todd;
- }
-
- if( model.getValue("/root/main/cond/inouttp") == "1") {
-
- var fileName = window.fileDialog("save", ",", false, "전원 환자현황("+dt + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }else {
- var fileName = window.fileDialog("save", ",", false, "전입 환자현황("+dt+")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- }
-
- if (fileName != "") {
- if( model.getValue("/root/main/cond/inouttp") == "1") {
-
- grd_outpat.saveExcel(fileName, "SheetName", true, true, "", "", false);
- } else {
- grd_inpat.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_inpat" nodeset="/root/main/inchnghostlist/inhosplist" caption="SrNo.^등록번호^환자명^성별^나이^진료과^입실일시^진단명^주호소^ 병원명^처리결과^퇴실일시^caption1" colsep="^" colwidth="55, 80, 90, 34, 34, 74, 120, 180, 140, 140, 194, 120, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col ref="srno" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="inddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="cc"/>
- <col ref="hospnm"/>
- <col disabled="true" ref="outrmcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/erbaselist/outrmcdsupcd">
- <label ref="typenm"/>
- <value ref="basetypecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="outrmddtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <caption id="caption1" style="left:1164px; top:5px; width:30px; height:20px; text-align:right; ">[표]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|