SMRAR02000_년감가상각조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>년감가상각조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <maindatalist>
  11. <instcd/>
  12. <acntcd/>
  13. <acntnm/>
  14. <fixasetcd/>
  15. <goodflaghngnm/>
  16. <goodspec/>
  17. <fixasetunit/>
  18. <qty/>
  19. <possnamt/>
  20. <possndd/>
  21. <mngtdeptnm/>
  22. <suplplcenm/>
  23. <cntsyearno/>
  24. <goodmodel/>
  25. <yyyy/>
  26. <basejsak/>
  27. <bbaseksckeum/>
  28. <danggisangak/>
  29. <baseksckeum/>
  30. <janjonsak/>
  31. </maindatalist>
  32. </main>
  33. <send>
  34. <fixasetlist>
  35. <instcd_search/>
  36. <fixasetcd_search/>
  37. <fixasetnm_search/>
  38. <lrgcd_search/>
  39. <before_yyyy/>
  40. <excute_yyyy/>
  41. <goodflag_search/>
  42. <mngtdeptcd_search/>
  43. <mngtdeptnm_search/>
  44. <acntcd_search/>
  45. <page_search/>
  46. </fixasetlist>
  47. <sendlist>
  48. <instcd_search/>
  49. <fixasetcd_search/>
  50. <fixasetnm_search/>
  51. <lrgcd_search/>
  52. <before_yyyy/>
  53. <excute_yyyy/>
  54. <goodflag_search/>
  55. <mngtdeptcd_search/>
  56. <mngtdeptnm_search/>
  57. </sendlist>
  58. </send>
  59. <init>
  60. <goodflag>
  61. <cdnm/>
  62. <cdid/>
  63. </goodflag>
  64. <instcd>
  65. <cdnm/>
  66. <cdid/>
  67. </instcd>
  68. <be_yyyy>
  69. <yyyy/>
  70. </be_yyyy>
  71. <acntlist>
  72. <acntnm>--전체--</acntnm>
  73. <acntcd/>
  74. </acntlist>
  75. <pagelist>
  76. <label/>
  77. <value/>
  78. </pagelist>
  79. </init>
  80. <temp/>
  81. </root>
  82. </instance>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. fInitialize();
  86. ]]>
  87. </script>
  88. <script type="javascript">
  89. <![CDATA[
  90. function fInitialize()
  91. {
  92. misfComboComCdList("Z0007", cmb_instcd_search, "N"); //기관코드
  93. model.setValue(cmb_instcd_search.attribute("ref"), getUserInfo("dutplceinstcd"));
  94. rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"2","N"); //유형자산구분
  95. cmb_goodflag_search.select(0);
  96. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L"); //대분류 코드 콤보 설정.
  97. addComboItem("cmb_goodflag_search","--전체--","","above");
  98. addComboItem("cmb_lrgcd_search","--전체--","","above");
  99. fGetPageList();
  100. model.refresh();
  101. }
  102. //조회
  103. function fGetMainDataList() {
  104. if (ipt_yyyy.value == ""){
  105. messageBox("작업년도를 ","C001");
  106. return false;
  107. }
  108. if ( (ipt_yyyy.value).length != 4 ){
  109. messageBox("작업년도를 4 자리로","C001");
  110. return false;
  111. }
  112. return true;
  113. }
  114. //정렬 순서로 sort함.
  115. function fGetSortSeq(){
  116. var num = grd_main.rows- 1;
  117. if(rdo_seq.value == 1){
  118. grd_main.sort(1, 2, num, 2) = "asc";
  119. }else{
  120. grd_main.sort(1, 3, num, 3) = "asc";
  121. }
  122. model.refresh();
  123. }
  124. //출력물순서 저장
  125. //엑셀 입력
  126. function fInputExcel(pGrid) {
  127. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  128. if(fileName != "") {
  129. pGrid.loadExcel(fileName, 1, true);
  130. // pGrid.deleteRow(1);
  131. for(i = 1; i < pGrid.rows; i++) {
  132. pGrid.rowStatus(i) = 1;
  133. }
  134. pGrid.refresh();
  135. }
  136. }
  137. //계정과목 조회
  138. function fGetAcntcdList() {
  139. if(ipt_yyyy.value.length == 4){
  140. submit("TRRAR02002");
  141. addComboItem("cmb_acntcd_search","--전체--","","above");
  142. if(cmb_acntcd_search.label.length == 0){
  143. cmb_acntcd_search.select(0);
  144. }
  145. }
  146. cmb_acntcd_search.refresh();
  147. }
  148. function fGetPageList() {
  149. if(ipt_yyyy.value.length == 4){
  150. submit("TRRAR02003");
  151. }
  152. if(ipt_yyyy.value.length != 4 || cmb_page_search.length == 1){
  153. model.resetInstanceNode("/root/init/pagelist");
  154. model.setValue("/root/init/pagelist/label","--전체--");
  155. }
  156. cmb_page_search.refresh();
  157. cmb_page_search.select(0);
  158. }
  159. ]]>
  160. </script>
  161. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  163. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  164. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  165. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  167. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  168. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  170. <submission id="TRRAR02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/maindatalist"/>
  171. <submission id="TRRAR02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/init/acntlist"/>
  172. <submission id="TRRAR02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/init/pagelist"/>
  173. <bind id="bind_cpt_gaamtsum" ref="/root/hidden/apsl/sumgaamt" calculate="sum(/root/main/search/maindatalist/gaamt)"/>
  174. </model>
  175. </xhtml:head>
  176. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  177. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  178. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">년 감가상각 조회</caption>
  179. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  180. </group>
  181. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  182. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:62px; vertical-align:top; ">
  183. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:62; background-color:#fffbf2; border-color:#ffd799; "/>
  184. <line id="line5" class="line_4" style="x1:1122px; y1:8px; x2:1122px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  185. <button id="button2" class="btn1_letter2" navindex="10" style="left:1133px; top:21px; width:56px; height:22px; text-align:left; ">
  186. <caption>조회</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. if( fGetMainDataList() ) {
  190. setAlertOn();
  191. model.copyNode ("/root/send/sendlist", "/root/send/fixasetlist");
  192. submit("TRRAR02001");
  193. /* if(cmb_page_search.length == 1){
  194. grd_main.seqRowHeader = 1;
  195. }else{
  196. grd_main.seqRowHeader = cmb_page_search.value - 10000 + 1;
  197. } */
  198. model.refresh();
  199. }
  200. ]]>
  201. </script>
  202. </button>
  203. <select1 id="cmb_instcd_search" ref="/root/send/fixasetlist/instcd_search" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:10px; width:150px; height:19px; ">
  204. <choices>
  205. <itemset>
  206. <label/>
  207. <value/>
  208. </itemset>
  209. </choices>
  210. <script type="javascript" ev:event="xforms-value-changed">
  211. <![CDATA[
  212. fGetPageList();
  213. ]]>
  214. </script>
  215. </select1>
  216. <input id="ipt_yyyy" ref="/root/send/fixasetlist/excute_yyyy" class="input_s_essential" navindex="4" maxlength="6" format="9999" style="left:350px; top:35px; width:100px; height:19px; ">
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. fGetAcntcdList();
  220. fGetPageList();
  221. ]]>
  222. </script>
  223. </input>
  224. <input id="ipt_fixasetcd_search" ref="/root/send/fixasetlist/fixasetcd_search" class="input_search" navindex="8" visibility="visible" style="left:807px; top:33px; width:95px; height:19px; ">
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. if(ipt_fixasetcd_search.value != "")
  228. {
  229. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  230. cmb_instcd_search.value +",fixasetcd," + ipt_fixasetcd_search.value +"," + cmb_goodflag_search.value,
  231. "", "fixasetcd_search,fixasetnm_search", ipt_fixasetcd_search, "SPRSD00240",
  232. "instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  233. }else{
  234. ipt_fixasetnm_search.value = '';
  235. }
  236. fGetPageList();
  237. ipt_fixasetcd_search.refresh();
  238. ipt_fixasetnm_search.refresh();
  239. ]]>
  240. </script>
  241. </input>
  242. <input id="ipt_fixasetnm_search" ref="/root/send/fixasetlist/fixasetnm_search" class="input_search" navindex="9" style="left:925px; top:33px; width:185px; height:19px; "/>
  243. <caption id="caption2" class="search_name" style="left:461px; top:11px; width:89px; height:17px; ">대 분 류 :</caption>
  244. <button id="btn_fixasetcd" class="icon_search" navindex="-1" style="left:906px; top:35px; width:16px; height:16px; ">
  245. <caption/>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. rszfOpenPopUpListByWndName(ipt_fixasetcd_search, "", "fixasetcd_search,fixasetnm_search","SPRSD00240","instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  249. ipt_fixasetcd_search.refresh();
  250. ipt_fixasetnm_search.refresh();
  251. ]]>
  252. </script>
  253. </button>
  254. <caption id="caption3" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">기관코드 :</caption>
  255. <select1 id="cmb_lrgcd_search" ref="/root/send/fixasetlist/lrgcd_search" navindex="3" visibility="visible" appearance="minimal" style="left:550px; top:10px; width:150px; height:19px; ">
  256. <choices>
  257. <itemset>
  258. <label/>
  259. <value/>
  260. </itemset>
  261. </choices>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. fGetAcntcdList();
  265. fGetPageList();
  266. ]]>
  267. </script>
  268. </select1>
  269. <select1 id="cmb_goodflag_search" ref="/root/send/fixasetlist/goodflag_search" class="input_s_essential" navindex="2" appearance="minimal" style="left:350px; top:10px; width:100px; height:19px; ">
  270. <choices>
  271. <itemset nodeset="/root/init/goodflag">
  272. <label ref="label"/>
  273. <value ref="value"/>
  274. </itemset>
  275. </choices>
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. // 대분류 코드 콤보 설정.
  279. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L");
  280. addComboItem("cmb_lrgcd_search","--전체--","","above");
  281. cmb_lrgcd_search.dispatch("xforms-value-changed");
  282. fGetPageList();
  283. ]]>
  284. </script>
  285. </select1>
  286. <caption id="cap_codeflag" class="search_name" style="left:260px; top:35px; width:90px; height:17px; ">상각년도 :</caption>
  287. <caption id="caption8" class="search_name" style="left:260px; top:10px; width:90px; height:17px; ">자산구분 :</caption>
  288. <caption id="caption9" class="search_name" style="left:715px; top:34px; width:110px; height:17px; ">자산코드 :</caption>
  289. <input id="ipt_mngtdeptcd_search" ref="/root/send/fixasetlist/mngtdeptcd_search" class="input_search" navindex="6" style="left:807px; top:8px; width:95px; height:19px; ">
  290. <script type="javascript" ev:event="xforms-value-changed">
  291. <![CDATA[
  292. if(ipt_mngtdeptcd_search.value.length == 0)
  293. ipt_mngtdeptnm_search.value = "";
  294. else
  295. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  296. "deptcd," + ipt_mngtdeptcd_search.value, "", "mngtdeptcd_search,mngtdeptnm_search",
  297. ipt_mngtdeptcd_search, "SPRPZ00200", "","");
  298. fGetPageList();
  299. model.refresh();
  300. ]]>
  301. </script>
  302. </input>
  303. <caption id="cap_installplcecd" class="search_name" style="left:715px; top:9px; width:92px; height:17px; ">사용부서 :</caption>
  304. <button id="btn_mngtdeptcd_search" class="icon_search" navindex="-1" style="left:906px; top:8px; width:16px; height:16px; ">
  305. <caption/>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. misfOpenPopUpList("02", ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
  309. model.refresh();
  310. ]]>
  311. </script>
  312. </button>
  313. <input id="ipt_mngtdeptnm_search" ref="/root/send/fixasetlist/mngtdeptnm_search" class="input_search" navindex="7" appearance="input" style="left:925px; top:8px; width:185px; height:19px; ">
  314. <script type="javascript" ev:event="xforms-value-changed">
  315. <![CDATA[
  316. if(ipt_mngtdeptnm_search.value.length == 0)
  317. ipt_mngtdeptcd_search.value = "";
  318. else
  319. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  320. "deptnm," + ipt_mngtdeptnm_search.value, "", "mngtdeptcd_search,mngtdeptnm_search",
  321. ipt_mngtdeptcd_search, "SPRPZ00200", "","");
  322. model.refresh();
  323. ]]>
  324. </script>
  325. </input>
  326. <select1 id="cmb_acntcd_search" ref="/root/send/fixasetlist/acntcd_search" navindex="5" visibility="visible" appearance="minimal" style="left:550px; top:35px; width:150px; height:19px; ">
  327. <choices>
  328. <itemset nodeset="/root/init/acntlist">
  329. <label ref="acntnm"/>
  330. <value ref="acntcd"/>
  331. </itemset>
  332. </choices>
  333. <script type="javascript" ev:event="xforms-value-changed">
  334. <![CDATA[
  335. fGetPageList();
  336. ]]>
  337. </script>
  338. </select1>
  339. <caption id="caption5" class="search_name" style="left:460px; top:35px; width:90px; height:17px; ">계정과목 :</caption>
  340. <caption id="caption10" class="search_name" style="left:11px; top:35px; width:89px; height:17px; ">조회범위 :</caption>
  341. <select1 id="cmb_page_search" ref="/root/send/fixasetlist/page_search" class="input_s_essential" navindex="2" appearance="minimal" style="left:100px; top:35px; width:150px; height:19px; ">
  342. <choices>
  343. <itemset nodeset="/root/init/pagelist">
  344. <label ref="label"/>
  345. <value ref="value"/>
  346. </itemset>
  347. </choices>
  348. </select1>
  349. </group>
  350. <line id="line3" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  351. <button id="btn_excel" class="btn5_letter5" navindex="12" style="left:1115px; top:77px; width:75px; height:19px; ">
  352. <caption>Excel 저장</caption>
  353. <script type="javascript" ev:event="DOMActivate">
  354. <![CDATA[
  355. if( grd_main.rows - grd_main.fixedRows > 0 ) {
  356. var fileName ="";
  357. if(cmb_page_search.length == 1){
  358. fileName = "년감가상각조회List_" + getCurrentDate();
  359. }else{
  360. fileName = "년감가상각조회List_" + getCurrentDate() + "_" + cmb_page_search.label.replace("/","of");
  361. }
  362. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  363. grd_main.saveExcel(fileName, "Sheet");
  364. } else {
  365. messageBox("저장 데이터가","I004");
  366. }
  367. ]]>
  368. </script>
  369. </button>
  370. <datagrid id="grd_main" nodeset="/root/main/maindatalist" caption="기관코드^계정코드^계정명^자산코드^자산명^규격^단위^수량^구입금액^구입일^사용부서^공급처^내용년수^모델명^취득금액^전년누계액^당기상각액^폐기상각비^감가누계^잔존가액" colsep="^" colwidth="0, 0, 112, 99, 180, 100, 60, 50, 90, 80, 100, 120, 70, 120, 70, 90, 100, 100, 90, 80" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" tooltip="true" navindex="11" style="left:0px; top:105px; width:1194px; height:610px; ">
  371. <col ref="instcd" style="text-align:right; "/>
  372. <col ref="acntcd" style="left:106px; top:23px; width:128px; height:23px; "/>
  373. <col ref="acntnm" style="text-align:left; "/>
  374. <col ref="fixasetcd"/>
  375. <col ref="goodflaghngnm" format="yyyy-mm-dd" style="left:904px; top:23px; width:100px; height:23px; text-align:left; "/>
  376. <col ref="goodspec" style="text-align:left; "/>
  377. <col ref="fixasetunit" style="text-align:center; "/>
  378. <col ref="qty" style="text-align:center; "/>
  379. <col ref="possnamt" format="(-)#,###" style="text-align:right; "/>
  380. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  381. <col ref="mngtdeptnm"/>
  382. <col ref="suplplcenm"/>
  383. <col ref="cntsyearno" style="text-align:center; "/>
  384. <col ref="goodmodel" style="left:1045px; top:23px; width:100px; height:23px; "/>
  385. <col ref="basejsak" format="(-)#,###" style="text-align:right; "/>
  386. <col ref="bbaseksckeum" format="(-)#,###" style="text-align:right; "/>
  387. <col ref="danggisangak" format="(-)#,###" style="text-align:right; "/>
  388. <col ref="cheobunsangak" format="(-)#,###" style="text-align:right; "/>
  389. <col ref="baseksckeum" format="(-)#,###" style="text-align:right; "/>
  390. <col ref="janjonsak" format="(-)#,###" style="left:1651px; top:23px; width:80px; height:23px; text-align:right; "/>
  391. <script type="javascript" ev:event="onaftersort">
  392. <![CDATA[
  393. grd_main.gridToInstance();
  394. ]]>
  395. </script>
  396. </datagrid>
  397. <caption id="caption21" class="tit_2" style="left:5px; top:82px; width:131px; height:13px; ">출력 목록</caption>
  398. <caption id="caption7" style="left:85px; top:82px; width:560px; height:14px; ">(* 10,000건 이상인 경우 10,000건만 조회가 됩니다. 조회범위 조건을 입력 하신후 조회하세요.)</caption>
  399. </group>
  400. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  401. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  402. </group>
  403. <caption id="caption1" class="cell_1" visibility="hidden" style="left:134px; top:757px; width:120px; height:23px; text-align:center; vertical-align:middle; ">가수금합계</caption>
  404. <caption id="cpt_gaamtsum" ref="/root/hidden/apsl/sumgaamt" visibility="hidden" format="(-)#,###" style="left:255px; top:757px; width:151px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  405. </xhtml:body>
  406. </xhtml:html>