123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPAO99901" position="absolute 0 0 1196 770" titletext="무인수납미반환내역관리" onload="SMPAO99901_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 70 1194 737" id="datagrid1" class="datagrid2" binddataset="ds_main_h_klog" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="75"/>
- <Column size="72"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="71"/>
- <Column size="66"/>
- <Column size="68"/>
- <Column size="68"/>
- <Column size="0"/>
- <Column size="59"/>
- <Column size="338"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="61"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="142"/>
- <Column size="77"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="환자번호"/>
- <Cell col="1" text="진료일자"/>
- <Cell col="2" text="생성번호"/>
- <Cell col="3" text="기관코드"/>
- <Cell col="4" text="일련번호"/>
- <Cell col="5" text="본인부담금"/>
- <Cell col="6" text="투입금액"/>
- <Cell col="7" text="잔돈"/>
- <Cell col="8" text="미반환금액"/>
- <Cell col="9" text="처리상태"/>
- <Cell col="10" text="에러코드"/>
- <Cell col="11" text="에러메세지"/>
- <Cell col="12" text="영수일자"/>
- <Cell col="13" text="영수증번호"/>
- <Cell col="14" text="영수일련"/>
- <Cell col="15" text="수납시간"/>
- <Cell col="16" text="수납자"/>
- <Cell col="17" text="최초등록자"/>
- <Cell col="18" text="최초등록일시"/>
- <Cell col="19" text="최종수정자"/>
- <Cell col="20" text="최종수정일시"/>
- <Cell col="21" text="확인 여부"/>
- <Cell col="22" text="확인일시"/>
- <Cell col="23" text="확인자"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:klog_pid"/>
- <Cell col="1" displaytype="text" text="bind:klog_orddd"/>
- <Cell col="2" displaytype="text" text="bind:klog_cretno"/>
- <Cell col="3" displaytype="text" text="bind:klog_instcd"/>
- <Cell col="4" displaytype="text" text="bind:klog_seqno"/>
- <Cell col="5" displaytype="text" text="bind:klog_ownbamt"/>
- <Cell col="6" displaytype="text" text="bind:klog_inputamt"/>
- <Cell col="7" displaytype="text" text="bind:klog_chngamt"/>
- <Cell col="8" displaytype="text" text="bind:klog_erramt"/>
- <Cell col="9" displaytype="text" text="bind:klog_choiceflag"/>
- <Cell col="10" displaytype="text" text="bind:klog_notcode"/>
- <Cell col="11" displaytype="text" style="align:left middle;padding:0 0 0 3;" text="bind:klog_notmsg"/>
- <Cell col="12" displaytype="text" text="bind:klog_rcptdd"/>
- <Cell col="13" displaytype="text" text="bind:klog_rcptno"/>
- <Cell col="14" displaytype="text" text="bind:klog_rcptseqno"/>
- <Cell col="15" displaytype="text" text="bind:klog_rcpttm"/>
- <Cell col="16" displaytype="text" text="bind:klog_rcptid"/>
- <Cell col="17" displaytype="text" text="bind:klog_fstrgstrid"/>
- <Cell col="18" displaytype="text" text="bind:klog_fstrgstdt"/>
- <Cell col="19" displaytype="text" text="bind:klog_lastupdtrid"/>
- <Cell col="20" displaytype="text" text="bind:klog_lastupdtdt"/>
- <Cell col="21" displaytype="checkbox" edittype="checkbox" text="bind:klog_cfmyn" expr="expr:(klog_cfmyn == 'true' || klog_cfmyn == '1') ? '1' : '0'"/>
- <Cell col="22" displaytype="text" text="bind:klog_cfmdt"/>
- <Cell col="23" displaytype="text" text="bind:klog_cfmrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1068 743 1124 765" id="button2" class="btn4" text="저장" onclick="button2_onclick" anchor="right bottom"/>
- <Button position="absolute 1126 743 1194 765" id="button3" class="btn4" text="초기화" onclick="button3_onclick" anchor="right bottom"/>
- <Static id="caption6" text="무인수납미반환내역관리" class="tit_1" position="absolute 0 0 200 25" anchor="left top"/>
- <Div id="grp" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption1" text="조회조건" position="absolute 15 11 86 31" class="search_name"/>
- <Combo id="combo1" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 91 12 191 31" anchor="default" onitemchanged="grp_combo1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <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>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1120 10 1179 30" anchor="top right" onclick="grp_button1_onclick"/>
- <Calendar id="ipt_date" taborder="3" position="absolute 193 12 291 31" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="ipt_pid" taborder="4" position="absolute 193 12 293 31" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_1" position="absolute 0 65 1194 71" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- <Shape id="line32" class="line_6" position="absolute 0 736 1194 742" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_con" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="con1" type="STRING" size="256"/>
- <Column id="con2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_h_klog" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_h_klog_oncolumnchanged">
- <ColumnInfo>
- <Column id="klog_pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="klog_orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="klog_cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="klog_instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="klog_seqno" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="klog_ownbamt" type="STRING" size="256" sumtext="본인부담금"/>
- <Column id="klog_inputamt" type="STRING" size="256" sumtext="투입금액"/>
- <Column id="klog_chngamt" type="STRING" size="256" sumtext="잔돈"/>
- <Column id="klog_erramt" type="STRING" size="256" sumtext="미반환금액"/>
- <Column id="klog_choiceflag" type="STRING" size="256" sumtext="처리상태"/>
- <Column id="klog_notcode" type="STRING" size="256" sumtext="에러코드"/>
- <Column id="klog_notmsg" type="STRING" size="256" sumtext="에러메세지"/>
- <Column id="klog_rcptdd" type="STRING" size="256" sumtext="영수일자"/>
- <Column id="klog_rcptno" type="STRING" size="256" sumtext="영수증번호"/>
- <Column id="klog_rcptseqno" type="STRING" size="256" sumtext="영수증일련번호"/>
- <Column id="klog_rcpttm" type="STRING" size="256" sumtext="수납시간"/>
- <Column id="klog_rcptid" type="STRING" size="256" sumtext="수납자"/>
- <Column id="klog_fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
- <Column id="klog_fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="klog_lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
- <Column id="klog_lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="klog_cfmyn" type="STRING" size="256" sumtext="확인여부"/>
- <Column id="klog_cfmdt" type="STRING" size="256" sumtext="확인일시"/>
- <Column id="klog_cfmrid" type="STRING" size="256" sumtext="확인자"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.ipt_date" propid="value" datasetid="ds_hidden_con" columnid="con2"/>
- <BindItem id="item1" compid="grp.ipt_pid" propid="value" datasetid="ds_hidden_con" columnid="con2"/>
- <BindItem id="item2" compid="grp.combo1" propid="value" datasetid="ds_hidden_con" columnid="con1"/>
- </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 arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * fInitialize
- * @return {[type]} [description]
- */
- function fInitialize() {
- ds_main_h_klog.clearData();
- ds_hidden_con.setColumn(0, "con1", "4");
- fConSet();
- }
- /**
- * fConSet
- * @return {[type]} [description]
- */
- function fConSet() {
- var con = ds_hidden_con.getColumn(0, "con1");
- if (con == "1") {
- ds_hidden_con.setColumn(0, "con2", '');
- grp.ipt_pid.visible = true;
- grp.ipt_date.visible = false;
- }
- else {
- ds_hidden_con.setColumn(0, "con2", utlf_getCurrentDate());
- grp.ipt_pid.visible = false;
- grp.ipt_date.visible = true;
- }
- }
- /**
- * 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 SMPAO99901_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- fInitialize();
- }
- /**
- * 조회조건 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_combo1_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- fConSet();
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_button1_onclick(obj: Button, e: ClickEventInfo) {
- var con1 = utlf_transNullToEmpty(ds_hidden_con.getColumn(0, "con1"));
- var con2 = utlf_transNullToEmpty(ds_hidden_con.getColumn(0, "con2"));
- if (con1 == "" || con1 == " " || con1 == "-") {
- sysf_messageBox("조회조건을 선택하십시요!", "E999", "");
- return;
- }
- if (con2 == "" || con2 == " " || con2 == "-") {
- sysf_messageBox("상세 조회조건을 입력하십시요!", "E999", "");
- return;
- }
- ds_main_h_klog.clearData();
- var oParam = {};
- oParam.id = "TRPAO99901";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "reqGetKioskLog";
- oParam.inds = "klog=ds_hidden_con";
- oParam.outds = "ds_main_h_klog=h_klog";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * ds_main_h_klog 컬럼 데이터 변경 후 이벤트
- * @param {[type]} obj: Dataset [description]
- * @param {[type]} e: DSColChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function ds_main_h_klog_oncolumnchanged(obj: Dataset, e: DSColChangeEventInfo) {
- if (e.columnid == 'klog_cfmyn') {
- var value = '';
- if (e.newvalue == 'true' || e.newvalue == '1') {
- value = 'true';
- }
- obj.setColumn(e.row, e.columnid, value);
- }
- }
- /**
- * 저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- var klog_cnt = ds_main_h_klog.rowcount;
- if (klog_cnt < 1) {
- sysf_messageBox("저장할 내역이 조회되지 않았습니다!", "E999", "");
- return;
- }
- var klog_currow = datagrid1.currentrow;
- if (klog_currow < 0) {
- sysf_messageBox("저장할 내역이 선택되지 않았습니다!", "E999", "");
- return;
- }
- //2019-01-03 TXPAO99904 submit에 klog_cfmyn 컬럼 값이 null로 지정되어야 오류가 없어짐.
- dsf_createDs('ds_req');
- dsf_copyColInfo(ds_req, ds_main_h_klog, false);
- ds_req.copyRow(ds_req.addRow(), ds_main_h_klog, klog_currow);
- ds_req.updatecontrol = false;
- ds_req.deleteColumn("klog_cfmyn");
- ds_req.updatecontrol = true;
-
- var oParam = {};
- oParam.id = "TXPAO99904";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "reqSetKioskLog";
- oParam.inds = "klog=ds_req";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|