123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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>
- <item>
- <mealflag/>
- <seq/>
- <dishnm/>
- </item>
- </data>
- <appdd>
- <appdd1/>
- <appdd2/>
- <appdd3/>
- <appdd4/>
- </appdd>
- <print>
- <dishnm1/>
- <dishnm2/>
- <dishnm3/>
- <dishnm4/>
- <dishnm5/>
- <dishnm6/>
- <dishnm7/>
- <dishnm8/>
- <dishnm9/>
- <dishnm10/>
- <dishnm11/>
- <dishnm12/>
- <dishnm13/>
- <dishnm14/>
- <dishnm15/>
- </print>
- </main>
- <send>
- <searchitem>
- <appdd/>
- <menuflag/>
- </searchitem>
- </send>
- <send1>
- <list>
- <prid/>
- </list>
- </send1>
- <init/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- ]]>
- </script>
- <submission id="TRANT01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/data"/>
- <submission id="TRANT01409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/send1"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function finit() {
- makeReportPreview(5,55,1170,700);
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/data");
- model.setValue("/root/send/searchitem/appdd", getCurrentDate());
- model.setValue("/root/send/searchitem/menuflag", 'Q1');
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" 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:200px; height:14px; ">환자식검식일지</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
- <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; "/>
- <caption id="caption3" class="search_name" style="left:25px; top:9px; width:65px; height:17px; ">일자 :</caption>
- <line id="line14" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
- <input id="ipt_appdd" ref="/root/send/searchitem/appdd" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:9px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_before" class="icon_pre" style="left:190px; top:12px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ym = model.getValue("/root/send/searchitem/appdd");
- ym = ym.toDate().getAddDate(-1, "D");
- ym = ym.getDateFormat();
- model.setValue("/root/send/searchitem/appdd", ym);
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_next" style="left:203px; top:12px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ym = model.getValue("/root/send/searchitem/appdd");
- ym = ym.toDate().getAddDate(1, "D");
- ym = ym.getDateFormat();
- model.setValue("/root/send/searchitem/appdd", ym);
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1110px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/data/item");
- model.resetInstanceNode("/root/main/appdd");
- var appdd = model.getValue("/root/send/searchitem/appdd");
-
- if (isValidDateTime(appdd, "YYYYMMDD") == false) {
- messageBox("조회일자의 형식이", "E016");
- model.setFocus("ipt_appdd");
- return;
- }
-
- submit("TRANT01801");
- submit("TRANT01409");
-
- var cnt = getNodesetCount("/root/main/data/item");
-
- var seq = 1;
- var dishnm = "";
- for ( i=1; i<=cnt; i++ ) {
- dishnm = model.getValue("/root/main/data/item["+ i +"]/dishnm");
- if (dishnm != "" && dishnm != '흰밥') {
- model.setValue("/root/main/print/dishnm"+ seq, model.getValue("/root/main/data/item["+ i +"]/dishnm"));
- if (i==5) {
- seq = 6;
- } else if (i==10) {
- seq = 11;
- } else {
- seq = seq + 1;
- }
- }
- }
-
- //월+일 구하기
- var dd = parseInt(model.getValue("/root/send1/list/prid"));
- var sdd = appdd.substr(6,2);
- /*
- if ( appdd.substr(7,1) == '0' ) {
- var seqdd = appdd.substr(0,6) + dd;
- } else {
- var seqdd = appdd.substr(0,6) + '0' + appdd.substr(7,1);
- }
- */
- var seqdd = "";
- if (sdd > dd){
- var scnt = parseInt(sdd) - parseInt(dd);
- if (scnt > dd){
- scnt = parseInt(scnt) - parseInt(dd);
- }
- if (scnt < 10){
- seqdd = appdd.substr(0,6) + '0' + scnt;
- }else{
- seqdd = appdd.substr(0,6) + scnt;
- }
- }else{
- seqdd = appdd.substr(0,6) + sdd;
- }
- for ( i=1; i<=4; i++ ) {
- if ( seqdd.substr(0,6) == appdd.substr(0,6) ) {
- model.setValue("/root/main/appdd/appdd"+ i, seqdd.substr(4,2)+'월 '+seqdd.substr(6,2)+'일');
- } else {
- model.setValue("/root/main/appdd/appdd"+ i, "");
- }
- seqdd = seqdd.toDate("YYYYMMDD").getAddDate(dd, "D");
- seqdd = getDateTime(seqdd, 'D');
- }
-
- exeReportPreview("RPANT01801", "XMLSTR", "", "", "false","","","","","false", "", "");
- ]]>
- </script>
- </button>
- </group>
- <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
- <datagrid id="grd_data" nodeset="/root/main/data/item" autoresize="true" caption="끼니^순번^식단명" colsep="^" colwidth="50, 50, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:55px; width:1180px; height:700px; ">
- <col ref="mealflag" style="text-align:center; "/>
- <col ref="seq" style="text-align:center; "/>
- <col ref="dishnm" style="text-align:left; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|