SMRAA00700_(X)계정별감가상각명세서.xrw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>유형자산명세서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <detailist/>
  12. </list>
  13. </main>
  14. <send>
  15. <condition>
  16. <instcd/>
  17. <wkdt/>
  18. <goodflag/>
  19. <lrgcd/>
  20. </condition>
  21. </send>
  22. <init/>
  23. <temp/>
  24. </root>
  25. </instance>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  29. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  31. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fOpenForm();
  36. //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
  37. ]]>
  38. </script>
  39. <script type="javascript">
  40. <![CDATA[
  41. //========================================================================================
  42. //화면 로드시 초기화 함수
  43. //========================================================================================
  44. function fOpenForm() {
  45. //model.removenode("/root/main/notelist");
  46. var sToday = getCurrentDate().toString();
  47. var sFrday = sToday.substring(0,4) + "0301";
  48. model.setValue("/root/send/condition/wkdt",sToday);
  49. var instcd = getUserInfo("dutplceinstcd");
  50. model.setValue("/root/send/condition/instcd",instcd);
  51. //misfComboComCdListMulti("R0025", "cmb_goodflag_search");
  52. // misfComboComCdListMulti("R0044", "cmb_goodflag_search");
  53. model.refresh();
  54. }
  55. //========================================================================================
  56. //관리대장 조회
  57. //========================================================================================
  58. function fRetrieve()
  59. {
  60. model.removeNodeset("/root/main/list/detailist");
  61. model.reset("/root/main/list/detailist");
  62. model.resetInstanceNode("/root/main/list/detailist");
  63. submit("TRRAA00601");
  64. datagrid11.subtotalposition="below";
  65. datagrid11.multitotals=true;
  66. datagrid11.subtotal("sum", 1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  67. datagrid11.subtotal("sum", 1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  68. datagrid11.subtotal("sum", 1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  69. datagrid11.subtotal("sum", 1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  70. datagrid11.subtotal("sum", 1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  71. datagrid11.subtotal("sum", 1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  72. datagrid11.subtotal("sum", 1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  73. datagrid11.subtotal("sum", 1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  74. datagrid11.subtotal("sum", 1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  75. datagrid11.subtotal("sum", 1, 13, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 3, "합계", false);
  76. model.refresh();
  77. }
  78. //========================================================================================
  79. //엑셀입력(excel file을 그리드에 입력)
  80. //========================================================================================
  81. function fInputExcel(pGrid) {
  82. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  83. if(fileName != "") {
  84. pGrid.loadExcel(fileName, 1, true);
  85. pGrid.deleteRow(1);
  86. for(i = 1; i < pGrid.rows; i++) {
  87. pGrid.rowStatus(i) = 1;
  88. }
  89. pGrid.refresh();
  90. }
  91. }
  92. ]]>
  93. </script>
  94. <submission id="TRRAA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
  95. </model>
  96. </xhtml:head>
  97. <xhtml:body guideline="1,1195;1,23;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  98. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">유형자산 명세서</caption>
  100. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  101. </group>
  102. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:730px; ">
  103. <line id="line3" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:100px; "/>
  104. <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:134px; height:14px; ">유형자산명세서</caption>
  105. <button id="btn_excadd" class="btn2_letter4" style="left:1115px; top:50px; width:64px; height:19px; text-align:left; ">
  106. <caption>엑셀입력</caption>
  107. <script type="javascript" ev:event="onclick">
  108. <![CDATA[
  109. fInputExcel(grd_notelist);
  110. ]]>
  111. </script>
  112. </button>
  113. <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
  114. <group id="group4" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  115. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  116. <button id="btn_search" class="btn1_letter2" navindex="16" style="left:1124; top:19px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. fRetrieve();
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line30" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  125. <input id="input1" ref="/root/send/condition/wkdt" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:103px; top:20px; width:100px; height:19px; "/>
  126. <caption id="caption8" class="search_name" style="left:23px; top:20px; width:86px; height:17px; ">상각 월 :</caption>
  127. </group>
  128. <datagrid id="datagrid11" nodeset="/root/main/list/detailist" caption="기관코드^계정코드^계정명^기초가액^당기증가^당기감소^기말잔액^감가충당금^상각전잔액^당기상각액^충당금누계^미상각잔액^차액" colsep="^" colwidth="0,0, 100, 120, 95, 95, 110, 110, 110, 110, 110, 110, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:2px; top:110px; width:1193px; height:610px; ">
  129. <col ref="instcd"/>
  130. <col ref="acntcd"/>
  131. <col ref="acntnm" style="left:100px; top:23px; width:200px; height:23px; text-align:left; "/>
  132. <col ref="basamt" format="#,###" style="text-align:right; "/>
  133. <col ref="thisup" format="#,###" style="text-align:right; "/>
  134. <col ref="thisdw" format="#,###" style="text-align:right; "/>
  135. <col ref="lstsum" format="#,###" style="text-align:right; "/>
  136. <col ref="bfdprsum" format="#,###" style="text-align:right; "/>
  137. <col ref="rmnamt" format="#,###" style="text-align:right; "/>
  138. <col ref="thdpramt" format="#,###" style="text-align:right; "/>
  139. <col ref="dprsum" format="#,###" style="text-align:right; "/>
  140. <col ref="nodpramt" format="#,###" style="text-align:right; "/>
  141. <col ref="dfamt" format="#,###" style="left:660px; top:23px; width:120px; height:23px; text-align:right; "/>
  142. </datagrid>
  143. <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1115px; top:75px; width:64px; height:19px; text-align:left; ">
  144. <caption>엑셀출력</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. misfSaveExcel(datagrid11);
  148. ]]>
  149. </script>
  150. </button>
  151. </group>
  152. </xhtml:body>
  153. </xhtml:html>