12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034 |
- <?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>
- <choimeal>
- <choimeallist>
- <bfroom/>
- <ward/>
- <room/>
- <pid/>
- <hngnm/>
- <dietnm/>
- <remfactnm/>
- <remark/>
- <chk/>
- <prcpdd/>
- <dietmeal/>
- <iuflag/>
- <dietcd/>
- </choimeallist>
- </choimeal>
- <childmeal>
- <childmeallist>
- <bfroom/>
- <ward/>
- <room/>
- <pid/>
- <hngnm/>
- <dietnm/>
- <remfactnm/>
- <remark/>
- <chk/>
- <prcpdd/>
- <dietmeal/>
- <iuflag/>
- <dietcd/>
- </childmeallist>
- </childmeal>
- <choimealstats>
- <choimealstatslist>
- <prcpdd/>
- <breakmealnm/>
- <breakmealcnt/>
- <lunchmealnm/>
- <lunchmealcnt/>
- <dinnermealnm/>
- <dinnermealcnt/>
- </choimealstatslist>
- </choimealstats>
- <choimealguidedocu>
- <fixcol>
- <fixcol1/>
- <fixcol2/>
- <fixcol3/>
- <fixcol4/>
- </fixcol>
- <choimealguide1>
- <breakgnrldish/>
- </choimealguide1>
- <choimealguide2>
- <breakchoidish/>
- </choimealguide2>
- <choimealguide3>
- <lunchgnrldish/>
- </choimealguide3>
- <choimealguide4>
- <lunchchoidish/>
- </choimealguide4>
- </choimealguidedocu>
- <indcase>
- <indcaselist>
- <chk/>
- <ward/>
- <room/>
- <pid/>
- <hngnm/>
- <sex/>
- <dietnm/>
- <prcpdd/>
- <dietmeal/>
- <iuflag/>
- <remfactnm/>
- <remark2/>
- <remark3/>
- </indcaselist>
- </indcase>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata>
- <prcpdd/>
- <dietmeal/>
- <ward/>
- <roomcd/>
- <count/>
- <fromdd/>
- <todd/>
- <appdd/>
- <pid/>
- <hngnm/>
- </reqdata>
- <execdata>
- <choimeallist/>
- </execdata>
- <execdata1>
- <indcaselist/>
- </execdata1>
- <execdata5>
- <childmeallist/>
- </execdata5>
- <choimealguide>
- <breakgnrldish1/>
- <breakgnrldish2/>
- <breakgnrldish3/>
- <breakgnrldish4/>
- <breakgnrldish5/>
- <breakchoidish1/>
- <breakchoidish2/>
- <breakchoidish3/>
- <breakchoidish4/>
- <breakchoidish5/>
- <lunchgnrldish1/>
- <lunchgnrldish2/>
- <lunchgnrldish3/>
- <lunchgnrldish4/>
- <lunchgnrldish5/>
- <lunchchoidish1/>
- <lunchchoidish2/>
- <lunchchoidish3/>
- <lunchchoidish4/>
- <lunchchoidish5/>
- <lunchchoidish6/>
- </choimealguide>
- <popup>
- <flag/>
- <pid/>
- <prcpdd/>
- </popup>
- </send>
- <init>
- <basecode>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- <room>
- <room>
- <cdid/>
- <cdnm/>
- </room>
- </room>
- </basecode>
- <baseinfo>
- <ward/>
- </baseinfo>
- </init>
- <casegb>
- <gb/>
- </casegb>
- <hidden>
- <count/>
- </hidden>
- <FormData>
- <PopData>
- <pid/>
- <dnorid/>
- <trnptid/>
- <trnptkind/>
- <patdnorflag/>
- <trnptbfaftflag/>
- </PopData>
- </FormData>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- btn_search.disabled = !checkAuth("R");
- btn_search2.disabled = !checkAuth("R");
- btn_search3.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- //zbcfGetCodeList( new Array("A0055"), new Array("/root/init/baseinfo/dietmeal"));
- //submit("TRZBC00101");
- //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.setValue("/root/send/reqdata/prcpdd", getCurrentDate());
- model.setValue("/root/send/reqdata/fromdd", getCurrentDate());
- model.setValue("/root/send/reqdata/todd", getCurrentDate());
- model.setValue("/root/send/reqdata/appdd", getCurrentDate());
- model.setValue("/root/send/reqdata/dietmeal", "1");
- model.setValue("/root/casegb/gb", "1");
- fvisible(); //컨트롤을 숨기거나 보이기
- //화면open시 현재시간을 계산하여 선택식관리 탭화면의 끼니구분 자동setting
- var tm = getCurrentTime();
- if ( tm.substr(0,4) < 1030 ) {
- model.setValue("/root/send/reqdata/dietmeal", "1");
- } else if ( (tm.substr(0,4) >= 1030) && (tm.substr(0,4) < 1600) ) {
- model.setValue("/root/send/reqdata/dietmeal", "2");
- } else {
- model.setValue("/root/send/reqdata/dietmeal", "3");
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRANT00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimeal"/>
- <submission id="TXANT00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata"/>
- <submission id="TRANT00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/indcase"/>
- <submission id="TXANT00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata1"/>
- <submission id="TRANT00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimealstats"/>
- <submission id="TRANT00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choimealguidedocu"/>
- <submission id="TRANT01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/basecode/room"/>
- <submission id="TRANT00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/childmeal"/>
- <submission id="TXANT00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata5"/>
- </model>
- <script type="javascript" src="../../../emr/carerecweb/js/SMMNR006.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- //선택식관리 or 개별식단환자관리 탭화면일 경우 컨트롤을 숨기거나 보이기
- function fvisible() {
- btn_excel.visible = true;
- btn_print.visible = false;
- btn_save.visible = true;
- group2.visible = true;
- group4.visible = false;
- group5.visible = false;
- }
-
- //선택식관리 조회
- function readfunc() {
- model.removeNodeset("/root/main/choimeal/choimeallist");
- model.makeNode("/root/main/choimeal/choimeallist");
- submit("TRANT00901");
- var msg = model.getValue("/root/properties/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" || refCnt == "") {
- //messageBox("조회된 결과가", "I004");
- }
- if (model.getValue("/root/main/choimeal/choimeallist[" + 1 + "]/ward") == ""){
- model.removeNodeset("/root/main/choimeal/choimeallist");
- btn_save.disabled = true;
- }else{
- btn_save.disabled = false;
- }
- selectfunc();
- model.refresh();
- }
-
- //소아선택식관리 조회
- function readfunc5() {
- model.removeNodeset("/root/main/childmeal/childmeallist");
- model.makeNode("/root/main/childmeal/childmeallist");
- submit("TRANT00905");
- var msg = model.getValue("/root/properties/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" || refCnt == "") {
- //messageBox("조회된 결과가", "I004");
- }
- if (model.getValue("/root/main/childmeal/childmeallist[" + 1 + "]/ward") == ""){
- model.removeNodeset("/root/main/childmeal/childmeallist");
- btn_save.disabled = true;
- }else{
- btn_save.disabled = false;
- }
- selectfunc5();
- model.refresh();
- }
-
- //개별식단환자관리 조회
- function readfunc2() {
- model.removeNodeset("/root/main/indcase/indcaselist");
- model.makeNode("/root/main/indcase/indcaselist");
- submit("TRANT00902");
- var msg = model.getValue("/root/properties/error/msg");
- var refCnt = msg.substring(0, 1);
- if( refCnt == "0" || refCnt == "") {
- //messageBox("조회된 결과가", "I004");
- }
- if (model.getValue("/root/main/indcase/indcaselist[" + 1 + "]/ward") == ""){
- model.removeNodeset("/root/main/indcase/indcaselist");
- btn_save.disabled = true;
- }else{
- btn_save.disabled = false;
- }
- model.refresh();
- }
-
- function selectfunc() {
- var k = 0;
- for (var i = 1; i < grd_choidiet.rows; i++){
- var schk = model.getValue("/root/main/choimeal/choimeallist[" + i + "]/chk");
- if (schk == "Y"){
- k = parseInt(k) + 1;
- }
- }
- model.setValue("/root/send/reqdata/count", k);
- model.refresh();
- }
-
- function selectfunc2() {
- var k = 0;
- for (var i = 1; i < grd_inddiet.rows; i++){
- var schk = model.getValue("/root/main/indcase/indcaselist[" + i + "]/chk");
- if (schk == "Y"){
- k = parseInt(k) + 1;
- }
- }
- model.setValue("/root/send/reqdata/count1", K);
- model.refresh();
- }
-
- function selectfunc5() {
- var p = 0;
- for (var i = 1; i < grd_childdiet.rows; i++){
- var schk = model.getValue("/root/main/childmeal/childmeallist[" + i + "]/chk");
- if (schk == "Y"){
- p = parseInt(p) + 1;
- }
- }
- model.setValue("/root/send/reqdata/count", p);
- model.refresh();
- }
-
- //날짜 형식에 대한 적합여부 체크
- 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, "");
- }
-
- //선택식관리 저장
- function case1exec() {
- model.removeNodeset("/root/send/execdata");
- model.makeNode("/root/send/execdata/choimeallist");
- var update = getGridUpdateData(grd_choidiet);
- model.setValue("/root/send/execdata/choimeallist",update);
- submit("TXANT00901");
- messageBox("정상적으로", "I001");
- // readfunc();
- }
-
- //개별식단환자관리 저장
- function case2exec() {
- model.removeNodeset("/root/send/execdata1");
- model.makeNode("/root/send/execdata1/indcaselist");
- var update = getGridUpdateData(grd_inddiet);
- model.setValue("/root/send/execdata1/indcaselist",update);
- submit("TXANT00902");
- messageBox("정상적으로", "I001");
- // readfunc();
- }
-
- //소아선택식관리 저장
- function case5exec() {
- model.removeNodeset("/root/send/execdata5");
- model.makeNode("/root/send/execdata5/childmeallist");
- var update = getGridUpdateData(grd_childdiet);
- model.setValue("/root/send/execdata5/childmeallist",update);
- submit("TXANT00905");
- messageBox("정상적으로", "I001");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1;2,782;2,758;2,721;" 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:800px; height:14px; ">선택식/개별관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:747px; ">
- <group id="group2" visibility="visible" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:10px; top:9px; width:60px; height:17px; ">일자 :</caption>
- <input id="ipt_prcpdd" ref="/root/send/reqdata/prcpdd" class="input_s_essential" inputtype="date" style="left:74px; top:8px; width:95px; height:19px; "/>
- <button id="btn_before" class="icon_pre" style="left:173px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/reqdata/prcpdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/reqdata/prcpdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_next" style="left:186px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/reqdata/prcpdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/reqdata/prcpdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/casegb/gb") == "1"){
- readfunc();
- }else if (model.getValue("/root/casegb/gb") == "3"){
- readfunc2();
- }else if (model.getValue("/root/casegb/gb") == "5"){
- readfunc5();
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:445px; top:10px; width:91px; height:17px; ">병동 :</caption>
- <select1 id="cmb_wardcd" ref="/root/send/reqdata/ward" class="combo_s_essential" appearance="minimal" style="left:507px; top:8px; width:103px; 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/reqdata/roomcd");
- submit("TRANT01004"); //선택병동의 병실 조회
- ]]>
- </script>
- </select1>
- <select1 id="rdo_dietmeal" ref="/root/send/reqdata/dietmeal" appearance="full" cellspacing="4" cols="3" rows="1" overflow="visible" style="left:290px; top:9px; width:159px; height:20px; ">
- <choices>
- <item>
- <label>조식</label>
- <value>1</value>
- </item>
- <item>
- <label>중식</label>
- <value>2</value>
- </item>
- <item>
- <label>석식</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:230px; top:9px; width:65px; height:17px; ">끼니 :</caption>
- <caption id="caption4" class="search_name" style="left:637px; top:9px; width:64px; height:17px; ">병실 :</caption>
- <select1 id="cmb_roomcd" ref="/root/send/reqdata/roomcd" class="combo_search" appearance="minimal" style="left:701px; top:8px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecode/room/room">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:811px; top:9px; width:134px; height:17px; ">등록번호/환자명 :</caption>
- <caption id="caption9" style="left:1016px; top:9px; width:24px; height:17px; ">/</caption>
- <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_search" autonext="false" maxlength="10" format="9999999999" style="left:945px; top:8px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/send/reqdata/hngnm" class="input_search" style="left:1025px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_hngnm" class="icon_search" style="left:1095px; 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/reqdata/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/reqdata/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- btn_search.dispatch("DOMActivate");
- //model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:35px; top:9px; width:60px; height:17px; ">일자 :</caption>
- <input id="ipt_fromdd" ref="/root/send/reqdata/fromdd" class="input_s_essential" inputtype="date" style="left:99px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/reqdata/todd" class="input_s_essential" inputtype="date" style="left:219px; top:8px; width:100px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:202px; top:8px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <button id="btn_search2" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fromdd = model.getValue("/root/send/reqdata/fromdd");
- var todd = model.getValue("/root/send/reqdata/todd");
- if (getDateInterval(fromdd, todd) < 0) {
- messageBox("조회 시작일은 종료일보다 클 수", "I004");
- return;
- } else {
- submit("TRANT00903");
- }
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <group id="group5" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">일자 :</caption>
- <input id="ipt_appdd" ref="/root/send/reqdata/appdd" class="input_s_essential" inputtype="date" style="left:79px; top:8px; width:100px; height:19px; "/>
- <button id="btn_before2" class="icon_pre" style="left:183px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/reqdata/appdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/reqdata/appdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_next2" class="icon_next" style="left:196px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/reqdata/appdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/reqdata/appdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search3" class="btn1_letter2" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( submit("TRANT00904") ){
- var cnt1 = getNodesetCount("/root/main/choimealguidedocu/choimealguide1/breakgnrldish");
- if( cnt1 < 11 ){
- for (var i = 1 ; i <= 11-cnt1 ; i++ ){
- grd_choimealguide1.addRow();
- }
- }
-
- var cnt2 = getNodesetCount("/root/main/choimealguidedocu/choimealguide2/breakchoidish");
- if( cnt2 < 11 ){
- for (var i = 1 ; i <= 11-cnt2 ; i++ ){
- grd_choimealguide2.addRow();
- }
- }
-
- var cnt3 = getNodesetCount("/root/main/choimealguidedocu/choimealguide3/lunchgnrldish");
- if( cnt3 < 11 ){
- for (var i = 1 ; i <= 11-cnt3 ; i++ ){
- grd_choimealguide3.addRow();
- }
- }
-
- var cnt4 = getNodesetCount("/root/main/choimealguidedocu/choimealguide4/lunchchoidish");
- if( cnt4 < 11 ){
- for (var i = 1 ; i <= 11-cnt4 ; i++ ){
- grd_choimealguide4.addRow();
- }
- }
- }
- model.resetInstanceNode("/root/send/choimealguide");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1119px; y1:8px; x2:1119px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/casegb/gb") == "1"){
- var filename = window.fileDialog("save", ",", false, "선택식환자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_choidiet.saveExcel(filename, "grd_choidiet", true, false, "", "", "");
- }
- } else if (model.getValue("/root/casegb/gb") == "2"){
- var filename = window.fileDialog("save", ",", false, "선택식통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_choidietstats.saveExcel(filename, "grd_choidietstats", true, false, "", "", "");
- }
- } else if (model.getValue("/root/casegb/gb") == "3"){
- var filename = window.fileDialog("save", ",", false, "개별식단환자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_inddiet.saveExcel(filename, "grd_inddiet", true, false, "", "", "");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btCase1" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:87px; height:22px; ">
- <caption>선택식관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/casegb/gb", "1");
- model.toggle("case1");
- fvisible(); //컨트롤을 숨기거나 보이기
- // btCase1.selected = true;
- // btCase2.selected = false;
- // btCase3.selected = false;
- // btCase4.selected = false;
- //
- // btn_excel.visible = true;
- // btn_print.visible = false;
- // btn_save.visible = true;
- // group2.visible = true;
- // group4.visible = false;
- // group5.visible = false;
- // model.refresh();
- ]]>
- </script>
- </button>
- <button id="btCase2" class="btn_sw" group="tab" style="left:174px; top:49px; width:87px; height:22px; ">
- <caption>선택식통계</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/casegb/gb", "2");
- model.toggle("case2");
- // btCase1.selected = false;
- // btCase2.selected = true;
- // btCase3.selected = false;
- // btCase4.selected = false;
- btn_excel.visible = true;
- btn_print.visible = false;
- btn_save.visible = false;
- group2.visible = false;
- group4.visible = true;
- group5.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btCase4" class="btn_sw" group="tab" style="left:261px; top:49px; width:95px; height:22px; ">
- <caption>선택식안내문</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/casegb/gb", "4");
- model.toggle("case4");
- // btCase1.selected = false;
- // btCase2.selected = false;
- // btCase3.selected = false;
- // btCase4.selected = true;
- btn_excel.visible = false;
- btn_print.visible = true;
- btn_save.visible = false;
- group2.visible = false;
- group4.visible = false;
- group5.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btCase3" class="btn_sw" group="tab" style="left:356px; top:49px; width:120px; height:22px; ">
- <caption>개별식단환자관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/casegb/gb", "3");
- model.toggle("case3");
- fvisible(); //컨트롤을 숨기거나 보이기
- // btCase1.selected = false;
- // btCase2.selected = false;
- // btCase3.selected = true;
- // btCase4.selected = false;
- //
- // btn_excel.visible = true;
- // btn_print.visible = false;
- // btn_save.visible = true;
- // group2.visible = true;
- // group4.visible = false;
- // group5.visible = false;
- // model.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; ">
- <case id="case1" selected="true">
- <line id="line5" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
- <datagrid id="grd_choidiet" nodeset="/root/main/choimeal/choimeallist" caption="변경전병실^병동^병실^등록번호^환자명^선택식^SBS^식사명^특이사항^Remark^처방일자^끼니^등록수정여부^코드" colsep="^" colwidth="70, 30, 70, 90, 90, 74, 60, 120, 280, 280, 20, 20, 20,30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:612px; ">
- <col ref="bfroom" style="text-align:center; "/>
- <col ref="ward" visibility="hidden"/>
- <col ref="room" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="gubun" style="text-align:center; "/>
- <col ref="dietnm"/>
- <col ref="remfactnm"/>
- <col ref="remark"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="dietmeal" visibility="hidden"/>
- <col ref="iuflag" visibility="hidden"/>
- <col ref="dietcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_choidiet.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- selectfunc();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //환자별식사력조회 화면으로 연결
- if ( grd_choidiet.isCell(event.target) && grd_choidiet.row >= grd_choidiet.fixedRows ) {
- // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
- model.setValue("/root/send/popup/flag", "P");
- model.setValue("/root/send/popup/pid", model.getValue("/root/main/choimeal/choimeallist["+grd_choidiet.row+"]/pid"));
- model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/choimeal/choimeallist["+grd_choidiet.row+"]/prcpdd"));
- open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption13" class="cell_1" style="left:1005px; top:639px; width:79px; height:23px; vertical-align:middle; ">선택식 건수</caption>
- <line id="line4" class="line_1" style="x1:1005px; y1:634px; x2:1188px; y2:634px; "/>
- <line id="line6" class="line_3" style="x1:1005px; y1:662px; x2:1188px; y2:662px; "/>
- <output id="opt_count" ref="/root/send/reqdata/count" class="output_fix" style="left:1088px; top:640px; width:100px; height:19px; text-align:center; "/>
- </case>
- <case id="case2">
- <datagrid id="grd_choidietstats" nodeset="/root/main/choimealstats/choimealstatslist" caption="일자^조식^선택식수^중식^선택식수^석식^선택식수" colsep="^" colwidth="110, 150, 100, 150, 100, 150, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:649px; text-align:center; ">
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="breakmealnm" type="input"/>
- <col ref="breakmealcnt"/>
- <col ref="lunchmealnm" type="input"/>
- <col ref="lunchmealcnt"/>
- <col ref="dinnermealnm" type="input"/>
- <col ref="dinnermealcnt"/>
- </datagrid>
- <line id="line7" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
- </case>
- <case id="case4">
- <datagrid id="grd_choimealguideflag" nodeset="/root/main/choimealguidedocu/fixcol" caption="아 침^아 침^점 심^점 심|식단 ①^식단 ②^식단 ①^식단 ②" colsep="^" colwidth="170, 170, 170, 170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:16px; width:1183px; height:650px; text-align:center; ">
- <col ref="fixcol1"/>
- <col ref="fixcol2"/>
- <col ref="fixcol3"/>
- <col ref="fixcol4"/>
- </datagrid>
- <datagrid id="grd_choimealguide1" nodeset="/root/main/choimealguidedocu/choimealguide1" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
- <col ref="breakgnrldish" type="input"/>
- </datagrid>
- <datagrid id="grd_choimealguide2" nodeset="/root/main/choimealguidedocu/choimealguide2" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:175px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
- <col ref="breakchoidish" type="input"/>
- </datagrid>
- <datagrid id="grd_choimealguide3" nodeset="/root/main/choimealguidedocu/choimealguide3" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:345px; top:63px; width:173px; height:255px; text-align:center; border-top-color:#ffffff; ">
- <col ref="lunchgnrldish" type="input"/>
- </datagrid>
- <datagrid id="grd_choimealguide4" nodeset="/root/main/choimealguidedocu/choimealguide4" colsep="^" colwidth="170" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:515px; top:63px; width:172px; height:255px; text-align:center; border-top-color:#ffffff; ">
- <col ref="lunchchoidish" type="input"/>
- </datagrid>
- <line id="line8" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
- <button id="btn_gridadd" class="btn5_letter3" style="left:695px; top:20px; width:64px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_choimealguide1.addRow();
- grd_choimealguide2.addRow();
- grd_choimealguide3.addRow();
- grd_choimealguide4.addRow();
- model.refresh();
- ]]>
- </script>
- </button>
- </case>
- <case id="case3">
- <datagrid id="grd_inddiet" nodeset="/root/main/indcase/indcaselist" caption="병동^병실^등록번호^환자명^성별/나이^식사명^처방일자^끼니^신규/수정구분^특이사항^Remark1^Remark2^적용" colsep="^" colwidth="110, 55, 70, 80, 80, 200, 10, 10, 10, 160, 80, 240, 59" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:633px; ">
- <col ref="ward" style="text-align:left; "/>
- <col ref="room" style="text-align:left; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="dietnm" style="text-align:left; "/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="dietmeal" visibility="hidden"/>
- <col ref="iuflag" visibility="hidden"/>
- <col ref="remfactnm" style="text-align:left; "/>
- <col ref="remark2" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>개별관리</label>
- <value>01</value>
- </item>
- <item>
- <label>소금1g</label>
- <value>02</value>
- </item>
- <item>
- <label>소금2g</label>
- <value>03</value>
- </item>
- <item>
- <label>소금3g</label>
- <value>04</value>
- </item>
- <item>
- <label>소금4g</label>
- <value>05</value>
- </item>
- </choices>
- </col>
- <col ref="remark3" type="input" style="text-align:left; "/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_inddiet.gridToInstance();
- ]]>
- </script>
- <hint>
- <![CDATA[Remark1 또는 Remark2에 내용이 있고 적용 "V"면 간호 식이처방 변경시 동일차수 식사라도 변경불가 대상입니다]]>
- </hint>
- </datagrid>
- <line id="line9" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
- </case>
- <case id="case5">
- <line id="line10" class="line_1" style="x1:5px; y1:11px; x2:1188px; y2:11px; "/>
- <datagrid id="grd_childdiet" nodeset="/root/main/childmeal/childmeallist" caption="변경전병실^병동^병실^등록번호^소아환자명^선택식^SBS^식사명^특이사항^Remark^처방일자^끼니^등록수정여부^코드" colsep="^" colwidth="70, 30, 70, 90, 90, 74, 60,120, 280, 280, 20, 20, 20,30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:16px; width:1183px; height:612px; ">
- <col ref="bfroom" style="text-align:center; "/>
- <col ref="ward" visibility="hidden"/>
- <col ref="room" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="gubun" style="text-align:center; "/>
- <col ref="dietnm"/>
- <col ref="remfactnm"/>
- <col ref="remark"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="dietmeal" visibility="hidden"/>
- <col ref="iuflag" visibility="hidden"/>
- <col ref="dietcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_childdiet.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- selectfunc5();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //환자별식사력조회 화면으로 연결
- if ( grd_childdiet.isCell(event.target) && grd_childdiet.row >= grd_childdiet.fixedRows ) {
- // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
- model.setValue("/root/send/popup/flag", "P");
- model.setValue("/root/send/popup/pid", model.getValue("/root/main/childmeal/childmeallist["+grd_childdiet.row+"]/pid"));
- model.setValue("/root/send/popup/prcpdd", model.getValue("/root/main/childmeal/childmeallist["+grd_childdiet.row+"]/prcpdd"));
- open("SMANT01000", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="cell_1" style="left:1005px; top:639px; width:79px; height:23px; vertical-align:middle; ">선택식 건수</caption>
- <line id="line11" class="line_1" style="x1:1005px; y1:634px; x2:1188px; y2:634px; "/>
- <line id="line12" class="line_3" style="x1:1005px; y1:662px; x2:1188px; y2:662px; "/>
- <output id="output1" ref="/root/send/reqdata/count" class="output_fix" style="left:1088px; top:640px; width:100px; height:19px; text-align:center; "/>
- </case>
- </switch>
- <button id="btCase5" class="btn_sw" group="tab" style="left:87px; top:49px; width:87px; height:22px; ">
- <caption>소아선택식</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/casegb/gb", "5");
- model.toggle("case5");
- fvisible(); //컨트롤을 숨기거나 보이기
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter6" style="left:1047px; top:48px; width:104px; height:22px; ">
- <caption>SBS일괄적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/casegb/gb") == "1"){// 선택식 ** SBS 관련 일괄선택 기능 추가 by 김금련 2018.04.25
- for (var i = 1; i < grd_choidiet.rows; i++){
- var sbs = model.getValue("/root/main/choimeal/choimeallist[" + i + "]/gubun");
- if (sbs == "B"){
- model.setValue("/root/main/choimeal/choimeallist["+ i +"]/chk" , "Y");
- grd_choidiet.rowStatus(i) = "2";
- }
- }
- selectfunc(); // 건수 체크
- // grd_choidiet.refresh();
- } else if (model.getValue("/root/casegb/gb") == "5"){ //소아선택식
- for (var i = 1; i < grd_childdiet.rows; i++){
- var sbs = model.getValue("/root/main/childmeal/childmeallist[" + i + "]/gubun");
- if (sbs == "B"){
- model.setValue("/root/main/childmeal/childmeallist["+ i +"]/chk" , "Y");
- grd_childdiet.rowStatus(i) = "2";
- }
- }
- // grd_childdiet.refresh();
- selectfunc5(); // 건수 체크
- }else{
- alert("선택식관리,소아선택식 탭에서만 사용가능합니다.");
- return;
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/casegb/gb") == "1"){
- case1exec();
- readfunc();
- }else if (model.getValue("/root/casegb/gb") == "3"){
- case2exec();
- readfunc2();
- }else if (model.getValue("/root/casegb/gb") == "5"){
- case5exec();
- readfunc5();
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn3_letter8" style="left:1px; top:5px; width:128px; height:22px; ">
- <caption>선택식안내문출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cnt = 1;
- var appdd = model.getValue("/root/send/reqdata/appdd");
- var mm = appdd.substr(4, 2);
- var dd = appdd.substr(6, 2);
- if ( messageBox(mm + "월 " + dd + "일 선택식안내문 출력을", "Q004") == 6 ) {
- //일반식 조식,중식 - 국,찬1,찬2,찬3,김치 5개 메뉴 출력
- /* model.setValue("/root/send/choimealguide/breakgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide1[2]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide3[2]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide1[3]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide3[3]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide1[4]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide3[4]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide1[5]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide3[5]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide1[6]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide3[6]/lunchgnrldish"));
- */
- // 2011.1.1 c y w 순서대로 출력
- model.setValue("/root/send/choimealguide/breakgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide1[1]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish1", model.getValue("/root/main/choimealguidedocu/choimealguide3[1]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide1[2]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish2", model.getValue("/root/main/choimealguidedocu/choimealguide3[2]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide1[3]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish3", model.getValue("/root/main/choimealguidedocu/choimealguide3[3]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide1[4]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish4", model.getValue("/root/main/choimealguidedocu/choimealguide3[4]/lunchgnrldish"));
- model.setValue("/root/send/choimealguide/breakgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide1[5]/breakgnrldish"));
- model.setValue("/root/send/choimealguide/lunchgnrldish5", model.getValue("/root/main/choimealguidedocu/choimealguide3[5]/lunchgnrldish"));
- //선택식 조식 - 주식부터 김치까지 순서대로 5개 메뉴 출력
- for (var i = 1; i < 7; i++) {
- if (model.getValue("/root/main/choimealguidedocu/choimealguide2[" + i + "]/breakchoidish") != "") {
- model.setValue("/root/send/choimealguide/breakchoidish"+cnt, model.getValue("/root/main/choimealguidedocu/choimealguide2[" + i + "]/breakchoidish"));
- cnt = cnt +1;
- }
- if (cnt == 6) {
- break;
- }
- }
-
- cnt = 1;
-
- //선택식 중식 - 주식부터 기타5까지 순서대로 6개 메뉴 출력
- for (var i = 1; i < 12; i++) {
- if (model.getValue("/root/main/choimealguidedocu/choimealguide4[" + i + "]/lunchchoidish") != "") {
- model.setValue("/root/send/choimealguide/lunchchoidish"+cnt, model.getValue("/root/main/choimealguidedocu/choimealguide4[" + i + "]/lunchchoidish"));
- cnt = cnt +1;
- }
- if (cnt == 7) {
- break;
- }
- }
-
- exeReportPreview("RPANT00901", "XMLSTR", "/root/send/choimealguide");
- } else { return; }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|