123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common_mobile.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>
- <outpatinfo>
- <outpatlist>
- <ordtm/>
- <hngnm/>
- <pid/>
- <sa/>
- <orddrnm/>
- <diagnm/>
- <fsexamflag/>
- <refer/>
- <replstat/>
- <rsrvflag/>
- <specordtype/>
- <orddeptcd/>
- <deptnm/>
- <cretno/>
- <orddd/>
- <orddrid/>
- </outpatlist>
- </outpatinfo>
- <cond>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <elbulbodstat>1</elbulbodstat>
- <scrnid>outpatlist</scrnid>
- <hngnm/>
- <srchdd/>
- <totcnt/>
- <grdid/>
- <caseid/>
- </cond>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <dschdclrt>
- <dschdclrt>
- <pid/>
- <indd/>
- <cretno/>
- <seqno/>
- <dschdclrtyn/>
- <dschdclrdt/>
- <dschdclrdd/>
- <dschdclrtrgstid/>
- <dschdclrtrgstnm/>
- <dschdclrtrgstdt/>
- </dschdclrt>
- </dschdclrt>
- <opprcpinfo>
- <opprcpinfo/>
- </opprcpinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- <srchcond/>
- <pid/>
- <hngnm/>
- </hidden>
- <init>
- <wardlist>
- </wardlist>
- <P0008/>
- <orddept/>
- <orddept2/>
- <userlist/>
- <userlist2/>
- <rsltgetdata>
- <getdata/>
- </rsltgetdata>
- <userscrnenvinfo/>
- <getdata/>
- <hardcdno/>
- <jobhardcdno/>
- <M0525/>
- <opdrugresn/>
- <subdeptinfo/>
- <reqphardcdno/>
- <npdeptcd/>
- <M0623/>
- </init>
- <temp>
- <cond/>
- <cpflag/>
- <dschdclrt>
- <pid/>
- <indd/>
- <cretno/>
- <seqno/>
- <dschdclrtyn/>
- <dschdclrdt/>
- <dschdclrrgstid/>
- <dschdclrrgstnm/>
- <dschdclrrgstdt/>
- </dschdclrt>
- </temp>
- <page>
- <curpage>1</curpage>
- <maxpage>1</maxpage>
- <offset/>
- <pagesize>10</pagesize>
- </page>
- </root>
- </instance>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMOB00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inpatinfo"/>
- <submission id="TRMMO04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/topinfo"/>
- <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
- <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
- <submission id="TRMMO04106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/wardlist"/>
- <submission id="TXMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04106" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fInitialize_SMMMO04600();
- ]]>
- </script>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/orddept"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMMO04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMMO04304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dschdclrt"/>
- <submission id="TXMMO00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMMO04109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opprcpinfo"/>
- <submission id="TRMMO04309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opprcpinfo"/>
- <submission id="TRMMO04305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/getdata"/>
- <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
- <submission id="TRMMO02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/aftcert" resultref="/root/hidden/aftcert"/>
- <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript">
- <![CDATA[
- ///////////////////////////////////////////////////////////////////////////// 추가된 부분
- var m_bSearchBarShow = false;
- /////////////////////////////////////////////////////////////////////////////
- function onclick()
- {
- if ("SoonsuViewer" == document.userAgent)
- {
- if ("xforms:cell" != document.all(event.target).elementName)
- {
- pop_group.visible = false;
- }
- }
- else
- {
- if ("xforms:col" != event.pTarget.elementName)
- {
- pop_group.visible = false;
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ///////////////////////////////////////////////////////////////////////////// 추가된 부분
- if ("SoonsuViewer" == document.userAgent)
- {
- group1.visible = true;
- group1.hide(0);
- }
- /////////////////////////////////////////////////////////////////////////////
-
- ]]>
- </script>
- <submission id="TRMOB00060" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/outpatinfo"/>
- </model>
- <script type="javascript" src="../../../emr/smmobileweb/js/mcommon.js"/>
- <script type="javascript" src="../../../emr/smmobileweb/js/SMMMO04100M.js"/>
- <script type="javascript" src="../../../emr/smmobileweb/js/SMMMO04200M.js"/>
- <script type="javascript" src="../../../emr/smmobileweb/js/SMMMO04600M.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="463px" pageheight="400px" guideline="1,463;2,400;">
- <button id="prepage" class="icon_pre_month" style="left:163px; top:285px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curpage = parseInt(model.getValue("root/page/curpage"));
- if(curpage > 1)
- {
- curpage = curpage - 1;
- model.setValue("root/page/curpage", String(curpage));
- fReqOutPatList();
- }
- ]]>
- </script>
- </button>
- <output id="maxpage" ref="/root/page/maxpage" style="left:223px; top:285px; width:40px; height:19px; text-align:center; "/>
- <button id="nextpage" class="icon_next_month" style="left:263px; top:285px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curpage = parseInt(model.getValue("root/page/curpage"));
- var maxpage = parseInt(model.getValue("root/page/maxpage"));
- if(curpage < maxpage)
- {
- curpage = curpage + 1;
- model.setValue("root/page/curpage", String(curpage));
- fReqOutPatList();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outpatlist" nodeset="/root/main/outpatinfo/outpatlist" caption="시간^성명^등록번호^S/A^주치의^진단명^초재진^의뢰협력^회신상태^예약구분^선택진료여부^orddeptcd^deptnm^cretno^orddd^orddrid" colsep="^" colwidth="55, 70, 75, 55, 65, 122, 66, 70, 80, 100, 76, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:25px; width:463px; height:255px; text-align:center; ">
- <col class="text_center;" ref="ordtm" format="hh:nn" style="text-align:center; "/>
- <col class="text_center;" ref="hngnm" style="text-align:center; "/>
- <col class="text_center;" ref="pid" style="text-align:center; "/>
- <col class="text_center;" ref="sa"/>
- <col class="text_center;" ref="orddrnm" style="text-align:center; "/>
- <col class="text_center;" ref="diagnm" style="text-align:center; "/>
- <col class="text_center;" ref="fsexamflag" style="text-align:center; "/>
- <col ref="refer" style="text-align:center; "/>
- <col ref="replstat"/>
- <col ref="rsrvflag"/>
- <col ref="specordtype"/>
- <col ref="orddeptcd" visibility="visible"/>
- <col ref="deptnm" visibility="visible"/>
- <col ref="cretno" visibility="visible"/>
- <col ref="orddd"/>
- <col ref="orddrid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_outpatlist.row;
-
- if (isDataCell() == true) {
- model.property("pid") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/pid"); //환자번호
- model.property("hngnm") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/hngnm"); //환자이름
- model.property("orddd") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/orddd"); //입원일자
- model.property("cretno") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/cretno"); //접수번호
- model.property("orddeptcd") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/orddeptcd"); //진료과코드
- model.property("deptnm") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/deptnm"); //진료과명
- model.property("orddrnm") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/orddrnm"); //진료의명
- model.property("orddrid") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/orddrid"); //진료의ID
- model.property("sexage") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/sa"); //나이성별
- model.property("medispclnm") = model.getValue("/root/main/outpatinfo/outpatlist[" + row + "]/orddrnm"); //진료의명
- model.property("wardroomnm") = "-"; // 병실명 _ 외래는 병실 정보가 없음.
-
- }
-
- pop_group.attribute("left") = (event.clientX - 10) + "px";
- pop_group.attribute("top") = (event.clientY - 10) + "px";
- pop_group.visible = true;
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn3_letter2" style="left:398px; top:0px; width:56px; height:22px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ///////////////////////////////////////////////////////////////////////////// 추가된 부분
- if ("SoonsuViewer" == document.userAgent)
- {
- if (m_bSearchBarShow)
- {
- group1.hide("slow");
- m_bSearchBarShow = false;
- }
- else
- {
- group1.show("slow");
- m_bSearchBarShow = true;
- }
- }
- else
- {
- if (m_bSearchBarShow)
- {
- group1.visible = false;
- m_bSearchBarShow = false;
- }
- else
- {
- group1.visible = true;
- m_bSearchBarShow = true;
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D", String(getCurrentDate())); //부서코드 콤보
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
- //cmb_orddept.select(0);
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd")); //로그인한 부서
-
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", "", "", "P"); //주치의 콤보
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_medispclid.select(0);
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:4px; top:5px; width:156px; height:13px; vertical-align:middle; "> 외래환자 리스트</caption>
- <output id="curpage" ref="/root/page/curpage" style="left:180px; top:285px; width:40px; height:19px; text-align:center; "/>
- <group id="pop_group" visibility="hidden" overflow="hidden" style="left:265px; top:135px; width:125px; height:135px; background-color:#e4e5e7; border-color:#bdc0c5; border-width:1px; border-style:solid; ">
- <button id="btn_pop1" class="btn_mobile2" style="left:9px; top:2px; width:100px; height:23px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SPMMO24901_orderSurchMO.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn_mobile2" visibility="hidden" style="left:9px; top:135px; width:100px; height:23px; ">
- <caption>환자요약</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SSMMR04801_SummaryM.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn_mobile2" visibility="hidden" style="left:9px; top:162px; width:100px; height:23px; ">
- <caption>I/O조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SPMNR05801_IOSurchM.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_mobile2" style="left:9px; top:109px; width:100px; height:23px; ">
- <caption>약품편람</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SMADB01901_druginfoM.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_mobile2" style="left:9px; top:29px; width:100px; height:23px; ">
- <caption>진료정보</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SMMMO02501_PatPrcpSrcM.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn_mobile2" style="left:9px; top:56px; width:100px; height:23px; ">
- <caption>기록조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SMMMO04201_DoctRecordListM.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn_mobile2" visibility="hidden" style="left:9px; top:189px; width:100px; height:23px; ">
- <caption>임상관찰</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SMMOB00900_NurseItemRecord.xrw", "modeless");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn_mobile2" style="left:9px; top:83px; width:100px; height:23px; ">
- <caption>검사결과</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SMAER0081M_TestRsltSearchM.xrw", "modeless");
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" visibility="hidden" overflow="hidden" style="left:0px; top:27px; width:464px; height:110px; background-color:transparent; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:-40px; width:463px; height:145px; background-color:#fffbf2; "/>
- <button id="btn_req" class="btn1_letter2" style="left:395px; top:75px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var medispclid = model.getValue("/root/main/cond/medispclid");
- var atdoctid = model.getValue("/root/main/cond/atdoctid");
- var wardcd = model.getValue("/root/main/cond/wardcd");
-
- if (orddeptcd == "-" && medispclid == "-" && atdoctid == "-" && wardcd == "-" ) {
- messageBox("조회조건 전부가 전체가 될수는", "I004");
- return;
- } else {
- fReqOutPatList();
- }
- ///////////////////////////////////////////////////////////////////////////// 추가된 부분
- if ("SoonsuViewer" == document.userAgent)
- {
- group1.hide("slow");
- m_bSearchBarShow = false;
- }
- else
- {
- group1.visible = false;
- m_bSearchBarShow = false;
- }
- /////////////////////////////////////////////////////////////////////////////
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:289px; top:29px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //inputEnterKey("btn_reqpatnm", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:5px; top:52px; width:76px; height:17px; ">환 자 명</caption>
- <caption id="caption4" class="search_name" style="left:210px; top:29px; width:76px; height:17px; ">등록번호</caption>
- <select1 id="radio1" ref="/root/main/cond/elbulbodstat" class="radio_search" visibility="visible" appearance="full" cellspacing="5" cols="4" rows="1" overflow="visible" style="left:210px; top:52px; width:243px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>접수</label>
- <value>0</value>
- </item>
- <item>
- <label>대기</label>
- <value>1</value>
- </item>
- <item>
- <label>완료</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:5px; top:29px; width:76px; height:17px; ">진 료 일</caption>
- <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:85px; top:52px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/main/cond/orddd" class="input" inputtype="date" style="left:84px; top:29px; width:90px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:5px; top:6px; width:76px; height:17px; ">진 료 과</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:85px; top:6px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
-
- var rtorddeptcd = model.getValue("/root/init/hardcdno/hardcd/hardcd");
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M", "", "", "P");
-
- if (model.getValue("/root/main/cond/orddeptcd") == "-") {
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- } else {
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
-
- model.setValue("/root/main/cond/medispclid", "-");
- model.setValue("/root/main/cond/atdoctid", "-");
-
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var medispclid = model.getValue("/root/main/cond/medispclid");
- var atdoctid = model.getValue("/root/main/cond/atdoctid");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- model.refresh();
-
- if (orddeptcd == "-" && medispclid == "-" && atdoctid == "-" && wardcd == "-" ) {
- messageBox("조회조건 전부가 전체가 될수는", "I004");
- return;
- } else {
- //fReqInPatList();
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" itemcount="30" style="left:290px; top:5px; width:113px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:211px; top:5px; width:76px; height:17px; ">진 료 의</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|