SMRAD00700_계정별원장.xrw 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  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. <deptpr>
  11. <prlist/>
  12. </deptpr>
  13. <balamtpr>
  14. <prlist/>
  15. </balamtpr>
  16. <projectpr>
  17. <prlist/>
  18. </projectpr>
  19. <dept>
  20. <instcd/>
  21. <deptcd/>
  22. <depthngnm/>
  23. <project/>
  24. <fracntcd/>
  25. <fracntnm/>
  26. <toacntcd/>
  27. <toacntnm/>
  28. <frdate/>
  29. <todate/>
  30. <acntclsflag>1</acntclsflag>
  31. <framt/>
  32. <toamt/>
  33. <projectid/>
  34. <projectnm/>
  35. </dept>
  36. <balamt>
  37. <instcd/>
  38. <deptcd/>
  39. <project/>
  40. <fracntcd/>
  41. <fracntnm/>
  42. <toacntcd/>
  43. <toacntnm/>
  44. <frdate/>
  45. <todate/>
  46. <acntclsflag>4</acntclsflag>
  47. <projectid/>
  48. <projectnm/>
  49. </balamt>
  50. <project>
  51. <instcd/>
  52. <deptcd/>
  53. <project/>
  54. <fracntcd/>
  55. <fracntnm/>
  56. <toacntcd/>
  57. <toacntnm/>
  58. <frdate/>
  59. <todate/>
  60. <acntclsflag/>
  61. </project>
  62. </main>
  63. <send>
  64. <params>
  65. <instcd/>
  66. <deptcd/>
  67. <project/>
  68. <fracntcd/>
  69. <toacntcd/>
  70. <frdate/>
  71. <todate/>
  72. <flag/>
  73. <prntflag/>
  74. <acntclsflag/>
  75. <framt/>
  76. <toamt/>
  77. <projectid/>
  78. </params>
  79. <retrprarms2>
  80. <instcd/>
  81. <mngtcd>acntdept</mngtcd>
  82. </retrprarms2>
  83. <retrparams>
  84. <instnm/>
  85. <selectedIndex/>
  86. <frdate/>
  87. <todate/>
  88. <fracntcd/>
  89. <toacntcd/>
  90. <fracntnm/>
  91. <toacntnm/>
  92. </retrparams>
  93. <prntlist>
  94. <gridlist/>
  95. </prntlist>
  96. <prenextacntcd>
  97. <instcd/>
  98. <acntcd/>
  99. <acntclsflag/>
  100. <workflag/>
  101. </prenextacntcd>
  102. </send>
  103. <init>
  104. <code>
  105. <codelist/>
  106. </code>
  107. </init>
  108. <temp/>
  109. <hidden>
  110. <acntinfo>
  111. <acntcd/>
  112. <acntnm/>
  113. </acntinfo>
  114. </hidden>
  115. </root>
  116. </instance>
  117. <submission id="TRRAD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/deptpr"/>
  118. <submission id="TRRAD00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/balamtpr"/>
  119. <submission id="TRRAD00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/projectpr"/>
  120. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrprarms2" resultref="/root/init/code"/>
  121. <submission id="TRRAD00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prenextacntcd" resultref="/root/hidden"/>
  122. </model>
  123. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  127. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  128. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  129. <script type="javascript" ev:event="xforms-ready">
  130. <![CDATA[
  131. // fCheckAuth();//권한체크
  132. fInit();
  133. fSetDate();
  134. ]]>
  135. </script>
  136. <script type="javascript">
  137. <![CDATA[
  138. function fInit()
  139. {
  140. model.removenode(grd_deptpr.nodeset);
  141. model.removenode(grd_balamtpr.nodeset);
  142. model.removenode(grd_projectpr.nodeset);
  143. misfComboComCdList("Z0007", cmb_deptprinstcd, "N");
  144. misfComboComCdList("Z0007", cmb_balamtprinstcd, "N");
  145. model.setValue("/root/send/params/flag", "dept");
  146. model.setValue("/root/main/dept/instcd", getUserInfo("dutplceinstcd"));
  147. model.setValue("/root/main/balamt/instcd", getUserInfo("dutplceinstcd"));
  148. model.setValue("/root/send/prenextacntcd/instcd", getUserInfo("dutplceinstcd"));
  149. model.setValue("/root/send/retrprarms2/instcd", getUserInfo("dutplceinstcd"));
  150. submit("TRRAZ00001");
  151. radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_deptprinstcd);
  152. radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_balamtprinstcd);
  153. radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_deptprinstcd);
  154. //if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd") && getUserInfo("userid") != "10705673")
  155. if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd") && getUserInfo("dutplcecd") != "4020334000")
  156. {
  157. if(getUserInfo("dutplceinstcd") != '103')
  158. {
  159. ipt_deptcd.disabled = true;
  160. btn_depthelp.disabled = true;
  161. ipt_depthngnm.disabled = true;
  162. }
  163. model.setValue("/root/main/dept/deptcd", getUserInfo("dutplcecd"));
  164. model.setValue("/root/main/dept/depthngnm", getUserInfo("dutplcenm"));
  165. model.refresh();
  166. btn_balamtpr.visible = false;
  167. btn_pjtpr.visible = false;
  168. }
  169. btn_deptpr.selected = true;
  170. model.refresh();
  171. }
  172. function fSetDate()
  173. {
  174. var dt = new Date();
  175. ipt_frdate.value = getCurrentDate();
  176. ipt_todate.value = getCurrentDate();
  177. ipt_frdate2.value = getCurrentDate();
  178. ipt_todate2.value = getCurrentDate();
  179. ipt_frdate3.value = getCurrentDate();
  180. ipt_todate3.value = getCurrentDate();
  181. }
  182. function fRetrieve()
  183. {
  184. // if(model.getValue("/root/send/params/flag") == "dept" && model.getValue("/root/main/dept/deptcd") == "")
  185. // {
  186. // messageBox("부서를 입력하세요.", "I999");
  187. // return;
  188. // }
  189. if(parseFloat(ipt_fracntcd.value) > parseFloat(ipt_toacntcd.value))
  190. {
  191. ipt_toacntcd.value = ipt_fracntcd.value;
  192. ipt_toacntcd.refresh();
  193. ipt_toacntcd.dispatch("xforms-value-changed");
  194. }
  195. if(model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd") == "" && model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd") == "")
  196. {
  197. messageBox("계정과목을 하나는 입력해야 합니다.", "I999");
  198. return;
  199. }
  200. if(model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd") == "" && model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd") != "")
  201. {
  202. model.setValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd"));
  203. model.setValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntnm", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntnm"));
  204. }
  205. if(model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd") != "" && model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd") == "")
  206. {
  207. model.setValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd"));
  208. model.setValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntnm", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntnm"));
  209. }
  210. model.setValue("/root/send/params/instcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/instcd"));
  211. model.setValue("/root/send/params/deptcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/deptcd"));
  212. model.setValue("/root/send/params/fracntcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/fracntcd"));
  213. model.setValue("/root/send/params/toacntcd", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toacntcd"));
  214. model.setValue("/root/send/params/frdate", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/frdate"));
  215. model.setValue("/root/send/params/todate", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/todate"));
  216. model.setValue("/root/send/params/framt", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/framt"));
  217. model.setValue("/root/send/params/toamt", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/toamt"));
  218. model.setValue("/root/send/params/projectid", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/projectid"));
  219. model.setValue("/root/send/params/acntclsflag", model.getValue("/root/main/" + model.getValue("/root/send/params/flag") + "/acntclsflag"));
  220. model.refresh();
  221. switch(model.getValue("/root/send/params/flag"))
  222. {
  223. case "dept":
  224. model.removeNodeset("/root/main/deptpr/deptprlist");
  225. model.removeNodeset("/root/hidden/deptpr/deptprlist");
  226. model.refresh();
  227. submit("TRRAD00701");
  228. fSetRowColor(grd_deptpr);
  229. model.refresh();
  230. break;
  231. case "balamt":
  232. model.removeNodeset("/root/main/balamtpr/balamtprlist");
  233. model.removeNodeset("/root/hidden/balamtpr/balamtprlist");
  234. model.refresh();
  235. submit("TRRAD00702");
  236. fSetRowColor(grd_balamtpr);
  237. model.refresh();
  238. break;
  239. case "project":
  240. model.removeNodeset("/root/main/projectpr/projectprlist");
  241. model.removeNodeset("/root/hidden/projectpr/projectprlist");
  242. model.refresh();
  243. submit("TRRAD00703");
  244. break;
  245. }
  246. }
  247. function fSetRowColor(pGrid)
  248. {
  249. var iCnt = 0;
  250. for(var i=0; i<pGrid.rows;i++)
  251. {
  252. if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "1")
  253. {
  254. pGrid.rowStyle(i, "all", "background-color") = "#ccffff";
  255. }
  256. else if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "2")
  257. {
  258. pGrid.rowStyle(i, "all", "background-color") = "#ffffff";
  259. }
  260. else if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "3")
  261. {
  262. pGrid.rowStyle(i, "all", "background-color") = "#ffccff";
  263. }
  264. else if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "4")
  265. {
  266. pGrid.rowStyle(i, "all", "background-color") = "#ffffcc";
  267. }
  268. }
  269. //pGrid.frozenRows = 1;
  270. // pGrid.frozenBottomRows = 1;
  271. // pGrid.backColorFrozen = "#dddddd";
  272. }
  273. //========================================================================================
  274. //코드 Validation Check
  275. //========================================================================================
  276. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  277. {
  278. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  279. {
  280. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  281. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  282. model.refresh();
  283. if (pNextIndex != "") {
  284. model.setFocus(pNextIndex);
  285. }
  286. }
  287. }
  288. ]]>
  289. </script>
  290. </xhtml:head>
  291. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;1,-1;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  292. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  293. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">계정별원장</caption>
  294. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  295. </group>
  296. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  297. <switch id="sw_grid" class="sw_box" style="left:0px; top:26px; width:1195px; height:712px; border-style:solid; ">
  298. <case id="case_deptpr" selected="true" style="left:0px; top:0px; width:1193px; height:710px; ">
  299. <caption id="caption21" class="tit_2" style="left:5px; top:94px; width:131px; height:13px; ">계정별원장</caption>
  300. <datagrid id="grd_deptpr" nodeset="/root/main/deptpr/prlist" backcoloralternate="#ffffff" caption="상위계정코드^상위계정명^년월^날짜^결재번호^구분^계정코드^미결전표일자^미결전표번호^계정명^적요^Project ID^부서^상대처^상대처명^차변^대변^잔액^잔액^전표유형^전표구분^기관코드^부서코드^구분" colsep="^" colwidth="0, 95, 0, 70, 70, 0, 0, 80, 78, 96, 160, 100, 70, 90, 110, 100, 100, 0, 100, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:114px; width:1193px; height:596px; ">
  301. <col ref="supacntcd4" visibility="hidden"/>
  302. <col ref="supacntnm4"/>
  303. <col ref="yyyymm" visibility="hidden"/>
  304. <col ref="apsldt" format="yyyy-mm-dd" style="text-align:center; "/>
  305. <col ref="apslno"/>
  306. <col ref="gubn" visibility="hidden"/>
  307. <col ref="acntcd" visibility="hidden"/>
  308. <col ref="unsldd" format="yyyy-mm-dd" style="text-align:center; "/>
  309. <col ref="unslno" style="text-align:center; "/>
  310. <col ref="acntnm" style="text-align:center; "/>
  311. <col ref="note00"/>
  312. <col ref="projectid"/>
  313. <col ref="depthngnm"/>
  314. <col ref="custflag"/>
  315. <col ref="custnm"/>
  316. <col ref="dramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  317. <col ref="cramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  318. <col ref="balamt" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  319. <col ref="balsum" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  320. <col ref="slipkind" visibility="hidden"/>
  321. <col ref="slipflag" visibility="hidden"/>
  322. <col ref="instcd" visibility="hidden"/>
  323. <col ref="deptcd" visibility="hidden"/>
  324. <col ref="flag" visibility="hidden"/>
  325. <script type="javascript" ev:event="ondblclick">
  326. <![CDATA[
  327. if (grd_deptpr.row > 0 && grd_deptpr.valueMatrix(grd_deptpr.row, grd_deptpr.colRef("gubn")) == "2")
  328. {
  329. model.makeValue("/root/source/slipinfo/instcd", cmb_deptprinstcd.value);
  330. model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_deptpr.nodeset + "[" + grd_deptpr.row + "]/unsldd"));
  331. model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_deptpr.nodeset + "[" + grd_deptpr.row + "]/unslno").substr(0, 4));
  332. model.refresh();
  333. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  334. }
  335. ]]>
  336. </script>
  337. </datagrid>
  338. <group id="group4" style="left:0px; top:0px; width:1193px; height:84px; vertical-align:top; ">
  339. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  340. <caption id="caption5" class="search_name" style="left:8px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
  341. <caption id="caption2" class="search_name" style="left:8px; top:35px; width:85px; height:17px; ">부 서 별 :</caption>
  342. <caption id="caption8" style="left:973px; top:10px; width:15px; height:20px; ">~</caption>
  343. <caption id="caption10" class="search_name" style="left:755px; top:10px; width:100px; height:17px; ">기 간 :</caption>
  344. <line id="line7" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  345. <caption id="caption23" class="search_name" style="left:370px; top:10px; width:90px; height:17px; ">계정과목 :</caption>
  346. <button id="btn_depthelp" class="icon_search" style="left:181px; top:37px; width:16px; height:16px; ">
  347. <caption/>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. misfOpenPopUpList("02", ipt_deptcd, "", "deptcd,depthngnm");
  351. model.refresh();
  352. ]]>
  353. </script>
  354. </button>
  355. <input id="ipt_deptcd" ref="/root/main/dept/deptcd" class="input_s_essential" navindex="2" maxlength="10" style="left:98px; top:35px; width:77px; height:19px; ">
  356. <script type="javascript" ev:event="onkeypress">
  357. <![CDATA[
  358. if(event.keyCode == 13)
  359. {
  360. racfDeptValidCheck("deptcd,depthngnm");
  361. model.setFocus("ipt_depthngnm");
  362. }
  363. ]]>
  364. </script>
  365. <script type="javascript" ev:event="xforms-value-changed">
  366. <![CDATA[
  367. racfDeptValidCheck("deptcd,depthngnm");
  368. ]]>
  369. </script>
  370. </input>
  371. <input id="ipt_depthngnm" ref="/root/main/dept/depthngnm" class="input_s_essential" navindex="3" style="left:200px; top:34px; width:145px; height:19px; ">
  372. <script type="javascript" ev:event="onkeypress">
  373. <![CDATA[
  374. if(event.keyCode == 13)
  375. {
  376. racfDeptValidCheck("deptcd,depthngnm");
  377. model.setFocus("ipt_frdate");
  378. }
  379. ]]>
  380. </script>
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. racfDeptValidCheck("deptcd,depthngnm");
  384. ]]>
  385. </script>
  386. </input>
  387. <input id="ipt_frdate" ref="/root/main/dept/frdate" class="input_s_essential" navindex="4" inputtype="date" style="left:859px; top:10px; width:106px; height:19px; "/>
  388. <input id="ipt_todate" ref="/root/main/dept/todate" class="input_s_essential" navindex="5" inputtype="date" style="left:995px; top:10px; width:106px; height:19px; "/>
  389. <input id="ipt_fracntcd" ref="/root/main/dept/fracntcd" class="input_s_essential" navindex="6" style="left:460px; top:10px; width:75px; height:19px; ">
  390. <script type="javascript" ev:event="onkeypress">
  391. <![CDATA[
  392. if(event.keyCode == 13)
  393. {
  394. model.setFocus("ipt_acntnm");
  395. }
  396. ]]>
  397. </script>
  398. <script type="javascript" ev:event="xforms-value-changed">
  399. <![CDATA[
  400. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  401. ]]>
  402. </script>
  403. </input>
  404. <button id="btn_fracnthelp" class="icon_search" style="left:539px; top:10px; width:16px; height:16px; ">
  405. <caption/>
  406. <script type="javascript" ev:event="DOMActivate">
  407. <![CDATA[
  408. misfOpenPopUpList("05", ipt_fracntcd, "", "fracntcd,fracntnm", "cmb_acntclsflag", "acntclsflag");
  409. model.refresh();
  410. ]]>
  411. </script>
  412. </button>
  413. <input id="ipt_fracntnm" ref="/root/main/dept/fracntnm" class="input_s_essential" navindex="7" style="left:557px; top:10px; width:166px; height:19px; ">
  414. <script type="javascript" ev:event="onkeypress">
  415. <![CDATA[
  416. if(event.keyCode == 13)
  417. {
  418. model.setFocus("ipt_toacntcd");
  419. }
  420. ]]>
  421. </script>
  422. <script type="javascript" ev:event="xforms-value-changed">
  423. <![CDATA[
  424. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  425. ]]>
  426. </script>
  427. </input>
  428. <select1 id="cmb_deptprinstcd" ref="/root/main/dept/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:98px; top:9px; width:247px; height:19px; ">
  429. <choices>
  430. <itemset>
  431. <label/>
  432. <value/>
  433. </itemset>
  434. </choices>
  435. </select1>
  436. <input id="ipt_toacntcd" ref="/root/main/dept/toacntcd" class="input_s_essential" navindex="8" style="left:460px; top:34px; width:75px; height:19px; ">
  437. <script type="javascript" ev:event="onkeypress">
  438. <![CDATA[
  439. if(event.keyCode == 13)
  440. {
  441. model.setFocus("ipt_acntnm");
  442. }
  443. ]]>
  444. </script>
  445. <script type="javascript" ev:event="xforms-value-changed">
  446. <![CDATA[
  447. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  448. ]]>
  449. </script>
  450. </input>
  451. <input id="ipt_toacntnm" ref="/root/main/dept/toacntnm" class="input_s_essential" navindex="9" style="left:557px; top:34px; width:166px; height:19px; ">
  452. <script type="javascript" ev:event="onkeypress">
  453. <![CDATA[
  454. if(event.keyCode == 13)
  455. {
  456. model.setFocus("ipt_deptcd");
  457. }
  458. ]]>
  459. </script>
  460. <script type="javascript" ev:event="xforms-value-changed">
  461. <![CDATA[
  462. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
  463. ]]>
  464. </script>
  465. </input>
  466. <button id="btn_toacnthelp" class="icon_search" style="left:539px; top:34px; width:16px; height:16px; ">
  467. <caption/>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. misfOpenPopUpList("05", ipt_fracntcd, "", "toacntcd,toacntnm", "cmb_acntclsflag", "acntclsflag");
  471. model.refresh();
  472. ]]>
  473. </script>
  474. </button>
  475. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1124; top:19px; width:56px; height:22px; ">
  476. <caption>조회</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. fRetrieve();
  480. ]]>
  481. </script>
  482. </button>
  483. <select1 id="cmb_acntclsflag" ref="/root/main/dept/acntclsflag" class="combo_s_essential" appearance="minimal" style="left:390px; top:34px; width:63px; height:19px; text-align:center; vertical-align:middle; ">
  484. <choices>
  485. <item>
  486. <label>대분류</label>
  487. <value>4</value>
  488. </item>
  489. <item>
  490. <label>관</label>
  491. <value>3</value>
  492. </item>
  493. <item>
  494. <label>항</label>
  495. <value>2</value>
  496. </item>
  497. <item>
  498. <label>목</label>
  499. <value>1</value>
  500. </item>
  501. <item>
  502. <label>세목</label>
  503. <value>0</value>
  504. </item>
  505. </choices>
  506. <script type="javascript" ev:event="xforms-value-changed">
  507. <![CDATA[
  508. model.setValue("/root/main/dept/fracntcd", "");
  509. model.setValue("/root/main/dept/fracntnm", "");
  510. model.setValue("/root/main/dept/toacntcd", "");
  511. model.setValue("/root/main/dept/toacntnm", "");
  512. model.refresh();
  513. ]]>
  514. </script>
  515. </select1>
  516. <input id="ipt_projectnm" ref="/root/main/dept/projectnm" class="input_search" style="left:612px; top:59px; width:111px; height:19px; ">
  517. <script type="javascript" ev:event="onkeypress">
  518. <![CDATA[
  519. if(event.keyCode == 13)
  520. {
  521. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
  522. model.setFocus("btn_search");
  523. }
  524. ]]>
  525. </script>
  526. <script type="javascript" ev:event="xforms-value-changed">
  527. <![CDATA[
  528. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
  529. ]]>
  530. </script>
  531. </input>
  532. <caption id="caption47" class="search_name" style="left:370px; top:60px; width:99px; height:17px; font-family:돋움; ">Project ID :</caption>
  533. <button id="btn_projectid" class="icon_search" navindex="-1" style="left:590px; top:59px; width:16px; height:16px; ">
  534. <caption/>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. misfOpenPopUpList("23", ipt_projectid, "", "projectid,projectnm");
  538. model.refresh();
  539. ]]>
  540. </script>
  541. </button>
  542. <input id="ipt_projectid" ref="/root/main/dept/projectid" class="input_search" style="left:473px; top:59px; width:111px; height:19px; ">
  543. <script type="javascript" ev:event="onkeypress">
  544. <![CDATA[
  545. if(event.keyCode == 13)
  546. {
  547. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
  548. model.setFocus("btn_search");
  549. }
  550. ]]>
  551. </script>
  552. <script type="javascript" ev:event="xforms-value-changed">
  553. <![CDATA[
  554. fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
  555. ]]>
  556. </script>
  557. </input>
  558. <input id="ipt_toamt" ref="/root/main/dept/toamt" class="input_essential" navindex="6" format="(-)#,###" style="left:995px; top:34px; width:106px; height:19px; text-align:right; "/>
  559. <input id="ipt_framt" ref="/root/main/dept/framt" class="input_essential" navindex="6" format="(-)#,###" style="left:859px; top:34px; width:106px; height:19px; text-align:right; "/>
  560. <caption id="caption13" class="search_name" style="left:755px; top:35px; width:100px; height:17px; ">금 액 :</caption>
  561. <caption id="caption14" style="left:973px; top:37px; width:15px; height:20px; ">~</caption>
  562. <button id="btn_frnext" class="icon_next" navindex="-1" style="left:740px; top:14px; width:13px; height:15px; ">
  563. <caption/>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if(!model.getValue(ipt_fracntcd.attribute("ref")) == "")
  567. {
  568. model.setValue("/root/send/prenextacntcd/acntcd", model.getValue(ipt_fracntcd.attribute("ref")));
  569. model.setValue("/root/send/prenextacntcd/acntclsflag", model.getValue(cmb_acntclsflag.attribute("ref")));
  570. model.setValue("/root/send/prenextacntcd/workflag", "next");
  571. submit("TRRAD00704");
  572. if(!model.getValue("/root/hidden/acntinfo/acntcd") == "")
  573. {
  574. model.setValue(ipt_fracntcd.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntcd"));
  575. model.setValue(ipt_fracntnm.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntnm"));
  576. ipt_fracntcd.refresh();
  577. ipt_fracntnm.refresh();
  578. }
  579. }
  580. ]]>
  581. </script>
  582. </button>
  583. <button id="btn_frpre" class="icon_pre" navindex="-1" style="left:725px; top:14px; width:13px; height:15px; ">
  584. <caption/>
  585. <script type="javascript" ev:event="DOMActivate">
  586. <![CDATA[
  587. if(!model.getValue(ipt_fracntcd.attribute("ref")) == "")
  588. {
  589. model.setValue("/root/send/prenextacntcd/acntcd", model.getValue(ipt_fracntcd.attribute("ref")));
  590. model.setValue("/root/send/prenextacntcd/acntclsflag", model.getValue(cmb_acntclsflag.attribute("ref")));
  591. model.setValue("/root/send/prenextacntcd/workflag", "pre");
  592. submit("TRRAD00704");
  593. if(!model.getValue("/root/hidden/acntinfo/acntcd") == "")
  594. {
  595. model.setValue(ipt_fracntcd.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntcd"));
  596. model.setValue(ipt_fracntnm.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntnm"));
  597. ipt_fracntcd.refresh();
  598. ipt_fracntnm.refresh();
  599. }
  600. }
  601. ]]>
  602. </script>
  603. </button>
  604. <button id="btn_tonext" class="icon_next" navindex="-1" style="left:740px; top:38px; width:13px; height:15px; ">
  605. <caption/>
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. if(!model.getValue(ipt_toacntcd.attribute("ref")) == "")
  609. {
  610. model.setValue("/root/send/prenextacntcd/acntcd", model.getValue(ipt_toacntcd.attribute("ref")));
  611. model.setValue("/root/send/prenextacntcd/acntclsflag", model.getValue(cmb_acntclsflag.attribute("ref")));
  612. model.setValue("/root/send/prenextacntcd/workflag", "next");
  613. submit("TRRAD00704");
  614. if(!model.getValue("/root/hidden/acntinfo/acntcd") == "")
  615. {
  616. model.setValue(ipt_toacntcd.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntcd"));
  617. model.setValue(ipt_toacntnm.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntnm"));
  618. ipt_toacntcd.refresh();
  619. ipt_toacntnm.refresh();
  620. }
  621. }
  622. ]]>
  623. </script>
  624. </button>
  625. <button id="btn_topre" class="icon_pre" navindex="-1" style="left:725px; top:38px; width:13px; height:15px; ">
  626. <caption/>
  627. <script type="javascript" ev:event="DOMActivate">
  628. <![CDATA[
  629. if(!model.getValue(ipt_toacntcd.attribute("ref")) == "")
  630. {
  631. model.setValue("/root/send/prenextacntcd/acntcd", model.getValue(ipt_toacntcd.attribute("ref")));
  632. model.setValue("/root/send/prenextacntcd/acntclsflag", model.getValue(cmb_acntclsflag.attribute("ref")));
  633. model.setValue("/root/send/prenextacntcd/workflag", "pre");
  634. submit("TRRAD00704");
  635. if(!model.getValue("/root/hidden/acntinfo/acntcd") == "")
  636. {
  637. model.setValue(ipt_toacntcd.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntcd"));
  638. model.setValue(ipt_toacntnm.attribute("ref"), model.getValue("/root/hidden/acntinfo/acntnm"));
  639. ipt_toacntcd.refresh();
  640. ipt_toacntnm.refresh();
  641. }
  642. }
  643. ]]>
  644. </script>
  645. </button>
  646. </group>
  647. <line id="line3" class="line_1" style="x1:0px; y1:109px; x2:1193px; y2:109px; "/>
  648. <button id="btn_exceldeptpr" class="btn2_letter4" style="left:1126px; top:88px; width:64px; height:19px; text-align:left; ">
  649. <caption>엑셀출력</caption>
  650. <script type="javascript" ev:event="DOMActivate">
  651. <![CDATA[
  652. //radfSaveExcel(grd_deptpr);
  653. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  654. grd_deptpr.saveExcel(fileName,"SheetName:sheet1");
  655. ]]>
  656. </script>
  657. </button>
  658. </case>
  659. <case id="case_balamtpr">
  660. <button id="btn_excelbalamtpr" class="btn2_letter4" style="left:1126px; top:64px; width:64px; height:19px; text-align:left; ">
  661. <caption>엑셀출력</caption>
  662. <script type="javascript" ev:event="DOMActivate">
  663. <![CDATA[
  664. //radfSaveExcel(grd_balamtpr);
  665. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  666. grd_balamtpr.saveExcel(fileName,"SheetName:sheet1");
  667. ]]>
  668. </script>
  669. </button>
  670. <caption id="caption1" class="tit_2" style="left:5px; top:70px; width:131px; height:14px; ">전체 내역</caption>
  671. <datagrid id="grd_balamtpr" nodeset="/root/main/balamtpr/prlist" caption="상위계정코드^상위계정명^년월^날짜^결재번호^구분^계정코드^전표일자^전표번호^계정명^적요^부서^상대처^상대처명^차변^대변^잔액^잔액^전표유형^전표구분^기관코드^부서코드^구분" colsep="^" colwidth="0, 95, 0, 70, 0, 0, 0, 80, 60, 95, 160, 70, 90, 110, 100, 100, 0, 100, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="byrestriccol" rowheader="seq" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:90px; width:1193px; height:620px; ">
  672. <col ref="supacntcd4" visibility="hidden"/>
  673. <col ref="supacntnm4" style="text-align:center; "/>
  674. <col ref="yyyymm" visibility="hidden"/>
  675. <col ref="apsldt" format="yyyy-mm-dd" style="text-align:center; "/>
  676. <col ref="apslno" visibility="hidden"/>
  677. <col ref="gubn" visibility="hidden"/>
  678. <col ref="acntcd" visibility="hidden"/>
  679. <col ref="unsldd" format="yyyy-mm-dd" style="text-align:center; "/>
  680. <col ref="unslno" style="text-align:center; "/>
  681. <col ref="acntnm" style="text-align:center; "/>
  682. <col ref="note00"/>
  683. <col ref="depthngnm"/>
  684. <col ref="custflag"/>
  685. <col ref="custnm"/>
  686. <col ref="dramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  687. <col ref="cramt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  688. <col ref="balamt" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  689. <col ref="balsum" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  690. <col ref="slipkind" visibility="hidden"/>
  691. <col ref="slipflag" visibility="hidden"/>
  692. <col ref="instcd" visibility="hidden"/>
  693. <col ref="deptcd" visibility="hidden"/>
  694. <col ref="flag" visibility="hidden"/>
  695. <script type="javascript" ev:event="ondblclick">
  696. <![CDATA[
  697. if (grd_balamtpr.row > 0 && grd_balamtpr.valueMatrix(grd_balamtpr.row, grd_balamtpr.colRef("gubn")) == "2")
  698. {
  699. model.makeValue("/root/source/slipinfo/instcd", cmb_deptprinstcd.value);
  700. model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_balamtpr.nodeset + "[" + grd_balamtpr.row + "]/unsldd"));
  701. model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_balamtpr.nodeset + "[" + grd_balamtpr.row + "]/unslno").substr(0, 4));
  702. model.refresh();
  703. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  704. }
  705. ]]>
  706. </script>
  707. </datagrid>
  708. <group id="group5" style="left:0px; top:0px; width:1193px; height:60px; vertical-align:top; ">
  709. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  710. <caption id="caption3" class="search_name" visibility="hidden" style="left:8px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
  711. <line id="line1" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  712. <caption id="caption11" class="search_name" style="left:773px; top:10px; width:86px; height:17px; ">기 간 :</caption>
  713. <input id="ipt_frdate2" ref="/root/main/balamt/frdate" class="input_s_essential" navindex="2" inputtype="date" style="left:862px; top:10px; width:97px; height:19px; "/>
  714. <input id="ipt_todate2" ref="/root/main/balamt/todate" class="input_s_essential" navindex="3" inputtype="date" style="left:975px; top:10px; width:98px; height:19px; "/>
  715. <button id="btn_search2" class="btn1_letter2" navindex="5" style="left:1124; top:19px; width:56px; height:22px; ">
  716. <caption>조회</caption>
  717. <script type="javascript" ev:event="DOMActivate">
  718. <![CDATA[
  719. fRetrieve();
  720. ]]>
  721. </script>
  722. </button>
  723. <input id="ipt_fracntnm2" ref="/root/main/balamt/fracntnm" class="input_s_essential" navindex="5" style="left:559px; top:10px; width:176px; height:19px; ">
  724. <script type="javascript" ev:event="onkeypress">
  725. <![CDATA[
  726. if(event.keyCode == 13)
  727. {
  728. model.setFocus("ipt_todeptcd2");
  729. }
  730. ]]>
  731. </script>
  732. <script type="javascript" ev:event="xforms-value-changed">
  733. <![CDATA[
  734. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  735. ]]>
  736. </script>
  737. </input>
  738. <input id="ipt_toacntnm2" ref="/root/main/balamt/toacntnm" class="input_s_essential" navindex="7" style="left:559px; top:34px; width:176px; height:19px; ">
  739. <script type="javascript" ev:event="onkeypress">
  740. <![CDATA[
  741. if(event.keyCode == 13)
  742. {
  743. model.setFocus("btn_search2");
  744. }
  745. ]]>
  746. </script>
  747. <script type="javascript" ev:event="xforms-value-changed">
  748. <![CDATA[
  749. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  750. ]]>
  751. </script>
  752. </input>
  753. <input id="ipt_fracntcd2" ref="/root/main/balamt/fracntcd" class="input_s_essential" navindex="4" style="left:462px; top:10px; width:75px; height:19px; ">
  754. <script type="javascript" ev:event="onkeypress">
  755. <![CDATA[
  756. if(event.keyCode == 13)
  757. {
  758. model.setFocus("ipt_todeptcd2");
  759. }
  760. ]]>
  761. </script>
  762. <script type="javascript" ev:event="xforms-value-changed">
  763. <![CDATA[
  764. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  765. ]]>
  766. </script>
  767. </input>
  768. <input id="ipt_toacntcd2" ref="/root/main/balamt/toacntcd" class="input_s_essential" navindex="6" style="left:462px; top:34px; width:75px; height:19px; ">
  769. <script type="javascript" ev:event="onkeypress">
  770. <![CDATA[
  771. if(event.keyCode == 13)
  772. {
  773. model.setFocus("ipt_todeptcd2");
  774. }
  775. ]]>
  776. </script>
  777. <script type="javascript" ev:event="xforms-value-changed">
  778. <![CDATA[
  779. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  780. ]]>
  781. </script>
  782. </input>
  783. <button id="btn_toacnthelp2" class="icon_search" style="left:541px; top:34px; width:16px; height:16px; ">
  784. <caption/>
  785. <script type="javascript" ev:event="DOMActivate">
  786. <![CDATA[
  787. misfOpenPopUpList("05", ipt_fracntcd2, "", "toacntcd,toacntnm", "cmb_acntclsflag2", "acntclsflag");
  788. model.refresh();
  789. ]]>
  790. </script>
  791. </button>
  792. <button id="btn_fracnthelp2" class="icon_search" style="left:541px; top:10px; width:16px; height:16px; ">
  793. <caption/>
  794. <script type="javascript" ev:event="DOMActivate">
  795. <![CDATA[
  796. misfOpenPopUpList("05", ipt_fracntcd2, "", "fracntcd,fracntnm", "cmb_acntclsflag2", "acntclsflag");
  797. model.refresh();
  798. ]]>
  799. </script>
  800. </button>
  801. <select1 id="cmb_balamtprinstcd" ref="/root/main/balamt/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:98px; top:9px; width:222px; height:19px; ">
  802. <choices>
  803. <itemset>
  804. <label/>
  805. <value/>
  806. </itemset>
  807. </choices>
  808. </select1>
  809. <caption id="caption27" class="search_name" style="left:8px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
  810. <caption id="caption28" class="search_name" style="left:370px; top:10px; width:90px; height:17px; ">계정과목 :</caption>
  811. <caption id="caption12" style="left:961px; top:10px; width:15px; height:20px; ">~</caption>
  812. <caption id="caption24" class="search_name" visibility="hidden" style="left:370px; top:35px; width:86px; height:17px; ">(class)</caption>
  813. <select1 id="cmb_acntclsflag2" ref="/root/main/balamt/acntclsflag" class="combo_s_essential" appearance="minimal" style="left:390px; top:34px; width:63px; height:19px; ">
  814. <choices>
  815. <item>
  816. <label>대분류</label>
  817. <value>4</value>
  818. </item>
  819. <item>
  820. <label>관</label>
  821. <value>3</value>
  822. </item>
  823. <item>
  824. <label>항</label>
  825. <value>2</value>
  826. </item>
  827. <item>
  828. <label>목</label>
  829. <value>1</value>
  830. </item>
  831. <item>
  832. <label>세목</label>
  833. <value>0</value>
  834. </item>
  835. </choices>
  836. <script type="javascript" ev:event="xforms-value-changed">
  837. <![CDATA[
  838. model.setValue("/root/main/balamt/fracntcd", "");
  839. model.setValue("/root/main/balamt/fracntnm", "");
  840. model.setValue("/root/main/balamt/toacntcd", "");
  841. model.setValue("/root/main/balamt/toacntnm", "");
  842. model.refresh();
  843. ]]>
  844. </script>
  845. </select1>
  846. </group>
  847. <line id="line4" class="line_1" style="x1:0px; y1:85px; x2:1193px; y2:85px; "/>
  848. </case>
  849. <case id="case_pjtpr">
  850. <button id="btn_excelprojectpr" class="btn2_letter4" style="left:1126px; top:64px; width:64px; height:19px; text-align:left; ">
  851. <caption>엑셀출력</caption>
  852. <script type="javascript" ev:event="DOMActivate">
  853. <![CDATA[
  854. misfSaveExcel(grd_projectpr);
  855. ]]>
  856. </script>
  857. </button>
  858. <caption id="caption15" class="tit_2" style="left:5px; top:70px; width:131px; height:13px; ">프로젝트별</caption>
  859. <datagrid id="grd_projectpr" nodeset="/root/main/projectpr/prlist" caption="날짜^적요란^프로젝트^거래처^차변^대변^잔액" colsep="^" colwidth="100, 260, 120, 200, 160, 160, 160" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:90px; width:1193px; height:620px; ">
  860. <col/>
  861. <col/>
  862. <col/>
  863. <col/>
  864. <col/>
  865. <col/>
  866. <col/>
  867. </datagrid>
  868. <group id="group6" style="left:0px; top:0px; width:1193px; height:60px; vertical-align:top; ">
  869. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  870. <line id="line5" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  871. <select1 id="cmb_projectprinstcd" ref="/root/main/project/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:98px; top:9px; width:237px; height:19px; ">
  872. <choices>
  873. <itemset>
  874. <label/>
  875. <value/>
  876. </itemset>
  877. </choices>
  878. </select1>
  879. <caption id="caption17" class="search_name" visibility="hidden" style="left:8px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
  880. <caption id="caption20" class="search_name" style="left:8px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
  881. <caption id="caption16" class="search_name" style="left:771px; top:11px; width:86px; height:17px; ">기 간 :</caption>
  882. <caption id="caption18" style="left:959px; top:11px; width:15px; height:20px; ">~</caption>
  883. <input id="ipt_frdate3" ref="/root/main/project/frdate" class="input_s_essential" navindex="3" inputtype="date" style="left:860px; top:10px; width:97px; height:19px; "/>
  884. <caption id="caption7" class="search_name" visibility="hidden" style="left:370px; top:35px; width:86px; height:17px; ">(class)</caption>
  885. <input id="ipt_todate3" ref="/root/main/project/todate" class="input_s_essential" navindex="4" inputtype="date" style="left:973px; top:10px; width:98px; height:19px; "/>
  886. <button id="btn_search3" class="btn1_letter2" style="left:1124; top:19px; width:56px; height:22px; ">
  887. <caption>조회</caption>
  888. <script type="javascript" ev:event="DOMActivate">
  889. <![CDATA[
  890. fRetrieve();
  891. ]]>
  892. </script>
  893. </button>
  894. <select1 id="cmb_acntclsflag3" ref="/root/main/balamt/acntclsflag" class="combo_s_essential" appearance="minimal" style="left:390px; top:34px; width:63px; height:19px; ">
  895. <choices>
  896. <item>
  897. <label>대분류</label>
  898. <value>4</value>
  899. </item>
  900. <item>
  901. <label>관</label>
  902. <value>3</value>
  903. </item>
  904. <item>
  905. <label>항</label>
  906. <value>2</value>
  907. </item>
  908. <item>
  909. <label>목</label>
  910. <value>1</value>
  911. </item>
  912. <item>
  913. <label>세목</label>
  914. <value>0</value>
  915. </item>
  916. </choices>
  917. <script type="javascript" ev:event="xforms-value-changed">
  918. <![CDATA[
  919. model.setValue("/root/main/project/fracntcd", "");
  920. model.setValue("/root/main/project/fracntnm", "");
  921. model.setValue("/root/main/project/toacntcd", "");
  922. model.setValue("/root/main/project/toacntnm", "");
  923. model.refresh();
  924. ]]>
  925. </script>
  926. </select1>
  927. <button id="button1" class="icon_search" style="left:541px; top:34px; width:16px; height:16px; ">
  928. <caption/>
  929. <script type="javascript" ev:event="DOMActivate">
  930. <![CDATA[
  931. misfOpenPopUpList("05", ipt_fracntcd2, "", "toacntcd,toacntnm", "cmb_acntclsflag2", "acntclsflag");
  932. model.refresh();
  933. ]]>
  934. </script>
  935. </button>
  936. <button id="button2" class="icon_search" style="left:541px; top:10px; width:16px; height:16px; ">
  937. <caption/>
  938. <script type="javascript" ev:event="DOMActivate">
  939. <![CDATA[
  940. misfOpenPopUpList("05", ipt_fracntcd2, "", "fracntcd,fracntnm", "cmb_acntclsflag2", "acntclsflag");
  941. model.refresh();
  942. ]]>
  943. </script>
  944. </button>
  945. <input id="input1" ref="/root/main/balamt/fracntcd" class="input_s_essential" navindex="4" style="left:462px; top:10px; width:75px; height:19px; ">
  946. <script type="javascript" ev:event="onkeypress">
  947. <![CDATA[
  948. if(event.keyCode == 13)
  949. {
  950. model.setFocus("ipt_todeptcd2");
  951. }
  952. ]]>
  953. </script>
  954. <script type="javascript" ev:event="xforms-value-changed">
  955. <![CDATA[
  956. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  957. ]]>
  958. </script>
  959. </input>
  960. <caption id="caption9" class="search_name" style="left:370px; top:10px; width:90px; height:17px; ">계정과목 :</caption>
  961. <input id="input2" ref="/root/main/balamt/toacntcd" class="input_s_essential" navindex="6" style="left:462px; top:34px; width:75px; height:19px; ">
  962. <script type="javascript" ev:event="onkeypress">
  963. <![CDATA[
  964. if(event.keyCode == 13)
  965. {
  966. model.setFocus("ipt_todeptcd2");
  967. }
  968. ]]>
  969. </script>
  970. <script type="javascript" ev:event="xforms-value-changed">
  971. <![CDATA[
  972. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  973. ]]>
  974. </script>
  975. </input>
  976. <input id="input3" ref="/root/main/balamt/fracntnm" class="input_s_essential" navindex="5" style="left:559px; top:10px; width:176px; height:19px; ">
  977. <script type="javascript" ev:event="onkeypress">
  978. <![CDATA[
  979. if(event.keyCode == 13)
  980. {
  981. model.setFocus("ipt_todeptcd2");
  982. }
  983. ]]>
  984. </script>
  985. <script type="javascript" ev:event="xforms-value-changed">
  986. <![CDATA[
  987. fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  988. ]]>
  989. </script>
  990. </input>
  991. <input id="input4" ref="/root/main/balamt/toacntnm" class="input_s_essential" navindex="7" style="left:559px; top:34px; width:176px; height:19px; ">
  992. <script type="javascript" ev:event="onkeypress">
  993. <![CDATA[
  994. if(event.keyCode == 13)
  995. {
  996. model.setFocus("btn_search2");
  997. }
  998. ]]>
  999. </script>
  1000. <script type="javascript" ev:event="xforms-value-changed">
  1001. <![CDATA[
  1002. fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag2", "acntclsflag");
  1003. ]]>
  1004. </script>
  1005. </input>
  1006. </group>
  1007. <line id="line6" class="line_1" style="x1:0px; y1:85px; x2:1193px; y2:85px; "/>
  1008. </case>
  1009. </switch>
  1010. <button id="btn_deptpr" class="btn_sw" visibility="hidden" group="tab" style="left:59px; top:5px; width:69px; height:22px; ">
  1011. <caption>부서별</caption>
  1012. <toggle case="case_deptpr" ev:event="onclick"/>
  1013. <script type="javascript" ev:event="DOMActivate">
  1014. <![CDATA[
  1015. model.setFocus("ipt_deptcd");
  1016. model.setValue("/root/send/params/flag", "dept");
  1017. ]]>
  1018. </script>
  1019. </button>
  1020. <button id="btn_balamtpr" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:0px; top:5px; width:57px; height:22px; ">
  1021. <caption>전체</caption>
  1022. <toggle case="case_balamtpr" ev:event="onclick"/>
  1023. <script type="javascript" ev:event="DOMActivate">
  1024. <![CDATA[
  1025. model.setFocus("ipt_fracntcd2");
  1026. model.setValue("/root/send/params/flag", "balamt");
  1027. ]]>
  1028. </script>
  1029. </button>
  1030. <button id="btn_pjtpr" class="btn_sw" visibility="hidden" group="tab" style="left:130px; top:5px; width:96px; height:22px; ">
  1031. <caption>프로젝트별</caption>
  1032. <toggle case="case_pjtpr" ev:event="onclick"/>
  1033. <script type="javascript" ev:event="DOMActivate">
  1034. <![CDATA[
  1035. model.setFocus("ipt_project");
  1036. model.setValue("/root/send/params/flag", "project");
  1037. ]]>
  1038. </script>
  1039. </button>
  1040. </group>
  1041. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  1042. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1043. <button id="button8" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  1044. <caption>출력</caption>
  1045. <script type="javascript" ev:event="DOMActivate">
  1046. <![CDATA[
  1047. model.setValue("/root/send/retrparams/instnm", cmb_deptprinstcd.label);
  1048. model.setValue("/root/send/retrparams/selectedIndex", sw_grid.selectedIndex);
  1049. model.setValue("/root/send/retrparams/frdate", ipt_frdate.value);
  1050. model.setValue("/root/send/retrparams/todate", ipt_todate.value);
  1051. var prntnextcnt = 0;
  1052. if(sw_grid.selectedIndex == 0)
  1053. {
  1054. grd_deptpr.gridToInstance();
  1055. if(grd_deptpr.rows == grd_deptpr.fixedRows)
  1056. {
  1057. messageBox("출력할 내용이" ,"I004");
  1058. return;
  1059. }
  1060. model.removeNodeset("/root/send/prntlist/gridlist");
  1061. model.copyNode("/root/send/prntlist", "/root/main/deptpr");
  1062. // for(var i = 1 ; i <= model.instance1.selectNodes(grd_deptpr.nodeset).length ; i++)
  1063. // {
  1064. // if(model.getValue(grd_deptpr.nodeset + "[" + i + "]/gubn") != "0")
  1065. // {
  1066. // prntnextcnt ++;
  1067. //
  1068. // model.makeNode("/root/send/prntlist/gridlist[" + prntnextcnt + "]");
  1069. // model.copyNode("/root/send/prntlist/gridlist[" + prntnextcnt + "]", grd_deptpr.nodeset + "[" + i + "]");
  1070. // }
  1071. // }
  1072. model.setValue("/root/send/retrparams/fracntcd", ipt_fracntcd.value);
  1073. model.setValue("/root/send/retrparams/fracntnm", ipt_fracntnm.value);
  1074. model.setValue("/root/send/retrparams/toacntcd", ipt_toacntcd.value);
  1075. model.setValue("/root/send/retrparams/toacntnm", ipt_toacntnm.value);
  1076. }
  1077. else if(sw_grid.selectedIndex == 1)
  1078. {
  1079. grd_balamtpr.gridToInstance();
  1080. if(grd_balamtpr.rows == grd_balamtpr.fixedRows)
  1081. {
  1082. messageBox("출력할 내용이" ,"I004");
  1083. return;
  1084. }
  1085. model.removeNodeset("/root/send/prntlist/gridlist");
  1086. model.copyNode("/root/send/prntlist", "/root/main/balamtpr");
  1087. // for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/balamtpr/prlist").length ; i++)
  1088. // {
  1089. // if(model.getValue(grd_balamtpr.nodeset + "[" + i + "]/gubn") == "0")
  1090. // {
  1091. // model.removenode("/root/main/balamtpr/prlist[" + i + "]");
  1092. //
  1093. // model.makeNode("/root/send/prntlist/gridlist[" + prntnextcnt + "]");
  1094. // model.copyNode("/root/send/prntlist/gridlist[" + prntnextcnt + "]", grd_balamtpr.nodeset + "[" + i + "]");
  1095. // }
  1096. // }
  1097. model.setValue("/root/send/retrparams/fracntcd", ipt_fracntcd2.value)
  1098. model.setValue("/root/send/retrparams/fracntnm", ipt_fracntnm2.value)
  1099. model.setValue("/root/send/retrparams/toacntcd", ipt_toacntcd2.value)
  1100. model.setValue("/root/send/retrparams/toacntnm", ipt_toacntnm2.value)
  1101. }
  1102. else if(sw_grid.selectedIndex == 2)
  1103. { return;
  1104. grd_projectpr.gridToInstance();
  1105. if(grd_projectpr.rows == grd_projectpr.fixedRows)
  1106. {
  1107. messageBox("출력할 내용이" ,"I004");
  1108. return;
  1109. }
  1110. }
  1111. exeReportPreview("RPRAD00701", "XMLSTR", "/root/send/retrparams");
  1112. //model.removeNodeset("/root/send/prntlist/gridlist");
  1113. ]]>
  1114. </script>
  1115. </button>
  1116. </group>
  1117. </xhtml:body>
  1118. </xhtml:html>