123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAR02100" position="absolute 0 0 1199 771" titletext="년 감가상각 집계" oninit="SMRAR02100_oninit" onload="SMRAR02100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 13 1195 38" id="grp_btn" scrollbars="autoboth"/>
- <Static id="caption6" text="년 감가상각 집계" class="tit_1" position="absolute 0 0 200 25"/>
- <Div id="group4" taborder="1" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption22" text="상각년도:" class="search_name" position="absolute 16 13 101 30"/>
- <Edit id="ipt_yyyy" taborder="1" class="input_s_essential" position="absolute 101 12 181 31" autoselect="true" autoskip="true"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 997 4 1003 38" anchor="top right"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1010 10 1066 32" anchor="top right" onclick="group4_btn_search_onclick"/>
- <Button id="btn_depreciation" taborder="3" text="감가상각실행" class="btn4" position="absolute 1075 10 1179 32" anchor="top right" onclick="group4_btn_depreciation_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_execond" taborder="2" style="background:#87cefaff;" visible="false" position="absolute 775 30 990 85">
- <Layouts>
- <Layout>
- <Static id="caption11" text="상각처리년월을 입력하십시오." class="tit_2" position="absolute 2 2 211 24" anchor="default"/>
- <Button id="btn_prtlabel" taborder="24" text="확인" class="btn5" position="absolute 110 25 152 44" anchor="default" onclick="grp_execond_btn_prtlabel_onclick"/>
- <Button id="button9" taborder="25" text="취소" class="btn5" position="absolute 155 25 197 44" anchor="default" onclick="grp_execond_button9_onclick"/>
- <Edit id="ipt_yyyymm" taborder="26" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 15 25 95 44" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption28" text="년 감가상각 집계 출력" class="tit_2" position="absolute 0 84 260 105"/>
- <Shape id="line193" linetype="horizontal" class="line_10" position="absolute 0 100 1195 106" anchor="left top right"/>
- <Div id="grp_biz" anchor="all" taborder="3" position="absolute 0 108 1191 749"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="yyyy" type="STRING" size="256"/>
- <Column id="yyyymm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="yyyy"/>
- <Col id="yyyymm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_maindatalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acntcd" type="STRING" size="256" sumtext="계정"/>
- <Column id="acntnm" type="STRING" size="256" sumtext="계정명"/>
- <Column id="basejsak" type="STRING" size="256" sumtext="취득금액"/>
- <Column id="bbaseksckeum" type="STRING" size="256" sumtext="전년감가누계"/>
- <Column id="danggisangak" type="STRING" size="256" sumtext="당기상각비"/>
- <Column id="baseksckeum" type="STRING" size="256" sumtext="년말감가누계"/>
- <Column id="janjonak" type="STRING" size="256" sumtext="자산처분액"/>
- <Column id="janjonsak" type="STRING" size="256" sumtext="잔존가액"/>
- <Column id="possnamt" type="STRING" size="256" sumtext=""/>
- <Column id="cheobunsangak" type="STRING" size="256" sumtext="처분감가누계"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.ipt_yyyy" propid="value" datasetid="ds_send" columnid="yyyy"/>
- <BindItem id="item1" compid="grp_execond.ipt_yyyymm" propid="value" datasetid="ds_send" columnid="yyyymm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- var arErrorCode = new HashArray();
- function SMRAR02100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRAR02100_onload(obj:Form, e:LoadEventInfo)
- {
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
-
- var option = "";
- rptf_exeReportPreview30(["SMRAR02101"],[objParam], option, "", "grp_biz")
-
- var today = utlf_getCurrentDate();
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- group4.ipt_yyyy.setFocus();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_execond.visible = false;
- if( fGetMainDataList() )
- {
- var oParam = {};
- oParam.id = "TRRAR02101";
- oParam.service = "accountinginfoapp.AccountingInfo";
- oParam.method = "getYearSanggakReport";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_maindatalist=maindatalist ds_=maindatalist ds_=maindatalist";
- oParam.async = false;
- oParam.callback = "cf_TRRAR02101";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRRAR02101") > -1)
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
- rptf_setNodeListToDOM(objDOM, "/root/main/maindatalist", ds_main_maindatalist);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
-
- var option = "";
- rptf_exeReportPreview30(["SMRAR02101"],[objParam], option, "", "grp_biz")
- }
- }
- }
- function cf_TRRAR02101(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function fGetMainDataList()
- {
- if (utlf_isNull(group4.ipt_yyyy.value))
- {
- sysf_messageBox("작업년도를 ","C001");
- group4.ipt_yyyy.setFocus();
- return false;
- }
-
- if (String(group4.ipt_yyyy.value).length != 4 )
- {
- sysf_messageBox("작업년도를 4 자리로","C001");
- group4.ipt_yyyy.setFocus();
- return false;
- }
- return true;
- }
-
- function group4_btn_depreciation_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_execond.visible = true;
- if (utlf_isNull(group4.ipt_yyyy.value) || String(group4.ipt_yyyy.value).length != 4)
- {
- ds_send.setColumn(0, "yyyymm", "");
- grp_execond.ipt_yyyymm.setFocus();
- }
- else
- {
- ds_send.setColumn(0, "yyyymm", ds_send.getColumn(0, "yyyy")+"12");
- grp_execond.btn_prtlabel.setFocus();
- }
- }
- function grp_execond_btn_prtlabel_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(grp_execond.ipt_yyyymm.value))
- {
- sysf_messageBox("상각처리년월 ","C001");
- grp_execond.ipt_yyyymm.setFocus();
- return;
- }
- if (String(grp_execond.ipt_yyyymm.value).length != 6 )
- {
- sysf_messageBox("상각처리년월을 6 자리로","C001");
- grp_execond.ipt_yyyymm.setFocus();
- return;
- }
- rtn = sysf_messageBox("입력하신 조건대로 감가상각 처리를 합니다.","Q002");
- if ( rtn == "6" )
- {
- var oParam = {};
- oParam.id = "TXRAR02101";
- oParam.service = "accountinginfoapp.AccountingInfo";
- oParam.method = "exeProcSanggakyyyy";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_=line";
- oParam.async = false;
- //oParam.callback = "cf_TXRAR02101";
- tranf_submit(oParam);
- }
- }
- function grp_execond_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_execond.visible = false;
- }
- ]]></Script>
- </Form>
- </FDL>
|