SMANT02300_직원식검식일지.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>직원식검식일지</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <data>
  11. <item>
  12. <mealflag/>
  13. <seq/>
  14. <dishnm/>
  15. </item>
  16. </data>
  17. <appdd>
  18. <appdd1/>
  19. <appdd2/>
  20. <appdd3/>
  21. <appdd4/>
  22. </appdd>
  23. <print>
  24. <dishnm1/>
  25. <dishnm2/>
  26. <dishnm3/>
  27. <dishnm4/>
  28. <dishnm5/>
  29. <dishnm6/>
  30. <dishnm7/>
  31. <dishnm8/>
  32. <dishnm9/>
  33. <dishnm10/>
  34. <dishnm11/>
  35. <dishnm12/>
  36. <dishnm13/>
  37. <dishnm14/>
  38. <dishnm15/>
  39. <dishnm16/>
  40. <dishnm17/>
  41. <dishnm18/>
  42. </print>
  43. </main>
  44. <send>
  45. <searchitem>
  46. <appdd/>
  47. <menuflag/>
  48. </searchitem>
  49. </send>
  50. <send1>
  51. <list>
  52. <prid/>
  53. </list>
  54. </send1>
  55. <init/>
  56. <hidden/>
  57. </root>
  58. </instance>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. finit();
  66. ]]>
  67. </script>
  68. <submission id="TRANT01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/data"/>
  69. <submission id="TRANT01409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/send1"/>
  70. </model>
  71. <script type="javascript">
  72. <![CDATA[
  73. function finit() {
  74. makeReportPreview(5,55,1170,700);
  75. model.resetInstanceNode("/root/main");
  76. model.resetInstanceNode("/root/send");
  77. model.removeNodeset("/root/main/data");
  78. model.setValue("/root/send/searchitem/appdd", getCurrentDate());
  79. model.setValue("/root/send/searchitem/menuflag", 'Q3');
  80. btn_search.dispatch("DOMActivate");
  81. model.refresh();
  82. }
  83. ]]>
  84. </script>
  85. </xhtml:head>
  86. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  87. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  88. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">직원식검식일지</caption>
  89. </group>
  90. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
  91. <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
  92. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; "/>
  93. <caption id="caption3" class="search_name" style="left:25px; top:9px; width:65px; height:17px; ">일자 :</caption>
  94. <line id="line14" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
  95. <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; ">
  96. <script type="javascript" ev:event="xforms-value-changed">
  97. <![CDATA[
  98. btn_search.dispatch("DOMActivate");
  99. ]]>
  100. </script>
  101. </input>
  102. <button id="btn_before" class="icon_pre" style="left:190px; top:12px; width:13px; height:15px; ">
  103. <caption/>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. var ym = model.getValue("/root/send/searchitem/appdd");
  107. ym = ym.toDate().getAddDate(-1, "D");
  108. ym = ym.getDateFormat();
  109. model.setValue("/root/send/searchitem/appdd", ym);
  110. model.refresh();
  111. btn_search.dispatch("DOMActivate");
  112. ]]>
  113. </script>
  114. </button>
  115. <button id="btn_next" class="icon_next" style="left:203px; top:12px; width:13px; height:15px; ">
  116. <caption/>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. var ym = model.getValue("/root/send/searchitem/appdd");
  120. ym = ym.toDate().getAddDate(1, "D");
  121. ym = ym.getDateFormat();
  122. model.setValue("/root/send/searchitem/appdd", ym);
  123. model.refresh();
  124. btn_search.dispatch("DOMActivate");
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1110px; top:7px; width:56px; height:22px; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. model.removeNodeset("/root/main/data/item");
  133. model.resetInstanceNode("/root/main/print");
  134. model.resetInstanceNode("/root/main/appdd");
  135. var appdd = model.getValue("/root/send/searchitem/appdd");
  136. if (isValidDateTime(appdd, "YYYYMMDD") == false) {
  137. messageBox("조회일자의 형식이", "E016");
  138. model.setFocus("ipt_appdd");
  139. return;
  140. }
  141. submit("TRANT01801");
  142. submit("TRANT01409");
  143. var cnt = getNodesetCount("/root/main/data/item");
  144. var seq = 1;
  145. var dishnm = "";
  146. for ( i=1; i<=cnt; i++ ) {
  147. dishnm = model.getValue("/root/main/data/item["+ i +"]/dishnm");
  148. if (dishnm != "" && dishnm != '흰밥') {
  149. model.setValue("/root/main/print/dishnm"+ seq, model.getValue("/root/main/data/item["+ i +"]/dishnm"));
  150. if (i==6) {
  151. seq = 7;
  152. } else if (i==12) {
  153. seq = 13;
  154. } else {
  155. seq = seq + 1;
  156. }
  157. }
  158. }
  159. //월+일 구하기
  160. var dd = parseInt(model.getValue("/root/send1/list/prid"));
  161. if ( appdd.substr(7,1) == '0' ) {
  162. var seqdd = appdd.substr(0,6) + dd;
  163. } else {
  164. var seqdd = appdd.substr(0,6) + '0' + appdd.substr(7,1);
  165. }
  166. for ( i=1; i<=4; i++ ) {
  167. if ( seqdd.substr(0,6) == appdd.substr(0,6) ) {
  168. model.setValue("/root/main/appdd/appdd"+ i, seqdd.substr(4,2)+'월 '+seqdd.substr(6,2)+'일');
  169. } else {
  170. model.setValue("/root/main/appdd/appdd"+ i, "");
  171. }
  172. seqdd = seqdd.toDate("YYYYMMDD").getAddDate(dd, "D");
  173. seqdd = getDateTime(seqdd, 'D');
  174. }
  175. exeReportPreview("RPANT02301", "XMLSTR", "", "", "false","","","","","false", "", "");
  176. ]]>
  177. </script>
  178. </button>
  179. </group>
  180. <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
  181. <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; ">
  182. <col ref="mealflag" style="text-align:center; "/>
  183. <col ref="seq" style="text-align:center; "/>
  184. <col ref="dishnm" style="text-align:left; "/>
  185. </datagrid>
  186. </group>
  187. </xhtml:body>
  188. </xhtml:html>