123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?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>
- <patmeal>
- <patmeallist>
- <ward/>
- <room/>
- <pid/>
- <hngnm/>
- <sex/>
- <dietnm/>
- <remfactnm/>
- <remark/>
- <remark1/>
- <remark2/>
- <remark3/>
- <indd/>
- <incnt/>
- <intkcnt/>
- <fsexamflag/>
- </patmeallist>
- </patmeal>
- <popupendflag/>
- </main>
- <send>
- <reqdata>
- <dietlrgcd/>
- <dietmdlcd/>
- <dietnm/>
- <dietcd/>
- <holiday/>
- <holiday1/>
- <holiday2/>
- <holiday3/>
- <fage/>
- <tage/>
- <intkcnt/>
- <fromdd/>
- <todd/>
- <indd/>
- </reqdata>
- </send>
- <init>
- <cmb_info>
- </cmb_info>
- <baseinfo>
- <dietlrgcd/>
- <dietmdlcd/>
- <fsexamflag/>
- </baseinfo>
- </init>
- <hidden>
- <count/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- //화면open시 공통코드 setting
- zbcfGetCodeList( new Array("A0046", "A0047", "P0021"), new Array("/root/init/baseinfo/dietlrgcd", "/root/init/baseinfo/dietmdlcd", "/root/init/baseinfo/fsexamflag"));
- submit("TRZBC00101");
- astfAddCombo("/root/init/baseinfo/dietmdlcd","A0047","cdid,cdnm",",");
- model.setValue("/root/send/reqdata/indd","");
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANT01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patmeal"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function finit() {
- model.removeNodeset("/root/main/patmeal/patmeallist");
- //model.resetInstanceNode("/root/main/maindata");
- model.resetInstanceNode("/root/send/reqdata");
- model.setValue("/root/send/reqdata/fromdd", getCurrentDate());
- model.setValue("/root/send/reqdata/todd", getCurrentDate());
- model.refresh();
- }
-
- //조회
- function readfunc(){
- model.removeNodeset("/root/main/patmeal/patmeallist");
- submit("TRANT01101");
-
- //remark1,2,3의 내용을 ','로 연결하기
- for ( i=1; i<grd_patmeal.rows; i++) {
- var remark = "";
- var remark1 = model.getValue("/root/main/patmeal/patmeallist[" + i + "]/remark1");
- var remark2 = model.getValue("/root/main/patmeal/patmeallist[" + i + "]/remark2");
- var remark3 = model.getValue("/root/main/patmeal/patmeallist[" + i + "]/remark3");
-
- if ( remark1 != "" || remark2 != "" || remark3 != "" ) {
- if ( remark1 != "" ) {
- remark = remark + remark1 + ",";
- }
- if ( remark2 != "" ) {
- remark = remark + remark2 + ",";
- }
- if ( remark3 != "" ) {
- remark = remark + remark3 + ",";
- }
- remark = remark.substr(0, remark.length-1);
- model.setValue("/root/main/patmeal/patmeallist[" + i + "]/remark", remark);
- }
- }
-
- // if (model.getValue("/root/main/patmeal/patmeallist[" + 1 + "]/ward") == ""){
- // model.removeNodeset("/root/main/patmeal/patmeallist");
- // }
- model.refresh();
- }
-
- //조회조건 적합성 체크
- function datacheck() {
- if (model.getValue("/root/send/reqdata/dietlrgcd") == ""){
- messageBox("분류는 필수선택", "I009");
- return false;
- }
- var fromdd = model.getValue("/root/send/reqdata/fromdd");
- var todd = model.getValue("/root/send/reqdata/todd");
- if (getDateInterval(fromdd, todd) < 0) {
- messageBox("검색 시작일은 종료일보다 클 수", "I004");
- return;
- }
- if (model.getValue("/root/send/reqdata/fage") == "" || model.getValue("/root/send/reqdata/tage") == ""){
- }else{
- var iage1 = parseFloat(model.getValue("/root/send/reqdata/fage"));
- var iage2 = parseFloat(model.getValue("/root/send/reqdata/tage"));
- if (iage1 > iage2){
- messageBox("나이의 From~To 설정이", "E016");
- return false;
- }
- }
- }
-
- // 날짜 형식에 대한 적합여부 체크
- function isDate(str) {
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
- //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
-
- return true; // 존재하는 날짜
- }
-
- // 문자에 대한 TRIM 작업
- function trim(data){
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,748;" 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:189px; height:14px; ">환자조건별조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:64px; height:17px; ">분류 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datacheck() == false){
- return;
- }
- //휴일조건 분리하기
- if ( chk_holiday.value != "" ) {
- var temp = chk_holiday.value;
- for ( i = 0; i < temp.length; i+=2 ) {
- if ( temp.substr(i,1) == "1" ) {
- model.setValue("/root/send/reqdata/holiday1", "1");
- } else if ( temp.substr(i,1) == "2" ) {
- model.setValue("/root/send/reqdata/holiday2", "2");
- } else if ( temp.substr(i,1) == "3" ) {
- model.setValue("/root/send/reqdata/holiday3", "3");
- }
- }
- }
-
- readfunc(); //조회 함수
-
- model.setValue("/root/send/reqdata/holiday1", "");
- model.setValue("/root/send/reqdata/holiday2", "");
- model.setValue("/root/send/reqdata/holiday3", "");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:560px; top:8px; width:74px; height:17px; ">식사명:</caption>
- <caption id="caption23" class="search_name" style="left:16px; top:35px; width:64px; height:17px; ">휴일 :</caption>
- <caption id="caption25" class="search_name" style="left:395px; top:35px; width:95px; height:17px; ">나 이 :</caption>
- <caption id="caption26" class="search_name" style="left:560px; top:35px; width:86px; height:17px; ">섭취일수 :</caption>
- <output id="opt_dietcd" ref="/root/send/reqdata/dietcd" class="output_search" style="left:627px; top:7px; width:68px; height:19px; "/>
- <button id="btn_dietcdpopup" class="icon_search" navindex="2" style="left:700px; top:7px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SPANT01100", "", "200", "200", "SPANT01100","/root/send/reqdata","/root/send/reqdata1");
- readfunc();
- ]]>
- </script>
- </button>
- <input id="ipt_fage" ref="/root/send/reqdata/fage" class="input_search" navindex="4" autonext="false" maxlength="3" format="999" style="left:465px; top:34px; width:30px; height:19px; text-align:center; "/>
- <caption id="caption28" style="left:499px; top:37px; width:22px; height:15px; ">~</caption>
- <input id="ipt_tage" ref="/root/send/reqdata/tage" class="input_search" navindex="5" autonext="false" maxlength="3" format="999" style="left:513px; top:34px; width:30px; height:19px; text-align:center; "/>
- <input id="ipt_intkcnt" ref="/root/send/reqdata/intkcnt" class="input_search" navindex="6" autonext="false" maxlength="3" format="999" style="left:646px; top:34px; width:39px; height:19px; text-align:center; "/>
- <select id="chk_dietlrgcd" ref="/root/send/reqdata/dietlrgcd" overflow="visible" appearance="full" cellspacing="7" cols="5" style="left:75px; top:9px; width:315px; height:19px; ">
- <choices>
- <item>
- <label>일반식</label>
- <value>Q1</value>
- </item>
- <item>
- <label>치료식</label>
- <value>Q2</value>
- </item>
- <item>
- <label>멸균식</label>
- <value>Q3</value>
- </item>
- <item>
- <label>비급여식</label>
- <value>Q4</value>
- </item>
- <item>
- <label>금식</label>
- <value>Q9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/send/reqdata/dietmdlcd");
- cmb_mdlcd.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_holiday" ref="/root/send/reqdata/holiday" overflow="visible" appearance="full" cellspacing="7" cols="3" style="left:75px; top:34px; width:300px; height:19px; ">
- <choices>
- <item>
- <label>토요일제외</label>
- <value>1</value>
- </item>
- <item>
- <label>일요일제외</label>
- <value>2</value>
- </item>
- <item>
- <label>공휴일제외</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <output id="opt_dietnm" ref="/root/send/reqdata/dietnm" class="output_search" style="left:720px; top:7px; width:90px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:823px; top:8px; width:86px; height:17px; ">검색일자 :</caption>
- <input id="ipt_todd" ref="/root/send/reqdata/fromdd" class="input_default" inputtype="date" style="left:910px; top:7px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption3" style="left:997px; top:10px; width:22px; height:15px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/reqdata/todd" class="input_default" inputtype="date" style="left:1010px; top:7px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:395px; top:8px; width:74px; height:17px; ">중분류:</caption>
- <select1 id="cmb_mdlcd" ref="/root/send/reqdata/dietmdlcd" class="combo_s_essential" appearance="minimal" style="left:465px; top:7px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/dietmdlcd/A0047">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:823px; top:35px; width:87px; height:17px; ">입원일자 :</caption>
- <input id="ipt_indd" ref="/root/send/reqdata/indd" class="input_default" inputtype="date" style="left:910px; top:35px; width:85px; height:19px; text-align:center; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
- <caption id="caption20" class="tit_2" style="left:0px; top:80px; width:120px; height:13px; ">환자조건별조회</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:1146px; top:75px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "PatMeal_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_patmeal.saveExcel(filename, "grd_patmeal", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_reset" class="btn4_letter3" style="left:1124px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_patmeal" nodeset="/root/main/patmeal/patmeallist" caption="병동^병실^등록번호^환자명^성별/나이^식사명^특이사항^remark^remark1^remark2^remark3^입원일^재원일수^섭취일수^초/재" colsep="^" colwidth="0, 50, 70, 70, 80, 180, 190, 170, 0, 0, 0, 80, 60, 60, 60" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:114px; width:1194px; height:634px; ">
- <col ref="ward"/>
- <col ref="room"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="dietnm"/>
- <col ref="remfactnm"/>
- <col ref="remark"/>
- <col ref="remark1"/>
- <col ref="remark2"/>
- <col ref="remark3"/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="incnt" style="text-align:center; "/>
- <col ref="intkcnt" style="text-align:center; "/>
- <col disabled="true" ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/fsexamflag/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //grd_patmeal.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|