SMRAD00710_계정별잔액조회.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. <acntbalancesheet/>
  11. </main>
  12. <send>
  13. <params>
  14. <instcd/>
  15. <frdate/>
  16. <todate/>
  17. <acntcd/>
  18. <acntnm/>
  19. <acntclsflag>1</acntclsflag>
  20. </params>
  21. </send>
  22. <init/>
  23. <temp/>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <submission id="TRRAD00711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/acntbalancesheet"/>
  28. </model>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  32. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  34. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. model.removeNodeset("/root/main/acntbalancesheet");
  38. fSetDayMonthDate();
  39. model.setValue("/root/send/params/instcd", getUserInfo("dutplceinstcd"));
  40. model.setFocus("ipt_acntcd");
  41. model.refresh();
  42. ]]>
  43. </script>
  44. <script type="javascript">
  45. <![CDATA[
  46. function fSetDayMonthDate()
  47. {
  48. var dt = new Date();
  49. var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
  50. ipt_todate.value = getCurrentDate().substr(0, 6) + lastdt.getDate();
  51. fSetFromDD();
  52. }
  53. function fSetFromDD()
  54. {
  55. var vAcntYY = radfgetAcntYY(getUserInfo("dutplceinstcd"), ipt_todate.value);
  56. if(vAcntYY == "")
  57. {
  58. messageBox("기수관리에 회계년도가 등록되어 있지 않습니다." ,"I000");
  59. ipt_todate.value = "";
  60. }
  61. else
  62. {
  63. ipt_frdate.value = vAcntYY + "0301";
  64. }
  65. }
  66. function fRetrieve()
  67. {
  68. if(!fCheckAcntCdNull()) return;
  69. submit("TRRAD00711");
  70. fSetRowColor(grd_acntbalancesheet);
  71. }
  72. function fCheckAcntCdNull()
  73. {
  74. var bRet = true;
  75. if(model.getValue("/root/send/params/acntcd") == "")
  76. {
  77. messageBox("선택된 계정과목이 ", "I004");
  78. return false;
  79. }
  80. return bRet;
  81. }
  82. function fSetRowColor(pGrid)
  83. {
  84. var iCnt = 0;
  85. for(var i=0; i<pGrid.rows;i++)
  86. {
  87. if(pGrid.valueMatrix(i, pGrid.colRef("dflag")) == "1")
  88. {
  89. pGrid.rowStyle(i, "all", "background-color") = "#ccffff";
  90. }
  91. else if(pGrid.valueMatrix(i, pGrid.colRef("dflag")) == "3")
  92. {
  93. pGrid.rowStyle(i, "all", "background-color") = "#ffccff";
  94. }
  95. }
  96. }
  97. //========================================================================================
  98. //코드 Validation Check
  99. //========================================================================================
  100. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  101. {
  102. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  103. {
  104. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  105. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  106. model.refresh();
  107. if (pNextIndex != "")
  108. {
  109. model.setFocus(pNextIndex);
  110. }
  111. }
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">계정별 잔액 명세서</caption>
  119. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  120. </group>
  121. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  122. <group id="group4" style="left:0px; top:5px; width:1195px; height:35px; vertical-align:top; ">
  123. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <line id="line30" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:30px; background-color:transparent; border-color:transparent; "/>
  125. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1125px; top:6px; width:56px; height:22px; ">
  126. <caption>조회</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. fRetrieve();
  130. ]]>
  131. </script>
  132. </button>
  133. <select1 id="cmb_acntclsflag" ref="/root/send/params/acntclsflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:405px; top:9px; width:63px; height:19px; ">
  134. <choices>
  135. <item>
  136. <label>대분류</label>
  137. <value>4</value>
  138. </item>
  139. <item>
  140. <label>관</label>
  141. <value>3</value>
  142. </item>
  143. <item>
  144. <label>항</label>
  145. <value>2</value>
  146. </item>
  147. <item>
  148. <label>목</label>
  149. <value>1</value>
  150. </item>
  151. <item>
  152. <label>세목</label>
  153. <value>0</value>
  154. </item>
  155. </choices>
  156. </select1>
  157. <button id="btn_fracnthelp2" class="icon_search" style="left:201px; top:9px; width:16px; height:16px; ">
  158. <caption/>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. misfOpenPopUpList("05", ipt_acntcd, "", "acntcd,acntnm", "cmb_acntclsflag", "acntclsflag");
  162. model.refresh();
  163. ]]>
  164. </script>
  165. </button>
  166. <input id="ipt_acntcd" ref="/root/send/params/acntcd" class="input_s_essential" navindex="4" style="left:122px; top:9px; width:75px; height:19px; ">
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. if(event.keyCode == 13)
  170. {
  171. model.setFocus("btn_search");
  172. }
  173. ]]>
  174. </script>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. fValidationCheck("05", "acntcd,acntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  178. ]]>
  179. </script>
  180. </input>
  181. <caption id="caption28" class="search_name" style="left:30px; top:9px; width:90px; height:17px; ">계정과목 :</caption>
  182. <input id="ipt_acntnm" ref="/root/send/params/acntnm" class="input_s_essential" navindex="5" style="left:219px; top:9px; width:176px; height:19px; ">
  183. <script type="javascript" ev:event="onkeypress">
  184. <![CDATA[
  185. if(event.keyCode == 13)
  186. {
  187. model.setFocus("btn_search");
  188. }
  189. ]]>
  190. </script>
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. fValidationCheck("05", "acntcd,acntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  194. ]]>
  195. </script>
  196. </input>
  197. <input id="ipt_todate" ref="/root/send/params/todate" class="input_s_essential" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:747px; top:9px; width:101px; height:19px; "/>
  198. <caption id="caption2" class="search_name" style="left:530px; top:9px; width:86px; height:17px; ">기 간 :</caption>
  199. <input id="ipt_frdate" ref="/root/send/params/frdate" class="input_s_essential" disabled="false" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:620px; top:9px; width:100px; height:19px; "/>
  200. <caption id="cpt_slip" visibility="visible" style="left:726px; top:10px; width:15px; height:20px; ">~</caption>
  201. </group>
  202. <datagrid id="grd_acntbalancesheet" nodeset="/root/main/acntbalancesheet" backcoloralternate="#ffffff" caption="구분^기관코드^계정코드^계정과목^전일누계^차변^대변^당기잔액^잔액" colsep="^" colwidth="0, 0, 120, 330, 150, 150, 150, 0, 150" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:65px; width:1193px; height:677px; ">
  203. <col ref="dflag" visibility="hidden"/>
  204. <col ref="instcd" visibility="hidden"/>
  205. <col ref="acntcd"/>
  206. <col ref="acntnm" style="padding-left:10; "/>
  207. <col class="text_right" ref="transamt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  208. <col class="text_right" ref="dramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  209. <col class="text_right" ref="cramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  210. <col class="text_right" ref="balamt" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  211. <col class="text_right" ref="sumbalamt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  212. </datagrid>
  213. <button id="button6" class="btn2_letter4" style="left:1126px; top:43px; width:64px; height:19px; text-align:left; ">
  214. <caption>엑셀출력</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. //radfSaveExcel(grd_acntbalancesheet);
  218. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  219. grd_acntbalancesheet.saveExcel(fileName,"SheetName:sheet1");
  220. ]]>
  221. </script>
  222. </button>
  223. </group>
  224. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  225. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  226. <button id="button8" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  227. <caption>출력</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. ]]>
  231. </script>
  232. </button>
  233. </group>
  234. </xhtml:body>
  235. </xhtml:html>