123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- <?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>
- <data>
- <ipatmngt>
- <grdlist>
- <ward/>
- <room/>
- <hngnm/>
- <execdd/>
- <exectm/>
- <mngtitem/>
- <nutrmngt/>
- <intndieter/>
- <execdieter/>
- </grdlist>
- </ipatmngt>
- </data>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <searchitem>
- <ipatmngt>
- <ward/>
- <patflag/>
- <execddfrom/>
- <execddto/>
- <pid/>
- <hngnm/>
- <dieter/>
- <room/>
- <orddeptcd/>
- <subdeptcd/>
- <medispclid/>
- <atdoctid/>
- <mypatflag/>
- <srchdd/>
- <pid/>
- <orddeptnm/>
- <medispclnm/>
- <atdoctidnm/>
- </ipatmngt>
- </searchitem>
- <data>
- <ipatmngt>
- <list/>
- </ipatmngt>
- <telnutrcnst>
- <list/>
- </telnutrcnst>
- <telnutrcnstcnt>
- <cnstcount/>
- </telnutrcnstcnt>
- <nonregleduc>
- <list/>
- </nonregleduc>
- <mrjhedu>
- <listdata/>
- </mrjhedu>
- </data>
- <reqdata/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <hidden>
- <msglist/>
- </hidden>
- <init>
- <basecode>
- <sick>
- <A0059>
- <cdid/>
- <cdnm/>
- </A0059>
- </sick>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <dieter>
- <alldieter>
- <cdid/>
- <cdnm/>
- </alldieter>
- <intndieter>
- <cdid/>
- <cdnm/>
- </intndieter>
- </dieter>
- <room>
- <room>
- <cdid/>
- <cdnm/>
- </room>
- </room>
- </basecode>
- <orddept/>
- <subdeptinfo/>
- <userlist/>
- <userlist2/>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dutplcecd = getUserInfo("dutplcecd"); // 부서코드 정보 가져오기
-
- finit();
- btn_search1.disabled = !checkAuth("R");
- //btn_rowadd3.visible = false;
- submit("TRANC00202"); //영양사 조회
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보 (진료과)
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); // 콤보 항목에 "전체" 추가
- if( dutplcecd != "" ){ // 사용자 부서코드가 있으면 해당 부서를 자동으로 셋팅 함.
- model.setValue("/root/send/searchitem/ipatmngt/orddeptcd", dutplcecd);
- }
- if(cmb_orddept.label == ""){cmb_orddept.select(0);} // 선택된 진료과가 없는 경우 label이 기본인 "전체"일테니 default로 첫번째(전체) 설정
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0059" ), new Array( "/root/init/basecode/sick" ) );
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
- zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
- model.removeNodeset("/root/main/data/ipatmngt/grdlist");
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/searchitem/ipatmngt/execddfrom", getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/searchitem/ipatmngt/execddto", getCurrentDate());
- model.setValue("/root/send/searchitem/ipatmngt/srchdd", getCurrentDate()); // 진료일
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
- <submission id="TRANT01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/init/basecode/room"/>
- <submission id="TRANC00551" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04106" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,737;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">영양관리 기록조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <switch id="swt_patmngt" style="left:0px; top:26px; width:1194px; height:718px; ">
- <case id="case1" selected="true">
- <group id="grp_sea" style="left:5px; top:5px; width:1182px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:60px; background-color:#fffbf2; "/>
- <button id="btn_search1" class="btn1_letter2" style="left:1105px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag");
- var pid = model.getValue("/root/send/searchitem/ipatmngt/pid");
- var hngnm = model.getValue("/root/send/searchitem/ipatmngt/hngnm");
- var fromdd = model.getValue("/root/send/searchitem/ipatmngt/execddfrom");
- var todd = model.getValue("/root/send/searchitem/ipatmngt/execddto");
-
- if ( getDateInterval(fromdd, todd) < 0 ) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANC00551");
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1092px; y1:3px; x2:1092px; y2:56px; "/>
- <caption id="caption33" class="search_name" style="left:516px; top:37px; width:75px; height:17px; ">병 동</caption>
- <select1 id="cmb_ward" ref="/root/send/searchitem/ipatmngt/ward" class="combo_s_essential" appearance="minimal" style="left:595px; top:36px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRANT01004"); //선택병동의 병실 조회
- ]]>
- </script>
- </select1>
- <select1 id="cmb_room" ref="/root/send/searchitem/ipatmngt/room" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:200px; top:40px; width:92px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/room/room">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:135px; top:40px; width:86px; height:17px; ">병실</caption>
- <caption id="caption1" class="search_name" style="left:721px; top:36px; width:91px; height:17px; ">등록번호</caption>
- <button id="btn_pid" class="icon_search" style="left:870px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_pid1" ref="/root/send/searchitem/ipatmngt/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:800px; top:35px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search1", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:900px; top:37px; width:86px; height:17px; ">환 자 명</caption>
- <input id="ipt_hngnm1" ref="/root/send/searchitem/ipatmngt/hngnm" class="input" style="left:979px; top:35px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search1", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_patnm" class="icon_search" style="left:1053px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_inddfrom" ref="/root/send/searchitem/ipatmngt/execddfrom" class="input_search" inputtype="date" style="left:95px; top:10px; width:90px; height:19px; "/>
- <caption id="caption19" class="search_n_b" style="left:187px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption4" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="ipt_inddto" ref="/root/send/searchitem/ipatmngt/execddto" class="input_search" inputtype="date" style="left:200px; top:10px; width:90px; height:19px; "/>
- <select1 id="cmb_medispclid" ref="/root/send/searchitem/ipatmngt/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:800px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/send/searchitem/ipatmngt/atdoctid" class="combo_search" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:979px; top:10px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist2/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:516px; top:10px; width:76px; height:17px; ">세 부 과</caption>
- <select1 id="cmb_subdept" ref="/root/send/searchitem/ipatmngt/subdeptcd" class="combo" appearance="minimal" style="left:595px; top:10px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
- <label ref="subdeptnm"/>
- <value ref="subdeptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:306px; top:10px; width:76px; height:17px; ">진 료 과</caption>
- <caption id="caption8" class="search_name" style="left:900px; top:10px; width:76px; height:17px; ">담 당 의</caption>
- <caption id="caption9" class="search_name" style="left:721px; top:10px; width:76px; height:17px; ">주 치 의</caption>
- <select1 id="cmb_orddept" ref="/root/send/searchitem/ipatmngt/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:385px; top:10px; 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.removeNodeset("/root/init/userlist2");
- model.makeNode("/root/init/userlist/usercombo");
- model.makeNode("/root/init/userlist2/usercombo");
-
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "M");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept.value, "0330", "", "A");
-
- if (model.getValue("/root/send/searchitem/ipatmngt/orddeptcd") == "-") {
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- model.makeValue("/root/init/userlist2/usercombo/userid", "-");
- model.makeValue("/root/init/userlist2/usercombo/usernm", "전체");
- } else {
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo");//의사콤보 전체항목 추가
- }
-
- model.setValue("/root/send/searchitem/ipatmngt/medispclid", "-");
- model.setValue("/root/send/searchitem/ipatmngt/atdoctid", "-");
-
- var orddeptcd = model.getValue("/root/send/searchitem/ipatmngt/orddeptcd");
- mmbfGetSubDeptComboList("/root/send/reqdata", "/root/init/subdeptinfo", orddeptcd); // 세부과 정보 셋팅
- addComboInstance("/root/init/subdeptinfo", "subdeptnm^subdeptcd", "전체^-", "subdeptlist"); //의사콤보 전체항목 추가
- model.setValue("/root/send/searchitem/ipatmngt/subdeptcd", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/searchitem/ipatmngt/mypatflag" style="left:2px; top:36px; width:25px; height:20px; "/>
- <caption id="caption11" style="left:27px; top:36px; width:79px; height:17px; font-weight:bold; ">
- <![CDATA[내환자 포함]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var mypatflag = model.getValue("/root/send/searchitem/ipatmngt/mypatflag");
- if(mypatflag == "Y"){
- model.setValue("/root/send/searchitem/ipatmngt/mypatflag", "N");
- cap_orddd.visible = false;
- ipt_orddd.visible = false;
- }else{
- model.setValue("/root/send/searchitem/ipatmngt/mypatflag", "Y");
- cap_orddd.visible = true;
- ipt_orddd.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- </caption>
- <caption id="cap_orddd" class="search_name" visibility="hidden" style="left:306px; top:35px; width:76px; height:17px; ">진 료 일</caption>
- <input id="ipt_orddd" ref="/root/send/searchitem/ipatmngt/srchdd" class="input" visibility="hidden" inputtype="date" style="left:385px; top:35px; width:115px; height:19px; "/>
- </group>
- <line id="line38" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
- <datagrid id="grd_ipatmngt" nodeset="/root/main/data/ipatmngt/grdlist" autoresize="true" caption="병동^병실^환자명^등록번호^진료과^전문의^담당의^관리항목^영양관리^수행일자^수행시간^인턴영양사^영양사" colsep="^" colwidth="75, 65, 70, 75, 90, 75, 75, 100, 350, 70, 60, 70, 75" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
- <col disabled="true" ref="ward" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="room"/>
- <col disabled="true" ref="hngnm"/>
- <col disabled="true" ref="pid"/>
- <col disabled="true" ref="orddeptnm"/>
- <col disabled="true" ref="medispclnm"/>
- <col disabled="true" ref="atdoctidnm"/>
- <col disabled="true" ref="mngtitem"/>
- <col disabled="true" ref="nutrmngt" style="text-align:left; "/>
- <col disabled="true" ref="execdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="exectm" format="hh:nn"/>
- <col disabled="true" ref="intndieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/intndieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="execdieter" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/alldieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|