SMRAA00300_감가상각내역.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. <depreciation>
  11. <depreciationlist/>
  12. </depreciation>
  13. <repay>
  14. <repaylist/>
  15. </repay>
  16. </main>
  17. <send>
  18. <condition1>
  19. <instcd/>
  20. <acntyy/>
  21. </condition1>
  22. <condition2>
  23. <instcd/>
  24. <ymflag/>
  25. <ymdd/>
  26. </condition2>
  27. </send>
  28. <init/>
  29. <temp/>
  30. </root>
  31. </instance>
  32. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  37. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  39. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. fOpenForm();
  43. //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
  44. ]]>
  45. </script>
  46. <script type="javascript">
  47. <![CDATA[
  48. //========================================================================================
  49. //화면 로드시 초기화 함수
  50. //========================================================================================
  51. function fOpenForm() {
  52. model.removeNodeset(grd_depreciationlist.nodeset);
  53. model.removeNodeset(grd_repaylist.nodeset);
  54. model.refresh();
  55. model.setValue(ipt_acntyy.attribute("ref"), radfgetAcntYY(getUserInfo("dutplceinstcd"), getCurrentDate()));
  56. ipt_acntyy.refresh();
  57. misfComboComCdList("Z0007", cmb_instcd, "N");
  58. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  59. cmb_instcd.refresh();
  60. btn_search.dispatch("DOMActivate");
  61. }
  62. ]]>
  63. </script>
  64. <submission id="TRRAA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition1" resultref="/root/main/depreciation"/>
  65. <submission id="TRRAA00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/main/repay"/>
  66. <submission id="TXRAA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition2" resultref="/root/temp"/>
  67. </model>
  68. </xhtml:head>
  69. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  70. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  71. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">감가상각내역</caption>
  72. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  73. </group>
  74. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:730px; ">
  75. <line id="line3" class="line_1" style="x1:2px; y1:90px; x2:270px; y2:90px; "/>
  76. <caption id="caption21" class="tit_2" style="left:5px; top:75px; width:131px; height:13px; ">감가상각목록</caption>
  77. <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
  78. <group id="group4" style="left:0px; top:10px; width:1195; height:60px; vertical-align:top; ">
  79. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  80. <button id="btn_search" class="btn1_letter2" navindex="16" style="left:1124; top:19px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. model.removeNodeset(grd_depreciationlist.nodeset);
  85. model.removeNodeset(grd_repaylist.nodeset);
  86. submit("TRRAA00301");
  87. ]]>
  88. </script>
  89. </button>
  90. <line id="line30" class="line_4" style="x1:1109; y1:8px; x2:1109; y2:51px; "/>
  91. <select1 id="cmb_instcd" ref="/root/send/condition1/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:125px; top:9px; width:205px; height:19px; ">
  92. <choices>
  93. <itemset>
  94. <label/>
  95. <value/>
  96. </itemset>
  97. </choices>
  98. </select1>
  99. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; text-align:left; ">기 관 :</caption>
  100. <button id="btn_next" class="icon_next" navindex="-1" style="left:209px; top:35px; width:13px; height:15px; ">
  101. <caption/>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. var vYYYY = model.getValue(ipt_acntyy.attribute("ref"));
  105. var vNum = parseInt(vYYYY, 10);
  106. if (vNum != 1)
  107. {
  108. vNum++;
  109. }
  110. else
  111. {
  112. return;
  113. }
  114. model.setValue(ipt_acntyy.attribute("ref"), vNum);
  115. ipt_acntyy.refresh();
  116. btn_search.dispatch("DOMActivate");
  117. ]]>
  118. </script>
  119. </button>
  120. <caption id="caption2" class="search_name" style="left:16px; top:35px; width:109px; height:17px; ">회계 년도 :</caption>
  121. <input id="ipt_acntyy" ref="/root/send/condition1/acntyy" class="input_s_essential" navindex="1" maxlength="4" style="left:139px; top:34px; width:68px; height:19px; text-align:center; ">
  122. <script type="javascript" ev:event="xforms-value-changed">
  123. <![CDATA[
  124. btn_search.dispatch("DOMActivate");
  125. ]]>
  126. </script>
  127. </input>
  128. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:124px; top:35px; width:13px; height:15px; ">
  129. <caption/>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. var vYYYY = model.getValue(ipt_acntyy.attribute("ref"));
  133. var vNum = parseInt(vYYYY, 10);
  134. if (vNum != 1)
  135. {
  136. vNum--;
  137. }
  138. else
  139. {
  140. return;
  141. }
  142. model.setValue(ipt_acntyy.attribute("ref"), vNum);
  143. ipt_acntyy.refresh();
  144. btn_search.dispatch("DOMActivate");
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="button5" class="btn4_letter4" visibility="visible" style="left:1015px; top:20px; width:80px; height:22px; ">
  149. <caption>자료전송</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. if(grd_repaylist.rows > grd_repaylist.fixedRows)
  153. {
  154. model.setValue("/root/send/condition2/instcd", grd_depreciationlist.valueMatrix(grd_depreciationlist.row, grd_depreciationlist.colRef("instcd")));
  155. model.setValue("/root/send/condition2/ymdd", grd_depreciationlist.valueMatrix(grd_depreciationlist.row, grd_depreciationlist.colRef("ymdd")));
  156. if(submit("TXRAA00301"))
  157. {
  158. messageBox("자료가 전송", "I002");
  159. }
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. </group>
  165. <datagrid id="grd_depreciationlist" nodeset="/root/main/depreciation/depreciationlist" caption="기관코드^년월구분^상각일^실행일^담당자" colsep="^" colwidth="0, 0, 90, 90, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" selectionmode="free" style="left:2px; top:95px; width:268px; height:630px; ">
  166. <col ref="instcd" style="text-align:left; "/>
  167. <col ref="ymflag" style="text-align:left; "/>
  168. <col ref="ymdd" format="yyyy-mm-dd" style="text-align:left; "/>
  169. <col ref="exedd" format="yyyy-mm-dd" style="text-align:left; "/>
  170. <col ref="repaypsn" style="text-align:left; "/>
  171. <script type="javascript" ev:event="onrowchanged">
  172. <![CDATA[
  173. if(grd_depreciationlist.row >= grd_depreciationlist.fixedRows)
  174. {
  175. model.setValue("/root/send/condition2/instcd", grd_depreciationlist.valueMatrix(grd_depreciationlist.row, grd_depreciationlist.colRef("instcd")));
  176. model.setValue("/root/send/condition2/ymflag", grd_depreciationlist.valueMatrix(grd_depreciationlist.row, grd_depreciationlist.colRef("ymflag")));
  177. model.setValue("/root/send/condition2/ymdd", grd_depreciationlist.valueMatrix(grd_depreciationlist.row, grd_depreciationlist.colRef("ymdd")));
  178. submit("TRRAA00302");
  179. }
  180. grd_depreciationlist.dispatch("onmouseup")
  181. ]]>
  182. </script>
  183. </datagrid>
  184. <datagrid id="grd_repaylist" nodeset="/root/main/repay/repaylist" caption="기관코드^년월구분^자산코드^자산명^취득일^상각일^상각종료일^계정코드^계정명^상각구분^상각방법^내용년수^상각율^기초잔액^취득증감^상각액^잔액" colsep="^" colwidth="0,0,100,120,80,80,80,80,100,80,80,80,80,100,100,100,100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:275px; top:95px; width:920px; height:630px; ">
  185. <col ref="instcd" style="text-align:left; "/>
  186. <col ref="ymflag" style="text-align:left; "/>
  187. <col ref="fixasetcd" style="text-align:left; "/>
  188. <col ref="goodflaghngnm" style="text-align:left; "/>
  189. <col ref="possndd" format="yyyy-mm-dd" style="text-align:left; "/>
  190. <col ref="ymdd" format="yyyy-mm-dd" style="text-align:left; "/>
  191. <col ref="cntsyearnotodd" format="yyyy-mm-dd" style="text-align:left; "/>
  192. <col ref="acntcd" style="text-align:left; "/>
  193. <col ref="acntnm" style="text-align:left; "/>
  194. <col ref="repayflag" style="text-align:left; "/>
  195. <col ref="repaymthd" style="text-align:left; "/>
  196. <col ref="cntsyearno" format="#,###" style="text-align:right; "/>
  197. <col ref="repayrate" format="#.###" style="text-align:right; "/>
  198. <col ref="fixasetamt" format="#,###" style="text-align:right; "/>
  199. <col ref="gainflucamt" format="#,###" style="text-align:right; "/>
  200. <col ref="redurepayamt" format="#,###" style="text-align:right; "/>
  201. <col ref="balamt" format="#,###" style="text-align:right; "/>
  202. </datagrid>
  203. <line id="line1" class="line_1" style="x1:275px; y1:90px; x2:1195px; y2:90px; "/>
  204. <caption id="caption1" class="tit_2" style="left:245px; top:75px; width:131px; height:13px; ">감가상각내역</caption>
  205. </group>
  206. </xhtml:body>
  207. </xhtml:html>