123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMO02000" position="absolute 0 0 669 349" titletext="외래 미시행내역조회" onload="SPPMO02000_onload">
- <Layouts>
- <Layout>
- <Div id="grp" taborder="1" class="div_SA2" position="absolute 0 0 662 35">
- <Layouts>
- <Layout width="662" height="35">
- <Static id="caption2" text="등록번호 :" class="search_name" position="absolute 0 9 86 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 86 8 156 27" onkeydown="grp_input3_onkeydown"/>
- <Static id="caption3" text="조회일자 :" class="search_name" position="absolute 260 9 346 26"/>
- <Button id="button1" taborder="3" class="icon_search" position="absolute 160 9 176 25" onclick="grp_button1_onclick"/>
- <Calendar id="ipt_srchfromdd" taborder="4" class="input_essential" position="absolute 345 8 440 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="caption50" text="~" class="search_n_b" position="absolute 444 9 456 26"/>
- <Calendar id="ipt_srchtodd" taborder="5" class="input_essential" position="absolute 460 8 555 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Edit id="input1" taborder="6" class="input_search" enable="false" position="absolute 180 8 250 27" onkeydown="grp_input1_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="외래 미시행내역" class="tit_2" position="absolute 5 42 144 58"/>
- <Grid id="grd_dethotptlist" taborder="2" binddataset="ds_main_dethotptinfo" useinputpanel="false" position="absolute 0 60 662 309" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="120"/>
- <Column size="90"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="환자번호"/>
- <Cell col="2" text="진료일자"/>
- <Cell col="3" displaytype="normal" text="진료일자"/>
- <Cell col="4" text="진료과"/>
- <Cell col="5" text="진료의사"/>
- <Cell col="6" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:orddd" mask="yyyy-mm-dd"/>
- <Cell col="3" displaytype="date" style="align:center middle;" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="4" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="5" style="align:center middle;" text="bind:orddrnm"/>
- <Cell col="6" style="align:left middle;" text="bind:type"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_close" taborder="3" text="닫기" class="btn4" position="absolute 606 319 662 341" onclick="btn_close_onclick"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 311 662 317"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_dethotptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="orddd" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="type" type="STRING"/>
- </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="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- </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="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="도로명주소 코드"/>
- </ColumnInfo>
- </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.ipt_srchfromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item3" compid="grp.ipt_srchtodd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
- </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
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
-
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPMO02000_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- // 날짜 기간 선택
- ds_send.setColumn(0, 'srchfromdd', utlf_getCurrentDate().toDate().getAddDate(-1, 'Y').getDateFormat());
- ds_send.setColumn(0, 'srchtodd', '99991231');
-
- if(frmf_checkOpener()){
- var pid = opener.frmf_getParameter('SPPMO02000_PID');
-
- if(!utlf_isNull(pid) && pid != '' && pid != ' ' && pid != '-'){
- ds_send.setColumn(0, 'pid', pid);
- 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 obj = new Object();
- obj.arg_ds_send = ds_send;
-
- // child 팝업 창에서 부모의 dataset 에 값을 채워넣는다
- frmf_modal("SPPMC02500", "SPPMC02500", obj, "", '', '', '', "", "", "", "", "", "M");
-
- if(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();
- grp.btn_search.click();
- }
- }
- /****************************************************************************************
- * 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;
- }
-
- dsf_createDsRow("ds_req", [
- { col: "srchcond", type: "INT", size: 256, val: '1' },
- { col: "checkfnexam", type: "INT", size: 256, val: '' },
- { col: "pid", type: "STRING", size: 256, val: pid },
- { col: "hngnm", type: "STRING", size: 256, val: hngnm },
- { 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);
-
- 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);
-
- if(arErrorCode.pop("TRPMC02500") < 0){
- return false;
- }
-
- if(ds_patinfolist.rowcount > 0){
- ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
- ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
- }
- else{
- sysf_messageBox('존재하지 않는 등록번호입니다. 등록번호를 확인하세요', 'E999');
- }
-
- oParam = {};
- oParam.id = "TRPAO00002";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetDethOtptInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dethotptinfo=dethotptinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRPAO00002";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument :
- * Description : 닫기 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo){
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|