SMRAR02100_년감가상각집계.xfdl 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAR02100" position="absolute 0 0 1199 771" titletext="년 감가상각 집계" oninit="SMRAR02100_oninit" onload="SMRAR02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1195 38" id="grp_btn" scrollbars="autoboth"/>
  8. <Static id="caption6" text="년 감가상각 집계" class="tit_1" position="absolute 0 0 200 25"/>
  9. <Div id="group4" taborder="1" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption22" text="상각년도:" class="search_name" position="absolute 16 13 101 30"/>
  13. <Edit id="ipt_yyyy" taborder="1" class="input_s_essential" position="absolute 101 12 181 31" autoselect="true" autoskip="true"/>
  14. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 997 4 1003 38" anchor="top right"/>
  15. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1010 10 1066 32" anchor="top right" onclick="group4_btn_search_onclick"/>
  16. <Button id="btn_depreciation" taborder="3" text="감가상각실행" class="btn4" position="absolute 1075 10 1179 32" anchor="top right" onclick="group4_btn_depreciation_onclick"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Div id="grp_execond" taborder="2" style="background:#87cefaff;" visible="false" position="absolute 775 30 990 85">
  21. <Layouts>
  22. <Layout>
  23. <Static id="caption11" text="상각처리년월을 입력하십시오." class="tit_2" position="absolute 2 2 211 24" anchor="default"/>
  24. <Button id="btn_prtlabel" taborder="24" text="확인" class="btn5" position="absolute 110 25 152 44" anchor="default" onclick="grp_execond_btn_prtlabel_onclick"/>
  25. <Button id="button9" taborder="25" text="취소" class="btn5" position="absolute 155 25 197 44" anchor="default" onclick="grp_execond_button9_onclick"/>
  26. <Edit id="ipt_yyyymm" taborder="26" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 15 25 95 44" anchor="default"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Static id="caption28" text="년 감가상각 집계 출력" class="tit_2" position="absolute 0 84 260 105"/>
  31. <Shape id="line193" linetype="horizontal" class="line_10" position="absolute 0 100 1195 106" anchor="left top right"/>
  32. <Div id="grp_biz" anchor="all" taborder="3" position="absolute 0 108 1191 749"/>
  33. </Layout>
  34. </Layouts>
  35. <Objects>
  36. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  37. <ColumnInfo>
  38. <Column id="instcd" type="STRING" size="256"/>
  39. <Column id="yyyy" type="STRING" size="256"/>
  40. <Column id="yyyymm" type="STRING" size="256"/>
  41. </ColumnInfo>
  42. <Rows>
  43. <Row>
  44. <Col id="instcd"/>
  45. <Col id="yyyy"/>
  46. <Col id="yyyymm"/>
  47. </Row>
  48. </Rows>
  49. </Dataset>
  50. <Dataset id="ds_main_maindatalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  51. <ColumnInfo>
  52. <Column id="acntcd" type="STRING" size="256" sumtext="계정"/>
  53. <Column id="acntnm" type="STRING" size="256" sumtext="계정명"/>
  54. <Column id="basejsak" type="STRING" size="256" sumtext="취득금액"/>
  55. <Column id="bbaseksckeum" type="STRING" size="256" sumtext="전년감가누계"/>
  56. <Column id="danggisangak" type="STRING" size="256" sumtext="당기상각비"/>
  57. <Column id="baseksckeum" type="STRING" size="256" sumtext="년말감가누계"/>
  58. <Column id="janjonak" type="STRING" size="256" sumtext="자산처분액"/>
  59. <Column id="janjonsak" type="STRING" size="256" sumtext="잔존가액"/>
  60. <Column id="possnamt" type="STRING" size="256" sumtext=""/>
  61. <Column id="cheobunsangak" type="STRING" size="256" sumtext="처분감가누계"/>
  62. </ColumnInfo>
  63. </Dataset>
  64. </Objects>
  65. <Bind>
  66. <BindItem id="item0" compid="group4.ipt_yyyy" propid="value" datasetid="ds_send" columnid="yyyy"/>
  67. <BindItem id="item1" compid="grp_execond.ipt_yyyymm" propid="value" datasetid="ds_send" columnid="yyyymm"/>
  68. </Bind>
  69. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  70. * System Name :
  71. * Job Name :
  72. * Creator :
  73. * Make Date : 2017-06-19
  74. * Description :
  75. *---------------------------------------------------------------------------------------
  76. * Modify Date Modifier Modify Description
  77. *---------------------------------------------------------------------------------------
  78. * 2017-06-19 Live Converter TF->XP
  79. *
  80. *---------------------------------------------------------------------------------------
  81. ****************************************************************************************/
  82. include "com_commonxp::comm_main.xjs";
  83. include "mis_miscommonxp::MIS.xjs";
  84. var arErrorCode = new HashArray();
  85. function SMRAR02100_oninit(obj:Form, e:InitEventInfo)
  86. {
  87. frmf_initForm(obj);
  88. }
  89. function SMRAR02100_onload(obj:Form, e:LoadEventInfo)
  90. {
  91. var objDOM = rptf_createDOM();
  92. var objParam = new Object();
  93. objParam.xml_data_XML1 = objDOM.documentElement.source;
  94. var option = "";
  95. rptf_exeReportPreview30(["SMRAR02101"],[objParam], option, "", "grp_biz")
  96. var today = utlf_getCurrentDate();
  97. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  98. group4.ipt_yyyy.setFocus();
  99. }
  100. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  101. {
  102. grp_execond.visible = false;
  103. if( fGetMainDataList() )
  104. {
  105. var oParam = {};
  106. oParam.id = "TRRAR02101";
  107. oParam.service = "accountinginfoapp.AccountingInfo";
  108. oParam.method = "getYearSanggakReport";
  109. oParam.inds = "req=ds_send";
  110. oParam.outds = "ds_main_maindatalist=maindatalist ds_=maindatalist ds_=maindatalist";
  111. oParam.async = false;
  112. oParam.callback = "cf_TRRAR02101";
  113. tranf_submit(oParam);
  114. if(arErrorCode.pop("TRRAR02101") > -1)
  115. {
  116. var objDOM = rptf_createDOM();
  117. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
  118. rptf_setNodeListToDOM(objDOM, "/root/main/maindatalist", ds_main_maindatalist);
  119. var objParam = new Object();
  120. objParam.xml_data_XML1 = objDOM.documentElement.source;
  121. var option = "";
  122. rptf_exeReportPreview30(["SMRAR02101"],[objParam], option, "", "grp_biz")
  123. }
  124. }
  125. }
  126. function cf_TRRAR02101(sSvcId, nErrorCode, sErrorMsg)
  127. {
  128. arErrorCode.push(sSvcId, nErrorCode);
  129. if(nErrorCode < 0) return;
  130. }
  131. function fGetMainDataList()
  132. {
  133. if (utlf_isNull(group4.ipt_yyyy.value))
  134. {
  135. sysf_messageBox("작업년도를 ","C001");
  136. group4.ipt_yyyy.setFocus();
  137. return false;
  138. }
  139. if (String(group4.ipt_yyyy.value).length != 4 )
  140. {
  141. sysf_messageBox("작업년도를 4 자리로","C001");
  142. group4.ipt_yyyy.setFocus();
  143. return false;
  144. }
  145. return true;
  146. }
  147. function group4_btn_depreciation_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. grp_execond.visible = true;
  150. if (utlf_isNull(group4.ipt_yyyy.value) || String(group4.ipt_yyyy.value).length != 4)
  151. {
  152. ds_send.setColumn(0, "yyyymm", "");
  153. grp_execond.ipt_yyyymm.setFocus();
  154. }
  155. else
  156. {
  157. ds_send.setColumn(0, "yyyymm", ds_send.getColumn(0, "yyyy")+"12");
  158. grp_execond.btn_prtlabel.setFocus();
  159. }
  160. }
  161. function grp_execond_btn_prtlabel_onclick(obj:Button, e:ClickEventInfo)
  162. {
  163. if (utlf_isNull(grp_execond.ipt_yyyymm.value))
  164. {
  165. sysf_messageBox("상각처리년월 ","C001");
  166. grp_execond.ipt_yyyymm.setFocus();
  167. return;
  168. }
  169. if (String(grp_execond.ipt_yyyymm.value).length != 6 )
  170. {
  171. sysf_messageBox("상각처리년월을 6 자리로","C001");
  172. grp_execond.ipt_yyyymm.setFocus();
  173. return;
  174. }
  175. rtn = sysf_messageBox("입력하신 조건대로 감가상각 처리를 합니다.","Q002");
  176. if ( rtn == "6" )
  177. {
  178. var oParam = {};
  179. oParam.id = "TXRAR02101";
  180. oParam.service = "accountinginfoapp.AccountingInfo";
  181. oParam.method = "exeProcSanggakyyyy";
  182. oParam.inds = "req=ds_send";
  183. oParam.outds = "ds_=line";
  184. oParam.async = false;
  185. //oParam.callback = "cf_TXRAR02101";
  186. tranf_submit(oParam);
  187. }
  188. }
  189. function grp_execond_button9_onclick(obj:Button, e:ClickEventInfo)
  190. {
  191. grp_execond.visible = false;
  192. }
  193. ]]></Script>
  194. </Form>
  195. </FDL>