SMRAR00700_총계정원장.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <maindatalist>
  11. <acntcd/>
  12. <acntnm/>
  13. <frdate/>
  14. <todate/>
  15. <ymdwrite/>
  16. <rmrk/>
  17. <inamt/>
  18. <outamt/>
  19. <janamt/>
  20. </maindatalist>
  21. </main>
  22. <send>
  23. <params>
  24. <instcd/>
  25. <frdate/>
  26. <todate/>
  27. <fracntcd/>
  28. <fracntnm/>
  29. <toacntcd/>
  30. <toacntnm/>
  31. <acntclsflag>1</acntclsflag>
  32. </params>
  33. </send>
  34. </root>
  35. </instance>
  36. <submission id="TRRAR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/maindatalist"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  43. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. makeReportPreview(0,110,1195,650);
  47. model.removenode( "/root/main/maindatalist");
  48. var dt = new Date();
  49. var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
  50. ipt_frdate1.value = getCurrentDate().substr(0, 6) + "01";
  51. ipt_todate1.value = getCurrentDate().substr(0, 6) + lastdt.getDate();
  52. model.setValue("/root/send/params/instcd", getUserInfo("dutplceinstcd"));
  53. model.setFocus("ipt_fracntcd");
  54. model.refresh();
  55. ]]>
  56. </script>
  57. <script type="javascript">
  58. <![CDATA[
  59. function fCheckAcntCdNull()
  60. {
  61. var bRet = true;
  62. if(model.getValue("/root/send/params/fracntcd") == "" && model.getValue("/root/send/params/toacntcd") == "") {
  63. messageBox("선택된 계정과목이 ", "I004");
  64. return false;
  65. }
  66. if(model.getValue("/root/send/params/fracntcd") != "" && model.getValue("/root/send/params/toacntcd") == "") {
  67. model.setValue("/root/send/params/toacntcd", model.getValue("/root/send/params/fracntcd"));
  68. model.setValue("/root/send/params/toacntnm", model.getValue("/root/send/params/fracntnm"));
  69. }else if(model.getValue("/root/send/params/fracntcd") == "" && model.getValue("/root/send/params/toacntcd") != ""){
  70. model.setValue("/root/send/params/fracntcd", model.getValue("/root/send/params/toacntcd"));
  71. model.setValue("/root/send/params/fracntnm", model.getValue("/root/send/params/toacntnm"));
  72. }
  73. return bRet;
  74. }
  75. //========================================================================================
  76. //코드 Validation Check
  77. //========================================================================================
  78. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  79. {
  80. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  81. {
  82. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  83. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  84. model.refresh();
  85. if (pNextIndex != "") {
  86. model.setFocus(pNextIndex);
  87. }
  88. }
  89. }
  90. ]]>
  91. </script>
  92. </xhtml:head>
  93. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  94. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">총계정원장</caption>
  96. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  97. </group>
  98. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  99. <group id="group4" style="left:0px; top:5px; width:1195px; height:60px; vertical-align:top; ">
  100. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  101. <caption id="caption24" class="search_name" visibility="hidden" style="left:425px; top:35px; width:86px; height:17px; ">(class)</caption>
  102. <line id="line30" class="line_4" style="x1:1109px; y1:3px; x2:1109px; y2:58px; background-color:transparent; border-color:transparent; "/>
  103. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1125px; top:17px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. if(!fCheckAcntCdNull())
  108. {
  109. return;
  110. }
  111. if (submit("TRRAR00701") ){
  112. exeReportPreview("SMRAR00701", "XMLSTR");//, "/root/main/payamt");
  113. }
  114. ]]>
  115. </script>
  116. </button>
  117. <select1 id="cmb_acntclsflag" ref="/root/send/params/acntclsflag" class="combo_s_essential" appearance="minimal" style="left:445px; top:34px; width:63px; height:19px; ">
  118. <choices>
  119. <item>
  120. <label>대분류</label>
  121. <value>4</value>
  122. </item>
  123. <item>
  124. <label>관</label>
  125. <value>3</value>
  126. </item>
  127. <item>
  128. <label>항</label>
  129. <value>2</value>
  130. </item>
  131. <item>
  132. <label>목</label>
  133. <value>1</value>
  134. </item>
  135. <item>
  136. <label>세목</label>
  137. <value>0</value>
  138. </item>
  139. </choices>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. model.setValue("/root/send/params/fracntcd", "");
  143. model.setValue("/root/send/params/fracntnm", "");
  144. model.setValue("/root/send/params/toacntcd", "");
  145. model.setValue("/root/send/params/toacntnm", "");
  146. model.refresh();
  147. ]]>
  148. </script>
  149. </select1>
  150. <button id="btn_toacnthelp2" class="icon_search" style="left:596px; top:34px; width:16px; height:16px; ">
  151. <caption/>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. misfOpenPopUpList("05", ipt_fracntcd, "", "toacntcd,toacntnm", "cmb_acntclsflag", "acntclsflag");
  155. model.refresh();
  156. ]]>
  157. </script>
  158. </button>
  159. <button id="btn_fracnthelp2" class="icon_search" style="left:596px; top:10px; width:16px; height:16px; ">
  160. <caption/>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. misfOpenPopUpList("05", ipt_fracntcd, "", "fracntcd,fracntnm", "cmb_acntclsflag", "acntclsflag");
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </button>
  168. <input id="ipt_fracntcd" ref="/root/send/params/fracntcd" class="input_s_essential" navindex="4" style="left:517px; top:10px; width:75px; height:19px; ">
  169. <script type="javascript" ev:event="onkeypress">
  170. <![CDATA[
  171. if(event.keyCode == 13)
  172. {
  173. model.setFocus("btn_search");
  174. }
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  180. ]]>
  181. </script>
  182. </input>
  183. <caption id="caption28" class="search_name" style="left:425px; top:10px; width:90px; height:17px; ">계정과목 :</caption>
  184. <input id="ipt_toacntcd" ref="/root/send/params/toacntcd" class="input_s_essential" navindex="6" style="left:517px; top:34px; width:75px; height:19px; ">
  185. <script type="javascript" ev:event="onkeypress">
  186. <![CDATA[
  187. if(event.keyCode == 13)
  188. {
  189. model.setFocus("btn_search");
  190. }
  191. ]]>
  192. </script>
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  196. ]]>
  197. </script>
  198. </input>
  199. <input id="ipt_fracntnm" ref="/root/send/params/fracntnm" class="input_s_essential" navindex="5" style="left:614px; top:10px; width:176px; height:19px; ">
  200. <script type="javascript" ev:event="onkeypress">
  201. <![CDATA[
  202. if(event.keyCode == 13)
  203. {
  204. model.setFocus("btn_search");
  205. }
  206. ]]>
  207. </script>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  211. ]]>
  212. </script>
  213. </input>
  214. <input id="ipt_toacntnm" ref="/root/send/params/toacntnm" class="input_s_essential" navindex="7" style="left:614px; top:34px; width:176px; height:19px; ">
  215. <script type="javascript" ev:event="onkeypress">
  216. <![CDATA[
  217. if(event.keyCode == 13)
  218. {
  219. model.setFocus("btn_search");
  220. }
  221. ]]>
  222. </script>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  226. ]]>
  227. </script>
  228. </input>
  229. <caption id="caption2" class="search_name" style="left:12px; top:10px; width:86px; height:17px; ">기 간 :</caption>
  230. <input id="ipt_frdate1" ref="/root/send/params/frdate" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:10px; width:100px; height:19px; "/>
  231. <caption id="caption1" style="left:203px; top:12px; width:15px; height:15px; ">~</caption>
  232. <input id="ipt_todate1" ref="/root/send/params/todate" class="input_s_essential" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:214px; top:10px; width:101px; height:19px; "/>
  233. </group>
  234. <line id="line193" class="line_1" style="x1:2px; y1:86px; x2:1192px; y2:86px; "/>
  235. <caption id="caption7" class="tit_2" style="left:5px; top:73px; width:260px; height:14px; ">총계정원장</caption>
  236. <datagrid id="datagrid1" nodeset="/root/main/maindatalist" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:60px; top:145px; width:975px; height:50px; ">
  237. <col ref="acntcd"/>
  238. <col ref="acntnm"/>
  239. <col ref="frdate"/>
  240. <col ref="todate"/>
  241. <col ref="ymdwrite"/>
  242. <col ref="rmrk"/>
  243. <col ref="inamt"/>
  244. <col ref="outamt"/>
  245. <col ref="janamt"/>
  246. </datagrid>
  247. <button id="button3" class="btn2_letter4" style="left:1035px; top:40px; width:64px; height:19px; text-align:left; ">
  248. <caption>엑셀출력</caption>
  249. <script type="javascript" ev:event="onclick">
  250. <![CDATA[
  251. //radfSaveExcel(ipt_detailist);
  252. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  253. datagrid1.saveExcel(fileName,"SheetName:sheet1");
  254. ]]>
  255. </script>
  256. </button>
  257. </group>
  258. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; "/>
  259. </xhtml:body>
  260. </xhtml:html>