123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- <?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>
- <patlist>
- <data>
- <room/>
- <hngnm/>
- <pid/>
- <orddeptcd/>
- <diagnm/>
- <prcpdd/>
- <execprcpuniqno/>
- <indd/>
- <dschdd/>
- <ward/>
- <patflag/>
- <h_indschacptstat/>
- </data>
- </patlist>
- <diethist>
- <data>
- <check/>
- <ward/>
- <room/>
- <pid/>
- <hngnm/>
- <procermealyn/>
- <mealdd/>
- <dietmeal/>
- <dietcd/>
- <prcpdelivefact/>
- <clinccmtcnts/>
- <tfdtlcd/>
- <remark/>
- <orddd/>
- <lastupdtdd/>
- <lastupdtnm/>
- <atdoct/>
- <orddept/>
- </data>
- </diethist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <receivedata/>
- </main>
- <send>
- <searchitem>
- <patlist>
- <fromdd/>
- <todd/>
- <patflag/>
- <pid/>
- <hngnm/>
- <ward/>
- <room/>
- <diet/>
- <orddept/>
- </patlist>
- <diethist/>
- </searchitem>
- </send>
- <temp/>
- <init>
- <basecode>
- <meal>
- <A0047>
- <cdid/>
- <cdnm/>
- </A0047>
- </meal>
- <dietmeal>
- <M0042>
- <cdid/>
- <cdnm/>
- </M0042>
- </dietmeal>
- <spclment>
- <A0355>
- <cdid/>
- <cdnm/>
- </A0355>
- </spclment>
- <orddept>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </orddept>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <room>
- <room>
- <cdid/>
- <cdnm/>
- </room>
- </room>
- </basecode>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search.disabled = !checkAuth("R");
- btn_excel1.disabled = !checkAuth("P");
- btn_excel2.disabled = !checkAuth("P");
-
- //간호사가 로그인했을 경우 로그인한 간호사의 소속병동으로 셋팅후 자동조회
- var dutplcecd = getUserInfo("dutplcecd"); //소속부서코드
- /*
- if ( dutplcecd.substr(0,3) != "325") {
- model.setValue("/root/send/searchitem/patlist/ward", dutplcecd);
- btn_search.dispatch("DOMActivate");
- }
- */
-
- //var sssss = model.getValue("/root/send/searchitem/patlist/ward");
- //alert("펑션종료 후 가지고있는 병동코드" + sssss);
-
- //영양팀이 아니면 자료셋팅
- //alert("dutplcecd : "+dutplcecd);
- //alert("dutplcecd2 : "+ dutplcecd.substr(0,4));
- if ( dutplcecd.substr(0,3) != "325") {
- // 병원 또는 보험팀 부서코드 접속자가 호출하면 전달받은 파라미터그대로 유지하기 (4070700000)
- if( dutplcecd.substr(0,4) != "1000" && dutplcecd.substr(0,4) != "4070") {
- //alert("간호에서 들어온것으로 판단");
- model.setValue("/root/send/searchitem/patlist/ward", dutplcecd);
- btn_search.dispatch("DOMActivate");
- }else{
- //전달받은 파라미터 그대로 조회 실행
- btn_search.dispatch("DOMActivate");
- }
- }
-
- //식사처방출력 화면에서 호출된 경우 자동 조회
- if (model.getValue("/root/main/receivedata/flag") != "") {
- //alert("여긴???");
- model.setValue("/root/send/searchitem/patlist/pid", model.getValue("/root/main/receivedata/pid"));
- model.setValue("/root/send/searchitem/patlist/fromdd", model.getValue("/root/main/receivedata/prcpdd"));
- model.setValue("/root/send/searchitem/patlist/todd", model.getValue("/root/main/receivedata/prcpdd"));
- btn_search.dispatch("DOMActivate");
- model.setValue("/root/send/searchitem/patlist/pid", "");
- ipt_pid.refresh();
- }
-
- model.setFocus("ipt_hngnm");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0047", "M0042", "A0355" ), new Array( "/root/init/basecode/meal", "/root/init/basecode/dietmeal", "/root/init/basecode/spclment" ) );
- zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'D', '/root/init/basecode/orddept');
- astfAddCombo("/root/init/basecode/orddept","dept","deptcd,depthngnm",",");
- //model.setValue("/root/send/searchitem/patlist/patflag", "0");
- //model.setValue("/root/send/searchitem/patlist/fromdd", getCurrentDate());
- //model.setValue("/root/send/searchitem/patlist/todd", getCurrentDate());
- //model.refresh();
- var patflag = model.getValue("/root/send/searchitem/patlist/patflag");
- //alert("patflag : " + patflag);
- if ( patflag == "1") {
- //var ttt = model.getValue("/root/send/searchitem/patlist/ward");
- //alert("ttt : " + ttt);
- // 보험팀에서 호출한 것으로 통과
- }else{
- model.setValue("/root/send/searchitem/patlist/patflag", "0");
- model.setValue("/root/send/searchitem/patlist/fromdd", getCurrentDate());
- model.setValue("/root/send/searchitem/patlist/todd", getCurrentDate());
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRANT01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/patlist" resultref="/root/main/patlist"/>
- <submission id="TRANT01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/diethist" resultref="/root/main/diethist"/>
- <submission id="TRANT01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/patlist" resultref="/root/init/basecode/room"/>
- </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/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="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,757;2,839;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:8px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; "/>
- <caption id="caption4" class="search_name" style="left:16px; top:9px; width:89px; height:17px; ">처방일자 :</caption>
- <caption id="caption7" class="search_name" style="left:16px; top:34px; width:62px; height:17px; ">병동 :</caption>
- <caption id="caption8" class="search_name" style="left:656px; top:9px; width:134px; height:17px; ">등록번호/환자명 :</caption>
- <caption id="caption1" style="left:878px; top:9px; width:24px; height:17px; ">/</caption>
- <input id="ipt_pid" ref="/root/send/searchitem/patlist/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:790px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_ward" ref="/root/send/searchitem/patlist/ward" class="combo_s_essential" appearance="minimal" style="left:80px; top:33px; width:140px; 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[
- model.resetInstanceNode("/root/send/searchitem/patlist/pid");
- model.resetInstanceNode("/root/send/searchitem/patlist/hngnm");
- model.resetInstanceNode("/root/send/searchitem/patlist/room");
- submit("TRANT01004"); //선택병동의 병실 조회
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_diet" ref="/root/send/searchitem/patlist/diet" class="combo_s_essential" appearance="minimal" style="left:860px; top:33px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/meal/A0047">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:796px; top:34px; width:60px; height:17px; ">식사 :</caption>
- <caption id="caption6" style="left:209px; top:12px; width:15px; height:10px; font-weight:bold; vertical-align:middle; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/searchitem/patlist/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/searchitem/patlist/todd" class="input_s_essential" inputtype="date" style="left:224px; top:8px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1129px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/send/searchitem/patlist/fromdd");
- var todd = model.getValue("/root/send/searchitem/patlist/todd");
- if (getDateInterval(fromdd, todd) < 0) {
- messageBox("처방 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- model.resetInstanceNode("/root/main/diethist/data"); //오른쪽 식사력 그리드 초기화
- submit("TRANT01001");
- //조회 후 재원상태 표시
- for ( i=1; i<grd_patlist.rows; i++) {
- var indd = model.getValue("/root/main/patlist/data[" + i + "]/indd");
- var indschacptstat = model.getValue("/root/main/patlist/data[" + i + "]/h_indschacptstat");
- if ( indschacptstat == "D" ) {
- model.setValue("/root/main/patlist/data[" + i + "]/patflag", "퇴원");
- } else if ( (indschacptstat == "A") && (indd == getCurrentDate()) ) {
- model.setValue("/root/main/patlist/data[" + i + "]/patflag", "신환");
- } else if ( (indschacptstat == "A") && (indd < getCurrentDate()) ) {
- model.setValue("/root/main/patlist/data[" + i + "]/patflag", "재원");
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1117px; y1:8px; x2:1117px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption11" class="search_name" style="left:365px; top:9px; width:86px; height:17px; ">재원구분 :</caption>
- <select1 id="rdo_patflag" ref="/root/send/searchitem/patlist/patflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:453px; top:9px; width:176px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>재원</label>
- <value>1</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>2</value>
- </item>
- <item>
- <label>신환</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <button id="btn_hngnm" class="icon_search" style="left:970px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/temp", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/searchitem/patlist/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/patlist/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/searchitem/patlist/hngnm" class="input_search" style="left:890px; top:8px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:280px; top:34px; width:86px; height:17px; ">병실 :</caption>
- <select1 id="cmb_room" ref="/root/send/searchitem/patlist/room" class="combo_s_essential" appearance="minimal" style="left:343px; top:33px; width:92px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/room/room">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:520px; top:34px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/searchitem/patlist/orddept" class="combo_s_essential" appearance="minimal" style="left:595px; top:33px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_diethist" nodeset="/root/main/diethist/data" caption="선택^병동^병실^등록번호^환자명^보호자식여부^식사일자^끼니^식사명^특이사항^remark^입원일자^최종변경일자^최종수정자^전문의^진료과" colsep="^" colwidth="30, 70, 56, 60, 60, 80, 70, 36, 170, 120, 120, 70, 80, 70, 65, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:355px; top:110px; width:839px; height:629px; text-align:center; ">
- <col ref="check" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="ward" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="room"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="procermealyn"/>
- <col ref="mealdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="dietmeal" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dietmeal/M0042">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dietcd" style="text-align:left; "/>
- <col ref="prcpdelivefact" style="text-align:left; "/>
- <col ref="remark" style="text-align:left; "/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="lastupdtdd" format="yyyy-mm-dd"/>
- <col ref="lastupdtnm"/>
- <col ref="atdoct"/>
- <col ref="orddept" style="text-align:left; "/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:360px; top:90px; width:87px; height:14px; ">식사력 조회</caption>
- <line id="line5" class="line_1" style="x1:355px; y1:105px; x2:1194px; y2:105px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:105px; x2:345px; y2:105px; "/>
- <caption id="caption10" class="tit_2" style="left:5px; top:90px; width:70px; height:14px; ">환자선택</caption>
- <datagrid id="grd_patlist" nodeset="/root/main/patlist/data" caption="병실^환자명^등록번호^진료과^진단명^처방일자^실시처방번호^입원일^퇴원일^병동^재원상태^h_입퇴원접수상태" colsep="^" colwidth="45, 60, 60, 80, 200, 10, 10, 70, 70, 72, 58, 10" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:110px; width:345px; height:629px; text-align:center; ">
- <col ref="room"/>
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="diagnm" style="text-align:left; "/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="ward" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="patflag"/>
- <col ref="h_indschacptstat" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( isDataCell() ) {
- model.copyNode("/root/send/searchitem/diethist", "/root/main/patlist/data["+grd_patlist.row+"]");
- submit("TRANT01002");
-
- //조회 후 특이사항 항목을 코드명으로 바꾸기
- // for ( i=1; i<grd_diethist.rows; i++) {
- // var spclment = model.getValue("/root/main/diethist/data[" + i + "]/h_spclmentcd");
- // var temp = "";
- // if ( spclment != "" ) {
- // for ( j = 0; j < spclment.length; j+=3 ) {
- // temp += model.getValue("/root/init/basecode/spclment/A0355[cdid='"+spclment.substr(j,2)+"']/cdnm");
- // temp = temp + ",";
- // }
- // temp = temp.substr(0, temp.length-1);
- // model.setValue("/root/main/diethist/data[" + i + "]/spclment", temp);
- // }
- // }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel1" class="btn2_letter2" style="left:300px; top:85px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "환자명단_환자별식사력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_patlist.saveExcel(filename, "grd_patlist", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel2" class="btn2_letter2" style="left:1152px; top:85px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "환자별식사력리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_diethist.saveExcel(filename, "grd_diethist", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption13" class="tit_1" style="left:0px; top:0px; width:129px; height:14px; ">환자별 식사력 조회</caption>
- </group>
- <line id="line6" class="line_3" style="x1:0px; y1:757px; x2:1195px; y2:757px; "/>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button84" class="btn6_letter6" visibility="hidden" style="left:96px; top:5px; width:104px; height:22px; ">
- <caption>환자명단출력</caption>
- </button>
- <button id="button83" class="btn6_letter5" visibility="hidden" style="left:1px; top:5px; width:92px; height:22px; ">
- <caption>식사력출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|