123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPAS00520" position="absolute 0 0 1211 784" titletext="외래수입통계" onload="SMPAS00520_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 0 1211 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption60" class="tit_1" position="absolute 0 0 215 14" style="font:돋움,,돋움;align: middle;" text="외래수입통계" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" position="absolute 4 23 1207 58" style="">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1202 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
- <Static id="caption2" class="search_name" position="absolute 10 9 80 26" style="" text="일자:" />
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1132 7 1135 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- <Button id="btn_search" class="btn1_letter2" position="absolute 1139 7 1195 29" style="" text="조회" onclick="group2_btn_search_onclick" />
- <Calendar id="input7" class="input_default" taborder="7" position="absolute 75 8 160 27" style="align:center ;" anchor="default" />
- <Button id="button95" class="btn6_letter4" position="absolute 976 7 1056 29" style="" text="액셀저장" onclick="group2_button95_onclick" />
- <Shape id="line1" class="line_4" linetype="vertical" position="absolute 1063 7 1066 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- <Button id="btn_print" class="btn6_letter2" position="absolute 1070 7 1126 29" style="" text="출력" onclick="group2_btn_print_onclick" />
- <MaskEdit id="input1" mask="hh:nn" position="absolute 170 8 224 27" style="align:center ;" anchor="default" />
- <MaskEdit id="input15" mask="hh:nn" position="absolute 245 8 299 27" style="align:center ;" anchor="default" />
- <Static id="caption25" position="absolute 222 10 247 24" style="align:center ;" text="~" />
- <Edit id="input2" visible="false" position="absolute 384 8 470 27" style="" anchor="default" />
- <Static id="caption1" position="absolute 311 9 375 29" style="font:,,bold;" text="수납자ID :" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_btn" scrollbars="autoboth" position="absolute 19 757 1199 784" style="" />
- <Button id="btn_init" class="btn4_letter3" position="absolute 1129 760 1197 782" style="" text="초기화" onclick="btn_init_onclick" />
- <Tab id="switch1" position="absolute 5 87 1205 742" style="" anchor="default">
- <Tabpages>
- <Tabpage id="case1" anchor="default" text="1.전체 외래 수입통계">
- <Layouts>
- <Layout>
- <Grid id="grd_rcpt" binddataset="ds_main_h_rcpt_rcpt" position="absolute 5 5 1190 640" style="" oncelldblclick="switch1_case1_grd_rcpt_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80" />
- <Column size="43" />
- <Column size="100" />
- <Column size="46" />
- <Column size="100" />
- <Column size="40" />
- <Column size="100" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="75" />
- <Column size="75" />
- <Column size="122" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="수납자" />
- <Cell col="1" text="접수" />
- <Cell col="2" text="접수" />
- <Cell col="3" text="예약" />
- <Cell col="4" text="예약" />
- <Cell col="5" text="수납" />
- <Cell col="6" text="수납" />
- <Cell col="7" text="선수금" />
- <Cell col="8" text="선수금대체" />
- <Cell col="9" text="선수금반환" />
- <Cell col="10" text="미수금" />
- <Cell col="11" text="미수입금" />
- <Cell col="12" text="차상위" />
- <Cell col="13" text="희귀난치" />
- <Cell col="14" text="총계|수납자" />
- <Cell col="15" text="건수" />
- <Cell col="16" text="금액" />
- <Cell col="17" text="건수" />
- <Cell col="18" text="금액" />
- <Cell col="19" text="건수" />
- <Cell col="20" text="금액" />
- <Cell col="21" text="선수금" />
- <Cell col="22" text="선수금대체" />
- <Cell col="23" text="선수금반환" />
- <Cell col="24" text="미수금" />
- <Cell col="25" text="미수입금" />
- <Cell col="26" text="차상위" />
- <Cell col="27" text="희귀난치" />
- <Cell col="28" text="총계" />
- </Band>
- <Band id="body">
- <Cell text="bind:rcpt_rcptrnm" />
- <Cell col="1" text="bind:rcpt_ojamt_cnt" />
- <Cell col="2" text="bind:rcpt_ojamt" />
- <Cell col="3" text="bind:rcpt_rsrv_cnt" />
- <Cell col="4" text="bind:rcpt_rsrv" />
- <Cell col="5" text="bind:rcpt_rcptamt_cnt" />
- <Cell col="6" text="bind:rcpt_rcptamt" />
- <Cell col="7" text="bind:rcpt_bogjamt" />
- <Cell col="8" text="bind:rcpt_bogjaltamt" />
- <Cell col="9" text="bind:rcpt_bogjrtnamt" />
- <Cell col="10" text="bind:rcpt_unco" />
- <Cell col="11" text="bind:rcpt_uncr" />
- <Cell col="12" text="bind:rcpt_rareobstamt" />
- <Cell col="13" text="bind:rcpt_suppamt" />
- <Cell col="14" text="bind:rcpt_sum" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" selected="true" anchor="default" text="2.수납자별 외래 수입통계">
- <Layouts>
- <Layout>
- <Grid id="grd_rcpt1" binddataset="ds_main_h_rcpt2_rcpt2" position="absolute 5 7 295 648" style="" ontextchanged="switch1_case2_grd_rcpt1_ontextchanged" oncelldblclick="switch1_case2_grd_rcpt1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="109" />
- <Column size="60" />
- <Column size="117" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="항목" />
- <Cell col="1" text="건수" />
- <Cell col="2" text="금액" />
- </Band>
- <Band id="body">
- <Cell text="bind:col1" />
- <Cell col="1" text="bind:col2" />
- <Cell col="2" text="bind:col3" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case3" anchor="default" text="3.무인수납 사용 현황3" />
- </Tabpages>
- </Tab>
- <Button id="button3" class="btn_sw" enable="False" position="absolute 325 65 485 87" style="" text="3.무인수납 사용 현황3" onclick="button3_onclick" />
- <Button id="btn_rcptid" class="btn_sw" position="absolute 165 65 325 87" style="" text="2.수납자별 외래 수입통계" onclick="btn_rcptid_onclick" />
- <Button id="btn_all" class="btn_sw" position="absolute 5 65 165 87" style="" text="1.전체 외래 수입통계" onclick="btn_all_onclick" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_h_rcpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_h_rcpt2_rcpt2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="col1" type="STRING" size="256" />
- <Column id="col2" type="STRING" size="256" />
- <Column id="col3" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="col1"></Col>
- <Col id="col2"></Col>
- <Col id="col3"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_h_rcpt2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_h_rcpt_rcpt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rcpt_rcptrid" type="STRING" size="256" />
- <Column id="rcpt_rcptrnm" type="STRING" size="256" />
- <Column id="rcpt_ojamt_cnt" type="STRING" size="256" />
- <Column id="rcpt_ojamt" type="STRING" size="256" />
- <Column id="rcpt_rsrv_cnt" type="STRING" size="256" />
- <Column id="rcpt_rsrv" type="STRING" size="256" />
- <Column id="rcpt_rcptamt_cnt" type="STRING" size="256" />
- <Column id="rcpt_rcptamt" type="STRING" size="256" />
- <Column id="rcpt_bogjamt" type="STRING" size="256" />
- <Column id="rcpt_bogjaltamt" type="STRING" size="256" />
- <Column id="rcpt_bogjrtnamt" type="STRING" size="256" />
- <Column id="rcpt_unco" type="STRING" size="256" />
- <Column id="rcpt_uncr" type="STRING" size="256" />
- <Column id="rcpt_rareobstamt" type="STRING" size="256" />
- <Column id="rcpt_suppamt" type="STRING" size="256" />
- <Column id="rcpt_sum" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rcpt_rcptrid"></Col>
- <Col id="rcpt_rcptrnm"></Col>
- <Col id="rcpt_ojamt_cnt"></Col>
- <Col id="rcpt_ojamt"></Col>
- <Col id="rcpt_rsrv_cnt"></Col>
- <Col id="rcpt_rsrv"></Col>
- <Col id="rcpt_rcptamt_cnt"></Col>
- <Col id="rcpt_rcptamt"></Col>
- <Col id="rcpt_bogjamt"></Col>
- <Col id="rcpt_bogjaltamt"></Col>
- <Col id="rcpt_bogjrtnamt"></Col>
- <Col id="rcpt_unco"></Col>
- <Col id="rcpt_uncr"></Col>
- <Col id="rcpt_rareobstamt"></Col>
- <Col id="rcpt_suppamt"></Col>
- <Col id="rcpt_sum"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="tm_from" type="STRING" size="256" />
- <Column id="tm_to" type="STRING" size="256" />
- <Column id="rcpt_id" type="STRING" size="256" />
- <Column id="rcpt_flag" type="STRING" size="256" />
- <Column id="ordtype" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"></Col>
- <Col id="tm_from"></Col>
- <Col id="tm_to"></Col>
- <Col id="rcpt_id"></Col>
- <Col id="rcpt_flag"></Col>
- <Col id="ordtype"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256" />
- <Column id="usernm" type="STRING" size="256" />
- <Column id="posinstcd" type="STRING" size="256" />
- <Column id="posinstnm" type="STRING" size="256" />
- <Column id="dutplcecd" type="STRING" size="256" />
- <Column id="dutplcenm" type="STRING" size="256" />
- <Column id="dutinstnm" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input7" propid="value" datasetid="ds_send_data1" columnid="fromdd" />
- <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send_data1" columnid="tm_from" />
- <BindItem id="item2" compid="group2.input15" propid="value" datasetid="ds_send_data1" columnid="tm_to" />
- <BindItem id="item3" compid="group2.input2" propid="value" datasetid="ds_send_data1" columnid="rcpt_id" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPAS00520_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- makeReportPreview(300,0,893,648,"switch1.case2");
- fInitialize();
- fGetUserInfo2();
- btn_all.selected = "true"; //외래전체수익통계로 기본세팅
- model.toggle("switch1.case1");
- //exeReportPreview("RPPAS01692", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._com_zipcodeweb_js_ZBP001.js'
- var cash = 0;
- //로그인한 사용자 정보조회
- function fGetUserInfo2(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- //alert("sUserInfosS : " + sUserInfosS);
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
- var dutplcenm = UserInfosS_Array[5]; //근무지부서명
- var dutinstnm = UserInfosS_Array[7]; //근무지기관명
- /*
- model.makeNode("ds_hidden_session/" + "userid");
- model.makeNode("ds_hidden_session/" + "usernm");
- model.makeNode("ds_hidden_session/" + "posinstcd");
- model.makeNode("ds_hidden_session/" + "posinstnm");
- model.makeNode("ds_hidden_session/" + "dutplcecd");
- model.makeNode("ds_hidden_session/" + "dutplcenm");
- model.makeNode("ds_hidden_session/" + "dutinstnm");
- */
- ds_hidden_session.setColumn( 0, "userid",userid);
- ds_hidden_session.setColumn( 0, "usernm",usernm);
- ds_hidden_session.setColumn( 0, "posinstcd",posinstcd);
- ds_hidden_session.setColumn( 0, "posinstnm",posinstnm);
- ds_hidden_session.setColumn( 0, "dutplcecd",dutplcecd);
- ds_hidden_session.setColumn( 0, "dutplcenm",dutplcenm);
- ds_hidden_session.setColumn( 0, "dutinstnm",dutinstnm);
- }
- function fInitialize() {
- ds_main_h_rcpt_rcpt.clearData();
- ds_send_data1.setColumn( 0, "fromdd", utlf_getCurrentDate()); // common.js에서 제공하는 함수를 사용하여 오늘 날짜를 구한다.
- ds_send_data1.setColumn( 0, "tm_from", "0000");
- ds_send_data1.setColumn( 0, "tm_to", "2400");
- ds_send_data1.setColumn( 0, "rcpt_id", "");
- ds_send_data1.setColumn( 0, "rcpt_flag", "");
- ds_send_data1.setColumn( 0, "ordtype", "O");
- //exeReportPreview("RPPAS01692", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- //model.refresh();
- }
- function fSearch() {
- //외래전체수입통계
- if(switch1.selectedIndex == "0") {
- // submit("TRPAS00521");
- exeReportPreview("RPPAS00521", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case1", "", "", "", "1", "75");
- switch1.case1.grd_rcpt.subtotalPosition = "below";
- //#c8e67b
- switch1.case1.grd_rcpt.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 8, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 9, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 11, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 12, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 13, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- switch1.case1.grd_rcpt.subtotal("sum", -1, 14, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계", false);
- }
- //수납자별외래수입통계
- if(switch1.selectedIndex == "1") {
- // submit("TRPAS00522");
- // submit("TRPAS00543");
- switch1.case2.grd_rcpt1.rebuildStyle();
- setRowStyle("switch1.case2.grd_rcpt1" , "0" , "총계" , "col1", "equal" ); //총계 색깔 표시
- cash = parseInt(model.getvalue("ds_main_h_rcpt2_rcpt2[18]_col3" )); //좌측 그리드 현금 - (은행입금액 +통장입금액 + 비고) 키인계산하기위해쓰임
- exeReportPreview("RPPAS00522", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- //model.refresh();
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fSearch();
- }
- function group2_button95_onclick(obj:Button, e:ClickEventInfo) {
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
- //
- // ds_documenttitle.setColumn( 0, "title",document.title);
- //
- //model.refresh();
- // var subjectTitle = ds_documenttitle.getColumn(0, "title");
- if(switch1.selectedIndex == "0") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "외래전체수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_rcpt2.saveExcel(fileName, "외래전체수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
- if(switch1.selectedIndex == "1") {
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", "", false, "수납자별외래수입통계"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- switch1.case2.grd_rcpt1.saveExcel(fileName, "수납자별외래수입통계"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
- }
- function group2_btn_print_onclick(obj:Button, e:ClickEventInfo) {
- if(switch1.selectedIndex == "0") {
- exeReportPreview("RPPAS00521", "XMLSTR", "", "", "true", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- if(switch1.selectedIndex == "1") {
- exeReportPreview("RPPAS00522", "XMLSTR", "", "", "true", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- function switch1_case1_grd_rcpt_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if (isDataCell() == true) {
- var temp = switch1.case1.grd_rcpt.row -1;
- ds_send_data1.setColumn( 0, "rcpt_id", ds_main_h_rcpt_rcpt.getColumn(temp, "rcpt_rcptrid")) );
- //group2.input2.refresh();
- btn_rcptid.dispatch("onclick");
- fSearch();
- }
- }
- function switch1_case2_grd_rcpt1_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- //if(switch1.case2.grd_rcpt1.col=="1" && switch1.case2.grd_rcpt1.row=="4" ){
- var temp = 0;
- for(var a=1; a < 11 ; a++) {
- //9는 미수금 미수금은 총계에서 제외
- if(a != 9) { temp = parseInt(ds_main_h_rcpt2_rcpt2.getColumn(a, "col2")) + temp;
- }
- }
- ds_main_h_rcpt2.setColumn( 0, "rcpt2[11]_col2" , temp);
- //}
- //if(switch1.case2.grd_rcpt1.col=="2" && switch1.case2.grd_rcpt1.row=="4" ){
- var temp = 0;
- for(var a=1; a < 11 ; a++) {
- //9는 미수금 미수금은 총계에서 제외
- if(a != 9) {temp = parseInt(ds_main_h_rcpt2_rcpt2.getColumn(a, "col3")) + temp;
- }
- }
- ds_main_h_rcpt2.setColumn( 0, "rcpt2[11]_col3" , temp);
- //}
- //좌측 그리드 현금 - (은행입금액 +통장입금액 + 비고) 키인계산하기위해쓰임
- var temp = cash;
- temp = temp - parseInt(ds_main_h_rcpt2_rcpt2.getColumn(14, "col3")))
- - parseInt(ds_main_h_rcpt2_rcpt2.getColumn(15, "col3")))
- - parseInt(ds_main_h_rcpt2_rcpt2.getColumn(16, "col3")));
- ds_main_h_rcpt2.setColumn( 0, "rcpt2[18]_col3" , temp);
- //좌측 그리드 계산끝
- //model.refresh();
- exeReportPreview("RPPAS00522", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- function switch1_case2_grd_rcpt1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if (isDataCell() == true) {
- if(switch1.case2.grd_rcpt1.col=="0" && switch1.case2.grd_rcpt1.row < "11" ) {
- ds_send_data1.setColumn( 0, "rcpt_flag",ds_main_h_rcpt2_rcpt2.getColumn(switch1.case2.grd_rcpt1.row, "col1"));
- frmf_open("SMPAO00500", "", "ds_send_data1" "-"ds_temp_rcpt_data1"", "", "", "", "", "", "", "", "", "", "M");
- //frmf_open("SMPAO00500", "", ""-"", "", "", "", "", "", "", "", "", "", "M");
- }
- }
- }
- function button3_onclick(obj:Button, e:ClickEventInfo) {
- }
- function btn_rcptid_onclick(obj:Button, e:ClickEventInfo) {
- group2.caption1.visible = true;
- group2.input2.visible = true;
- exeReportPreview("RPPAS00522", "XMLSTR", "", "", "false", "", "", "", "", "","", "switch1.case2", "", "", "", "1", "75");
- }
- function btn_all_onclick(obj:Button, e:ClickEventInfo) {
- group2.caption1.visible = false;
- group2.input2.visible = false;
- }
- ]]></Script>
- </Form>
- </FDL>
|