123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIF30421" position="absolute 0 0 937 680" titletext="장애인관리" oninit="SPPIF30421_oninit" onload="SPPIF30421_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 930 650" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute -1 26 929 32" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Static text="장애인관리" position="absolute 2 10 146 32" id="caption4" class="tit_2"/>
- <Grid position="absolute 0 31 930 646" id="grd_pifmmiun" class="datagrid2" binddataset="ds_main_pifmmiun" oncellclick="group3_grd_pifmmiun_oncellclick" onkeydown="group3_grd_pifmmiun_onkeydown" cellmovingtype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="31"/>
- <Column size="31"/>
- <Column size="33"/>
- <Column size="67"/>
- <Column size="59"/>
- <Column size="110"/>
- <Column size="62"/>
- <Column size="46"/>
- <Column size="65"/>
- <Column size="50"/>
- <Column size="51"/>
- <Column size="66"/>
- <Column size="61"/>
- <Column size="62"/>
- <Column size="58"/>
- <Column size="64"/>
- <Column size="64"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="74"/>
- <Column size="80"/>
- <Column size="69"/>
- <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="32" 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="장애인전환금"/>
- <Cell col="20" text="기관삭감액"/>
- <Cell col="21" text="장애인잔액"/>
- <Cell col="22" text="장애인입금액"/>
- <Cell col="23" text="반송액"/>
- <Cell col="24" text="caption1"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="expr:chkdepo == 'Y' ? 'none' : 'checkbox' " edittype="expr:chkdepo == 'Y' ? 'none' : 'checkbox' " text="bind:choice" expr="expr:choice == 'Y' || choice == '1' ? 1 : 0"/>
- <Cell col="2" text="bind:sendyn"/>
- <Cell col="3" text="bind:depoyn"/>
- <Cell col="4" displaytype="date" text="bind:depodd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" text="bind:decotretflag"/>
- <Cell col="6" style="align:left middle;" text="bind:jrprocinstmarknm"/>
- <Cell col="7" text="bind:acptno"/>
- <Cell col="8" text="bind:docuseqno"/>
- <Cell col="9" text="bind:pid"/>
- <Cell col="10" text="bind:patnm"/>
- <Cell col="11" text="bind:orddeptcd"/>
- <Cell col="12" displaytype="number" text="bind:clmcstotamt" mask="9,999"/>
- <Cell col="13" displaytype="number" text="bind:clamamt" mask="9,999"/>
- <Cell col="14" displaytype="number" text="bind:clhandicaprfund" mask="9,999"/>
- <Cell col="15" text="bind:judgdg"/>
- <Cell col="16" displaytype="number" text="bind:jrjudgdeciamt" mask="9,999"/>
- <Cell col="17" displaytype="number" edittype="none" text="bind:jrhandicaprfund" mask="9,999"/>
- <Cell col="18" text="bind:judgrid"/>
- <Cell col="19" displaytype="number" edittype="none" text="bind:handicapcvrtamt" mask="9,999"/>
- <Cell col="20" displaytype="number" edittype="text" style="background:EXPR(!utlf_isNull(instreductamt) ? '#ccccff' : '#ffffff');background2:EXPR(!utlf_isNull(instreductamt) ? '#ccccff' : '#ffffff');" text="bind:instreductamt" mask="9,999"/>
- <Cell col="21" displaytype="number" text="bind:remainamt" mask="9,999"/>
- <Cell col="22" displaytype="number" text="bind:depoamt" mask="9,999"/>
- <Cell col="23" displaytype="number" text="bind:sendamt" mask="9,999"/>
- <Cell col="24" text="bind:clamym"/>
- <Cell col="25" text="bind:decoseq"/>
- <Cell col="26" text="bind:inddepoflag"/>
- <Cell col="27" text="bind:instcd"/>
- <Cell col="28" text="bind:clamdg"/>
- <Cell col="29" text="bind:pidsn"/>
- <Cell col="30" text="bind:jrjudgdeciamt"/>
- <Cell col="31" text="bind:chkdepo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 800 6 864 25" id="button1" class="btn2" text="전체선택" onclick="group3_button1_onclick"/>
- <Button position="absolute 866 6 930 25" id="button2" class="btn2" text="전체해제" onclick="group3_button2_onclick"/>
- <Button position="absolute 690 6 743 25" id="button10" class="btn2" text="열카피" onclick="group3_button10_onclick"/>
- <Button position="absolute 745 6 798 25" id="button11" class="btn2" text="행카피" onclick="group3_button11_onclick"/>
- <Button position="absolute 635 6 688 25" id="button13" class="btn2" text="셀카피" onclick="group3_button13_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 1 647 931 674" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 874 1 930 23" id="btn_cancel" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cancel_onclick"/>
- <Button position="absolute 817 1 873 23" id="button3" class="btn4" text="확인" anchor="default" onclick="group1_button3_onclick"/>
- <Button position="absolute 750 2 814 21" id="button4" class="btn2" text="보호저장" anchor="default" onclick="group1_button4_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_pifmmiun" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onvaluechanged="ds_main_pifmmiun_onvaluechanged" oncolumnchanged="ds_main_pifmmiun_oncolumnchanged">
- <ColumnInfo>
- <Column id="choice" type="STRING"/>
- <Column id="sendyn" type="STRING"/>
- <Column id="depoyn" type="STRING"/>
- <Column id="depodd" type="STRING"/>
- <Column id="decotretflag" type="STRING"/>
- <Column id="jrprocinstmarknm" 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="clamamt" type="STRING"/>
- <Column id="clhandicaprfund" type="STRING"/>
- <Column id="judgdg" type="STRING"/>
- <Column id="jrjudgdeciamt" type="STRING"/>
- <Column id="jrhandicaprfund" type="STRING"/>
- <Column id="judgrid" type="STRING"/>
- <Column id="handicapcvrtamt" type="STRING"/>
- <Column id="instreductamt" type="STRING"/>
- <Column id="remainamt" type="STRING"/>
- <Column id="depoamt" type="STRING"/>
- <Column id="sendamt" type="STRING"/>
- <Column id="clamym" type="STRING"/>
- <Column id="decoseq" type="STRING"/>
- <Column id="inddepoflag" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="clamdg" type="STRING"/>
- <Column id="pidsn" type="STRING"/>
- <Column id="jrjudgdeciamt" type="STRING"/>
- <Column id="chkdepo" type="STRING"/>
- </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="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="clamno" type="STRING" size="256"/>
- <Column id="cpcd" type="STRING" size="256"/>
- <Column id="assocd" type="STRING" size="256"/>
- <Column id="opn_row" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="dsset" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_tmp_pifmmiun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <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 SPPIF30421_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPIF30421_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(group3.grd_pifmmiun);
- grdf_setToolTipBind(group3.grd_pifmmiun);
- CommCode_Load();
- }
- function CommCode_Load()
- {
- ds_tmp.copyData(arg_ds_send);
-
- ds_send.setColumn(0, "acptno", ds_tmp.getColumn(0, "acptno"));
- ds_send.setColumn(0, "judgdg", ds_tmp.getColumn(0, "judgdg"));
- ds_send.setColumn(0, "clamno", ds_tmp.getColumn(0, "clamno"));
- //ds_send.setColumn(0, "dsset", ds_tmp.getColumn(0, "dsset"));
- ds_send.setColumn(0, "opn_row", ds_tmp.getColumn(0, "opn_row"));
- ds_send.setColumn(0, "insukind", ds_tmp.getColumn(0, "insukind"));
-
- var oParam = {};
- oParam.id = "TRPIF30421";
- oParam.service = "clamuncoapp.ClamUnco";
- oParam.method = "reqGetHandicaprMng";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_pifmmiun=gridpifmmiun";
- oParam.async = false;
- //oParam.callback = "cf_TRPIF30421";
- tranf_submit(oParam);
- }
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmmiun.rowcount;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmmiun.getColumn(i, "choice") == "Y" || ds_main_pifmmiun.getColumn(i, "chkdepo") == 'Y')
- {
- continue;
- }
- else
- {
- ds_main_pifmmiun.setColumn(i, "choice", "Y");
- grdf_setStatus(group3.grd_pifmmiun, "U", i);
- }
- }
- }
- function group3_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmmiun.rowcount;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmmiun.getColumn(i, "choice") == "N" || ds_main_pifmmiun.getRowType(i) == "4")
- {
- continue;
- }
- else
- {
- ds_main_pifmmiun.setColumn(i, "choice", "N");
- grdf_setStatus(group3.grd_pifmmiun, "", i);
- }
- }
- }
- function group3_button13_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "N";
- group3.grd_pifmmiun.selecttype = "multiarea";
- }
- function group3_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "Y";
- group3.grd_pifmmiun.selecttype = "multiarea";
- }
- function group3_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- col = "N";
- group3.grd_pifmmiun.selecttype = "multirow";
- }
- function group3_grd_pifmmiun_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_pifmmiun_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 group1_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_pifmmiun.filterstr = "choice == 'Y'";
- ds_tmp_pifmmiun.copyData(ds_main_pifmmiun);
- ds_main_pifmmiun.filterstr = "";
-
- var oParam = {};
- oParam.id = "TXPIF30421";
- oParam.service = "clamuncoapp.ClamUnco";
- oParam.method = "reqPutPifmmiun";
- oParam.inds = "req=ds_tmp_pifmmiun:U";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIF30421";
- tranf_submit(oParam);
- }
- function cf_TXPIF30421()
- {
- var oParam = {};
- oParam.id = "TRPIF30421";
- oParam.service = "clamuncoapp.ClamUnco";
- oParam.method = "reqGetHandicaprMng";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_pifmmiun=gridpifmmiun";
- oParam.async = false;
- //oParam.callback = "cf_TRPIF30421";
- tranf_submit(oParam);
- }
- function group1_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = ds_main_pifmmiun.rowcount;
- var totsum = 0;
- var reductamt = 0;
- var cnt = 0;
-
- for(var i = 0; i < rows; i++)
- {
- if(ds_main_pifmmiun.getColumn(i, "choice") == "Y")
- {
- cnt++;
-
- if(ds_main_pifmmiun.getColumn(i, "sendyn") != "Y")
- {
- totsum += Number(ds_main_pifmmiun.getColumn(i, "jrhandicaprfund")) - Number(ds_main_pifmmiun.getColumn(i, "instreductamt"));
- }
- else
- {
- ds_main_pifmmiun.setColumn(i, "remainamt", "0");
- }
- }
- }
- //
- // ds_main_pifmmiun.filterstr = "check == 'Y'";
- //
- // opener.ds_main_list02_gridpifmidep.clearData();
- // opener.ds_main_list02_gridpifmidep.copyData(ds_main_pifmmiun)
- //
- // ds_main_pifmmiun.filterstr = "";
- if(ds_send.getColumn(0, "insukind") == "11" || ds_send.getColumn(0, "insukind") == "41")
- {
- 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);
- }
- else
- {
- opener.ds_main_gridpifhmcdp.setColumn(ds_send.getColumn(0, "opn_row"), "depoamt", totsum);
- opener.ds_main_gridpifhmcdp.setColumn(ds_send.getColumn(0, "opn_row"), "depocnt", cnt);
- }
- this.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function ds_main_pifmmiun_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "choice" )
- {
- obj.setColumn(e.row, "choice", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
-
- if(obj.getColumn(e.row, "choice") == "Y")
- {
- var arrRow = new Array();
- arrRow[0] = e.row;
- grdf_setStatus(group3.grd_pifmmiun, "I", arrRow);
- }
- else
- {
- var arrRow = new Array();
- arrRow[0] = e.row;
- grdf_setStatus(group3.grd_pifmmiun, "", arrRow);
- }
- }
- var curr_row = e.row;
-
- var instreductamt = obj.getColumn(curr_row, "instreductamt");
- var remainamt = obj.getColumn(curr_row, "remainamt");
- var jrhandicaprfund = obj.getColumn(curr_row, "jrhandicaprfund");
- var depoamt = obj.getColumn(curr_row, "depoamt");
- var handicapcvrtamt = obj.getColumn(curr_row, "handicapcvrtamt");
-
- obj.setColumn(curr_row, "remainamt", parseInt(jrhandicaprfund) + parseInt(handicapcvrtamt)- parseInt(instreductamt) - parseInt(depoamt))
- }
- ]]></Script>
- </Form>
- </FDL>
|