123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIF30304" position="absolute 0 0 1110 687" titletext="지원금관리" oninit="SPPIF30304_oninit" onload="SPPIF30304_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1100 658" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 26 1100 32" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Static text="지원금관리" position="absolute 1 10 145 32" id="caption4" class="tit_2"/>
- <Grid position="absolute 0 31 1100 656" id="grd_pifmiunc" class="datagrid2" binddataset="ds_main_pifmiunc" oncellclick="group3_grd_pifmiunc_oncellclick" onkeydown="group3_grd_pifmiunc_onkeydown" cellmovingtype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="35"/>
- <Column size="28"/>
- <Column size="29"/>
- <Column size="84"/>
- <Column size="76"/>
- <Column size="75"/>
- <Column size="64"/>
- <Column size="70"/>
- <Column size="55"/>
- <Column size="66"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="73"/>
- <Column size="61"/>
- <Column size="71"/>
- <Column size="84"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="caption1"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:chkdepo == 'Y' ? 'none' : 'checkbox'" style="controlbackground:EXPR(chkdepo == 'Y' ? 'darkgray' : '');controlborder:EXPR(chkdepo == 'Y' ? '1 solid #808080ff' : '');" text="bind:check" expr="expr:check == 'Y' || check == '1' ? 1 : 0"/>
- <Cell col="2" text="bind:sendyn"/>
- <Cell col="3" text="bind:depoyn"/>
- <Cell col="4" displaytype="date" edittype="date" text="bind:depodd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" text="bind:decotretflag"/>
- <Cell col="6" text="bind:acptno"/>
- <Cell col="7" text="bind:docuseqno"/>
- <Cell col="8" text="bind:pid"/>
- <Cell col="9" text="bind:patnm"/>
- <Cell col="10" text="bind:orddeptcd" enable="false"/>
- <Cell col="11" displaytype="number" text="bind:clmcstotamt"/>
- <Cell col="12" displaytype="number" text="bind:clclamamt"/>
- <Cell col="13" displaytype="number" text="bind:clsuppamt"/>
- <Cell col="14" displaytype="number" text="bind:jrsuppamt"/>
- <Cell col="15" text="bind:judgdg"/>
- <Cell col="16" text="bind:offcharm"/>
- <Cell col="17" displaytype="number" text="bind:rtndd" mask="yyyy-MM-dd"/>
- <Cell col="18" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:rtnyn" combodataset="ds_cmb_rtnyn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="19" text="bind:jrjudgdeciamt"/>
- <Cell col="20" text="bind:clamym"/>
- <Cell col="21" text="bind:clamdg"/>
- <Cell col="22" text="bind:pidsn"/>
- <Cell col="23" text="bind:decoseq"/>
- <Cell col="24" text="bind:instcd"/>
- <Cell col="25" text="bind:inddepoflag"/>
- <Cell col="26" text="bind:chkdepo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 888 6 952 25" id="button1" class="btn2" text="전체선택" onclick="group3_button1_onclick"/>
- <Button position="absolute 954 6 1018 25" id="button2" class="btn2" text="전체해제" onclick="group3_button2_onclick"/>
- <Button position="absolute 1020 6 1100 25" id="button4" class="btn7" text="엑셀저장" onclick="group3_button4_onclick"/>
- <Static text="입금된 금액 :" position="absolute 100 8 185 28" id="caption3"/>
- <Static position="absolute 172 8 231 28" align="align:right middle;" id="cp_insumfix" mask="#,###" style="align:right middle;"/>
- <Static text="입금할 금액 :" position="absolute 242 8 327 28" id="caption1"/>
- <Static position="absolute 313 8 372 28" align="align:right middle;" id="cp_insum" mask="#,###" style="align:right middle;"/>
- <Static text="미수금액 :" position="absolute 384 8 449 28" id="caption2"/>
- <Static position="absolute 440 8 499 28" align="align:right middle;" id="cp_nonsum" mask="#,###" style="align:right middle;"/>
- <Calendar position="absolute 511 6 611 25" id="ipt_depodd" enable="false" mask="yyyy-mm-dd"/>
- <Button position="absolute 612 6 720 25" id="button5" class="btn5" text="입금일자일괄적용" onclick="group3_button5_onclick"/>
- <Button position="absolute 722 6 775 25" id="button6" class="btn2" text="셀카피" onclick="group3_button6_onclick"/>
- <Button position="absolute 777 6 830 25" id="button7" class="btn2" text="열카피" onclick="group3_button7_onclick"/>
- <Button position="absolute 832 6 885 25" id="button8" class="btn2" text="행카피" onclick="group3_button8_onclick"/>
- <Div position="absolute 488 26 1076 84" id="grp_select" visible="false" style="background:#ffffffff;border:1 solid #808080ff ;">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 583 30" id="roundrect6" type="roundrectangle" anchor="default"/>
- <Shape position="absolute 8 25 195 31" linetype="vertical" id="line28" class="line_2" anchor="default"/>
- <Shape position="absolute 6 25 348 31" linetype="horizontal" id="line29" class="line_2" style="strokepen:2 solid #dedcdcff;" anchor="default"/>
- <Static text="선택 구분" position="absolute 5 5 78 28" align="align:center middle;" id="caption30" class="cell_1" anchor="default"/>
- <Shape position="absolute 5 0 583 5" linetype="horizontal" id="line30" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <CheckBox position="absolute 83 8 175 25" id="chk_sel1" text="희귀지원금" anchor="default" truevalue="Y" falsevalue="N" value="N" onclick="group3_grp_select_chk_sel1_onclick"/>
- <CheckBox position="absolute 175 8 230 25" id="chk_sel2" text="결핵" anchor="default" onclick="group3_grp_select_chk_sel2_onclick" truevalue="Y" falsevalue="N"/>
- <Button position="absolute 527 32 583 54" id="button3" class="btn4" text="닫기" anchor="default" onclick="group3_grp_select_button3_onclick"/>
- <CheckBox id="chk_sel3" taborder="1" text="결핵검진" position="absolute 238 8 319 25" anchor="default" onclick="group3_grp_select_chk_sel3_onclick" truevalue="Y" falsevalue="N"/>
- <CheckBox id="chk_sel4" taborder="2" text="결핵치료" position="absolute 319 8 399 25" anchor="default" onclick="group3_grp_select_chk_sel4_onclick" truevalue="Y" falsevalue="N"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 654 1100 681" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 1044 3 1100 25" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
- <Button position="absolute 987 3 1043 25" id="button9" class="btn4" text="확인" anchor="default" onclick="group1_button9_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_pifmiunc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_pifmiunc_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING"/>
- <Column id="sendyn" type="STRING"/>
- <Column id="depoyn" type="STRING"/>
- <Column id="depodd" type="STRING"/>
- <Column id="decotretflag" type="STRING"/>
- <Column id="acptno" type="STRING"/>
- <Column id="docuseqno" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="clmcstotamt" type="STRING"/>
- <Column id="clclamamt" type="STRING"/>
- <Column id="clsuppamt" type="STRING"/>
- <Column id="jrsuppamt" type="STRING"/>
- <Column id="judgdg" type="STRING"/>
- <Column id="offcharm" type="STRING"/>
- <Column id="rtndd" type="STRING"/>
- <Column id="rtnyn" type="STRING"/>
- <Column id="jrjudgdeciamt" type="STRING"/>
- <Column id="clamym" type="STRING"/>
- <Column id="clamdg" type="STRING"/>
- <Column id="pidsn" type="STRING"/>
- <Column id="decoseq" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="inddepoflag" type="STRING"/>
- <Column id="chkdepo" type="STRING"/>
- <Column id="clownbmaxexamt" type="STRING" size="256"/>
- <Column id="jrownbmaxexamt" type="STRING" size="256"/>
- <Column id="judgrid" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="insuflag" type="STRING" size="256"/>
- <Column id="clamym" type="STRING" size="256"/>
- <Column id="clamdd" type="STRING" size="256"/>
- <Column id="acptno" type="STRING" size="256"/>
- <Column id="judgdg" type="STRING" size="256"/>
- <Column id="opn_row" type="STRING" size="256"/>
- <Column id="openerflag" type="STRING" size="256"/>
- <Column id="rtndd" type="STRING" size="256"/>
- <Column id="inddepoflag" type="STRING" size="256"/>
- <Column id="openflag" type="STRING" size="256"/>
- <Column id="clamno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="insuflag"/>
- <Col id="clamym"/>
- <Col id="clamdd"/>
- <Col id="acptno"/>
- <Col id="judgdg"/>
- <Col id="opn_row"/>
- <Col id="openerflag"/>
- <Col id="rtndd"/>
- <Col id="inddepoflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_depoddbatch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sel1" type="STRING" size="256"/>
- <Column id="sel2" type="STRING" size="256"/>
- <Column id="sel3" type="STRING" size="256"/>
- <Column id="sel4" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel1">N</Col>
- <Col id="sel2">N</Col>
- <Col id="sel3">N</Col>
- <Col id="sel4">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_rtnyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.ipt_depodd" propid="value" datasetid="ds_temp_depoddbatch" columnid="depodd"/>
- <BindItem id="item1" compid="group3.grp_select.chk_sel1" propid="value" datasetid="ds_main" columnid="sel1"/>
- <BindItem id="item2" compid="group3.grp_select.chk_sel2" propid="value" datasetid="ds_main" columnid="sel2"/>
- <BindItem id="item3" compid="group3.grp_select.chk_sel3" propid="value" datasetid="ds_main" columnid="sel3"/>
- <BindItem id="item4" compid="group3.grp_select.chk_sel4" propid="value" datasetid="ds_main" columnid="sel4"/>
- </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";
- include "pam_pamcomnxp::PAM001.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- var col = "N";
- function SPPIF30304_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPIF30304_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(group3.grd_pifmiunc);
- grdf_setRowTypeIcon(group3.grd_pifmiunc, 0);
- ds_tmp.copyData(arg_ds_send);
-
- ds_send.setColumn(0, "insuflag", ds_tmp.getColumn(0, "insuflag"));
- ds_send.setColumn(0, "acptno", ds_tmp.getColumn(0, "acptno"));
- ds_send.setColumn(0, "clamno", ds_tmp.getColumn(0, "clamno"));
- ds_send.setColumn(0, "judgdg", ds_tmp.getColumn(0, "judgdg"));
- ds_send.setColumn(0, "opn_row", ds_tmp.getColumn(0, "opn_row"));
- ds_send.setColumn(0, "openerflag", ds_tmp.getColumn(0, "openerflag"));
- ds_send.setColumn(0, "inddepoflag", ds_tmp.getColumn(0, "inddepoflag"));
- ds_send.setColumn(0, "rtndd", ds_tmp.getColumn(0, "rtndd"));
- ds_temp_depoddbatch.setColumn(0, "depodd", ds_send.getColumn(0, "rtndd"));
-
- CommCode_Load();
- }
- function CommCode_Load()
- {
- ds_send.setColumn(0, "openflag", "지원금");
-
- var oParam = {};
- oParam.id = "TRPIF30305";
- oParam.service = "clamuncoapp.ClamUnco";
- oParam.method = "reqGetPsnMaxAmtSrch";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_pifmiunc=gridpifmiunc";
- oParam.async = false;
- //oParam.callback = "cf_TRPIF30305";
- tranf_submit(oParam);
-
- finnonSum();
- }
- function finnonSum()
- {
- var rows = ds_main_pifmiunc.rowcount;
- var insumfix = 0;
- var insum = 0;
- var nonsum = 0 ;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
- {
- if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
- {
- insumfix = insumfix + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
- }
- else
- {
- if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
- {
- insum = insum + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
- }
- }
- }
- else
- {
- nonsum = nonsum + parseInt(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
- }
- }
-
- group3.cp_insumfix.text= insumfix;
- group3.cp_insum.text = insum;
- group3.cp_nonsum.text = nonsum;
- }
- function group3_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmiunc.rowcount;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
- {
- if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
- {
- ds_main_pifmiunc.setColumn(i, "depodd", group3.ipt_depodd.value);
- }
- }
- }
- }
- function group3_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "N";
- group3.grd_pifmmiun.selecttype = "multiarea";
- }
- function group3_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "Y";
- group3.grd_pifmmiun.selecttype = "multiarea";
- }
- function group3_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "N";
- group3.grd_pifmmiun.selecttype = "multirow";
- }
- function group3_grd_pifmiunc_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var lv_nAreaStartRow;
- var lv_nAreaEndRow;
- var lv_nAreaStartCol;
- var lv_nAreaEndCol;
- if(col == "Y")
- {
- lv_nAreaStartRow = 0;
- lv_nAreaEndRow = parseInt(obj.rowcount-1);
- lv_nAreaStartCol = parseInt(obj.currentcol);
- lv_nAreaEndCol = parseInt(obj.currentcol);
-
- grdf_initGridStyle(obj);
-
- for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
- {
- for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
- {
- obj.setCellProperty("body",nCell,"background","#FFE7E5");
- obj.setCellProperty("body",nCell,"background2","#FFE7E5");
- }
- }
- }
- else
- {
- grdf_initGridStyle(obj);
- }
- }
- function group3_grd_pifmiunc_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(col == "Y")
- {
- var CONST_SEPARATOR = " "; //컬럼별 구분자
- var lv_oBindDs = eval(obj.binddataset);
- var lv_sColID;
- var lv_sVal;
- var lv_sClipboard = "";
- var lv_nAreaStartRow;
- var lv_nAreaEndRow;
- var lv_nAreaStartCol;
- var lv_nAreaEndCol;
-
- if(obj.selecttype == "multiarea")
- {
- lv_nAreaStartRow = 0;
- lv_nAreaEndRow = parseInt(obj.rowcount-1);
- lv_nAreaStartCol = parseInt(obj.currentcol);
- lv_nAreaEndCol = parseInt(obj.currentcol);
- }
-
- for(var nRow = lv_nAreaStartRow; nRow <= lv_nAreaEndRow; nRow++)
- {
- for(var nCell = lv_nAreaStartCol; nCell <= lv_nAreaEndCol; nCell++)
- {
- lv_sColID = obj.getCellProperty("body",nCell,"text");
- lv_sVal = obj.getCellValue(nRow,nCell);
- lv_sClipboard = lv_sClipboard + lv_sVal + CONST_SEPARATOR;
- }
- lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
- lv_sClipboard = lv_sClipboard +String.fromCharCode(10);
- }
- lv_sClipboard = lv_sClipboard.substr(0,lv_sClipboard.length-1);
-
- iv_sClipboard = lv_sClipboard;
-
- system.setClipboard("CF_TEXT",lv_sClipboard);
- }
- else
- {
- if (e.ctrlKey == true && e.keycode == 67 )
- {
- grdf_clipboardCopy(obj, "PAM");
- }
- }
- }
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- // ds_main.setColumn(0, "sel1", "Y");
- // ds_main.setColumn(0, "sel2", "Y");
- // ds_main.setColumn(0, "sel3", "Y");
- // ds_main.setColumn(0, "sel4", "Y");
-
- group3.grp_select.visible = true;
-
- // var rows = ds_main_pifmiunc.rowcount;
- //
- // for(var i = 0; i < rows; i++)
- // {
- // trace(ds_main_pifmiunc.getColumn(i, "depoyn"))
- // if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
- // {
- // continue;
- // }
- // else if(ds_main_pifmiunc.getColumn(i, "depoyn") == "N")
- // {
- // ds_main_pifmiunc.setColumn(i, "check", "Y");
- //
- // var arrRow = new Array();
- // arrRow[0] = i;
- // grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
- //
- // if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
- // {
- // ds_main_pifmiunc.setColumn(i, "depoyn", "Y");
- // }
- // }
- // }
- // finnonSum();
- }
- function group3_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmiunc.rowcount;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmiunc.getColumn(i, "check") != "Y")
- {
- continue;
- }
- else
- {
- ds_main_pifmiunc.setColumn(i, "check", "N");
-
- var arrRow = new Array();
- arrRow[0] = i;
- grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
-
- ds_main_pifmiunc.setColumn(i, "depoyn", "N");
- ds_main_pifmiunc.setColumn(i, "depodd", "");
- //grd_pifmiunc.isReadOnly(i, grd_pifmiunc.colRef("depodd")) = true;
- }
- }
- finnonSum();
- }
- function group3_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- var today = new Date();
-
- var yy = today.getYear()+"";
- var mm = today.getMonth()+1;
- var dd = today.getDate();
-
- if(mm < 10)
- {
- mm = "0" + mm;
- }
- else
- {
- mm = mm + "";
- }
-
- if(dd < 10)
- {
- dd = "0" + dd;
- }
- else
- {
- dd = dd + "";
- }
-
- var tmp = yy + mm + dd;
-
- if (ds_main_pifmiunc.rowcount > 0)
- {
- grdf_exportExcel(group3.grd_pifmiunc, "개인별상한금관리_"+tmp, "see");
- }
- else
- {
- sysf_messageBox("엑셀저장할 내역이", "I004");
- }
- }
- function group3_grp_select_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.grp_select.visible = false;
- }
- function fchngchk()
- {
- var sel1 = group3.grp_select.chk_sel1.value;
- var sel2 = group3.grp_select.chk_sel2.value;
- var sel3 = group3.grp_select.chk_sel3.value;
- var sel4 = group3.grp_select.chk_sel4.value;
- var sel1_txt = group3.grp_select.chk_sel1.text;
- var sel2_txt = group3.grp_select.chk_sel2.text;
- var sel3_txt = group3.grp_select.chk_sel3.text;
- var sel4_txt = group3.grp_select.chk_sel4.text;
-
- var rows = ds_main_pifmiunc.rowcount;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmiunc.getColumn(i, "depoyn") == "Y")
- {
- if((ds_main_pifmiunc.getColumn(i, "offcharm") == sel1_txt && sel1 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel3_txt && sel3 == "Y")
- || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel4_txt && sel4 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel2_txt && sel2 == "Y"))
- {
- continue;
- }
- else
- {
- ds_main_pifmiunc.setColumn(i, "depoyn", "N");
- ds_main_pifmiunc.setColumn(i, "check", "N");
- ds_main_pifmiunc.setColumn(i, "depodd", "");
-
- var arrRow = new Array();
- arrRow[0] = i;
- grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
- }
- }
- else
- {
- if((ds_main_pifmiunc.getColumn(i, "offcharm") == sel1_txt && sel1 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel3_txt && sel3 == "Y")
- ||(ds_main_pifmiunc.getColumn(i, "offcharm") == sel4_txt && sel4 == "Y") || (ds_main_pifmiunc.getColumn(i, "offcharm") == sel2_txt && sel2 == "Y"))
- {
- if(group3.grd_pifmiunc.getCellProperty("Body", 1, "edittype") != "none")
- {
- ds_main_pifmiunc.setColumn(i, "check", "Y");
-
- var arrRow = new Array();
- arrRow[0] = i;
- grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
- }
-
- if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
- {
- ds_main_pifmiunc.setColumn(i, "depoyn", "Y");
- }
- }
- }
- finnonSum();
- }
- }
- function group1_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmiunc.rowcount;
- var totsum = 0;
- var cnt = 0;
- var offcharm = "";
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmiunc.getColumn(i, "check") == "Y")
- {
- cnt++;
-
- if(ds_main_pifmiunc.getColumn(i, "sendyn") != "Y")
- {
- offcharm = ds_main_pifmiunc.getColumn(i, "offcharm");
- if(ds_main_pifmiunc.getColumn(i, "offcharm") == "희귀지원금")
- {
- totsum += Number(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
- }
- else
- {
- totsum += Number(ds_main_pifmiunc.getColumn(i, "clsuppamt"));
- }
- }
- else
- {
- if(ds_main_pifmiunc.getColumn(i, "offcharm") == "희귀지원금")
- {
- ds_main_pifmiunc.setColumn(i, "clsuppamt", "0");
- }
- else
- {
- ds_main_pifmiunc.setColumn(i, "clsuppamt", "0");
- }
- }
- }
- }
-
- ds_main_pifmiunc.filterstr = "check == 'Y'";
-
- opener.ds_main_list02_gridpifmidep.clearData();
- opener.ds_main_list02_gridpifmidep.copyData(ds_main_pifmiunc, true)
- opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depoamt", totsum);
- opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "depocnt", cnt);
- opener.ds_main_list01_gridpifhbsdp.setColumn(ds_send.getColumn(0, "opn_row"), "rem", offcharm);
-
- this.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function ds_main_pifmiunc_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "check" )
- {
- obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
-
- if(e.columnid == "check")
- {
- if(obj.getColumn(e.row, "check") == "N")
- {
- obj.setColumn(e.row, "depoyn", "N");
- obj.setColumn(e.row, "depodd", "");
-
- var arrRow = new Array();
- arrRow[0] = e.row;
- grdf_setStatus(group3.grd_pifmiunc, "", arrRow);
- }
- else
- {
- var arrRow = new Array();
- arrRow[0] = e.row;
- grdf_setStatus(group3.grd_pifmiunc, "I", arrRow);
-
- ds_main_pifmiunc.setColumn(e.row, "status", "I");
-
- if(obj.getColumn(e.row, "sendyn") != "Y")
- {
- obj.setColumn(e.row, "depoyn", "Y");
- }
- }
-
- finnonSum();
- }
- }
- function group3_grp_select_chk_sel1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fchngchk();
- }
- function group3_grp_select_chk_sel2_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fchngchk();
- }
- function group3_grp_select_chk_sel3_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fchngchk();
- }
- function group3_grp_select_chk_sel4_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fchngchk();
- }
- ]]></Script>
- </Form>
- </FDL>
|