SMRAR02400_감가상각월마감.xfdl 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAR02400" position="absolute 0 0 384 244" titletext="감가상각 월마감" oninit="SMRAR02400_oninit" onload="SMRAR02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="감가상각 마감" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Shape id="line7" class="line_6" position="absolute 0 46 380 52"/>
  9. <Button id="btn_exec" taborder="1" text="저장" class="btn4" position="absolute 322 25 378 47" onclick="btn_exec_onclick"/>
  10. <Shape id="line1" class="line_10" position="absolute 0 72 270 78"/>
  11. <Static id="caption1" text="감가상각 월마감 작업" class="tit_2" position="absolute 0 56 180 78"/>
  12. <Shape id="line2" class="line_10" position="absolute 0 126 270 132"/>
  13. <Static id="cap_purccondd" text="기관코드" class="cell_1" position="absolute 0 77 110 100"/>
  14. <Static id="caption5" text="마감년월" class="cell_1" position="absolute 0 103 110 126"/>
  15. <Shape id="line10" class="line_2" position="absolute 0 99 270 105"/>
  16. <Combo id="cmb_instcd" taborder="2" innerdataset="ds_init_cmb_instcd" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" enable="false" position="absolute 112 79 255 98"/>
  17. <Calendar id="ipt_endmonth" taborder="3" autoselect="true" autoskip="true" position="absolute 112 105 255 124" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="ipt_endmonth_onchanged"/>
  18. <Static id="caption4" text="※ 감가상각 마감월 이전 자료는 감가상각을 실행할 수 없습니다." position="absolute 0 193 371 221"/>
  19. </Layout>
  20. </Layouts>
  21. <Objects>
  22. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  23. <ColumnInfo>
  24. <Column id="instcd" type="STRING" size="256"/>
  25. <Column id="endmonth" type="STRING" size="256"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="instcd"/>
  30. <Col id="endmonth"/>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. <Dataset id="ds_init_clse_yyyymm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  35. <ColumnInfo>
  36. <Column id="yyyymm" type="STRING" size="256" sumtext="마감년월"/>
  37. </ColumnInfo>
  38. </Dataset>
  39. </Objects>
  40. <Bind>
  41. <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  42. <BindItem id="item1" compid="ipt_endmonth" propid="value" datasetid="ds_send_search" columnid="endmonth"/>
  43. </Bind>
  44. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  45. * System Name :
  46. * Job Name :
  47. * Creator :
  48. * Make Date : 2017-06-19
  49. * Description :
  50. *---------------------------------------------------------------------------------------
  51. * Modify Date Modifier Modify Description
  52. *---------------------------------------------------------------------------------------
  53. * 2017-06-19 Live Converter TF->XP
  54. *
  55. *---------------------------------------------------------------------------------------
  56. ****************************************************************************************/
  57. include "com_commonxp::comm_main.xjs";
  58. include "mis_miscommonxp::MIS.xjs";
  59. function SMRAR02400_oninit(obj:Form, e:InitEventInfo)
  60. {
  61. frmf_initForm(obj);
  62. }
  63. function SMRAR02400_onload(obj:Form, e:LoadEventInfo)
  64. {
  65. misfComboInstCdListMulti("cmb_instcd",utlf_getCurrentDate(),"","N");
  66. cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  67. var oParam = {};
  68. oParam.id = "TRRAR02401";
  69. oParam.service = "accountinginfoapp.AccountingInfo";
  70. oParam.method = "reqGetClse_yyyymm";
  71. oParam.inds = "req=ds_send_search";
  72. oParam.outds = "ds_init_clse_yyyymm=clse_yyyymm";
  73. oParam.async = false;
  74. //oParam.callback = "cf_TRRAR02401";
  75. tranf_submit(oParam);
  76. ds_send_search.setColumn(0, "endmonth", ds_init_clse_yyyymm.getColumn(0, "yyyymm"));
  77. ipt_endmonth.setFocus();
  78. }
  79. function btn_exec_onclick(obj:Button, e:ClickEventInfo)
  80. {
  81. if(String(ipt_endmonth.value).length < 6)
  82. {
  83. sysf_messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
  84. ipt_endmonth.setFocus();
  85. return;
  86. }
  87. var oParam = {};
  88. oParam.id = "TXRAR02401";
  89. oParam.service = "accountinginfoapp.AccountingInfo";
  90. oParam.method = "reqExeSaveMagam";
  91. oParam.inds = "req=ds_send_search";
  92. oParam.outds = "";
  93. oParam.async = false;
  94. oParam.callback = "cf_TXRAR02401";
  95. tranf_submit(oParam);
  96. }
  97. function cf_TXRAR02401(sSvcId, nErrorCode, sErrorMsg)
  98. {
  99. if(nErrorCode < 0) return;
  100. else
  101. {
  102. var oParam = {};
  103. oParam.id = "TRRAR02401";
  104. oParam.service = "accountinginfoapp.AccountingInfo";
  105. oParam.method = "reqGetClse_yyyymm";
  106. oParam.inds = "req=ds_send_search";
  107. oParam.outds = "ds_init_clse_yyyymm=clse_yyyymm";
  108. oParam.async = false;
  109. oParam.callback = "cf_TRRAR02401";
  110. tranf_submit(oParam);
  111. }
  112. }
  113. function cf_TRRAR02401(sSvcId, nErrorCode, sErrorMsg)
  114. {
  115. if(nErrorCode < 0) return;
  116. else
  117. {
  118. ds_send_search.setColumn(0, "endmonth", ds_init_clse_yyyymm.getColumn(0, "yyyymm"));
  119. sysf_messageBox("저장이 완료되었습니다.", "I999", "");
  120. }
  121. }
  122. function ipt_endmonth_onchanged(obj:Calendar, e:ChangeEventInfo)
  123. {
  124. ds_send_search.setColumn(0, "endmonth", String(obj.value).substr(0,6))
  125. }
  126. ]]></Script>
  127. </Form>
  128. </FDL>