123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPAE00301" position="absolute 0 0 1198 777" titletext="원무 수익 재무 자동분개 관리" oninit="SMPAE00301_oninit" onload="SMPAE00301_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="5" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right"/>
- <Button position="absolute 1045 33 1101 55" id="btn_search" class="btn1" taborder="4" text="조회" anchor="top right" onclick="btn_search_onclick"/>
- <Button position="absolute 1140 74 1195 93" id="btn_excel1" class="btn7" text="엑셀" anchor="top right" onclick="btn_excel1_onclick"/>
- <Static text="원무 수익 재무 자동분개 관리" position="absolute 0 0 263 24" align="align:center middle;" id="cap_title" class="tit_1"/>
- <Static text="계정 목록" position="absolute 0 77 85 99" id="cap_grid" class="tit_2"/>
- <Shape position="absolute 0 93 1195 99" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 98 1195 588" id="grd_sscd" binddataset="ds_main_sscdlist_sscdinfo" cellsizingtype="col" anchor="all" oncellclick="grd_sscd_oncellclick" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="60"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="195"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="95"/>
- </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" rowspan="2" text="집계계정" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="순서" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="대분류명" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="중분류명" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="소분류명" taborder="undefined"/>
- <Cell col="7" colspan="3" text="원 무" taborder="undefined"/>
- <Cell col="10" text="원 무"/>
- <Cell col="11" colspan="5" text="집 계" taborder="undefined"/>
- <Cell col="16" text="집 계"/>
- <Cell col="17" colspan="2" text="재 무" taborder="undefined"/>
- <Cell col="19" text="재 무"/>
- <Cell col="20" text="재 무"/>
- <Cell col="21" text="재 무"/>
- <Cell col="22" rowspan="2" text="적용시작일" taborder="undefined"/>
- <Cell col="23" rowspan="2" text="적용종료일" taborder="undefined"/>
- <Cell row="1" col="7" text="차변증감"/>
- <Cell row="1" col="8" text="차변명칭"/>
- <Cell row="1" col="9" text="대변증감"/>
- <Cell row="1" col="10" text="대변명칭"/>
- <Cell row="1" col="11" text="쿼리"/>
- <Cell row="1" col="12" text="쿼리"/>
- <Cell row="1" col="13" text="전산"/>
- <Cell row="1" col="14" text="전산"/>
- <Cell row="1" col="15" text="원무"/>
- <Cell row="1" col="16" text="원무"/>
- <Cell row="1" col="17" text="전표 적요"/>
- <Cell row="1" col="18" text="차변코드"/>
- <Cell row="1" col="19" text="차변분개"/>
- <Cell row="1" col="20" text="대변코드"/>
- <Cell row="1" col="21" text="대변분개"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:earncls"/>
- <Cell col="2" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:dispseq" mask="#"/>
- <Cell col="3" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:ordflag" combodataset="ds_cmb_ordflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_lrgnm);" text="bind:lrgnm" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_mdlnm);" text="bind:mdlnm"/>
- <Cell col="6" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_smlnm);" text="bind:smlnm"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_crpammod);" text="bind:crpammod" combodataset="ds_cmb_crpammod" combocodecol="value" combodatacol="label"/>
- <Cell col="8" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:crpamnm"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_drpammod);" text="bind:drpammod" combodataset="ds_cmb_crpammod" combocodecol="value" combodatacol="label"/>
- <Cell col="10" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:drpamnm"/>
- <Cell col="11" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:setqueryflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="12" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:setquery" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label"/>
- <Cell col="13" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:prgdescflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="14" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:prgdesc" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label"/>
- <Cell col="15" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:bizdescflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="16" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:bizdesc"/>
- <Cell col="17" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_flagnm);" text="bind:flagnm"/>
- <Cell col="18" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:craccountcd"/>
- <Cell col="19" displaytype="combo" edittype="combo" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:crmisflag"/>
- <Cell col="20" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:draccountcd"/>
- <Cell col="21" displaytype="combo" edittype="combo" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:drmisflag"/>
- <Cell col="22" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_fromdd);" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="23" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_enddd);" text="bind:enddd" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1130 33 1186 55" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="btn_save_onclick"/>
- <Shape position="absolute 1112 31 1118 58" linetype="vertical" id="line13" anchor="top right"/>
- <Static text="구분 :" position="absolute 14 36 84 53" id="caption21" class="search_name"/>
- <Shape position="absolute 1027 31 1033 58" linetype="vertical" id="line1" anchor="top right"/>
- <Radio position="absolute 75 32 420 55" id="radio1" columncount="7" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">수익</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">수입</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">미수</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">선수</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">건진</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="집계 Query" position="absolute 0 602 127 623" id="cap_setquery" class="tit_2" anchor="left bottom"/>
- <TextArea position="absolute 0 623 395 773" id="tar_setquery" wordwrap="word" autoselect="true" anchor="left bottom"/>
- <Static text="집계 내역 설명 (전산)" position="absolute 400 602 604 623" id="cap_prgdesc" class="tit_2" anchor="left bottom"/>
- <TextArea position="absolute 400 623 795 773" id="tar_prgdesc" wordwrap="word" autoselect="true" anchor="left bottom"/>
- <Static text="집계 내역 설명 (원무)" position="absolute 800 602 988 623" id="cap_bizdesc" class="tit_2" anchor="left bottom"/>
- <TextArea position="absolute 800 623 1195 773" id="tar_bizdesc" wordwrap="word" autoselect="true" anchor="left right bottom"/>
- <Shape position="absolute 0 618 395 624" linetype="horizontal" id="ln_setquery" class="line_10" anchor="left bottom"/>
- <Shape position="absolute 400 618 795 624" linetype="horizontal" id="ln_prgdesc" class="line_10" anchor="left bottom"/>
- <Shape position="absolute 800 618 1195 624" linetype="horizontal" id="ln_bizdesc" class="line_10" anchor="left right bottom"/>
- <Button position="absolute 1153 599 1195 618" id="btn_setdesc" class="btn2" text="입력" anchor="right bottom" onclick="btn_setdesc_onclick"/>
- <Button id="btn_collapse" taborder="6" onclick="btn_collapse_onclick" position="absolute 1099 599 1125 618" style="background:@gradation URL('theme://images\btn_send_bottom.gif') stretch;border:0 double #33bbbbff #effcfbff;" anchor="right bottom"/>
- <Button id="btn_expand" taborder="7" onclick="btn_expand_onclick" position="absolute 1126 599 1152 618" style="background:URL('theme://images\btn_send_top.gif') stretch;border:0 double #33bbbbff #effcfbff;" anchor="right bottom"/>
- </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="sscd" type="STRING" size="256"/>
- <Column id="aggkind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sscd"/>
- <Col id="aggkind">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_sscdlist_sscdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_sscdlist_sscdinfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="earncls" type="STRING" size="256" sumtext="집계계정"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="ordflag" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명"/>
- <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명"/>
- <Column id="smlnm" type="STRING" size="256" sumtext="소분류명"/>
- <Column id="crpammod" type="STRING" size="256" sumtext="차변원무계수"/>
- <Column id="crpamnm" type="STRING" size="256" sumtext="차변원무명칭"/>
- <Column id="drpammod" type="STRING" size="256" sumtext="대변원무계수"/>
- <Column id="drpamnm" type="STRING" size="256" sumtext="대변원무명칭"/>
- <Column id="setqueryflag" type="STRING" size="256" sumtext="집계쿼리"/>
- <Column id="setquery" type="STRING" size="256" sumtext="집계쿼리"/>
- <Column id="prgdescflag" type="STRING" size="256" sumtext="집계내역(전산)"/>
- <Column id="prgdesc" type="STRING" size="256" sumtext="집계내역(전산)"/>
- <Column id="bizdescflag" type="STRING" size="256" sumtext="집계내역(원무)"/>
- <Column id="bizdesc" type="STRING" size="256" sumtext="집계내역(원무)"/>
- <Column id="flagnm" type="STRING" size="256" sumtext="재무계정명"/>
- <Column id="craccountcd" type="STRING" size="256" sumtext="차변재무코드"/>
- <Column id="crmisflag" type="STRING" size="256" sumtext="차변재무분개구분"/>
- <Column id="draccountcd" type="STRING" size="256" sumtext="대변재무코드"/>
- <Column id="drmisflag" type="STRING" size="256" sumtext="대변재무분개구분"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용시작일"/>
- <Column id="enddd" type="STRING" size="256" sumtext="적용종료일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_ordflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">건진</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_crpammod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">증가</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">감소</Col>
- <Col id="value">-1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_setqueryflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">○</Col>
- <Col id="value">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_agginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setquery" type="STRING" size="256"/>
- <Column id="prgdesc" type="STRING" size="256"/>
- <Column id="bizdesc" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="setquery"/>
- <Col id="prgdesc"/>
- <Col id="bizdesc"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_sscd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="radio1" propid="value" datasetid="ds_send" columnid="aggkind"/>
- <BindItem id="item1" compid="tar_setquery" propid="value" datasetid="ds_temp_agginfo" columnid="setquery"/>
- <BindItem id="item2" compid="tar_prgdesc" propid="value" datasetid="ds_temp_agginfo" columnid="prgdesc"/>
- <BindItem id="item3" compid="tar_bizdesc" propid="value" datasetid="ds_temp_agginfo" columnid="bizdesc"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var SELROW = -1;
- // size 조절을 위한 전역변수 선언함.
- var grd_height = 0;
- var cap_top = 0;
- var line_top = 0;
- var tar_top = 0;
- var btn_top = 0;
- function SMPAE00301_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPAE00301_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_sscd);
- grdf_setRowTypeIcon(grd_sscd, 0);
-
- grd_height = grd_sscd.position.height;
- cap_top = cap_setquery.position.top;
- line_top = ln_setquery.position.top;
- tar_top = tar_bizdesc.position.top;
- btn_top = btn_collapse.position.top;
- btn_search.click();
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRPAE00301";
- oParam.service = "pamendstatsapp.PamEndStats";
- oParam.method = "reqGetEarnclsInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_sscdlist_sscdinfo=sscd";
- oParam.async = false;
- //oParam.callback = "cf_TRPAE00301";
- tranf_submit(oParam);
-
- //데이터 변경 시 font bold 처리 위하여 추가함
- ds_main_sscdlist_sscdinfo.addColumn("Font_lrgnm", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_mdlnm", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_smlnm", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_crpammod", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_drpammod", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_flagnm", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_fromdd", "string");
- ds_main_sscdlist_sscdinfo.addColumn("Font_enddd", "string");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var updategrid = grdf_getGridUpdateData(grd_sscd, "u");
- if (updategrid.rowcount == 0)
- {
- sysf_messageBox("변경사항이 없습니다", "E999");
- return;
- }
-
- var cnt = ds_main_sscdlist_sscdinfo.rowcount;
-
- for (var i = 0; i < cnt; i++)
- {
- if (ds_main_sscdlist_sscdinfo.getColumn(i) == 4)
- {
- if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "dispseq")))
- {
- sysf_messageBox("순서를 입력하십시오", "E999");
- return;
- }
-
- if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "lrgnm")))
- {
- sysf_messageBox("대분류명을 입력하십시오", "E999");
- return;
- }
-
- if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "mdlnm")))
- {
- sysf_messageBox("중분류명을 입력하십시오", "E999");
- return;
- }
-
- if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "smlnm")))
- {
- sysf_messageBox("소분류명을 입력하십시오", "E999");
- return;
- }
-
- if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "flagnm")))
- {
- sysf_messageBox("재무계정명을 입력하십시오", "E999");
- return;
- }
- }
- }
-
- ds_send_sscd.copyData(updategrid, true);
- grdf_setStatusColumn(updategrid, "status");
-
- var oParam = {};
- oParam.id = "TXPAE00301";
- oParam.service = "pamendstatsapp.PamEndStats";
- oParam.method = "reqSetEarnclsInfo";
- oParam.inds = "req=ds_send sscd=ds_send_sscd";
- oParam.outds = "ds_main_sscdlist_sscdinfo=sscd";
- oParam.async = false;
- //oParam.callback = "cf_TXPAE00301";
- tranf_submit(oParam);
- }
- function ds_main_sscdlist_sscdinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "lrgnm")
- {
- obj.setColumn(e.row, "Font_lrgnm", "arial,9,bold");
- }
- else if(e.columnid == "mdlnm")
- {
- obj.setColumn(e.row, "Font_mdlnm", "arial,9,bold");
- }
- else if(e.columnid == "smlnm")
- {
- obj.setColumn(e.row, "Font_smlnm", "arial,9,bold");
- }
- else if(e.columnid == "crpammod")
- {
- obj.setColumn(e.row, "Font_crpammod", "arial,9,bold");
- obj.setColumn(e.row, "Font_drpammod", "arial,9,bold");
- }
- else if(e.columnid == "drpammod")
- {
- obj.setColumn(e.row, "Font_crpammod", "arial,9,bold");
- obj.setColumn(e.row, "Font_drpammod", "arial,9,bold");
- }
- else if(e.columnid == "flagnm")
- {
- obj.setColumn(e.row, "Font_flagnm", "arial,9,bold");
- }
- else if(e.columnid == "fromdd")
- {
- obj.setColumn(e.row, "Font_fromdd", "arial,9,bold");
- }
- else if(e.columnid == "enddd")
- {
- obj.setColumn(e.row, "Font_enddd", "arial,9,bold");
- }
- }
- function grd_sscd_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var row = SELROW = ds_main_sscdlist_sscdinfo.rowposition;
- if (row < 0)
- {
- return;
- }
- ds_temp_agginfo.setColumn(0, "setquery", ds_main_sscdlist_sscdinfo.getColumn(row, "setquery"));
- ds_temp_agginfo.setColumn(0, "prgdesc", ds_main_sscdlist_sscdinfo.getColumn(row, "prgdesc"));
- ds_temp_agginfo.setColumn(0, "bizdesc", ds_main_sscdlist_sscdinfo.getColumn(row, "bizdesc"));
-
- var ordflag = ds_main_sscdlist_sscdinfo.getColumn(row, "ordflag");
-
- if (ordflag == "I")
- {
- ordflag = "입원";
- }
- else if (ordflag == "O")
- {
- ordflag = "외래";
- }
- else if (ordflag == "S")
- {
- ordflag = "건진";
- }
- var str = "[ " + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "earncls")) + " ] "
- + "[ " + utlf_transNullToEmpty(ordflag) + " ] "
- + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "lrgnm"))+ " - "
- + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "mdlnm")) + " - "
- + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "smlnm"));
- }
- function btn_excel1_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_sscd, "원무수익 재무 자동분개 계정", "계정목록", "true", "", "");
- sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }
- function btn_collapse_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_sscd.position.height = grd_height;
- cap_setquery.position.top = cap_top;
- cap_prgdesc.position.top = cap_top;
- cap_bizdesc.position.top = cap_top;
-
- ln_setquery.position.top = line_top;
- ln_setquery.position.height = 6;
- ln_prgdesc.position.top = line_top;
- ln_prgdesc.position.height = 6;
- ln_bizdesc.position.top = line_top;
- ln_bizdesc.position.height = 6;
-
- tar_setquery.position.top = tar_top;
- tar_prgdesc.position.top = tar_top;
- tar_bizdesc.position.top = tar_top;
-
- btn_expand.position.top = btn_top;
- btn_expand.position.height = 19;
- btn_collapse.position.top = btn_top;
- btn_collapse.position.height = 19;
- btn_setdesc.position.top = btn_top;
- btn_setdesc.position.height = 19;
- }
- function btn_expand_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_sscd.position.height = 200;
- cap_setquery.position.top = 305;
- cap_prgdesc.position.top = 305;
- cap_bizdesc.position.top = 305;
-
- ln_setquery.position.top = 320;
- ln_setquery.position.height = 6;
- ln_prgdesc.position.top = 320;
- ln_prgdesc.position.height = 6;
- ln_bizdesc.position.top = 320;
- ln_bizdesc.position.height = 6;
-
- tar_setquery.position.top = 325;
- tar_prgdesc.position.top = 325;
- tar_bizdesc.position.top = 325;
-
- btn_expand.position.top = 301;
- btn_expand.position.height = 19;
- btn_collapse.position.top = 301;
- btn_collapse.position.height = 19;
- btn_setdesc.position.top = 301;
- btn_setdesc.position.height = 19;
- }
- function btn_setdesc_onclick(obj:Button, e:ClickEventInfo)
- {
- if (SELROW < 0)
- {
- return;
- }
-
- var setquery = String(ds_temp_agginfo.getColumn(0, "setquery")).trim();
- var prgdesc = String(ds_temp_agginfo.getColumn(0, "prgdesc")).trim();
- var bizdesc = String(ds_temp_agginfo.getColumn(0, "bizdesc")).trim();
-
- var row = SELROW;
-
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "setqueryflag", !utlf_isNull(setquery) ? "Y" : "N" );
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "setquery", setquery);
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "prgdescflag", !utlf_isNull(prgdesc) ? "Y" : "N" );
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "prgdesc", prgdesc);
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "bizdescflag", !utlf_isNull(bizdesc) ? "Y" : "N" );
- ds_main_sscdlist_sscdinfo.setColumn(SELROW, "bizdesc", bizdesc);
- }
- ]]></Script>
- </Form>
- </FDL>
|