123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPSTP01903" position="absolute 0 0 1197 787" titletext="환자별 집계 대차 검증" onload="SPSTP01903_onload" onkeydown="SPSTP01903_onkeydown" onkeyup="SPSTP01903_onkeyup">
- <Layouts>
- <Layout>
- <Button position="absolute 157 68 215 90" id="btn_xls_main" class="btn7" text="엑셀" onclick="btn_xls_main_onclick"/>
- <Static text="환자별 집계 대차 확인" position="absolute 0 0 180 25" align="align:center middle;" id="cap_title" class="tit_1"/>
- <Static text="확인 대상 목록" position="absolute 0 71 121 87" id="cap_grid" class="tit_2"/>
- <Shape position="absolute 0 91 215 95" linetype="horizontal" id="line_main" style="strokepen:3 solid #33bbbbff;"/>
- <Grid position="absolute 0 95 215 785" id="grd_ptlist" binddataset="ds_main_ptlist_ptinfo" autofittype="col" oncelldblclick="grd_ptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="74"/>
- <Column size="60"/>
- <Column size="70"/>
- </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 displaytype="date" style="background:BIND(bgColor1);background2:BIND(bgColor1);" text="bind:enddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="1" style="align:center middle;background:BIND(bgColor2);background2:BIND(bgColor2);font:BIND(font);" text="bind:pid"/>
- <Cell col="2" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);font:BIND(font);" text="bind:vrfyamt" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="상세 내역" position="absolute 220 71 303 87" id="cap_dt" class="tit_2"/>
- <Shape position="absolute 220 91 1195 95" linetype="horizontal" id="line_dt" style="strokepen:3 solid #33bbbbff;"/>
- <Grid position="absolute 220 95 1195 785" id="grd_vrfylist" binddataset="ds_main_vrfylist_vrfyinfo" selecttype="multiarea" selectchangetype="up" onlbuttonup="grd_vrfylist_onlbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="마감일자" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="진료 형태" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="구분" taborder="undefined"/>
- <Cell col="3" colspan="2" text="수익계정" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="6" colspan="3" text="차변" taborder="undefined"/>
- <Cell col="9" colspan="3" text="대변" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="차-대" taborder="undefined"/>
- <Cell row="1" col="3" text="중분류"/>
- <Cell row="1" col="4" text="소분류"/>
- <Cell row="1" col="6" text="현금"/>
- <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="합계"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" style="align:center middle;" text="bind:enddd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle,over" calendardisplaynulltype="none"/>
- <Cell col="1" style="align:center middle;line:BIND(line1);background:BIND(bgColor1);background2:BIND(bgColor1);font:BIND(font);" text="bind:brateflagnm" suppress="2" suppressalign="middle,over"/>
- <Cell col="2" style="align:center middle;line:BIND(line2);background:BIND(bgColor2);background2:BIND(bgColor2);font:BIND(font);" text="bind:endflagnm"/>
- <Cell col="3" style="align:left middle;line:BIND(line3);background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:mdlnm"/>
- <Cell col="4" style="align:left middle;line:BIND(line4);background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:smlnm"/>
- <Cell col="5" style="align:left middle;line:BIND(line5);background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:earndeptnm"/>
- <Cell col="6" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:crcashamt" mask="9,999"/>
- <Cell col="7" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:craltamt" mask="9,999"/>
- <Cell col="8" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:crsumamt" mask="9,999"/>
- <Cell col="9" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:drcashamt" mask="9,999"/>
- <Cell col="10" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:draltamt" mask="9,999"/>
- <Cell col="11" displaytype="number" style="align:right middle;background:BIND(bgColor2);background2:BIND(bgColor2);" text="bind:drsumamt" mask="9,999"/>
- <Cell col="12" displaytype="number" style="align:right middle;background:BIND(bgColor3);background2:BIND(bgColor3);font:BIND(font);controlfont:BIND(font);" text="bind:vrfyamt" mask="9,999"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1137 68 1195 90" id="btn_xls_dt" class="btn7" text="엑셀" onclick="btn_xls_dt_onclick"/>
- <Static text="선택합 :" position="absolute 990 73 1040 88" id="caption1"/>
- <Static position="absolute 305 73 725 88" id="cap_ptinfo"/>
- <Div id="grp" taborder="3" position="absolute 0 25 1195 66" class="div_SA">
- <Layouts>
- <Layout width="1195" height="41">
- <Static id="caption21" text="마감 일자 :" class="search_name" position="absolute 10 12 90 29" anchor="default"/>
- <Shape id="line13" linetype="vertical" position="absolute 1112 7 1118 34" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1130 10 1186 32" anchor="default" onclick="grp_btn_search_onclick"/>
- <Calendar id="ipt_fromdd" taborder="2" class="input_search" position="absolute 97 11 192 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="cap_between" text="~" position="absolute 197 14 208 28" anchor="default"/>
- <Calendar id="ipt_todd" taborder="3" class="input_search" position="absolute 213 11 308 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Static id="caption2" text="등록번호 :" class="search_name" position="absolute 347 12 426 29" anchor="default"/>
- <Edit id="ipt_pid" taborder="4" position="absolute 432 11 502 30" anchor="default" onkeydown="grp_ipt_pid_onkeydown"/>
- <CheckBox id="checkbox1" taborder="5" position="absolute 525 13 610 28" anchor="default" text="기간내 합산" falsevalue="N" truevalue="Y"/>
- </Layout>
- </Layouts>
- </Div>
- <MaskEdit id="cap_selsum" taborder="5" position="absolute 1040 73 1140 88" enable="false" mask="9,999" style="background:stretch 5,5; :disabled {color:#262626ff;align:left middle;font:Dotum,9,bold;}"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="setflag" type="STRING" size="256"/>
- <Column id="sumflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="pid"/>
- <Col id="setflag"/>
- <Col id="sumflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ptlist_ptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="enddd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="vrfyamt" type="STRING" size="256"/>
- <Column id="bgColor1" type="STRING" size="256"/>
- <Column id="bgColor2" type="STRING" size="256"/>
- <Column id="font" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_vrfylist_vrfyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="enddd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="brateflag" type="STRING" size="256"/>
- <Column id="brateflagnm" type="STRING" size="256"/>
- <Column id="endflag" type="STRING" size="256"/>
- <Column id="endflagnm" type="STRING" size="256"/>
- <Column id="earncls" type="STRING" size="256"/>
- <Column id="lrgnm" type="STRING" size="256"/>
- <Column id="mdlnm" type="STRING" size="256"/>
- <Column id="smlnm" type="STRING" size="256"/>
- <Column id="earndeptcd" type="STRING" size="256"/>
- <Column id="earndeptnm" type="STRING" size="256"/>
- <Column id="crcashamt" type="STRING" size="256"/>
- <Column id="craltamt" type="STRING" size="256"/>
- <Column id="crsumamt" type="STRING" size="256"/>
- <Column id="drcashamt" type="STRING" size="256"/>
- <Column id="draltamt" type="STRING" size="256"/>
- <Column id="drsumamt" type="STRING" size="256"/>
- <Column id="vrfyamt" type="STRING" size="256"/>
- <Column id="bgColor1" type="STRING" size="256"/>
- <Column id="bgColor2" type="STRING" size="256"/>
- <Column id="bgColor3" type="STRING" size="256"/>
- <Column id="font" type="STRING" size="256"/>
- <Column id="setHead" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selsum" type="STRING" size="256"/>
- <Column id="ptinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item1" compid="grp.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item3" compid="grp.checkbox1" propid="value" datasetid="ds_send" columnid=""/>
- <BindItem id="item5" compid="cap_ptinfo" propid="text" datasetid="ds_hidden" columnid="ptinfo"/>
- <BindItem id="item4" compid="cap_selsum" propid="value" datasetid="ds_hidden" columnid="selsum"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var PT_ROW = 0;
- var isCtrl = false;
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [fGetDtList description]
- * @param {[type]} gridflag [description]
- * @return {[type]} [description]
- */
- function fGetDtList(gridflag) {
- var datasetRow = ds_main_ptlist_ptinfo.rowposition;
-
- if (gridflag) {
- if (grd_ptlist.rows - grd_ptlist.fixedRows > 1) {
- var row = grd_ptlist.currentrow;
- var dRow = row - grd_ptlist.fixedRows + 1;
- if (PT_ROW > 0) {
- ds_main_ptlist_ptinfo.setColumn(PT_ROW, 'bgColor', '#ffffff');
- // ds_main_ptlist_ptinfo.setColumn(PT_ROW, 'font', 'Dotum,9,bold');
-
- }
- ds_main_ptlist_ptinfo.setColumn(row, 'bgColor', '#ffd2d2');
- ds_main_ptlist_ptinfo.setColumn(row, 'font', 'Dotum,9,bold');
- PT_ROW = row;
- }
- ds_send.setColumn(0, "pid", ds_main_ptlist_ptinfo.getColumn(datasetRow, "pid"));
- var enddd = ds_main_ptlist_ptinfo.getColumn(datasetRow, "enddd");
- ds_send.setColumn(0, "fromdd", enddd);
- ds_send.setColumn(0, "todd", enddd);
- }
- var fromdd = String(ds_send.getColumn(0, "fromdd"));
- fromdd = fromdd.substr(0, 4) + "-" + fromdd.substr(4, 2) + "-" + fromdd.substr(6, 2);
- var todd = String(ds_send.getColumn(0, "todd"));
- todd = todd.substr(0, 4) + "-" + todd.substr(4, 2) + "-" + todd.substr(6, 2);
- ds_hidden.setColumn(0, "ptinfo", "마감일자 : " + fromdd + " ~ " + todd + " " + "등록번호 : " + ds_send.getColumn(0, "pid"));
- ds_main_vrfylist_vrfyinfo.clearData();
-
- var oParam = {};
- oParam.id = "TRSTP01819";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetMagmVrfy";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_vrfylist_vrfyinfo=vrfyinfo";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_vrfylist_vrfyinfo.addColumn('bgColor1', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('bgColor2', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('bgColor3', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('font', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('line1', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('line2', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('line3', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('line4', 'string');
- ds_main_vrfylist_vrfyinfo.addColumn('line5', 'string');
- var cnt = ds_main_vrfylist_vrfyinfo.rowcount;
- var prevflag = ds_main_vrfylist_vrfyinfo.getColumn(0, "endflag");
- var color = "#f4f4f4";
- var needMerge = false;
- var mergeRow = 0;
- for (var i = 0; i < cnt; i++) {
- if (ds_main_vrfylist_vrfyinfo.getColumn(i, "brateflagnm") == "합계") {
- needMerge = true;
- mergeRow = i;
- //var idx = grd_vrfylist.mergeContentsCell('body', i, 1, i, 5, 1, false);
- //trace('result: ' + idx);
-
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'setHead', 'true');
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'font', 'Dotum,9,bold');
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'bgColor1', '#ffffc8');
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'bgColor2', '#ffffc8');
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'bgColor3', '#ffff80');
-
- var line1 = '1 solid #808080ff, 0 solid #808080ff, 1 solid #808080ff, 1 solid #808080ff';
- var line2 = '1 solid #808080ff, 0 solid #808080ff, 1 solid #808080ff, 0 solid #808080ff';
- var line3 = '1 solid #808080ff, 0 solid #808080ff, 1 solid #808080ff, 0 solid #808080ff';
- var line4 = '1 solid #808080ff, 0 solid #808080ff, 1 solid #808080ff, 0 solid #808080ff';
- var line5 = '1 solid #808080ff, 1 solid #808080ff, 1 solid #808080ff, 0 solid #808080ff';
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'line1', line1);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'line2', line2);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'line3', line3);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'line4', line4);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'line5', line5);
- }
- else {
- var endflag = ds_main_vrfylist_vrfyinfo.getColumn(i, "endflag");
- if (prevflag != endflag) {
- color = (color == "#f4f4f4") ? "#ffffff" : "#f4f4f4";
- prevflag = endflag;
- }
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'bgColor2', color);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'bgColor3', color);
- ds_main_vrfylist_vrfyinfo.setColumn(i, 'font', 'Dotum,9,bold');
- }
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SPSTP01903_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(grd_vrfylist);
-
- var fromdd = utlf_transNullToEmpty(opener.frmf_getParameter("SPSTP01901_fromdd"));
- var todd = opener.frmf_getParameter("SPSTP01901_todd");
- if (fromdd == "") {
- fromdd = utlf_getCurrentDate().toDate().getAddDate(-1).getDateFormat();
- todd = utlf_getCurrentDate().toDate().getAddDate(-1).getDateFormat();
- }
- ds_send.setColumn(0, "fromdd", fromdd);
- ds_send.setColumn(0, "todd", todd);
- }
- /**
- * 등록번호 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode != 13){
- return;
- }
- obj.updateToDataset();
- grp.btn_search.click();
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- if (isCtrl) {
- ds_send.setColumn(0, "setflag", "Y");
- }
- else {
- ds_send.setColumn(0, "setflag", "");
- }
- // 대상 목록 조회
- if (utlf_transNullToEmpty(ds_send.getColumn(0, "pid")) == "") {
- ds_main_vrfylist_vrfyinfo.clearData();
- dsf_createDsRow('ds_TRSTP01818', [
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'setflag', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRSTP01818.copyRow(0, ds_send, 0);
- ds_main_ptlist_ptinfo.clearData();
- var oParam = {};
- oParam.id = "TRSTP01818";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetMagmVrfyPtList";
- oParam.inds = "req=ds_TRSTP01818";
- oParam.outds = "ds_main_ptlist_ptinfo=ptinfo";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_ptlist_ptinfo.addColumn('bgColor1', 'string');
- ds_main_ptlist_ptinfo.addColumn('bgColor2', 'string');
- ds_main_ptlist_ptinfo.addColumn('font', 'string');
-
- for (var i = 0; i < ds_main_ptlist_ptinfo.rowcount; i++) {
- if (ds_main_ptlist_ptinfo.getColumn(i, "pid") == "합계") {
- ds_main_ptlist_ptinfo.setColumn(i, 'bgColor1', '#f4f4f4');
- ds_main_ptlist_ptinfo.setColumn(i, 'bgColor2', '#f4f4f4');
- ds_main_ptlist_ptinfo.setColumn(i, 'font', 'Dotum,9,bold');
- }
- }
- }
- else { // 상세 내역 조회
- fGetDtList(false);
- }
- }
- /**
- * 폼 키보드 입력 이벤트
- * @param {[type]} obj: Form [description]
- * @param {[type]} e: KeyEventInfo [description]
- */
- function SPSTP01903_onkeydown(obj: Form, e: KeyEventInfo) {
- if (e.keycode != 17) {
- return;
- }
- isCtrl = true;
- }
- /**
- * 폼 키볻 ㅡ입력 이벤트
- * @param {[type]} obj: Form [description]
- * @param {[type]} e: KeyEventInfo [description]
- */
- function SPSTP01903_onkeyup(obj: Form, e: KeyEventInfo) {
- if (e.keycode != 17) {
- return;
- }
- isCtrl = false;
- }
- /**
- * 확인 대상 목록 그리드 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_xls_main_onclick(obj: Button, e: ClickEventInfo) {
- var period = ds_send.getColumn(0, "fromdd") + " ~ " + ds_send.getColumn(0, "todd");
- grdf_exportExcel(grd_ptlist, "환자별집계대차확인목록_" + period, "확인목록", true);
- sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }
- /**
- * 상세 내역 그리드 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_xls_dt_onclick(obj: Button, e: ClickEventInfo) {
- var period = ds_send.getColumn(0, "fromdd") + " ~ " + ds_send.getColumn(0, "todd");
- grdf_exportExcel(grd_vrfylist, "환자별집계대차검증내역_" + period, "대차검증내역", true);
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- }
- /**
- * 확인 대상 목록 그리드 셀 더블클릭 이벤트
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_ptlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
-
- if (isCtrl) {
- ds_send.setColumn(0, "setflag", "Y");
- }
- else {
- ds_send.setColumn(0, "setflag", "");
- }
- if (ds_main_ptlist_ptinfo.getColumn(e.row, "pid") == "합계") {
- ds_hidden.setColumn(0, "ptinfo", "");
- return;
- }
- fGetDtList(true);
- }
- /**
- * 상세내역 그리드 셀 마우스 우클릭 업 이벤트
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridMouseEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_vrfylist_onlbuttonup(obj: Grid, e: GridMouseEventInfo) {
- if (grd_vrfylist.selectstartrow < 0 || grd_vrfylist.selectstartcol < 0) {
- return;
- }
- var startRowIdx = 0;
- if (grd_vrfylist.selectstartrow.length > 1) {
- var arr = String(grd_vrfylist.selectstartrow).split(',');
- for (var i = 0; i < arr.length; i++) {
- if (i == 0) {
- startRowIdx = arr[i];
- }
- else {
- startRowIdx = (startRowIdx > arr[i]) ? arr[i] : startRowIdx;
- }
- }
- }
- else {
- startRowIdx = grd_vrfylist.selectstartrow;
- }
- var cellCount = grd_vrfylist.getCellCount('Body');
- var sum = 0;
- var cnt = grd_vrfylist.rowcount;
-
- for (var row = startRowIdx; row < cnt; row++) {
- var value = 0;
- for (var col = 6; col < cellCount; col++) {
- if (grd_vrfylist.isSelectedCell(col, 'body', row)) {
- value = String(grd_vrfylist.getCellValue(row, col)).replace(',', '');
- value = parseInt(value);
- sum += value;
- }
- }
- }
- ds_hidden.setColumn(0, "selsum", sum);
- }
- ]]></Script>
- </Form>
- </FDL>
|