123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAD00500" position="absolute 0 0 1201 801" titletext="일/월계표" oninit="SMRAD00500_oninit" onload="SMRAD00500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 40 1195 790" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea" class="div_SA" anchor="default">
- <Layouts>
- <Layout>
- <Button position="absolute 1123 8 1179 30" align="align:left middle;" id="btn_search" class="btn1" taborder="4" text="조회" anchor="default" onclick="group3_grp_sea_btn_search_onclick"/>
- <Shape position="absolute 1104 8 1110 30" linetype="vertical" id="line5" class="line_4" anchor="default"/>
- <Static text="출력구분 :" position="absolute 354 10 450 27" id="caption1" class="search_name" anchor="default"/>
- <Radio position="absolute 915 8 1090 28" align="align:center middle;" id="rdo_acntclsflag" class="radio_search" columncount="-1" innerdataset="@ds_init_acntclsflag" datacolumn="nm" codecolumn="cd" anchor="default" rowcount="-1"/>
- <Static text="구 분 :" position="absolute 825 9 911 26" id="cap_8" class="search_name" anchor="default"/>
- <Radio position="absolute 450 8 625 28" align="align:center middle;" id="rdo_prntflag" class="radio_search" columncount="-1" innerdataset="@ds_init_prntflag" datacolumn="nm" codecolumn="cd" anchor="default" rowcount="-1"/>
- </Layout>
- </Layouts>
- </Div>
- <Tabpage text="" id="case2">
- <Layouts>
- <Layout>
- <Static text="caption2" position="absolute 130 95 230 115" align="align:center middle;" id="caption2" anchor="default"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tab position="absolute 0 49 1195 750" id="sw_grid" class="sw_box" anchor="default" onchanged="group3_sw_grid_onchanged">
- <Tabpages>
- <Tabpage text="일계표" id="case_dayrept">
- <Layouts>
- <Layout>
- <Static text="일계표" position="absolute 1 9 132 27" id="caption21" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 30 1193 667" id="grd_dayrept" binddataset="ds_main_day_dayrept" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="260"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" colspan="3" text="차변" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="계정과목" taborder="undefined"/>
- <Cell col="5" colspan="3" text="대변" taborder="undefined"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell row="1" col="1" text="계"/>
- <Cell row="1" col="2" text="대체"/>
- <Cell row="1" col="3" text="현금"/>
- <Cell row="1" col="5" text="현금"/>
- <Cell row="1" col="6" text="대체"/>
- <Cell row="1" col="7" text="계"/>
- <Cell row="1" col="8"/>
- <Cell row="1" col="9"/>
- <Cell row="1" col="10"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="number" text="bind:dtotal"/>
- <Cell col="2" displaytype="number" text="bind:rdramt"/>
- <Cell col="3" displaytype="number" text="bind:cdramt"/>
- <Cell col="4" text="bind:abbrnm"/>
- <Cell col="5" displaytype="number" text="bind:ccramt"/>
- <Cell col="6" displaytype="number" text="bind:rcramt"/>
- <Cell col="7" displaytype="number" text="bind:ctotal"/>
- <Cell col="8" text="bind:upaccd"/>
- <Cell col="9" text="bind:acntgb"/>
- <Cell col="10" text="bind:sumgbn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 25 1193 31" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
- <Button position="absolute 1127 4 1191 23" align="align:left middle;" id="btn_excel" class="btn2" text="엑셀출력" anchor="default" onclick="group3_sw_grid_case_dayrept_btn_excel_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="월계표" id="case_monthrept">
- <Layouts>
- <Layout>
- <Static text="월계표" position="absolute 5 10 136 24" id="caption8" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 30 1193 667" id="grd_monthrept" binddataset="ds_main_month_monthrept" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="260"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="147"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" colspan="3" text="차변" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="계정과목" taborder="undefined"/>
- <Cell col="5" colspan="3" text="대변" taborder="undefined"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell row="1" col="1" text="계"/>
- <Cell row="1" col="2" text="대체"/>
- <Cell row="1" col="3" text="현금"/>
- <Cell row="1" col="5" text="현금"/>
- <Cell row="1" col="6" text="대체"/>
- <Cell row="1" col="7" text="계"/>
- <Cell row="1" col="8"/>
- <Cell row="1" col="9"/>
- <Cell row="1" col="10"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="number" text="bind:dtotal"/>
- <Cell col="2" displaytype="number" text="bind:rdramt"/>
- <Cell col="3" displaytype="number" text="bind:cdramt"/>
- <Cell col="4" style="align:left middle;padding:1 2 1 2;" text="bind:abbrnm"/>
- <Cell col="5" displaytype="number" text="bind:ccramt"/>
- <Cell col="6" displaytype="number" text="bind:rcramt"/>
- <Cell col="7" displaytype="number" text="bind:ctotal"/>
- <Cell col="8" text="bind:upaccd"/>
- <Cell col="9" text="bind:acntgb"/>
- <Cell col="10" text="bind:sumgbn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 25 1193 31" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Button position="absolute 1126 4 1190 23" align="align:left middle;" id="btn_excel2" class="btn2" text="엑셀출력" anchor="default" onclick="group3_sw_grid_case_monthrept_btn_excel2_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="일/월계표" class="tit_1" position="absolute 0 0 93 25"/>
- <Button id="btn_print" taborder="1" text="출력" class="btn6" position="absolute 0 26 56 48" onclick="btn_print_onclick"/>
- <Tab id="sw_params" taborder="2" tabindex="0" class="tab_Normal" position="absolute 4 41 325 87">
- <Tabpages>
- <Tabpage id="cs_dayrept">
- <Layouts>
- <Layout>
- <Static id="caption2" text="기 간 :" class="search_name" position="absolute 12 5 98 22"/>
- <Static id="caption3" text="~" position="absolute 203 6 218 26"/>
- <Calendar id="ipt_frdate1" taborder="1" class="input_essential" position="absolute 102 5 202 24"/>
- <Calendar id="ipt_todate1" taborder="2" class="input_essential" position="absolute 214 5 314 24"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="cs_monthrept">
- <Layouts>
- <Layout>
- <Static id="caption5" text="기 간 :" class="search_name" position="absolute 12 5 98 22"/>
- <Static id="caption7" text="~" position="absolute 203 6 218 26"/>
- <Calendar id="ipt_frdate2" taborder="1" class="input_essential" position="absolute 102 5 202 24" mask="yyyy-mm" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
- <Calendar id="ipt_todate2" taborder="2" class="input_essential" position="absolute 214 5 314 24" mask="yyyy-mm" dateformat="yyyy-MM" editformat="yyyy-MM"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_month" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="monthrept" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="monthrept"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_date_daydate" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="frdate" type="STRING" size="256"/>
- <Column id="todate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="frdate"/>
- <Col id="todate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_date_month" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="frdate" type="STRING" size="256"/>
- <Column id="todate" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="frdate"/>
- <Col id="todate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_apln" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="approval11" type="STRING" size="256"/>
- <Column id="approval12" type="STRING" size="256"/>
- <Column id="approval13" type="STRING" size="256"/>
- <Column id="approval14" type="STRING" size="256"/>
- <Column id="approval15" type="STRING" size="256"/>
- <Column id="approval16" type="STRING" size="256"/>
- <Column id="approval21" type="STRING" size="256"/>
- <Column id="approval22" type="STRING" size="256"/>
- <Column id="approval23" type="STRING" size="256"/>
- <Column id="approval24" type="STRING" size="256"/>
- <Column id="approval25" type="STRING" size="256"/>
- <Column id="approval26" type="STRING" size="256"/>
- <Column id="arbitrary1" type="STRING" size="256"/>
- <Column id="arbitrary2" type="STRING" size="256"/>
- <Column id="arbitrary3" type="STRING" size="256"/>
- <Column id="arbitrary4" type="STRING" size="256"/>
- <Column id="arbitrary5" type="STRING" size="256"/>
- <Column id="arbitrary6" type="STRING" size="256"/>
- <Column id="iudflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="expansion" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="approval11"/>
- <Col id="approval12"/>
- <Col id="approval13"/>
- <Col id="approval14"/>
- <Col id="approval15"/>
- <Col id="approval16"/>
- <Col id="approval21"/>
- <Col id="approval22"/>
- <Col id="approval23"/>
- <Col id="approval24"/>
- <Col id="approval25"/>
- <Col id="approval26"/>
- <Col id="arbitrary1"/>
- <Col id="arbitrary2"/>
- <Col id="arbitrary3"/>
- <Col id="arbitrary4"/>
- <Col id="arbitrary5"/>
- <Col id="arbitrary6"/>
- <Col id="iudflag"/>
- <Col id="instcd"/>
- <Col id="deptcd"/>
- <Col id="expansion"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_params" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="frdate" type="STRING" size="256"/>
- <Column id="todate" type="STRING" size="256"/>
- <Column id="prntflag" type="STRING" size="256"/>
- <Column id="cashacntcd" type="STRING" size="256"/>
- <Column id="acntclsflag" type="STRING" size="256"/>
- <Column id="termflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="frdate"/>
- <Col id="todate"/>
- <Col id="prntflag"/>
- <Col id="cashacntcd"/>
- <Col id="acntclsflag"/>
- <Col id="termflag">day</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_retrmngt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="mngtcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="mngtcd">cashcd</Col>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="test" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="test"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_retrparams" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instnm" type="STRING" size="256"/>
- <Column id="selectedIndex" type="STRING" size="256"/>
- <Column id="frdate" type="STRING" size="256"/>
- <Column id="todate" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="approval21" type="STRING" size="256"/>
- <Column id="approval22" type="STRING" size="256"/>
- <Column id="approval23" type="STRING" size="256"/>
- <Column id="approval24" type="STRING" size="256"/>
- <Column id="approval25" type="STRING" size="256"/>
- <Column id="approval26" type="STRING" size="256"/>
- <Column id="arbitrary1" type="STRING" size="256"/>
- <Column id="arbitrary2" type="STRING" size="256"/>
- <Column id="arbitrary3" type="STRING" size="256"/>
- <Column id="arbitrary4" type="STRING" size="256"/>
- <Column id="arbitrary5" type="STRING" size="256"/>
- <Column id="arbitrary6" type="STRING" size="256"/>
- <Column id="expansion" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instnm"/>
- <Col id="selectedIndex"/>
- <Col id="frdate"/>
- <Col id="todate"/>
- <Col id="usernm"/>
- <Col id="approval21"/>
- <Col id="approval22"/>
- <Col id="approval23"/>
- <Col id="approval24"/>
- <Col id="approval25"/>
- <Col id="approval26"/>
- <Col id="arbitrary1"/>
- <Col id="arbitrary2"/>
- <Col id="arbitrary3"/>
- <Col id="arbitrary4"/>
- <Col id="arbitrary5"/>
- <Col id="arbitrary6"/>
- <Col id="expansion"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_prntlist_gridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_retrparam" 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="deptcd" type="STRING" size="256"/>
- <Column id="aplnflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="deptcd"/>
- <Col id="aplnflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_acntclsflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">목 단위</Col>
- </Row>
- <Row>
- <Col id="cd">0</Col>
- <Col id="nm">세목 단위</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_code_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_day_dayrept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_month_monthrept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_prntflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">Y</Col>
- <Col id="nm">전체</Col>
- </Row>
- <Row>
- <Col id="cd">N</Col>
- <Col id="nm">지정</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="sw_params.cs_monthrept.ipt_frdate2" propid="value" datasetid="ds_main_date_month" columnid="frdate"/>
- <BindItem id="item1" compid="sw_params.cs_monthrept.ipt_todate2" propid="value" datasetid="ds_main_date_month" columnid="todate"/>
- <BindItem id="item2" compid="sw_params.cs_dayrept.ipt_frdate1" propid="value" datasetid="ds_main_date_daydate" columnid="frdate"/>
- <BindItem id="item3" compid="sw_params.cs_dayrept.ipt_todate1" propid="value" datasetid="ds_main_date_daydate" columnid="todate"/>
- <BindItem id="item4" compid="group3.grp_sea.rdo_prntflag" propid="value" datasetid="ds_send_params" columnid="prntflag"/>
- <BindItem id="item5" compid="group3.grp_sea.rdo_acntclsflag" propid="value" datasetid="ds_send_params" columnid="acntclsflag"/>
- </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";
- include "mis_miscommonxp::PIC002.xjs";
- include "mis_miscommonxp::RAC001.xjs";
- include "mis_miscommonxp::RBC001.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- include "mis_acntcommonxp::RAD001.xjs";
- var arErrorCode = new HashArray();
- function SMRAD00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMRAD00500_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_retrmngt.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- ds_main_day_dayrept.clearData();
- ds_main_month_monthrept.clearData();
- fSetDayMonthDate();
-
- group3.grp_sea.rdo_acntclsflag.value = '0';
- group3.grp_sea.rdo_prntflag.value = 'Y';
-
- //submit("TRRAZ00001");
- var oParam = {};
- oParam.id = "TRRAZ00001";
- oParam.service = "acntcommonapp.AcntCommon";
- oParam.method = "reqGetAcntMngtCodeList";
- oParam.inds = "req=ds_send_retrmngt";
- oParam.outds = "ds_code_codelist=codelist";
- oParam.async = false;
- tranf_submit(oParam);
- ds_send_params.setColumn(0, "cashacntcd", ds_code_codelist.getColumn(0, "cdid"));
- group3.sw_grid.tabindex = 0;
- group3_sw_grid_onchanged();
- //misfMsterDetailSet(grd_dayrept, null, "TRRAD00501", "N");
- ds_send_retrmngt.setColumn(0, "usernm", sysf_getUserInfo("usernm"));
- ds_send_retrmngt.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_retrmngt.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd"));
-
- //submit("TRRAD00151");
- dsf_setDefaultVal(ds_send_retrmngt, "aplnflag:1");
- var oParam = {};
- oParam.id = "TRRAD00151";
- oParam.service = "slipapp.Slip";
- oParam.method = "reqGetAplnByDeptcd";
- oParam.inds = "req=ds_send_retrmngt";
- oParam.outds = "ds_main_apln=apln";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_send_retrmngt.setColumn(0, "approval21", ds_main_apln.getColumn(0, "approval21"));
- ds_send_retrmngt.setColumn(0, "approval22", ds_main_apln.getColumn(0, "approval22"));
- ds_send_retrmngt.setColumn(0, "approval23", ds_main_apln.getColumn(0, "approval23"));
- ds_send_retrmngt.setColumn(0, "approval24", ds_main_apln.getColumn(0, "approval24"));
- ds_send_retrmngt.setColumn(0, "approval25", ds_main_apln.getColumn(0, "approval25"));
- ds_send_retrmngt.setColumn(0, "approval26", ds_main_apln.getColumn(0, "approval26"));
- ds_send_retrmngt.setColumn(0, "arbitrary1", ds_main_apln.getColumn(0, "arbitrary1"));
- ds_send_retrmngt.setColumn(0, "arbitrary2", ds_main_apln.getColumn(0, "arbitrary2"));
- ds_send_retrmngt.setColumn(0, "arbitrary3", ds_main_apln.getColumn(0, "arbitrary3"));
- ds_send_retrmngt.setColumn(0, "arbitrary4", ds_main_apln.getColumn(0, "arbitrary4"));
- ds_send_retrmngt.setColumn(0, "arbitrary5", ds_main_apln.getColumn(0, "arbitrary5"));
- ds_send_retrmngt.setColumn(0, "arbitrary6", ds_main_apln.getColumn(0, "arbitrary6"));
-
- var expansion = radfCheckInstMngt(sysf_getUserInfo("dutplceinstcd"), 'condition3');
- ds_send_retrmngt.setColumn(0, "expansion", expansion);
- }
- function fSetDayMonthDate()
- {
- sw_params.cs_dayrept.ipt_frdate1.value = utlf_getCurrentDate();
- sw_params.cs_dayrept.ipt_todate1.value = utlf_getCurrentDate();
- sw_params.cs_monthrept.ipt_frdate2.value = utlf_getCurrentDate().substr(0, 6);
- sw_params.cs_monthrept.ipt_todate2.value = utlf_getCurrentDate().substr(0, 6);
- }
- function group3_sw_grid_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(group3.sw_grid.tabindex == 0){
- sw_params.tabindex = 0;
- ds_send_params.setColumn(0, "termflag", "day");
- }else if(group3.sw_grid.tabindex == 1){
- sw_params.tabindex = 1;
- ds_send_params.setColumn(0, "termflag", "month");
- }
- }
- function group3_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetDayMonthReptParams();
- if(group3.sw_grid.tabindex == 0)
- {
- //submit("TRRAD00501");
- var oParam = {};
- oParam.id = "TRRAD00501";
- oParam.service = "slipapp.AccBook";
- oParam.method = "reqGetDayRept";
- oParam.inds = "req=ds_send_params";
- oParam.outds = "ds_main_day_dayrept=dayrept";
- oParam.async = false;
- tranf_submit(oParam);
- }
- else if(group3.sw_grid.tabindex == 1)
- {
- //submit("TRRAD00502");
- var oParam = {};
- oParam.id = "TRRAD00501";
- oParam.service = "slipapp.AccBook";
- oParam.method = "reqGetMonthRept";
- oParam.inds = "req=ds_send_params";
- oParam.outds = "ds_main_month_monthrept=monthrept";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- function fSetDayMonthReptParams()
- {
- if(group3.sw_grid.tabindex == 0)
- {
- if(utlf_isNull(sw_params.cs_dayrept.ipt_todate1.value))
- {
- sw_params.cs_dayrept.ipt_todate1.value = sw_params.cs_dayrept.ipt_frdate1.value;
- }
- ds_send_params.setColumn(0, "frdate", ds_main_date_daydate.getColumn(0, "frdate"));
- ds_send_params.setColumn(0, "todate", ds_main_date_daydate.getColumn(0, "todate"));
- }
- else if(group3.sw_grid.tabindex == 1)
- {
- if(utlf_isNull(sw_params.cs_monthrept.ipt_todate2.value))
- {
- sw_params.cs_monthrept.ipt_todate2.value = sw_params.cs_monthrept.ipt_frdate2.value;
- }
-
- var dt = new Date(utlf_transNullToEmpty(ds_main_date_month.getColumn(0, "todate")).substr(0, 4), utlf_transNullToEmpty(ds_main_date_month.getColumn(0, "todate")).substr(4, 2), 0);
-
- ds_send_params.setColumn(0, "frdate", ds_main_date_month.getColumn(0, "frdate").substr(0, 6) + "01");
- ds_send_params.setColumn(0, "todate", ds_main_date_month.getColumn(0, "todate").substr(0, 6) + dt.getDate());
- }
- }
- function group3_sw_grid_case_monthrept_btn_excel2_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(group3.sw_grid.case_monthrept.grd_monthrept);
- }
- function group3_sw_grid_case_dayrept_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(group3.sw_grid.case_dayrept.grd_dayrept);
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- if(sw_grid.selectedIndex == 0)
- {
- if(ds_main_day_dayrept.rowcount == 0)
- {
- sysf_messageBox("출력할 내용이" ,"I004");
- return;
- }
- ds_send_retrmngt.setColumn(0, "frdate", sw_params.cs_dayrept.ipt_frdate1.value);
- ds_send_retrmngt.setColumn(0, "todate", sw_params.cs_dayrept.ipt_todate1.value);
-
- ds_send_prntlist_gridlist.copyData(ds_main_day_dayrept);
- //ds_send_prntlist_gridlist.clearData();
-
- // for(var i = 0; i < ds_main_day_dayrept.rowcount; i++)
- // {
- // model.makeNode("/root/send/prntlist/gridlist[" + i + "]");
- // model.copyNode("/root/send/prntlist/gridlist[" + i + "]", "/root/main/day/dayrept[" + i + "]");
- // }
-
- }
- else
- {
- if(ds_main_month_monthrept.rowcount == 0)
- {
- sysf_messageBox("출력할 내용이" ,"I004");
- return;
- }
- ds_send_retrmngt.setColumn(0, "frdate", sw_params.cs_monthrept.ipt_frdate2.value);
- ds_send_retrmngt.setColumn(0, "todate", sw_params.cs_monthrept.ipt_todate2.value);
-
- ds_send_prntlist_gridlist.copyData(ds_main_month_monthrept);
- }
- ds_send_retrmngt.setColumn(0, "instnm", sysf_getUserInfo("dutplceinstnm"));
- ds_send_retrmngt.setColumn(0, "selectedIndex", group3.sw_grid.tabindex);
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/prntlist/gridlist", ds_send_prntlist_gridlist); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
-
- rptf_exeReportPreview30(["RPRAD00501"],[objParam], option);
-
- ds_send_prntlist_gridlist.clearData();
- }
- ]]></Script>
- </Form>
- </FDL>
|