SPRAC00501_재무제표출력순서입력목록.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. <list>
  11. <insertacntlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <prntkind/>
  17. <refcond>remove</refcond>
  18. <acntflag/>
  19. </send>
  20. <init>
  21. <refcond>
  22. <label>중복제거</label>
  23. <value>remove</value>
  24. <label>전체</label>
  25. <value/>
  26. </refcond>
  27. </init>
  28. <target>
  29. <instcd/>
  30. <prntkind/>
  31. </target>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fInit();
  37. ]]>
  38. </script>
  39. <submission id="TRRAC00511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function fInit()
  48. {
  49. rdo_refcond.select(0);
  50. model.removenode("/root/main/list/insertacntlist");
  51. model.setValue("/root/send/instcd", model.getValue("/root/target/instcd"));
  52. model.setValue("/root/send/prntkind", model.getValue("/root/target/prntkind"));
  53. model.refresh();
  54. }
  55. function fAcntSelect()
  56. {
  57. if (checkOpener())
  58. {
  59. var vInstcd = "";
  60. var vAcntcd = "";
  61. var vAcntnm = "";
  62. var vOption1 = 0;
  63. var seq = "";
  64. for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows ; i++)
  65. {
  66. //alert(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")));
  67. if(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) == "Y")
  68. {
  69. vInstcd = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("instcd"));
  70. vAcntcd = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("acntcd"));
  71. vAcntnm = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("acntnm"));
  72. //alert(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")));
  73. for(var j = opener.grd_acntcdprntlist.fixedRows ; j < opener.grd_acntcdprntlist.rows ; j++)
  74. {
  75. //alert(parseInt(vAcntcd) + ' ' + parseInt(opener.grd_acntcdprntlist.valueMatrix(i, opener.grd_acntcdprntlist.colRef("codeid"))));
  76. if(parseInt(vAcntcd) > parseInt(opener.grd_acntcdprntlist.valueMatrix(j, opener.grd_acntcdprntlist.colRef("codeid"))) && parseInt(vAcntcd) < parseInt(opener.grd_acntcdprntlist.valueMatrix((parseInt(j)+1), opener.grd_acntcdprntlist.colRef("codeid"))))
  77. {
  78. opener.grd_acntcdprntlist.insertRow(j, "below");
  79. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("instcd")) = vInstcd;
  80. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("codeid")) = vAcntcd;
  81. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntnm")) = vAcntnm;
  82. if(opener.cmb_prntkind.value == '21') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10);
  83. else if(opener.cmb_prntkind.value == '22') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10);
  84. else if(opener.cmb_prntkind.value == '23') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10) + 1;
  85. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntkind")) = opener.cmb_prntkind.value;
  86. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("fromdd")) = '19000101';
  87. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("todd")) = '99991231';
  88. //alert(vOption1);
  89. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntnm1")) = vOption1;
  90. opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("seq")) = opener.grd_acntcdprntlist.valueMatrix(j, opener.grd_acntcdprntlist.colRef("seq")).substr(0, 1) + vAcntcd + "0";
  91. opener.model.refresh();
  92. break;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. else
  99. {
  100. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  101. }
  102. window.close();
  103. }
  104. function fAllCheck(strAllChk)
  105. {
  106. var grdTolCnt;
  107. grdTolCnt = grd_insertacntlist.rows;
  108. if (strAllChk == "Y")
  109. {
  110. for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows; i++)
  111. {
  112. grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) = "Y";
  113. }
  114. }
  115. else
  116. {
  117. for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows; i++)
  118. {
  119. grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) = "N";
  120. }
  121. }
  122. }
  123. ]]>
  124. </script>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="860" pageheight="570" guideline="1,-2;2,-2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="group3" scroll="auto" style="left:0px; top:0px; width:840px; height:552px; ">
  128. <group id="group2" style="left:0px; top:0px; width:840px; height:35px; ">
  129. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:840px; height:35px; "/>
  130. <button id="btn_search" class="btn1_letter2" style="left:771px; top:7px; width:56px; height:22px; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. submit("TRRAC00511");
  135. ]]>
  136. </script>
  137. </button>
  138. <line id="line13" class="line_4" style="x1:758px; y1:3px; x2:758px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  139. <caption id="caption2" class="search_name" visibility="hidden" style="left:285px; top:9px; width:91px; height:17px; ">계졍구분 :</caption>
  140. <caption id="caption3" class="search_name" visibility="visible" style="left:3px; top:9px; width:91px; height:17px; ">조회조건 :</caption>
  141. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:94px; top:8px; width:181px; height:20px; border-style:solid; ">
  142. <choices>
  143. <itemset nodeset="/root/init/refcond">
  144. <label ref="label"/>
  145. <value ref="value"/>
  146. </itemset>
  147. </choices>
  148. </select1>
  149. <select1 id="cmb_prntkind" ref="/root/send/acntflag" class="combo_s_essential" appearance="minimal" style="left:375px; top:8px; width:160px; height:19px; ">
  150. <choices>
  151. <item>
  152. <label>전체</label>
  153. <value/>
  154. </item>
  155. <item>
  156. <label>자산</label>
  157. <value>1</value>
  158. </item>
  159. <item>
  160. <label>부채</label>
  161. <value>2</value>
  162. </item>
  163. <item>
  164. <label>자본</label>
  165. <value>3</value>
  166. </item>
  167. <item>
  168. <label>수익</label>
  169. <value>4</value>
  170. </item>
  171. <item>
  172. <label>비용</label>
  173. <value>5</value>
  174. </item>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. btn_search.dispatch("DOMActivate");
  179. ]]>
  180. </script>
  181. </select1>
  182. </group>
  183. <caption id="caption1" class="tit_2" style="left:5px; top:39px; width:145px; height:14px; ">입력 리스트</caption>
  184. <line id="line1" class="line_1" style="x1:0px; y1:54px; x2:838px; y2:54px; "/>
  185. <datagrid id="grd_insertacntlist" nodeset="/root/main/list/insertacntlist" class="grd_bugtorgnzlist" caption="선택^기관코드^기관명^계정구분^계정분류구분^차대구분^계정코드^계정명" colsep="^" colwidth="50, 0, 110, 110, 110, 110, 110, 200" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:59px; width:838px; height:463px; ">
  186. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  187. <col ref="instcd" visibility="hidden"/>
  188. <col ref="instnm"/>
  189. <col ref="acntflag"/>
  190. <col ref="acntclsflag"/>
  191. <col ref="balflag"/>
  192. <col ref="acntcd"/>
  193. <col ref="acntnm"/>
  194. <script type="javascript" ev:event="ondblclick">
  195. <![CDATA[
  196. if(grd_insertacntlist.isCell(event.target))
  197. {
  198. fAcntSelect();
  199. }
  200. ]]>
  201. </script>
  202. <script type="javascript" ev:event="onaftersort">
  203. <![CDATA[
  204. grd_bugtorgnzlist.gridToInstance();
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <button id="button3" class="btn2_letter4" style="left:105px; top:34px; width:64px; height:19px; text-align:left; ">
  209. <caption>전체선택</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. fAllCheck("Y");
  213. ]]>
  214. </script>
  215. </button>
  216. <button id="button4" class="btn2_letter4" style="left:175px; top:34px; width:64px; height:19px; text-align:left; ">
  217. <caption>전체해제</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. fAllCheck("N");
  221. ]]>
  222. </script>
  223. </button>
  224. </group>
  225. <group id="group1" scroll="auto" style="left:0px; top:524px; width:839px; height:27px; ">
  226. <button id="btn_confirm" class="btn4_letter2" style="left:719px; top:2px; width:56px; height:22px; ">
  227. <caption>확인</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. fAcntSelect();
  231. ]]>
  232. </script>
  233. </button>
  234. <button id="btn_cancel" class="btn4_letter2" style="left:776px; top:2px; width:56px; height:22px; ">
  235. <caption>취소</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. window.close();
  239. ]]>
  240. </script>
  241. </button>
  242. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:787px; y2:0px; "/>
  243. </group>
  244. </xhtml:body>
  245. </xhtml:html>