SMSDT06300_사회사업자선회수입금지출금현황.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMSDT06300.사회사업자선회수입금지출금현황.xrw
  4. * 설 명 : 사회사업자선회수입금지출금현황
  5. * 작 성 자 : 임여원
  6. * 작 성 일 : 2008.11.17
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>사회사업자선회수입금지출금현황</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <brgstincmexpspres>
  19. <brgstincmexpsprescond>
  20. <inextype/>
  21. <cdid/>
  22. <cdnm/>
  23. <amt01/>
  24. <amt02/>
  25. <amt03/>
  26. <amt04/>
  27. <amt05/>
  28. <amt06/>
  29. <amt07/>
  30. <amt08/>
  31. <amt09/>
  32. <amt10/>
  33. <amt11/>
  34. <amt12/>
  35. <amt13/>
  36. <cdgrupid/>
  37. </brgstincmexpsprescond>
  38. </brgstincmexpspres>
  39. <search>
  40. <reqflag>1</reqflag>
  41. <fromdd/>
  42. <reqflag2/>
  43. <reqincm/>
  44. <reqexps/>
  45. <fromentryy/>
  46. <toentryy/>
  47. </search>
  48. </main>
  49. <send>
  50. <reqdata/>
  51. </send>
  52. <init>
  53. <incm>
  54. </incm>
  55. <exps>
  56. </exps>
  57. </init>
  58. <hidden/>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fInit();
  72. ]]>
  73. </script>
  74. <submission id="TRSDT04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cnstinfo"/>
  75. <bind id="bfreqcntconsult" ref="/root/main/cnstinfo/cnstlist/bfreqcntconsult" calculate="../reqtot - ../bfreqcnt"/>
  76. <bind id="bfreplcntreply" ref="/root/main/cnstinfo/cnstlist/bfreplcntreply" calculate="../repltot - ../bfreplcnt"/>
  77. <submission id="TRSDT06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/brgstincmexpspres"/>
  78. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. </model>
  80. <script type="javascript">
  81. <![CDATA[
  82. /**========================================================================================================================================
  83. * 조회기간 그리드초기화
  84. =========================================================================================================================================*/
  85. function fInit()
  86. {
  87. //cmb_reqflag.select(0);
  88. ipt_fromentryy.visible=false;
  89. ipt_toentryy.visible=false;
  90. cap1.visible=false;
  91. caption1.visible=true;
  92. caption2.visible=false;
  93. cmb_reqincm.visible=false;
  94. cmb_reqexps.visible=false;
  95. caption4.visible=false;
  96. caption5.visible=false;
  97. zbcfGetCodeList(new Array("A0639", "A0640"), new Array("/root/init/incm", "/root/init/exps"));
  98. model.removeNodeset("/root/main/brgstincmexpspres");
  99. var CurrentDate=getCurrentDate();
  100. var CurrentDateYM=CurrentDate.substr(0,6);
  101. var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  102. var LastDateYM=LastDate.substr(0,6);
  103. model.makeValue("/root/main/search/fromdd",LastDateYM);
  104. var CurrentDateYY=CurrentDate.substring(0,4);
  105. model.makeValue("/root/main/search/fromentryy",CurrentDateYY);
  106. model.makeValue("/root/main/search/toentryy",CurrentDateYY);
  107. model.refresh();
  108. addComboItem("cmb_reqincm", "전체", "", "above");
  109. addComboItem("cmb_reqexps", "전체", "", "above");
  110. // cmb_reqincm.select(0);
  111. }
  112. /**========================================================================================================================================
  113. * 조회
  114. =========================================================================================================================================*/
  115. function fReqBrgstIncmExpsCond()
  116. {
  117. model.removeNodeset("/root/send/reqdata");
  118. model.makeNode("/root/send/reqdata");
  119. var fdate=model.getValue("/root/main/search/fromdd");
  120. var reqflag=model.getValue("/root/main/search/reqflag");
  121. var fromentryy=model.getValue("/root/main/search/fromentryy");
  122. var toentryy=model.getValue("/root/main/search/toentryy");
  123. var fromdd=fdate.substr(0,4);
  124. //alert(todd.substring(6,2));
  125. model.makeValue("/root/send/reqdata/fromdd",fromdd);
  126. model.makeValue("/root/send/reqdata/reqflag",reqflag);
  127. model.makeValue("/root/send/reqdata/fromentryy",fromentryy);
  128. model.makeValue("/root/send/reqdata/toentryy",toentryy);
  129. model.makeValue("/root/send/reqdata/reqflag2",model.getValue("/root/main/search/reqflag2"));
  130. model.makeValue("/root/send/reqdata/reqincm",model.getValue("/root/main/search/reqincm"));
  131. model.makeValue("/root/send/reqdata/reqexps",model.getValue("/root/main/search/reqexps"));
  132. //alert(reqflag);
  133. if(reqflag=='1')
  134. {
  135. if(isNull(fromdd))
  136. {
  137. messageBox("조회시작일자는","I003");
  138. model.setFocus("ipt_fromdd");
  139. return;
  140. }
  141. }
  142. else
  143. {
  144. if(isNull(fromentryy))
  145. {
  146. messageBox("조회시작연도는","I003");
  147. model.setFocus("ipt_fromentryy");
  148. return;
  149. }
  150. if(isNull(toentryy))
  151. {
  152. messageBox("조회종료연도는","I003");
  153. model.setFocus("ipt_toentryy");
  154. return;
  155. }
  156. if(fromentryy>toentryy)
  157. {
  158. messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  159. model.setFocus("ipt_fromentryy");
  160. return;
  161. }
  162. var dateintval=getDateInterval(fromentryy+"0101",toentryy+"1231");
  163. if(dateintval>"1980")
  164. {
  165. messageBox("조회기간은 최대 5년까지 할 수 있습니다","I");
  166. model.setFocus("ipt_fromdd");
  167. return;
  168. }
  169. }
  170. // 조회종료일자와 조회시작일자사이의 길이, 월별일 때는 1년, 년도별 5년으로 제약
  171. //model.makeValue("");
  172. //model.makeValue("");
  173. //model.makeValue("");
  174. //model.copyNode("/root/send/reqdata","/root/main/search");
  175. submit("TRSDT06301");
  176. var arrCol = ["inextype", "cdid", "cdnm", "amt01", "amt02", "amt03", "amt04", "amt05", "amt06", "amt07", "amt08"
  177. , "amt09", "amt10", "amt11", "amt12", "amt13", "cdgrupid"];
  178. for ( var nCnt = arrCol.length - 1; nCnt > -1; nCnt-- ) {
  179. if ( model.getValue("/root/main/brgstincmexpspres/brgstincmexpsprescond/" + arrCol[nCnt]) == "" ||
  180. nCnt == 1 || nCnt == 16)
  181. grd_brgstincmexpsprescond.colHidden(nCnt) = true;
  182. else
  183. grd_brgstincmexpsprescond.colHidden(nCnt) = false;
  184. }
  185. if ( cmb_reqflag.value == "2" ) {
  186. var str = "구분^구분코드^구분";
  187. for ( var nCnt = 3; nCnt < arrCol.length - 2; nCnt++ )
  188. str += "^"+ (parseInt(ipt_fromentryy.value.substring(0,4)) + nCnt - 3) + "년";
  189. grd_brgstincmexpsprescond.caption = str + "^합계^구분그룹코드";
  190. } else
  191. grd_brgstincmexpsprescond.caption =
  192. "구분^구분코드^구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^구분그룹코드";
  193. for ( var nCnt = 0; nCnt < arrCol.length; nCnt++ ) {
  194. grd_brgstincmexpsprescond.mergeCol(nCnt) = (nCnt == 0 ? true : false);
  195. }
  196. grd_brgstincmexpsprescond.mergeCells = "bycol";
  197. var idxRow=grd_brgstincmexpsprescond.rows;
  198. var fixRow=grd_brgstincmexpsprescond.fixedRows;
  199. // for(i=1;i<=idxRow-fixRow;i++)
  200. // {
  201. // var cond=model.getValue("/root/main/brgstincmexpspres/brgstincmexpsprescond"+"["+i+"]/cond");
  202. //
  203. // if(cond=='전기간실적'&&i=='1')
  204. // {
  205. // model.removeNodeset("/root/main/brgstincmexpspres/brgstincmexpsprescond");
  206. // //grd_brgstincmexpsprescond.removeRow(false);
  207. // }
  208. // else
  209. // {
  210. // if(reqflag=='1')
  211. // {
  212. // fGetBfResult();
  213. // return;
  214. // }
  215. // }
  216. // }
  217. model.refresh();
  218. }
  219. /**========================================================================================================================================
  220. * 전년실적
  221. =========================================================================================================================================*/
  222. function fGetBfResult(){
  223. if(grd_brgstincmexpsprescond.rows - grd_brgstincmexpsprescond.fixedRows >1){
  224. var sStat = 0;
  225. var insRow = grd_brgstincmexpsprescond.rows;
  226. grd_brgstincmexpsprescond.addRow(insRow, false);
  227. grd_brgstincmexpsprescond.valueMatrix(insRow, grd_brgstincmexpsprescond.colRef("cond") ) = "전기간대비실적비교";
  228. for(var i= grd_brgstincmexpsprescond.colRef("incmcnt"); i<= grd_brgstincmexpsprescond.colRef("expsamtcomp"); i++)
  229. {
  230. var bfResult = eval(grd_brgstincmexpsprescond.valueMatrix(insRow -1 , i));
  231. var sSum = eval(grd_brgstincmexpsprescond.valueMatrix(insRow-2, i));
  232. sStat = eval(sSum)- eval(bfResult) ;
  233. grd_brgstincmexpsprescond.valueMatrix(insRow, i ) = eval(sStat);
  234. }
  235. }else{
  236. model.removeNodeset("/root/main/brgstincmexpspres/brgstincmexpsprescond");
  237. }
  238. model.refresh();
  239. }
  240. /**========================================================================================================================================
  241. * 초기화
  242. =========================================================================================================================================*/
  243. function fResetBrgstIncmExps()
  244. {
  245. model.removeNodeset("/root/main/brgstincmexpspres");
  246. model.refresh();
  247. }
  248. /**========================================================================================================================================
  249. * 엑셀저장 버튼 클릭시
  250. =========================================================================================================================================*/
  251. function fExcel() {
  252. if (grd_brgstincmexpsprescond.rows <= 2) {
  253. messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  254. return;
  255. }
  256. var fileName = window.fileDialog("save", ",", false, "자선회수입금지출금현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  257. if (fileName != ""){
  258. grd_brgstincmexpsprescond.saveExcel(fileName, "SheetName", false, false, "", "", false);
  259. }
  260. }
  261. ]]>
  262. </script>
  263. </xhtml:head>
  264. <xhtml:body guideline="1,1195;1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  265. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  266. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">사회사업 자선회수입금지출금 현황</caption>
  267. </group>
  268. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  269. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  270. <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  271. <caption>초기화</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. fResetBrgstIncmExps();
  275. ]]>
  276. </script>
  277. </button>
  278. </group>
  279. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  280. <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:232px; height:14px; ">사회사업 자선회수입금지출금 현황</caption>
  281. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1190px; y2:72px; "/>
  282. <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
  283. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  284. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; ">
  285. <caption>조회</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fReqBrgstIncmExpsCond();
  289. ]]>
  290. </script>
  291. </button>
  292. <caption id="caption23" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
  293. <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  294. <caption id="cap1" style="left:374px; top:8px; width:25px; height:20px; text-align:center; ">~</caption>
  295. <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="2" inputtype="date" format="yyyy" style="left:297px; top:8px; width:58px; height:19px; "/>
  296. <caption id="caption1" class="search_name" style="left:210px; top:10px; width:100px; height:17px; ">조회년도 :</caption>
  297. <select1 id="cmb_reqflag" ref="/root/main/search/reqflag" navindex="1" appearance="minimal" style="left:105px; top:10px; width:85px; height:19px; ">
  298. <choices>
  299. <item>
  300. <label>월별</label>
  301. <value>1</value>
  302. </item>
  303. <item>
  304. <label>년도별</label>
  305. <value>2</value>
  306. </item>
  307. </choices>
  308. <script type="javascript" ev:event="xforms-value-changed">
  309. <![CDATA[
  310. var CurrentDate=getCurrentDate();
  311. if(cmb_reqflag.value=='1')
  312. {
  313. ipt_fromdd.visible=true;
  314. ipt_fromentryy.visible=false;
  315. ipt_toentryy.visible=false;
  316. cap1.visible=false;
  317. caption1.visible=true;
  318. caption2.visible=false;
  319. model.removeNodeset("/root/send/reqdata/entryy");
  320. }
  321. else
  322. {
  323. ipt_fromdd.visible=false;
  324. ipt_fromentryy.visible=true;
  325. ipt_toentryy.visible=true;
  326. cap1.visible=true;
  327. caption1.visible=false;
  328. caption2.visible=true;
  329. model.removeNodeset("/root/send/reqdata/fromdd");
  330. //model.removeNodeset("");
  331. }
  332. model.removeNodeset("/root/send/reqdata");
  333. model.makeNode("/root/send/reqdata");
  334. model.refresh();
  335. fReqBrgstIncmExpsCond(); //조회
  336. ]]>
  337. </script>
  338. </select1>
  339. <input id="ipt_fromentryy" ref="/root/main/search/fromentryy" class="input_search" navindex="2" inputtype="date" format="yyyy" style="left:312px; top:8px; width:58px; height:19px; "/>
  340. <caption id="caption2" class="search_name" style="left:209px; top:10px; width:100px; height:17px; ">조회기간:</caption>
  341. <input id="ipt_toentryy" ref="/root/main/search/toentryy" class="input_search" navindex="2" inputtype="date" format="yyyy" style="left:404px; top:8px; width:58px; height:19px; "/>
  342. <caption id="caption3" class="search_name" style="left:510px; top:10px; width:96px; height:17px; ">수입/지출 :</caption>
  343. <select1 id="cmb_reqflag2" ref="/root/main/search/reqflag2" navindex="1" appearance="minimal" style="left:610px; top:10px; width:85px; height:19px; ">
  344. <choices>
  345. <item>
  346. <label>전체</label>
  347. <value/>
  348. </item>
  349. <item>
  350. <label>수입</label>
  351. <value>I</value>
  352. </item>
  353. <item>
  354. <label>지출</label>
  355. <value>O</value>
  356. </item>
  357. </choices>
  358. <script type="javascript" ev:event="xforms-value-changed">
  359. <![CDATA[
  360. if(cmb_reqflag2.value=='I')
  361. {
  362. cmb_reqincm.visible=true;
  363. cmb_reqexps.visible=false;
  364. caption4.visible=true;
  365. caption5.visible=false;
  366. cmb_reqincm.select(0);
  367. }
  368. else if (cmb_reqflag2.value=='O')
  369. {
  370. cmb_reqincm.visible=false;
  371. cmb_reqexps.visible=true;
  372. caption4.visible=false;
  373. caption5.visible=true;
  374. cmb_reqexps.select(0);
  375. }
  376. else
  377. {
  378. cmb_reqincm.visible=false;
  379. cmb_reqexps.visible=false;
  380. caption4.visible=false;
  381. caption5.visible=false;
  382. }
  383. ]]>
  384. </script>
  385. </select1>
  386. <select1 id="cmb_reqincm" ref="/root/main/search/reqincm" navindex="1" appearance="minimal" style="left:800px; top:10px; width:85px; height:19px; ">
  387. <choices>
  388. <itemset nodeset="/root/init/incm/A0639">
  389. <label ref="cdnm"/>
  390. <value ref="cdid"/>
  391. </itemset>
  392. </choices>
  393. </select1>
  394. <caption id="caption4" class="search_name" style="left:710px; top:10px; width:91px; height:17px; ">입금구분 :</caption>
  395. <select1 id="cmb_reqexps" ref="/root/main/search/reqexps" navindex="1" appearance="minimal" style="left:800px; top:10px; width:85px; height:19px; ">
  396. <choices>
  397. <itemset nodeset="/root/init/exps/A0640">
  398. <label ref="cdnm"/>
  399. <value ref="cdid"/>
  400. </itemset>
  401. </choices>
  402. </select1>
  403. <caption id="caption5" class="search_name" style="left:710px; top:10px; width:91px; height:17px; ">출금구분 :</caption>
  404. </group>
  405. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:50px; width:64px; height:19px; ">
  406. <caption>엑셀저장</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. fExcel();
  410. ]]>
  411. </script>
  412. </button>
  413. <datagrid id="grd_brgstincmexpsprescond" nodeset="/root/main/brgstincmexpspres/brgstincmexpsprescond" class="datagrid2" caption="구분^구분코드^구분^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계^구분그룹코드" colsep="^" colwidth="40, 100, 150, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:76px; width:1190px; height:664px; ">
  414. <col ref="inextype" style="text-align:center; "/>
  415. <col ref="cdid" visibility="hidden" style="text-align:center; "/>
  416. <col ref="cdnm" style="text-align:left; "/>
  417. <col ref="amt01" format="(-)#,###" style="text-align:right; "/>
  418. <col ref="amt02" format="(-)#,###" style="text-align:right; "/>
  419. <col ref="amt03" format="(-)#,###" style="text-align:right; "/>
  420. <col ref="amt04" format="(-)#,###" style="text-align:right; "/>
  421. <col ref="amt05" format="(-)#,###" style="text-align:right; "/>
  422. <col ref="amt06" format="(-)#,###" style="text-align:right; "/>
  423. <col ref="amt07" format="(-)#,###" style="text-align:right; "/>
  424. <col ref="amt08" format="(-)#,###" style="text-align:right; "/>
  425. <col ref="amt09" format="(-)#,###" style="text-align:right; "/>
  426. <col ref="amt10" format="(-)#,###" style="text-align:right; "/>
  427. <col ref="amt11" format="(-)#,###" style="text-align:right; "/>
  428. <col ref="amt12" format="(-)#,###" style="text-align:right; "/>
  429. <col ref="amt13" format="(-)#,###" style="text-align:right; "/>
  430. <col ref="cdgrupid" visibility="hidden" format="(-)#,###" style="text-align:center; "/>
  431. </datagrid>
  432. </group>
  433. </xhtml:body>
  434. </xhtml:html>