SMRAR01400_월별감가상각처리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. <possndd/>
  12. <instcd/>
  13. <goodflag/>
  14. <lrgcd/>
  15. <fixasetcd/>
  16. <acntcd/>
  17. <cntsyearno/>
  18. <repayrate/>
  19. <jabonjcdate/>
  20. <chebundate/>
  21. <goodqty/>
  22. <chebunqty/>
  23. <possnamt/>
  24. <repaymthd/>
  25. </maindatalist>
  26. </main>
  27. <send>
  28. <fixasetlist>
  29. <instcd_search/>
  30. <fixasetcd_search/>
  31. <fixasetnm_search/>
  32. <lrgcd_search/>
  33. <before_yyyymm/>
  34. <excute_yyyymm/>
  35. <goodflag_search/>
  36. </fixasetlist>
  37. <sendlist>
  38. <instcd_search/>
  39. <fixasetcd_search/>
  40. <fixasetnm_search/>
  41. <lrgcd_search/>
  42. <before_yyyymm/>
  43. <excute_yyyymm/>
  44. <goodflag_search/>
  45. </sendlist>
  46. </send>
  47. <init>
  48. <goodflag>
  49. <cdnm/>
  50. <cdid/>
  51. </goodflag>
  52. <instcd>
  53. <cdnm/>
  54. <cdid/>
  55. </instcd>
  56. <be_yyyymm>
  57. <yyyymm/>
  58. </be_yyyymm>
  59. </init>
  60. <temp/>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fInitialize();
  73. ]]>
  74. </script>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fInitialize()
  78. {
  79. submit("TRRAR01401"); //기작업년월
  80. misfComboComCdList("Z0007", cmb_instcd_search, "N"); //기관코드
  81. model.setValue(cmb_instcd_search.attribute("ref"), getUserInfo("dutplceinstcd"));
  82. rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"2","N"); //유형자산구분
  83. cmb_goodflag_search.select(0);
  84. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L"); //대분류 코드 콤보 설정.
  85. addComboItem("cmb_goodflag_search","--전체--","","above");
  86. addComboItem("cmb_lrgcd_search","--전체--","","above");
  87. model.refresh();
  88. }
  89. //조회
  90. function fGetMainDataList() {
  91. if (ipt_yyyymm.value == ""){
  92. messageBox("작업년월을 ","C001");
  93. return false;
  94. }
  95. if ( (ipt_yyyymm.value).length != 6 ){
  96. messageBox("작업년월을 6 자리로","C001");
  97. return false;
  98. }
  99. return true;
  100. }
  101. ]]>
  102. </script>
  103. <submission id="TRRAR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/be_yyyymm"/>
  104. <submission id="TRRAR01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/maindatalist"/>
  105. <submission id="TXRAR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/temp"/>
  106. </model>
  107. </xhtml:head>
  108. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">월 감가상각 처리</caption>
  111. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  112. </group>
  113. <group id="group3" scroll="auto" style="left:0px; top:12px; width:1195px; height:685px; ">
  114. <button id="btn_depreciation" class="btn4_letter6" style="left:1088px; top:4px; width:104px; height:22px; ">
  115. <caption>감가상각실행</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. if( fGetMainDataList() ) {
  119. rtn = messageBox("입력하신 조건대로 감가상각 처리를 합니다.","Q002");
  120. if ( rtn == "6" ) {
  121. model.copyNode ("/root/send/sendlist", "/root/send/fixasetlist");
  122. setAlertOn();
  123. submit("TXRAR01401")
  124. model.refresh();
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </button>
  130. <line id="line3" class="line_1" style="x1:0px; y1:35px; x2:1192px; y2:35px; "/>
  131. <group id="grp_detail" scroll="auto" style="left:0px; top:39px; width:1195px; height:56px; ">
  132. <!--</group>-->
  133. <caption id="cap_goodflaghngnm" class="cell_1" style="left:372px; top:29px; width:150px; height:27px; vertical-align:middle; ">대분류</caption>
  134. <caption id="cap_instcd" class="cell_1" style="left:740px; top:0px; width:150px; height:27px; vertical-align:middle; ">기관코드</caption>
  135. <caption id="cap_goodflagengnm" class="cell_1" style="left:0px; top:29px; width:150px; height:27px; vertical-align:middle; ">유형자산구분</caption>
  136. <input id="ipt_fixasetcd_search" ref="/root/send/fixasetlist/fixasetcd_search" visibility="visible" style="left:900px; top:30px; width:95px; height:19px; ">
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. if(ipt_fixasetcd_search.value != "")
  140. {
  141. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  142. cmb_instcd_search.value +",fixasetcd," + ipt_fixasetcd_search.value +"," + cmb_goodflag_search.value,
  143. "", "fixasetcd_search,fixasetnm_search", ipt_fixasetcd_search, "SPRSD00240",
  144. "instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  145. }else{
  146. ipt_fixasetnm_search.value = '';
  147. }
  148. ipt_fixasetcd_search.refresh();
  149. ipt_fixasetnm_search.refresh();
  150. ]]>
  151. </script>
  152. </input>
  153. <button id="btn_fixasetcd" class="icon_search" style="left:999px; top:32px; width:16px; height:16px; ">
  154. <caption/>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. rszfOpenPopUpListByWndName(ipt_fixasetcd_search, "", "fixasetcd_search,fixasetnm_search","SPRSD00240","instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  158. ipt_fixasetcd_search.refresh();
  159. ipt_fixasetnm_search.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <input id="ipt_fixasetnm_search" ref="/root/send/fixasetlist/fixasetnm_search" navindex="3" style="left:1023px; top:30px; width:160px; height:19px; "/>
  164. <caption id="caption1" class="cell_1" style="left:740px; top:28px; width:150px; height:27px; vertical-align:middle; ">자산코드</caption>
  165. <select1 id="cmb_lrgcd_search" ref="/root/send/fixasetlist/lrgcd_search" visibility="visible" appearance="minimal" style="left:531px; top:32px; width:200px; height:19px; ">
  166. <choices>
  167. <itemset>
  168. <label/>
  169. <value/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="caption2" class="cell_1" style="left:1px; top:1px; width:150; height:27px; vertical-align:middle; ">기작업년월</caption>
  174. <caption id="caption5" class="cell_1" style="left:372px; top:0px; width:150px; height:27px; vertical-align:middle; ">작업년월</caption>
  175. <output id="ipt_be_yyyymm" ref="/root/init/be_yyyymm/yyyymm" class="output_fix" navindex="3" appearance="output" style="left:161px; top:4px; width:200; height:19px; "/>
  176. <line id="line5" class="line_2" style="x1:1px; y1:55px; x2:1191; y2:55px; "/>
  177. <line id="line6" class="line_2" style="x1:1px; y1:27px; x2:1191; y2:27px; "/>
  178. <line id="line8" class="line_2" style="x1:371px; y1:0px; x2:371px; y2:56; "/>
  179. <select1 id="cmb_goodflag_search" ref="/root/send/fixasetlist/goodflag_search" appearance="minimal" style="left:161px; top:32px; width:200px; height:19px; ">
  180. <choices>
  181. <itemset nodeset="/root/init/goodflag">
  182. <label ref="label"/>
  183. <value ref="value"/>
  184. </itemset>
  185. </choices>
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. // 대분류 코드 콤보 설정.
  189. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L");
  190. addComboItem("cmb_lrgcd_search","--전체--","","above");
  191. cmb_lrgcd_search.dispatch("xforms-value-changed");
  192. ]]>
  193. </script>
  194. </select1>
  195. <input id="ipt_yyyymm" ref="/root/send/fixasetlist/excute_yyyymm" navindex="3" maxlength="6" style="left:532px; top:4px; width:200px; height:19px; "/>
  196. <select1 id="cmb_instcd_search" ref="/root/send/fixasetlist/instcd_search" disabled="true" appearance="minimal" style="left:900px; top:4px; width:283px; height:19px; ">
  197. <choices>
  198. <itemset>
  199. <label/>
  200. <value/>
  201. </itemset>
  202. </choices>
  203. </select1>
  204. <line id="line2" class="line_2" style="x1:741px; y1:0px; x2:741px; y2:56; "/>
  205. <line id="line1" class="line_2" style="x1:1191px; y1:0px; x2:1191px; y2:56px; "/>
  206. <line id="line4" class="line_2" style="x1:0px; y1:0px; x2:0px; y2:56px; "/>
  207. </group>
  208. <line id="line14" class="line_2" style="x1:0px; y1:25px; x2:1192; y2:25px; "/>
  209. <line id="line7" class="line_1" style="x1:0px; y1:120px; x2:1192px; y2:120px; "/>
  210. <datagrid id="grd_main" nodeset="/root/main/maindatalist" dragmode="false" caption="취득일자^기관코드^자산구분코드^대분류코드^자산코드^계정코드^내용년수^상각율^자본적지출일자^처분일자^취득수량^처분수량^취득금액^상각방법코드" colsep="^" colwidth="80, 70, 85, 70, 100, 90, 70, 70, 90, 90, 60, 60, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:125px; width:1194px; height:535px; ">
  211. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  212. <col ref="instcd" style="text-align:center; "/>
  213. <col ref="goodflag" style="text-align:center; "/>
  214. <col ref="lrgcd" style="text-align:center; "/>
  215. <col ref="fixasetcd" style="text-align:center; "/>
  216. <col ref="acntcd" style="text-align:center; "/>
  217. <col ref="cntsyearno" style="text-align:center; "/>
  218. <col ref="repayrate" style="text-align:center; "/>
  219. <col ref="jabonjcdate" format="yyyy-mm-dd" style="text-align:center; "/>
  220. <col ref="chebundate" format="yyyy-mm-dd" style="text-align:center; "/>
  221. <col ref="goodqty" style="text-align:center; "/>
  222. <col ref="chebunqty" style="text-align:center; "/>
  223. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  224. <col ref="repaymthd" style="text-align:center; "/>
  225. <script type="javascript" ev:event="onaftersort">
  226. <![CDATA[
  227. grd_main.gridToInstance();
  228. ]]>
  229. </script>
  230. </datagrid>
  231. <caption id="caption21" class="tit_2" style="left:5px; top:102px; width:131px; height:13px; ">출력 목록</caption>
  232. <button id="button2" class="btn1_letter2" navindex="4" style="left:1028px; top:4px; width:56px; height:22px; text-align:left; ">
  233. <caption>조회</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. if( fGetMainDataList() ) {
  237. setAlertOn();
  238. model.copyNode ("/root/send/sendlist", "/root/send/fixasetlist");
  239. submit("TRRAR01402");
  240. model.refresh();
  241. }
  242. ]]>
  243. </script>
  244. </button>
  245. <caption id="caption7" style="left:85px; top:102px; width:560px; height:13px; ">(* 10,000건 이상인 경우 10,000건만 조회가 됩니다. 다 조회가 안되도 감가상각실행 하시면 됩니다.)</caption>
  246. </group>
  247. </xhtml:body>
  248. </xhtml:html>