123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <?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>
- <cond>
- <prid>1M</prid>
- <fromdd/>
- <todd/>
- <appyn>Y</appyn>
- <serflag>-</serflag>
- </cond>
- <serdiaginfo>
- <serdiaglist/>
- </serdiaginfo>
- </main>
- <send>
- <savedata/>
- </send>
- <init>
- <serdiagcls/>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- // CVR 리스트를 조회 한다.
- function fReqGetSerDiagList() {
- model.resetInstanceNode("/root/main/prcpinfo/prcplist");
- model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- submit("TRMNE04702");
- }
- ]]>
- </script>
- <submission id="TRMNE04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/serdiaginfo"/>
- <submission id="TXMMO04906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cvrconfinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
- model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
-
- zbcfGetCodeList(new Array("M0757"),new Array("/root/init/serdiagcls"));
-
- addComboInstance("/root/init/serdiagcls" , "cdid^cdnm", "-^전체", "M0757"); //응급유형 '전체'추가
-
- btn_req.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </model>
- <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" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="460" guideline="1,801;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:801px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:280px; height:13px; vertical-align:middle; ">중증응급 환자조회</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:30px; width:95px; height:17px; vertical-align:middle; ">등록일자 :</caption>
- <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:92px; top:30px; width:85px; height:19px; "/>
- <caption id="caption3" style="left:180px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:30px; width:85px; height:19px; "/>
- <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:280px; top:30px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>1개월</label>
- <value>1M</value>
- </item>
- <item>
- <label>3개월</label>
- <value>3M</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6M</value>
- </item>
- <item>
- <label>9개월</label>
- <value>9M</value>
- </item>
- <item>
- <label>1년</label>
- <value>1Y</value>
- </item>
- <item>
- <label>2년</label>
- <value>2Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var today = getCurrentDate();
- var idate = new Date();
- var prid = model.getValue("/root/main/cond/prid");
-
- if (prid =="3M") {
- var threeMDate = idate.getAddDate(-3, "M");
- model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="6M") {
- var sixMDate = idate.getAddDate(-6, "M");
- model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="9M") {
- var nineMDate = idate.getAddDate(-9, "M");
- model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="1Y") {
- var oneYDate = idate.getAddDate(-1, "Y");
- model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- } else if (prid =="2Y") {
- var twoYDate = idate.getAddDate(-2, "Y");
- model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line3" style="x1:720px; y1:26px; x2:720px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:735px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqGetSerDiagList();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:5px; top:425px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var curRow = grd_serdiagflist.row;
- if (curRow < 1) return;
-
- var pid = model.getValue("/root/main/serdiaginfo/serdiaglist["+ curRow +"]/pid");
- if(pid == ""){
- messageBox("통합기록조회를 검색할 환자를", "C002");
- return;
- }
- var wndobj = getOpenWindow("SMMRI00400");
- if(wndobj != null){
- setParameter("SMMRI00400_param_pid", pid);
- wndobj.javascript.fInitalize();
- }else{
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400", 2, 0, 0);
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:114px; top:425px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var curRow = grd_serdiagflist.row;
- if (curRow < 1) return;
-
- var pid = model.getValue("/root/main/serdiaginfo/serdiaglist["+ curRow +"]/pid");
- model.makeValue("/root/source/pid", pid);
- if(pid == ""){
- messageBox("통합결과조회를 검색할 환자를", "C002");
- return;
- }
-
- curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(curExamRsltObj != null){
- curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
- curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
- } else {
- open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:801px; y2:66px; "/>
- <datagrid id="grd_serdiagflist" nodeset="/root/main/serdiaginfo/serdiaglist" caption="등록일자^일련번호^환자번호^환자명^유형^진단명^진료과^진료의^병동^퇴원일^적용시작^적용종료^등록부서^등록자" colsep="^" colwidth="70, 0, 60, 70, 40, 170, 100, 70, 70, 70, 100, 100, 100, 70" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:801px; height:345px; ">
- <col ref="genrdd" format="yyyy-mm-dd"/>
- <col ref="genrno" visibility="hidden"/>
- <col ref="pid" type="input" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="serflagnm" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="fromdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="todt" format="yyyy-mm-dd hh:nn"/>
- <col ref="fstrgstdeptnm" style="text-align:center; "/>
- <col ref="fstrgstrnm" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_serdiagflist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:355px; top:30px; width:95px; height:17px; vertical-align:middle; ">응급유형 :</caption>
- <select1 id="cmb_orddrid" ref="/root/main/cond/serflag" class="combo_default" appearance="minimal" itemcount="30" style="left:442px; top:30px; width:68px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/serdiagcls/M0757">
- <value ref="cdid"/>
- <label ref="cdnm"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:515px; top:30px; width:95px; height:17px; vertical-align:middle; ">적용여부 :</caption>
- <select1 id="combo1" ref="/root/main/cond/appyn" class="combo_default" appearance="minimal" itemcount="30" style="left:602px; top:30px; width:68px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>해제</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="btn_close" class="btn4_letter2" style="left:744px; top:425px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|