SMRAR01400_월별감가상각처리.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAR01400" position="absolute 0 0 1198 714" titletext="월 감가상각 처리" oninit="SMRAR01400_oninit" onload="SMRAR01400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="월 감가상각 처리" class="tit_1" position="absolute 0 0 293 25"/>
  8. <Shape id="line14" class="line_2" position="absolute 0 56 1195 62" anchor="left top right"/>
  9. <Button id="button2" taborder="1" text="조회" class="btn1" position="absolute 887 35 943 57" onclick="button2_onclick" anchor="top right"/>
  10. <Button id="btn_depreciation" taborder="2" text="감가상각실행" class="btn4" position="absolute 945 35 1049 57" onclick="btn_depreciation_onclick" anchor="top right"/>
  11. <Button id="btn_clse" taborder="3" text="감가상각월마감관리" class="btn4" position="absolute 1051 35 1191 57" onclick="btn_clse_onclick" anchor="top right"/>
  12. <Shape id="line3" class="line_10" position="absolute 0 75 1195 81" anchor="left top right"/>
  13. <Static id="cap_goodflaghngnm" text="대분류" class="cell_1" position="absolute 372 110 522 137"/>
  14. <Static id="cap_instcd" text="기관코드" class="cell_1" position="absolute 740 80 890 107"/>
  15. <Static id="cap_goodflagengnm" text="유형자산구분" class="cell_1" position="absolute 3 110 153 137"/>
  16. <Edit id="ipt_fixasetcd_search" taborder="4" position="absolute 900 114 995 133" onkeydown="ipt_fixasetcd_search_onkeydown" autoselect="true"/>
  17. <Button id="btn_fixasetcd" taborder="5" class="icon_search" position="absolute 999 116 1015 132" onclick="btn_fixasetcd_onclick"/>
  18. <Edit id="ipt_fixasetnm_search" taborder="6" position="absolute 1023 114 1183 133" autoselect="true"/>
  19. <Static id="caption1" text="자산코드" class="cell_1" position="absolute 740 110 890 137"/>
  20. <Combo id="cmb_lrgcd_search" taborder="7" position="absolute 531 114 731 133"/>
  21. <Static id="caption2" text="기작업년월" class="cell_1" position="absolute 3 80 153 107"/>
  22. <Static id="caption5" text="작업년월" class="cell_1" position="absolute 372 80 522 107"/>
  23. <Edit id="ipt_be_yyyymm" taborder="8" readonly="true" autoselect="true" autoskip="true" class="output" position="absolute 161 83 361 102"/>
  24. <Shape id="line5" class="line_2" position="absolute 1 136 1196 142" anchor="left top right"/>
  25. <Shape id="line6" class="line_2" position="absolute 1 106 1196 112" anchor="left top right"/>
  26. <Shape id="line8" linetype="vertical" class="line_2" position="absolute 368 79 374 135"/>
  27. <Combo id="cmb_goodflag_search" taborder="9" innerdataset="@ds_init_goodflag" codecolumn="value" datacolumn="label" position="absolute 161 114 361 133" onitemchanged="cmb_goodflag_search_onitemchanged"/>
  28. <Edit id="ipt_yyyymm" taborder="10" position="absolute 532 83 732 102" autoselect="true" autoskip="true"/>
  29. <Combo id="cmb_instcd_search" taborder="11" enable="false" position="absolute 900 83 1183 102"/>
  30. <Shape id="line2" linetype="vertical" class="line_2" position="absolute 738 79 744 135"/>
  31. <Shape id="line1" linetype="vertical" class="line_2" position="absolute 1194 79 1197 137" anchor="top right"/>
  32. <Shape id="line4" linetype="vertical" class="line_2" position="absolute -1 79 5 137"/>
  33. <Grid id="grd_main" taborder="12" binddataset="ds_main_maindatalist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 171 1195 706" anchor="all">
  34. <Formats>
  35. <Format id="default">
  36. <Columns>
  37. <Column size="22" band="left"/>
  38. <Column size="80"/>
  39. <Column size="70"/>
  40. <Column size="85"/>
  41. <Column size="70"/>
  42. <Column size="100"/>
  43. <Column size="90"/>
  44. <Column size="70"/>
  45. <Column size="70"/>
  46. <Column size="90"/>
  47. <Column size="90"/>
  48. <Column size="60"/>
  49. <Column size="60"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1" text="취득일자"/>
  60. <Cell col="2" text="기관코드"/>
  61. <Cell col="3" text="자산구분코드"/>
  62. <Cell col="4" text="대분류코드"/>
  63. <Cell col="5" text="자산코드"/>
  64. <Cell col="6" text="계정코드"/>
  65. <Cell col="7" text="내용년수"/>
  66. <Cell col="8" text="상각율"/>
  67. <Cell col="9" text="자본적지출일자"/>
  68. <Cell col="10" text="처분일자"/>
  69. <Cell col="11" text="취득수량"/>
  70. <Cell col="12" text="처분수량"/>
  71. <Cell col="13" text="취득금액"/>
  72. <Cell col="14" text="상각방법코드"/>
  73. </Band>
  74. <Band id="body">
  75. <Cell celltype="head"/>
  76. <Cell col="1" displaytype="date" text="bind:possndd" calendardisplaynulltype="nulltext"/>
  77. <Cell col="2" text="bind:instcd"/>
  78. <Cell col="3" text="bind:goodflag"/>
  79. <Cell col="4" text="bind:lrgcd"/>
  80. <Cell col="5" text="bind:fixasetcd"/>
  81. <Cell col="6" text="bind:acntcd"/>
  82. <Cell col="7" text="bind:cntsyearno"/>
  83. <Cell col="8" text="bind:repayrate"/>
  84. <Cell col="9" displaytype="date" text="bind:jabonjcdate" calendardisplaynulltype="nulltext"/>
  85. <Cell col="10" displaytype="date" text="bind:chebundate" calendardisplaynulltype="nulltext"/>
  86. <Cell col="11" text="bind:goodqty"/>
  87. <Cell col="12" text="bind:chebunqty"/>
  88. <Cell col="13" displaytype="number" text="bind:possnamt"/>
  89. <Cell col="14" text="bind:repaymthd"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Shape id="line7" class="line_10" position="absolute 0 166 1195 172" anchor="left top right"/>
  95. <Static id="caption7" text="(* 10,000건 이상인 경우 10,000건만 조회가 됩니다. 다 조회가 안되도 감가상각실행 하시면 됩니다.)" position="absolute 85 151 645 164"/>
  96. <Static id="caption21" text="출력 목록" class="tit_2" position="absolute 0 150 131 171"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_init_be_yyyymm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="yyyymm" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. <Dataset id="ds_send_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_fixasetlist_oncolumnchanged">
  109. <ColumnInfo>
  110. <Column id="instcd_search" type="STRING" size="256"/>
  111. <Column id="fixasetcd_search" type="STRING" size="256"/>
  112. <Column id="fixasetnm_search" type="STRING" size="256"/>
  113. <Column id="lrgcd_search" type="STRING" size="256"/>
  114. <Column id="before_yyyymm" type="STRING" size="256"/>
  115. <Column id="excute_yyyymm" type="STRING" size="256"/>
  116. <Column id="goodflag_search" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="instcd_search"/>
  121. <Col id="fixasetcd_search"/>
  122. <Col id="fixasetnm_search"/>
  123. <Col id="lrgcd_search"/>
  124. <Col id="before_yyyymm"/>
  125. <Col id="excute_yyyymm"/>
  126. <Col id="goodflag_search"/>
  127. </Row>
  128. </Rows>
  129. </Dataset>
  130. <Dataset id="ds_main_maindatalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="possndd" type="STRING" size="256" sumtext=""/>
  133. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  134. <Column id="goodflag" type="STRING" size="256" sumtext=""/>
  135. <Column id="lrgcd" type="STRING" size="256" sumtext=""/>
  136. <Column id="fixasetcd" type="STRING" size="256" sumtext=""/>
  137. <Column id="acntcd" type="STRING" size="256" sumtext=""/>
  138. <Column id="cntsyearno" type="STRING" size="256" sumtext=""/>
  139. <Column id="repayrate" type="STRING" size="256" sumtext=""/>
  140. <Column id="jabonjcdate" type="STRING" size="256" sumtext=""/>
  141. <Column id="chebundate" type="STRING" size="256" sumtext=""/>
  142. <Column id="goodqty" type="STRING" size="256" sumtext=""/>
  143. <Column id="chebunqty" type="STRING" size="256" sumtext=""/>
  144. <Column id="possnamt" type="STRING" size="256" sumtext=""/>
  145. <Column id="last_yyyy" type="STRING" size="256" sumtext=""/>
  146. <Column id="repaymthd" type="STRING" size="256" sumtext=""/>
  147. </ColumnInfo>
  148. </Dataset>
  149. <Dataset id="ds_init_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  150. </Objects>
  151. <Bind>
  152. <BindItem id="item0" compid="ipt_be_yyyymm" propid="value" datasetid="ds_init_be_yyyymm" columnid="yyyymm"/>
  153. <BindItem id="item1" compid="ipt_yyyymm" propid="value" datasetid="ds_send_fixasetlist" columnid="excute_yyyymm"/>
  154. <BindItem id="item2" compid="cmb_instcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="instcd_search"/>
  155. <BindItem id="item3" compid="cmb_goodflag_search" propid="value" datasetid="ds_send_fixasetlist" columnid="goodflag_search"/>
  156. <BindItem id="item4" compid="cmb_lrgcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="lrgcd_search"/>
  157. <BindItem id="item5" compid="ipt_fixasetcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="fixasetcd_search"/>
  158. <BindItem id="item6" compid="ipt_fixasetnm_search" propid="value" datasetid="ds_send_fixasetlist" columnid="fixasetnm_search"/>
  159. </Bind>
  160. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  161. * System Name :
  162. * Job Name :
  163. * Creator :
  164. * Make Date : 2017-06-19
  165. * Description :
  166. *---------------------------------------------------------------------------------------
  167. * Modify Date Modifier Modify Description
  168. *---------------------------------------------------------------------------------------
  169. * 2017-06-19 Live Converter TF->XP
  170. *
  171. *---------------------------------------------------------------------------------------
  172. ****************************************************************************************/
  173. include "com_commonxp::comm_main.xjs";
  174. include "mis_miscommonxp::MIS.xjs";
  175. include "mis_miscommonxp::RSZ001.xjs";
  176. function SMRAR01400_oninit(obj:Form, e:InitEventInfo)
  177. {
  178. frmf_initForm(obj);
  179. }
  180. function SMRAR01400_onload(obj:Form, e:LoadEventInfo)
  181. {
  182. grdf_initGrid(grd_main);
  183. grdf_setRowTypeIcon(grd_main, 0);
  184. fInitialize();
  185. }
  186. function fInitialize()
  187. {
  188. var oParam = {};
  189. oParam.id = "TRRAR01401";
  190. oParam.service = "accountinginfoapp.AccountingInfo";
  191. oParam.method = "getBefore_yyyymm";
  192. oParam.inds = "req=ds_send_fixasetlist";
  193. oParam.outds = "ds_init_be_yyyymm=be_yyyymm";
  194. oParam.async = false;
  195. //oParam.callback = "cf_TRRAR01401";
  196. tranf_submit(oParam);
  197. misfComboComCdList("Z0007", cmb_instcd_search, "N"); //기관코드
  198. cmb_instcd_search.value = sysf_getUserInfo("dutplceinstcd");
  199. rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"2","N"); //유형자산구분
  200. cmb_goodflag_search.index = 0;
  201. rszfLMSComboList(cmb_goodflag_search.value, "", "", "cmb_lrgcd_search", "", "L");
  202. frmf_addComboItem("cmb_goodflag_search","--전체--","","above");
  203. frmf_addComboItem("cmb_lrgcd_search","--전체--","","above");
  204. cmb_goodflag_search.index = 0;
  205. cmb_lrgcd_search.index = 0;
  206. }
  207. function cmb_goodflag_search_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  208. {
  209. rszfLMSComboList(obj.value, "", "", "cmb_lrgcd_search", "", "L");
  210. frmf_addComboItem("cmb_lrgcd_search","--전체--","","above");
  211. cmb_lrgcd_search.value = "";
  212. }
  213. function ds_send_fixasetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  214. {
  215. if(e.columnid == "fixasetcd_search")
  216. {
  217. var objFocus = this.getFocus();
  218. ipt_fixasetcd_search.value = e.newvalue;
  219. ipt_fixasetcd_search.setFocus();
  220. if(!utlf_isNull(e.newvalue))
  221. {
  222. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag", cmb_instcd_search.value +",fixasetcd," + e.newvalue+"," + cmb_goodflag_search.value,
  223. "", "fixasetcd,goodflaghngnm", ipt_fixasetcd_search, "SPRSD00240", "instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  224. ds_send_fixasetlist.setColumn(0, "fixasetcd_search", ds_init_main.getColumn(0, "fixasetcd"));
  225. ds_send_fixasetlist.setColumn(0, "fixasetnm_search", ds_init_main.getColumn(0, "goodflaghngnm"));
  226. }
  227. else
  228. {
  229. ipt_fixasetnm_search.value = "";
  230. }
  231. objFocus.setFocus();
  232. }
  233. }
  234. function btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. rszfOpenPopUpListByWndName(ipt_fixasetcd_search, "", "fixasetcd_search,fixasetnm_search","SPRSD00240","instcd,goodflag","cmb_instcd_search,cmb_goodflag_search");
  237. }
  238. function button2_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. if( fGetMainDataList() )
  241. {
  242. var oParam = {};
  243. oParam.id = "TRRAR01402";
  244. oParam.service = "accountinginfoapp.AccountingInfo";
  245. oParam.method = "getSanggaklist";
  246. oParam.inds = "req=ds_send_fixasetlist";
  247. oParam.outds = "ds_main_maindatalist=maindatalist";
  248. oParam.async = false;
  249. //oParam.callback = "cf_TRRAR01402";
  250. tranf_submit(oParam);
  251. }
  252. }
  253. function fGetMainDataList()
  254. {
  255. if (utlf_isNull(ipt_yyyymm.value))
  256. {
  257. sysf_messageBox("작업년월을 ","C001");
  258. return false;
  259. }
  260. if (String(ipt_yyyymm.value).length != 6 )
  261. {
  262. sysf_messageBox("작업년월을 6 자리로","C001");
  263. return false;
  264. }
  265. return true;
  266. }
  267. function btn_depreciation_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. if( fGetMainDataList() )
  270. {
  271. rtn = sysf_messageBox("입력하신 조건대로 감가상각 처리를 합니다.","Q002");
  272. if ( rtn == "6" )
  273. {
  274. var oParam = {};
  275. oParam.id = "TXRAR01401";
  276. oParam.service = "accountinginfoapp.AccountingInfo";
  277. oParam.method = "exeProcSanggak";
  278. oParam.inds = "req=ds_send_fixasetlist";
  279. oParam.outds = "ds_=line";
  280. oParam.async = false;
  281. oParam.callback = "cf_TXRAR01401";
  282. tranf_submit(oParam);
  283. }
  284. }
  285. }
  286. function cf_TXRAR01401(sSvcId, nErrorCode, sErrorMsg)
  287. {
  288. if(nErrorCode < 0) return;
  289. else
  290. {
  291. var oParam = {};
  292. oParam.id = "TRRAR01401";
  293. oParam.service = "accountinginfoapp.AccountingInfo";
  294. oParam.method = "getBefore_yyyymm";
  295. oParam.inds = "req=ds_send_fixasetlist";
  296. oParam.outds = "ds_init_be_yyyymm=be_yyyymm";
  297. oParam.async = false;
  298. //oParam.callback = "cf_TRRAR01401";
  299. tranf_submit(oParam);
  300. }
  301. }
  302. function btn_clse_onclick(obj:Button, e:ClickEventInfo)
  303. {
  304. frmf_modal("SMRAR02400", "SMRAR02400", "", "", "", "", "", "", "", "", "", "", "M");
  305. }
  306. function ipt_fixasetcd_search_onkeydown(obj:Edit, e:KeyEventInfo)
  307. {
  308. if( e.keycode == 13 ){
  309. obj.updateToDataset();
  310. }
  311. }
  312. ]]></Script>
  313. </Form>
  314. </FDL>