SMRAD00500_일월계표.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. <day>
  11. <dayrept/>
  12. </day>
  13. <month>
  14. <monthrept/>
  15. </month>
  16. <date>
  17. <daydate>
  18. <frdate/>
  19. <todate/>
  20. </daydate>
  21. <month>
  22. <frdate/>
  23. <todate/>
  24. </month>
  25. </date>
  26. <apln>
  27. <approval11/>
  28. <approval12/>
  29. <approval13/>
  30. <approval14/>
  31. <approval15/>
  32. <approval16/>
  33. <approval21/>
  34. <approval22/>
  35. <approval23/>
  36. <approval24/>
  37. <approval25/>
  38. <approval26/>
  39. <arbitrary1/>
  40. <arbitrary2/>
  41. <arbitrary3/>
  42. <arbitrary4/>
  43. <arbitrary5/>
  44. <arbitrary6/>
  45. <iudflag/>
  46. <instcd/>
  47. <deptcd/>
  48. <expansion/>
  49. </apln>
  50. </main>
  51. <send>
  52. <params>
  53. <frdate/>
  54. <todate/>
  55. <prntflag/>
  56. <cashacntcd/>
  57. <acntclsflag/>
  58. <termflag>day</termflag>
  59. </params>
  60. <retrmngt>
  61. <mngtcd>cashcd</mngtcd>
  62. <instcd/>
  63. </retrmngt>
  64. <test/>
  65. <retrparams>
  66. <instnm/>
  67. <selectedIndex/>
  68. <frdate/>
  69. <todate/>
  70. <usernm/>
  71. <approval21/>
  72. <approval22/>
  73. <approval23/>
  74. <approval24/>
  75. <approval25/>
  76. <approval26/>
  77. <arbitrary1/>
  78. <arbitrary2/>
  79. <arbitrary3/>
  80. <arbitrary4/>
  81. <arbitrary5/>
  82. <arbitrary6/>
  83. <expansion/>
  84. </retrparams>
  85. <prntlist>
  86. <gridlist/>
  87. </prntlist>
  88. <retrparam>
  89. <instcd/>
  90. <deptcd/>
  91. <aplnflag>1</aplnflag>
  92. </retrparam>
  93. </send>
  94. <init>
  95. <acntclsflag>
  96. <cd>1</cd>
  97. <nm>목 단위</nm>
  98. </acntclsflag>
  99. <acntclsflag>
  100. <cd>0</cd>
  101. <nm>세목 단위</nm>
  102. </acntclsflag>
  103. <prntflag>
  104. <cd>Y</cd>
  105. <nm>전체</nm>
  106. </prntflag>
  107. <prntflag>
  108. <cd>N</cd>
  109. <nm>지정</nm>
  110. </prntflag>
  111. </init>
  112. <temp/>
  113. </root>
  114. </instance>
  115. <submission id="TRRAD00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/day"/>
  116. <submission id="TRRAD00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/month"/>
  117. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrmngt" resultref="/root/temp"/>
  118. <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/apln"/>
  119. </model>
  120. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  123. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  124. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  125. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  126. <script type="javascript" ev:event="xforms-ready">
  127. <![CDATA[
  128. model.setValue("/root/send/retrmngt/instcd", getUserInfo("dutplceinstcd"));
  129. model.removenode("/root/main/day/dayrept");
  130. model.removenode("/root/main/month/monthrept");
  131. fSetDayMonthDate();
  132. rdo_acntclsflag.value = '0';
  133. rdo_prntflag.value = 'Y';
  134. submit("TRRAZ00001");
  135. model.setValue("/root/send/params/cashacntcd", model.getValue("/root/code/codelist/cdid"));
  136. btn_showdayrept.dispatch("DOMActivated");
  137. misfMsterDetailSet(grd_dayrept, null, "TRRAD00501", "N");
  138. model.setValue("/root/send/retrparams/usernm", getUserInfo("usernm"));
  139. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  140. model.setValue("/root/send/retrparam/deptcd", getUserInfo("dutplcecd"));
  141. submit("TRRAD00151");
  142. model.setValue("/root/send/retrparams/approval21", model.getValue("/root/main/apln/approval21"));
  143. model.setValue("/root/send/retrparams/approval22", model.getValue("/root/main/apln/approval22"));
  144. model.setValue("/root/send/retrparams/approval23", model.getValue("/root/main/apln/approval23"));
  145. model.setValue("/root/send/retrparams/approval24", model.getValue("/root/main/apln/approval24"));
  146. model.setValue("/root/send/retrparams/approval25", model.getValue("/root/main/apln/approval25"));
  147. model.setValue("/root/send/retrparams/approval26", model.getValue("/root/main/apln/approval26"));
  148. model.setValue("/root/send/retrparams/arbitrary1", model.getValue("/root/main/apln/arbitrary1"));
  149. model.setValue("/root/send/retrparams/arbitrary2", model.getValue("/root/main/apln/arbitrary2"));
  150. model.setValue("/root/send/retrparams/arbitrary3", model.getValue("/root/main/apln/arbitrary3"));
  151. model.setValue("/root/send/retrparams/arbitrary4", model.getValue("/root/main/apln/arbitrary4"));
  152. model.setValue("/root/send/retrparams/arbitrary5", model.getValue("/root/main/apln/arbitrary5"));
  153. model.setValue("/root/send/retrparams/arbitrary6", model.getValue("/root/main/apln/arbitrary6"));
  154. var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
  155. model.setValue("/root/send/retrparams/expansion", expansion);
  156. model.refresh();
  157. ]]>
  158. </script>
  159. <script type="javascript">
  160. <![CDATA[
  161. function fSetDayMonthDate()
  162. {
  163. ipt_frdate1.value = getCurrentDate();
  164. ipt_todate1.value = getCurrentDate();
  165. ipt_frdate2.value = getCurrentDate().substr(0, 6);
  166. ipt_todate2.value = getCurrentDate().substr(0, 6);
  167. }
  168. function fSetDayMonthReptParams()
  169. {
  170. if(sw_grid.selectedIndex == 0)
  171. {
  172. if(model.getValue(ipt_todate1.attribute("ref")) == "")
  173. {
  174. model.setValue(ipt_todate1.attribute("ref"), model.getValue(ipt_frdate1.attribute("ref")));
  175. }
  176. model.setValue("/root/send/params/frdate", model.getValue("/root/main/date/daydate/frdate"));
  177. model.setValue("/root/send/params/todate", model.getValue("/root/main/date/daydate/todate"));
  178. }
  179. else if(sw_grid.selectedIndex == 1)
  180. {
  181. if(model.getValue(ipt_todate2.attribute("ref")) == "")
  182. {
  183. model.setValue(ipt_todate2.attribute("ref"), model.getValue(ipt_frdate2.attribute("ref")));
  184. }
  185. var dt = new Date(model.getValue("/root/main/date/month/todate").substr(0, 4), model.getValue("/root/main/date/month/todate").substr(4, 2), 0);
  186. model.setValue("/root/send/params/frdate", model.getValue("/root/main/date/month/frdate") + "01");
  187. model.setValue("/root/send/params/todate", model.getValue("/root/main/date/month/todate") + dt.getDate());
  188. }
  189. }
  190. ]]>
  191. </script>
  192. </xhtml:head>
  193. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  194. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  195. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">일/월계표</caption>
  196. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  197. </group>
  198. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  199. <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  200. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  201. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  202. <caption>조회</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. fSetDayMonthReptParams();
  206. if(sw_grid.selectedIndex == 0)
  207. {
  208. submit("TRRAD00501");
  209. }
  210. else if(sw_grid.selectedIndex == 1)
  211. {
  212. submit("TRRAD00502");
  213. }
  214. // misfMsterDetailRetrieve();
  215. ]]>
  216. </script>
  217. </button>
  218. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  219. <caption id="caption1" class="search_name" style="left:354px; top:10px; width:96px; height:17px; ">출력구분 :</caption>
  220. <switch id="sw_params" style="left:4px; top:3px; width:321px; height:30px; background-color:transparent; border-color:transparent; ">
  221. <case id="cs_dayrept" selected="true" style="left:0px; top:0px; width:338px; height:28px; background-color:#fffbf2; border-color:#ffd799; ">
  222. <caption id="caption2" class="search_name" style="left:12px; top:5px; width:86px; height:17px; ">기 간 :</caption>
  223. <caption id="caption3" style="left:203px; top:6px; width:15px; height:20px; ">~</caption>
  224. <input id="ipt_frdate1" ref="/root/main/date/daydate/frdate" class="input_s_essential" inputtype="date" style="left:102px; top:5px; width:100px; height:19px; "/>
  225. <input id="ipt_todate1" ref="/root/main/date/daydate/todate" class="input_s_essential" inputtype="date" style="left:214px; top:5px; width:100px; height:19px; "/>
  226. </case>
  227. <case id="cs_monthrept" navindex="0" style="left:0px; top:0px; width:338px; height:28px; background-color:#fffbf2; border-color:#ffd799; ">
  228. <caption id="caption5" class="search_name" style="left:12px; top:5px; width:86px; height:17px; ">기 간 :</caption>
  229. <caption id="caption7" style="left:203px; top:6px; width:15px; height:20px; ">~</caption>
  230. <input id="ipt_frdate2" ref="/root/main/date/month/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:102px; top:5px; width:100px; height:19px; "/>
  231. <input id="ipt_todate2" ref="/root/main/date/month/todate" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:214px; top:5px; width:100px; height:19px; "/>
  232. </case>
  233. </switch>
  234. <select1 id="rdo_acntclsflag" ref="/root/send/params/acntclsflag" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:915px; top:8px; width:175px; height:20px; vertical-align:middle; border-style:none; ">
  235. <choices>
  236. <itemset nodeset="/root/init/acntclsflag">
  237. <label ref="nm"/>
  238. <value ref="cd"/>
  239. </itemset>
  240. </choices>
  241. </select1>
  242. <caption id="cap_8" class="search_name" style="left:825px; top:9px; width:86px; height:17px; ">구 분 :</caption>
  243. <select1 id="rdo_prntflag" ref="/root/send/params/prntflag" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:450px; top:8px; width:175px; height:20px; vertical-align:middle; border-style:none; ">
  244. <choices>
  245. <itemset nodeset="/root/init/prntflag">
  246. <label ref="nm"/>
  247. <value ref="cd"/>
  248. </itemset>
  249. </choices>
  250. </select1>
  251. </group>
  252. <case id="case2" selected="true">
  253. <caption id="caption2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
  254. </case>
  255. <button id="btn_showdayrept" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:60px; height:22px; ">
  256. <caption>일계표</caption>
  257. <toggle case="case_dayrept" ev:event="onclick"/>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. sw_params.selectedIndex = 0;
  261. model.setValue("/root/send/params/termflag", "day");
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="btn_showmonthrept" class="btn_sw" group="tab" style="left:60px; top:49px; width:62px; height:22px; ">
  266. <caption>월계표</caption>
  267. <toggle case="case_monthrept" ev:event="onclick"/>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. sw_params.selectedIndex = 1;
  271. model.setValue("/root/send/params/termflag", "month");
  272. ]]>
  273. </script>
  274. </button>
  275. <switch id="sw_grid" class="sw_box" style="left:0px; top:70px; width:1195px; height:669px; border-style:solid; ">
  276. <case id="case_dayrept" selected="true">
  277. <caption id="caption21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">일계표</caption>
  278. <datagrid id="grd_dayrept" nodeset="/root/main/day/dayrept" caption="차변^차변^차변^계정과목^대변^대변^대변|계^대체^현금^계정과목^현금^대체^계" colsep="^" colwidth="147, 147, 147, 260, 147, 147, 147, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:637px; ">
  279. <col ref="dtotal" format="(-)#,###" style="text-align:right; "/>
  280. <col ref="rdramt" format="(-)#,###" style="text-align:right; "/>
  281. <col ref="cdramt" format="(-)#,###" style="text-align:right; "/>
  282. <col ref="abbrnm" style="text-align:left; padding-left:30; "/>
  283. <col ref="ccramt" format="(-)#,###" style="text-align:right; "/>
  284. <col ref="rcramt" format="(-)#,###" style="text-align:right; "/>
  285. <col ref="ctotal" format="(-)#,###" style="text-align:right; "/>
  286. <col ref="upaccd"/>
  287. <col ref="acntgb"/>
  288. <col ref="sumgbn"/>
  289. </datagrid>
  290. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  291. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:4px; width:64px; height:19px; text-align:left; ">
  292. <caption>엑셀출력</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. misfSaveExcel(grd_dayrept);
  296. ]]>
  297. </script>
  298. </button>
  299. </case>
  300. <case id="case_monthrept">
  301. <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">월계표</caption>
  302. <datagrid id="grd_monthrept" nodeset="/root/main/month/monthrept" caption="차변^차변^차변^계정과목^대변^대변^대변|계^대체^현금^계정과목^현금^대체^계" colsep="^" colwidth="147, 147, 147, 260, 147, 147, 147, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:637px; ">
  303. <col ref="dtotal" format="(-)#,###" style="text-align:right; "/>
  304. <col ref="rdramt" format="(-)#,###" style="text-align:right; "/>
  305. <col ref="cdramt" format="(-)#,###" style="text-align:right; "/>
  306. <col ref="abbrnm" style="text-align:left; "/>
  307. <col ref="ccramt" format="(-)#,###" style="text-align:right; "/>
  308. <col ref="rcramt" format="(-)#,###" style="text-align:right; "/>
  309. <col ref="ctotal" format="(-)#,###" style="text-align:right; "/>
  310. <col ref="upaccd"/>
  311. <col ref="acntgb"/>
  312. <col ref="sumgbn"/>
  313. </datagrid>
  314. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  315. <button id="btn_excel2" class="btn2_letter4" style="left:1126px; top:4px; width:64px; height:19px; text-align:left; ">
  316. <caption>엑셀출력</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. misfSaveExcel(grd_monthrept);
  320. ]]>
  321. </script>
  322. </button>
  323. </case>
  324. </switch>
  325. </group>
  326. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  327. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  328. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  329. <caption>출력</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. if(sw_grid.selectedIndex == 0)
  333. {
  334. if(grd_dayrept.rows == grd_dayrept.fixedRows)
  335. {
  336. messageBox("출력할 내용이" ,"I004");
  337. return;
  338. }
  339. model.setValue("/root/send/retrparams/frdate", ipt_frdate1.value);
  340. model.setValue("/root/send/retrparams/todate", ipt_todate1.value);
  341. for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/day/dayrept").length ; i++)
  342. {
  343. model.makeNode("/root/send/prntlist/gridlist[" + i + "]");
  344. model.copyNode("/root/send/prntlist/gridlist[" + i + "]", "/root/main/day/dayrept[" + i + "]");
  345. }
  346. }
  347. else
  348. {
  349. if(grd_monthrept.rows == grd_monthrept.fixedRows)
  350. {
  351. messageBox("출력할 내용이" ,"I004");
  352. return;
  353. }
  354. model.setValue("/root/send/retrparams/frdate", ipt_frdate2.value);
  355. model.setValue("/root/send/retrparams/todate", ipt_todate2.value);
  356. for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/month/monthrept").length ; i++)
  357. {
  358. model.makeNode("/root/send/prntlist/gridlist[" + i + "]");
  359. model.copyNode("/root/send/prntlist/gridlist[" + i + "]", "/root/main/month/monthrept[" + i + "]");
  360. }
  361. }
  362. model.setValue("/root/send/retrparams/instnm", getUserInfo("dutplceinstnm"));
  363. model.setValue("/root/send/retrparams/selectedIndex", sw_grid.selectedIndex);
  364. exeReportPreview("RPRAD00501", "XMLSTR", "/root/send/retrparams");
  365. model.removeNodeset("/root/send/prntlist/gridlist");
  366. ]]>
  367. </script>
  368. </button>
  369. </group>
  370. </xhtml:body>
  371. </xhtml:html>