123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMO01300" position="absolute 0 0 671 343" titletext="협진내역조회" onload="SPPMO01300_onload">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" taborder="1" text="확인" class="btn4" position="absolute 606 319 662 341" onclick="btn_confirm_onclick"/>
- <Shape id="line32" class="line_6" position="absolute 0 313 662 319"/>
- <Div id="grp" taborder="2" class="div_SA2" position="absolute 0 0 662 35">
- <Layouts>
- <Layout width="662" height="35">
- <Static id="caption2" text="등록번호 :" class="search_name" position="absolute 15 9 101 26"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 590 7 646 29" onclick="grp_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 571 7 577 29"/>
- <Edit id="input3" taborder="2" class="input_search" position="absolute 106 8 191 27" onkeydown="grp_input3_onkeydown"/>
- <Static id="caption3" text="환자이름 :" class="search_name" position="absolute 225 9 311 26"/>
- <Edit id="input1" taborder="3" class="input_search" position="absolute 316 8 381 27" onkeydown="grp_input1_onkeydown"/>
- <Button id="button1" taborder="4" class="icon_search" position="absolute 200 10 216 26" onclick="grp_button1_onclick"/>
- <Static id="caption4" text="구분 :" class="search_name" position="absolute 390 9 451 26"/>
- <CheckBox id="checkbox1" taborder="5" text="당일만" position="absolute 455 8 555 28" truevalue="O" onclick="grp_checkbox1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="협진내역" class="tit_2" position="absolute 5 41 99 58"/>
- <Shape id="line1" class="line_1" position="absolute 0 58 662 64" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_emrcnstinfo" taborder="3" binddataset="ds_main_emrcnst" useinputpanel="false" position="absolute 0 62 662 311" cellsizebandtype="allband" autofittype="col" oncelldblclick="grd_emrcnstinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="94"/>
- <Column size="98"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1"/>
- <Cell col="2" text="의뢰일자"/>
- <Cell col="3" text="의뢰과"/>
- <Cell col="4" text="의뢰자명"/>
- <Cell col="5" text="수신과"/>
- <Cell col="6" text="수신자명"/>
- <Cell col="7" text="희망진료일자"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" celltype="head" text="expr:currow + 1"/>
- <Cell col="2" displaytype="date" text="bind:reqdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="3" text="bind:reqdeptnm"/>
- <Cell col="4" text="bind:requsernm"/>
- <Cell col="5" text="bind:recvdeptnm"/>
- <Cell col="6" text="bind:recvusernm"/>
- <Cell col="7" displaytype="date" text="bind:hopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_emrcnst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
- <Column id="reqdeptcd" type="STRING" size="256" sumtext="의뢰진료과"/>
- <Column id="reqdeptnm" type="STRING" size="256" sumtext="의뢰진료과명"/>
- <Column id="requserid" type="STRING" size="256" sumtext="의뢰자"/>
- <Column id="requsernm" type="STRING" size="256" sumtext="의뢰자명"/>
- <Column id="recvdd" type="STRING" size="256" sumtext="수신일자"/>
- <Column id="recvdeptcd" type="STRING" size="256" sumtext="수신진료과"/>
- <Column id="recvdeptnm" type="STRING" size="256" sumtext="수신진료과명"/>
- <Column id="recvuserid" type="STRING" size="256" sumtext="수신자"/>
- <Column id="recvusernm" type="STRING" size="256" sumtext="수신자명"/>
- <Column id="formrecseq" type="STRING" size="256" sumtext="서식기록번호"/>
- <Column id="hopedd" type="STRING" size="256" sumtext="희망진료일자"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="repldd" type="STRING" size="256" sumtext="회신일자"/>
- <Column id="ordreqformflag" type="STRING" size="256" sumtext="수급절차"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="flag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
- <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
- <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
- <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
- <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
- <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
- <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
- <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
- <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
- <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
- <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
- <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
- <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
- <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
- <Column id="nati" type="STRING" size="256" sumtext="국적"/>
- <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
- <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
- <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
- <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
- <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
- <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
- <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
- <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
- <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
- <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
- <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
- <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
- <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
- <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
- <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
- <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
- <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
- <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
- <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
- <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
- <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
- <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
- <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
- <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
- <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
- <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
- <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
- <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
- <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
- <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
- <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
- <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
- <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
- <Column id="gugang_ptbs_scanyn" type="STRING" size="256" sumtext="장애인구강센터동의서여부"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_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>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.input3" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item1" compid="grp.input1" propid="value" datasetid="ds_send" columnid="hngnm"/>
- <BindItem id="item2" compid="grp.checkbox1" propid="value" datasetid="ds_send" columnid="flag"/>
- </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 Flag = 'O'; // 외래등록 default
- //=======================================================================================
- // Local Methods
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPMO01300_onload(obj:Form, e:LoadEventInfo){
- frmf_initForm(obj);
-
- if(frmf_checkOpener()){
- var pid = opener.frmf_getParameter('SPPMO01300_PID');
- var hngnm = opener.frmf_getParameter('SPPMO01300_HNGNM');
- var flag = opener.frmf_getParameter('SPPMO01300_FLAG');
-
- opener.frmf_setParameter('SPPMO01300_RTN', 'NO');
-
- // 2007-12-27 이동식 추가 - 외래등록/전화예약 구분을 위해
-
- if(!utlf_isNull(flag) && flag != '' && flag != ' ' && flag != '-'){
- Flag = flag;
- }
- else{
- Flag = 'O';
- }
-
- if(!utlf_isNull(pid) && pid != '' && pid != ' ' && pid != '-'){
- ds_send.setColumn(0, 'pid', pid);
- ds_send.setColumn(0, 'hngnm', hngnm);
- ds_send.setColumn(0, 'flag', Flag);
-
- grp.btn_search.click();
- }
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 등록번호 키보드 입력 이벤트
- ****************************************************************************************/
- function grp_input3_onkeydown(obj:Edit, e:KeyEventInfo){
- if(e.keycode == 13){
- obj.updateToDataset();
- grp.btn_search.click();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 등록번호 검색 아이콘 버튼 클릭 이벤트
- ****************************************************************************************/
- function grp_button1_onclick(obj:Button, e:ClickEventInfo){
- var object = new Object();
- object.arg_ds_send = ds_send;
- frmf_modal("SPPMC02500", "SPPMC02500", object, "", '', '', '', "", "", "", "", "", "M");
-
- // 팝업창 결과값이 성공이라면
- if(opener.frmf_getParameter('SPPMC02500_popupendflag') == 'ok'){
- ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
- ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 환자이름 키보드 입력 이벤트
- ****************************************************************************************/
- function grp_input1_onkeydown(obj:Edit, e:KeyEventInfo){
- if(e.keycode == 13){
- obj.updateToDataset();
-
- ds_hidden_source.clearData();
- ds_hidden_source.addRow();
-
- ds_hidden_source.setColumn(0, 'srchcond', '2');
- ds_hidden_source.setColumn(0, 'hngnm', obj.value);
-
- var object = new Object();
- object.arg_ds_send = ds_send;
- frmf_modal("SPPMC02500", "SPPMC02500", object, "", '', '', '', "", "", "", "", "", "M");
-
- // 팝업창 결과값이 성공이라면
- if(opener.frmf_getParameter('SPPMC02500_popupendflag') == 'ok'){
- ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
- ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
- }
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 당일만 체크박스 클릭 이벤트
- ****************************************************************************************/
- function grp_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo){
- Flag = obj.value;
- }
- /****************************************************************************************
- * Argument :
- * Description : 조회 버튼 클릭 이벤트
- ****************************************************************************************/
- function grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
- var pid = ds_send.getColumn(0, 'pid');
- var hngnm = ds_send.getColumn(0, 'hngnm');
-
- if(utlf_isNull(pid) || pid == '' || pid == ' ' || pid == '-'){
- sysf_messageBox('등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.', 'E999');
- return false;
- }
- else{
- ds_hidden_source.setColumn(0, 'srchcond', '1');
- ds_hidden_source.setColumn(0, 'pid', pid);
-
- dsf_createDsRow('ds_req', [
- { col: 'srchcond', type: 'string', size: 256, val: '1' },
- { col: 'checkfnexam', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: pid },
- { 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: '' },
- { col: 'sex', type: 'string', size: 256, val: '' },
- { col: 'hiddenflag', type: 'string', size: 256, val: '' }
- ], false);
-
- dsf_setTypeFormat(ds_req, "srchcond:INT^checkfnexam:INT");
-
- ds_patinfolist.clearData();
- ds_patinfolist.addRow();
-
- 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 = "cf_TRPMC02500";
- tranf_submit(oParam);
-
- // 0 보다 작다면 false 를 리턴하여야 한다
- if(result_02500 < 0){
- result_02500 = 0;
- return false;
- }
-
- ds_main_emrcnst.clearData();
- ds_main_emrcnst.addRow();
-
- oParam = {};
- oParam.id = "TRPAC00301";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetOrdCnstInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_emrcnst=emrcnst";
- oParam.async = false;
- //oParam.callback = "cf_TRPAC00301";
- tranf_submit(oParam);
-
- }
- }
- var result_02500 = 0;
- function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg){
- if(nErrorCode < 0){
- result_02500 = -1;
- return;
- }
- if(ds_patinfolist.rowcount < 1){
- sysf_messageBox('졶재하지 않는 등록번호입니다. 등록번호를 확이하세요.', 'E999');
- result_02500 = -1;
- return;
- }
- result_02500 = 1;
- ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
- ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
- ds_send.setColumn(0, 'flag', Flag);
- }
- /****************************************************************************************
- * Argument :
- * Description : 협진내역 그리드 더블 클릭 이벤트
- ****************************************************************************************/
- function grd_emrcnstinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo){
- btn_confirm.click();
- }
- /****************************************************************************************
- * Argument :
- * Description : 협진내역 그리드 더블 클릭 이벤트
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo){
- var currow = grd_emrcnstinfo.currentrow;
- if(currow > -1){
- if(sysf_messageBox('선택하신 협진내역을 접수하시겠습니까?', 'Q999') == 6){
- opener.frmf_setParameter('SPPMO01300_RTN', 'OK');
- opener.frmf_setParameter('SPPMO01300_ORDDD', ds_main_emrcnst.getColumn(currow, 'hopedd'));
- opener.frmf_setParameter('SPPMO01300_ORDDEPTCD', ds_main_emrcnst.getColumn(currow, 'recvdeptcd'));
- opener.frmf_setParameter('SPPMO01300_ORDDRID', ds_main_emrcnst.getColumn(currow, 'recvuserid'));
- opener.frmf_setParameter('SPPMO01300_ORDREQFORMFLAG', ds_main_emrcnst.getColumn(currow, 'ordreqformflag'));
- opener.frmf_setParameter('SPPMO01300_FORMRECSEQ', ds_main_emrcnst.getColumn(currow, 'formrecseq'));
- }
- else{
- opener.frmf_setParameter('SPPMO01300_RTN', 'NO');
- }
- }
- else{
- opener.frmf_setParameter('SPPMO01300_RTN', 'NO');
- }
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|