123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03600" position="absolute 0 0 1235 800" titletext="무인수납기로그조회" onload="SMPAO99902_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="무인수납기로그조회" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="div" taborder="1" position="absolute 0 25 1207 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="35">
- <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1131 6 1187 28" anchor="top right" onclick="div_button1_onclick"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1121 6 1127 28" anchor="top right"/>
- <Static id="caption17" text="로그등록 시작일자:" class="search_name" position="absolute 5 9 136 26" anchor="default"/>
- <Calendar id="ipt_infromdd" taborder="4" class="input_search" position="absolute 135 8 235 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="ipt_pid" taborder="9" class="input_default" position="absolute 530 8 607 27" anchor="default" onkeydown="div_ipt_pid_onkeydown"/>
- <Edit id="opt_hngnm" taborder="10" readonly="true" position="absolute 609 8 674 27" anchor="default" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Button id="btn_pid" taborder="11" class="icon_search" position="absolute 677 9 693 25" anchor="default" onclick="div_btn_pid_onclick"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 453 9 539 26" anchor="default"/>
- <Static id="caption00" text="종료일자:" class="search_name" position="absolute 261 9 392 26" anchor="default"/>
- <Calendar id="ipt_intodd" taborder="12" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 328 7 428 26" anchor="default"/>
- <CheckBox id="checkbox" taborder="13" position="absolute 816 11 832 27" anchor="default" falsevalue="N" truevalue="Y" value="Y"/>
- <Static id="caption02" text="Only Kiosk:" class="search_name" position="absolute 728 11 813 28" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="무인수납기환자로그내역" class="tit_2" position="absolute 3 67 205 83"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 24 80 1207 86" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="grd_kiosk" class="datagrid2" taborder="3" binddataset="ds_main_kiosklogs" useinputpanel="false" position="absolute 640 88 1207 757" anchor="all" autosizingtype="none" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="69"/>
- <Column size="80"/>
- <Column size="78"/>
- <Column size="151"/>
- <Column size="79"/>
- <Column size="84"/>
- </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="등록자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:pid" enable="false"/>
- <Cell col="2" displaytype="date" style="align:center middle;" text="bind:rgstdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="3" text="bind:orddd"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_basecdlist_orddeptcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="5" style="align:center middle;" text="bind:error" enable="false"/>
- <Cell col="6" style="align:center middle;" text="bind:lastupdtrid" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button2" taborder="7" text="초기화" class="btn4" position="absolute 1142 769 1210 791" onclick="button2_onclick" anchor="right bottom"/>
- <Shape id="line32" class="line_6" position="absolute -128 756 1207 768" anchor="left right bottom"/>
- <Button id="button00" taborder="8" text="무인수납기 조회" class="btn4" position="absolute 992 32 1113 54" anchor="right bottom" onclick="button00_onclick" visible="false"/>
- <Grid id="grd_kioskCount" class="datagrid2" taborder="10" useinputpanel="false" position="absolute 3 88 624 757" anchor="all" binddataset="ds_init_code" oncelldblclick="grd_kioskCount_oncelldblclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="95"/>
- <Column size="409"/>
- <Column size="90"/>
- </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="건수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:error" enable="false"/>
- <Cell col="2" text="bind:errormsg"/>
- <Cell col="3" displaytype="normal" style="align:center middle;" text="bind:count" suppressalign="last" calendardisplaynulltype="none" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_kioskexcel" taborder="11" text="로그엑셀저장" onclick="btn_kioskexcel_onclick" class="btn7" position="absolute 1104 63 1208 80" anchor="top right"/>
- </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="srchcond" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- <Column id="erexptyn" type="STRING" size="256"/>
- <Column id="tdayinexptyn" type="STRING" size="256"/>
- <Column id="data2" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="error" type="STRING" size="256"/>
- <Column id="kioskyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="data1"/>
- <Col id="sess_posinstcd"/>
- <Col id="erexptyn"/>
- <Col id="tdayinexptyn"/>
- <Col id="data2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_basecdlist_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="deptengabbr2" type="STRING" size="256"/>
- <Column id="deptengabbr" type="STRING" size="256"/>
- <Column id="reprdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptno" type="STRING" size="256"/>
- <Column id="ordsupdeptcd" type="STRING" size="256"/>
- <Column id="orddeptflag" type="STRING" size="256"/>
- <Column id="clincdeptdispseq" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="uesrnm" type="STRING" size="256"/>
- <Column id="posinstcd" type="STRING" size="256"/>
- <Column id="posinstnm" type="STRING" size="256"/>
- <Column id="posdeptcd" type="STRING" size="256"/>
- <Column id="posdeptnm" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="up" type="STRING" size="256"/>
- <Column id="io" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_code" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="count" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- <Column id="dp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prestdd" type="STRING" size="256"/>
- <Column id="mskindflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_kiosklogs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="rgstdd" type="STRING" size="256" sumtext="로그일자"/>
- <Column id="rgstseq" type="STRING" size="256" sumtext="시퀀스번호"/>
- <Column id="error" type="STRING" size="256" sumtext="에러코드"/>
- <Column id="errormsg" type="STRING" size="256" sumtext="에러메시지"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일시"/>
- <Column id="endyn" type="STRING" size="256" sumtext="종료여부"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptcdnm" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_printtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div.ipt_infromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item11" compid="div.opt_hngnm" propid="value" datasetid="ds_patinfolist" columnid="hngnm"/>
- <BindItem id="item12" compid="div.ipt_pid" propid="value" datasetid="ds_patinfolist" columnid="pid"/>
- <BindItem id="item1" compid="div.ipt_intodd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="div.kioskyn" propid="value" datasetid="ds_send" columnid="kioskyn"/>
- <BindItem id="item3" compid="div.checkbox" propid="value" datasetid="ds_send" columnid="kioskyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator : 설승민
- * Make Date : 2019-04-09
- * 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
- //---------------------------------------------------------------------------------------
- /**
- * [fSelectRefItem description]
- * @param {[type]} refitem [description]
- * @return {[type]} [description]
- */
- /**
- * [fInitialize description]
- * @return {[type]} [description]
- */
- function fInitialize() {
- // model.resetInstanceNode("/root/main/vipinptlist/vipinddschspec");
- ds_send.clearData();
- ds_send.addRow();
- ds_main_kiosklogs.clearData();
- //ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- //ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchcond", "1");
-
- }
- /**
- * 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 SMPAO99902_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- //checkbox.value = "Y";
-
- var SMPAO99902_PID = utlf_transNullToEmpty(opener.frmf_getParameter("SMPAO99902_PID"));
- var SMPAO99902_HNGNM = utlf_transNullToEmpty(opener.frmf_getParameter("SMPAO99902_HNGNM"));
- ds_send.setColumn(0, "pid", SMPAO99902_PID);
- ds_send.setColumn(0, "hngnm", SMPAO99902_HNGNM);
-
-
- dsf_createDsRow('ds_patinfolist', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'hngnm', type: 'string', size: 256, val: '' }
- ], false);
- ds_patinfolist.setColumn(0, "pid", SMPAO99902_PID);
- ds_patinfolist.setColumn(0, "hngnm", SMPAO99902_HNGNM);
- //ipt_pid_keydown();
-
-
-
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchcond", "1");
- ds_send.setColumn(0, "kioskyn", "Y");
-
-
-
- fsysf_getUserInfosSampling2();
-
- ds_main_kiosklogs.addRow();
- fSetCodeList();
-
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "getErrorCode";
- oParam.inds = "req=ds_hidden_session";
- oParam.outds = "ds_hidden_init_code=code";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
-
-
-
- //if(!utlf_isNull(ds_send.getColumn(0,"pid")) && !utlf_isNull(ds_send.getColumn(0,"fromdd")) ){
- div_button1_onclick();
- //}else{
- // sysf_messageBox("환자등록번호가 입력되지", "E007");
- //}
- }
- /**
- * ipt_text 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function div_ipt_text_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
-
- div.button1.click();
- }
- }
- /**
- * 등록번호 ipt_pid 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function div_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 8) {
- //ds_send.clearData();
- // ds_send.addRow();
- //fInitialize();
- }
- if (e.keycode == 13) {
- obj.updateToDataset();
- vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, 'pid'));
- //환자번호 null체크
- if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- ds_main_kiosklogs.clearData();
- dsf_createDsRow('ds_req', [
- { col: 'gubun', type: 'string', size: 256, val: '' },
- { col: 'kiosktype', type: 'string', size: 256, val: '' },
- { col: 'checkyn', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'kioskioflag', type: 'string', size: 256, val: '' },
- { col: 'sessuserid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'rgstdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
- ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
- ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
- ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
- var oParam = {};
- oParam.id = "TXPAO99901";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "getKioskLogs";
- oParam.inds = "ptbs=ds_req";
- oParam.outds = "ds_init_code=kioskCount";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (ds_init_code.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- //환자번호 조건으로 인적정보 조회
- ds_source.setColumn(0, "srchcond", "1");
- ds_source.setColumn(0, "pid", vcheck_pid);
- //환자기본정보 node clear
- ds_patinfolist.clearData();
- dsf_createDsRow('ds_req', [
- { col: 'srchcond', type: 'string', size: 256, val: '' },
- { col: 'checkfnexam', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'hngnm', type: 'string', size: 256, val: '' },
- { col: 'rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'acptdd', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'inhospyn', type: 'string', size: 256, val: '' }
- ], false);
- ds_req.copyRow(0, ds_source, 0);
- dsf_setTypeFormat(ds_req, "srchcond:INT^checkfnexam:INT");
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
-
- if(ds_patinfolist.rowcount == 0){
- ds_patinfolist.addRow();
- }
- div.button1.click();
- //환자등록번호 체크
- // if (arErrorCode.pop("TRPMC02500") > -1) {
- // var vcheck_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "pid"));
- // if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- // //조회내역 체크
- // sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
- // fInitialize();
- // return;
- // }
- //
- // //조회되는 항목들 clear
- // // model.resetInstanceNode("/root/main/baseinfo");
- // ds_send.setColumn(0, "data1", ds_patinfolist.getColumn(0, "pid"));
- // div.button1.click();
- //
- // }
- // else {
- // sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
- // div.ipt_pid.setFocus();
- // return;
- // }
- }
- }
- /**
- * 등록번호 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_btn_pid_onclick(obj: Button, e: ClickEventInfo) {
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_sed: ds_send }, "", "", "", "", "", "", "", "", "", "M");
-
-
- if (ds_patinfolist.rowcount > 0) {
- ds_main_patinfolist.copyData(ds_patinfolist);
- ds_patinfolist.clearData();
- }
-
-
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function div_button1_onclick(obj: Button, e: ClickEventInfo) {
- ds_main_kiosklogs.clearData();
- var kioskyn = ds_send.getColumn(0,'kioskyn');
-
- dsf_createDsRow('ds_req', [
- { col: 'gubun', type: 'string', size: 256, val: '' },
- { col: 'kiosktype', type: 'string', size: 256, val: '' },
- { col: 'checkyn', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'kioskioflag', type: 'string', size: 256, val: '' },
- { col: 'sessuserid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'rgstdd', type: 'string', size: 256, val: '' },
- { col: 'kioskyn', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_req.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
- ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
- ds_req.setColumn(0, "kioskyn", ds_send.getColumn(0, "kioskyn"));
- ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
- ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
- var oParam = {};
- oParam.id = "TXPAO99901";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "getKioskLogs";
- oParam.inds = "ptbs=ds_req";
- oParam.outds = "ds_init_code=kioskCount";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
-
- if(ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")){
- sysf_messageBox("종료일자가 시작일자보다 작을 수 없습니다.", "I");
- }
- if (ds_init_code.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
-
-
-
- }
- /**
- * 미리보기 버튼 클릭 이벤트
- * @param {[type]} obj:Button [description]
- * @param {[type]} e:ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button5_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PREVIEW");
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- function fsysf_getUserInfosSampling2() {
- var sUserInfosS = sysf_getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; // 사용자번호
- var usernm = UserInfosS_Array[1]; // 사용자이름
- var posinstcd = UserInfosS_Array[2]; // 소속기관코드
- var posinstnm = UserInfosS_Array[3]; // 소속기관명
- var posdeptcd = UserInfosS_Array[4]; // 소속부서코드
- var posdeptnm = UserInfosS_Array[5]; // 소속부서명
- var dutplceinstcd = UserInfosS_Array[6]; // 소속부서명
- dsf_makeValue(ds_hidden_session, "userid", "string", "");
- dsf_makeValue(ds_hidden_session, "usernm", "string", "");
- dsf_makeValue(ds_hidden_session, "posinstcd", "string", "");
- dsf_makeValue(ds_hidden_session, "posinstnm", "string", "");
- dsf_makeValue(ds_hidden_session, "posdeptcd", "string", "");
- dsf_makeValue(ds_hidden_session, "posdeptnm", "string", "");
- dsf_makeValue(ds_hidden_session, "dutplceinstcd", "string", "");
- if (utlf_isNull(userid) || userid == " " || userid == "-") userid = "pam";
- if (utlf_isNull(posinstcd) || posinstcd == " " || posinstcd == "-" || dutplceinstcd == "-") posinstcd = "012";
- ds_hidden_session.setColumn(0, "userid", userid);
- ds_hidden_session.setColumn(0, "usernm", usernm);
- ds_hidden_session.setColumn(0, "posinstcd", posinstcd);
- ds_hidden_session.setColumn(0, "posinstnm", posinstnm);
- ds_hidden_session.setColumn(0, "posdeptcd", posdeptcd);
- ds_hidden_session.setColumn(0, "posdeptnm", posdeptnm);
- ds_hidden_session.setColumn(0, "dutplceinstcd", dutplceinstcd);
- }
- function button00_onclick(obj:Button, e:ClickEventInfo)
- {
- // dsf_createDsRow('ds_req2', [
- // { col: 'gubun', type: 'string', size: 256, val: '' },
- // { col: 'kiosktype', type: 'string', size: 256, val: '' },
- // { col: 'checkyn', type: 'string', size: 256, val: '' },
- // { col: 'pid', type: 'string', size: 256, val: '' },
- // { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- // { col: 'kioskioflag', type: 'string', size: 256, val: '' },
- // { col: 'sessuserid', type: 'string', size: 256, val: '' },
- // { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- // { col: 'rgstdd', type: 'string', size: 256, val: '' }
- // ], false);
- //
- // ds_req2.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- // ds_req2.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
- // ds_req2.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "posinstcd"));
- // ds_req2.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
- //
- //
- //
- // var oParam = {};
- // oParam.id = "TXPAO99901";
- // oParam.service = "kioskmngtapp.KioskRcpt";
- // oParam.method = "reqKioskOutOrdAmtCalc";
- // oParam.inds = "ptbs=ds_req2 "
- // + "kio=ds_main_kiosklogs";
- // oParam.outds = "ds_main_kiosklogs=kioskLogs";
- // oParam.async = false;
- // oParam.callback = "callback";
- // tranf_submit(oParam);
- //
- //
- // if (ds_main_kiosklogs.rowcount == 0) {
- // sysf_messageBox("조회 결과가 없습니다.", "I");
- // }
- //
- //
- // div_button1_onclick();
-
- }
- function fSetCodeList(){
- var oParam = {};
- oParam.id = "TRPAO00102";
- oParam.service = "outordamtmngtapp.OutRcpt";
- oParam.method = "reqGetPamInitCd";
- oParam.inds = "req=ds_hidden_session";
- oParam.outds = "ds_init_basecdlist_orddeptcd=orddeptcd "
- oParam.async = false;
- tranf_submit(oParam);
- }
- function grd_kioskCount_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_main_kiosklogs.clearData();
- dsf_createDsRow('ds_req', [
- { col: 'gubun', type: 'string', size: 256, val: '' },
- { col: 'kiosktype', type: 'string', size: 256, val: '' },
- { col: 'checkyn', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'kioskioflag', type: 'string', size: 256, val: '' },
- { col: 'sessuserid', type: 'string', size: 256, val: '' },
- { col: 'sessinstcd', type: 'string', size: 256, val: '' },
- { col: 'rgstdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'kioskyn', type: 'string', size: 256, val: '' },
- { col: 'error', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_req.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_req.setColumn(0, "rgstdd", ds_send.getColumn(0, "fromdd"));
- ds_req.setColumn(0, "todd", ds_send.getColumn(0, "todd"));
- ds_req.setColumn(0, "kioskyn", ds_send.getColumn(0, "kioskyn"));
- ds_req.setColumn(0, "sessinstcd", ds_hidden_session.getColumn(0, "dutplceinstcd"));
- ds_req.setColumn(0, "sessuserid", ds_hidden_session.getColumn(0, "userid"));
- ds_req.setColumn(0, "error", ds_init_code.getColumn(e.row, "error"));
- var oParam = {};
- oParam.id = "TXPAO99901";
- oParam.service = "kioskmngtapp.KioskRcpt";
- oParam.method = "getKioskLogs";
- oParam.inds = "ptbs=ds_req";
- oParam.outds = "ds_main_kiosklogs=kioskLogs";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (ds_main_kiosklogs.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
-
- }
- function btn_kioskexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_kioskCount, "excel", "SheetName", "true", "", "open");
- }
- ]]></Script>
- </Form>
- </FDL>
|