123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP06100" position="absolute 0 0 518 343" titletext="수술환자기초정보조회" oninit="SPMNP06100_oninit" onload="SPMNP06100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 316" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 35" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="조회구분 :" position="absolute 5 9 86 26" id="caption2" class="search_name"/>
- <Button position="absolute 445 7 501 29" id="btn_search" class="btn1" taborder="6" text="조회" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 431 7 437 29" linetype="vertical" id="line13" class="line_4"/>
- <Radio position="absolute 85 8 215 28" id="rdo_refflag" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" onitemchanged="group3_group2_rdo_refflag_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>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="조회조건 :" position="absolute 225 9 301 26" id="caption3" class="search_name"/>
- <Edit position="absolute 305 8 420 27" id="ipt_refnm" onkeyup="group3_group2_ipt_refnm_onkeyup" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="인적사항" position="absolute 0 44 95 60" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 60 517 66" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 65 517 295" id="grd_patinfolist" taborder="7" binddataset="ds_main_patinfo_patinfolist" oncelldblclick="group3_grd_patinfolist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="87"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="한글이름"/>
- <Cell col="2" colspan="2" text="주민등록번호" taborder="undefined"/>
- <Cell col="4" text="주민번호hidden"/>
- <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="병실코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:patnm"/>
- <Cell col="2" text="bind:rrgstno1"/>
- <Cell col="3" text="bind:rrgstno2visible"/>
- <Cell col="4" text="bind:rrgstno2"/>
- <Cell col="5" text="bind:homeTel"/>
- <Cell col="6" text="bind:mpphontel"/>
- <Cell col="7" text="bind:zipcd1"/>
- <Cell col="8" text="bind:zipcd2"/>
- <Cell col="9" text="bind:detladdr"/>
- <Cell col="10" text="bind:wardcd"/>
- <Cell col="11" text="bind:deptnm"/>
- <Cell col="12" text="bind:roomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 316 518 343" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 402 5 458 27" id="btn_confirm" class="btn4" taborder="8" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 461 5 517 27" id="btn_cancel" class="btn4" taborder="9" text="취소" onclick="group1_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="rrgstno1" type="STRING"/>
- <Column id="rrgstno2visible" type="STRING"/>
- <Column id="rrgstno2" type="STRING"/>
- <Column id="homeTel" type="STRING"/>
- <Column id="mpphontel" type="STRING"/>
- <Column id="zipcd1" type="STRING"/>
- <Column id="zipcd2" type="STRING"/>
- <Column id="detladdr" type="STRING"/>
- <Column id="wardcd" type="STRING"/>
- <Column id="deptnm" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refflag" type="STRING" size="256" sumtext="조건구분"/>
- <Column id="refnm" type="STRING" size="256" sumtext="조건명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refnm" type="STRING" size="256"/>
- <Column id="refflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.rdo_refflag" propid="value" datasetid="ds_main_cond" columnid="refflag"/>
- <BindItem id="item1" compid="group3.group2.ipt_refnm" propid="value" datasetid="ds_main_cond" columnid="refnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP06100
- * Creator : yjh
- * Make Date : 2016-03-31
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-03-31 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fDblClick(pRow) {
- var iParam="";
- var iNode = "ds_main_patinfo_patinfolist";
-
- var iParam_pid = ds_main_patinfo_patinfolist.getColumn(pRow, "pid");
- var iParam_patnm = ds_main_patinfo_patinfolist.getColumn(pRow, "patnm");
- var iParam_rrgstno1 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno1");
- var iParam_rrgstno2 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno2");
- var iParam_hometel = ds_main_patinfo_patinfolist.getColumn(pRow, "hometel");
- var iParam_mpphontel = ds_main_patinfo_patinfolist.getColumn(pRow, "mpphontel");
- var iParam_zipcd1 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd1");
- var iParam_zipcd2 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd2");
- var iParam_detladdr = ds_main_patinfo_patinfolist.getColumn(pRow, "detladdr");
- var iParam_wardcd = ds_main_patinfo_patinfolist.getColumn(pRow, "wardcd");
- var iParam_roomcd = ds_main_patinfo_patinfolist.getColumn(pRow, "roomcd");
- var iParam_patsearflag = "2";//환자번호 조회로 셋팅(조건명에 등록번호가 들어가므로)
-
- iParam = iParam_pid +"|"+ iParam_patnm +"|"
- + iParam_rrgstno1 +"|"+ iParam_rrgstno2 +"|"
- + iParam_hometel +"|"+ iParam_mpphontel +"|"
- + iParam_zipcd1 +"|"+ iParam_zipcd2 +"|"
- + iParam_detladdr +"|"+ iParam_wardcd +"|"
- + iParam_roomcd +"|"+ iParam_patsearflag;
-
- opener.frmf_setParameter("SendData", iParam);
- opener.frmf_setParameter("pid", iParam_pid);
- opener.frmf_setParameter("patnm", iParam_patnm);
- close();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP06100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP06100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP06100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP06100_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "refflag", "1");
-
- var refnm = "";
- if( !utlf_isNull(opener) ){
- refnm = opener.frmf_getParameter("refnm");
- }
- if( utlf_isNull(refnm) ){
- group3.group2.ipt_refnm.setFocus();
- group3.group2.ipt_refnm.imemode = "hangul";
- }else {//상위 페이지에서 검색어를 치고 들어온경우
- ds_main_cond.setColumn(0, "refnm", refnm);
-
- ds_send_reqdata.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRMNP06101";
- oParam.service = "opanstapp.OpAnstDscMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP06101";
- tranf_submit(oParam);
-
- if( ds_main_patinfo_patinfolist.rowcount == 0 ){
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- function cf_TRMNP06101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_main_patinfo_patinfolist.addColumn("zipcd1", "string");
- ds_main_patinfo_patinfolist.addColumn("zipcd2", "string");
- ds_main_patinfo_patinfolist.addColumn("detladdr", "string");
- ds_main_patinfo_patinfolist.addColumn("wardcd", "string");
- ds_main_patinfo_patinfolist.addColumn("roomcd", "string");
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_refflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group3.group2.ipt_refnm.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_refnm
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디트 키 입력시
- ****************************************************************************************/
- function group3_group2_ipt_refnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var refnm = ds_main_cond.getColumn(0, "refnm");
- var refflag = ds_main_cond.getColumn(0, "refflag");
- var length = refnm.length;
-
- if( refflag == "1" ) {
- if( length < 2 ) {
- sysf_messageBox("검색어는 2자리 이상", "E008");
- group3.group2.ipt_refnm.setFocus();
- }else {
- ds_send_reqdata.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRMNP06101";
- oParam.service = "opanstapp.OpAnstDscMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP06101";
- tranf_submit(oParam);
-
- if( ds_main_patinfo_patinfolist.rowcount == 0 ){
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }else if( refflag == "2" ) {
- if( length < 4 ) {
- sysf_messageBox("검색어는 4자리 이상", "E008");
- group3.group2.ipt_refnm.setFocus();
- }else {
- ds_send_reqdata.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRMNP06101";
- oParam.service = "opanstapp.OpAnstDscMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP06101";
- tranf_submit(oParam);
-
- if( ds_main_patinfo_patinfolist.rowcount == 0 ){
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_patinfolist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_grd_patinfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = -1;
-
- iRow = group3.grd_patinfolist.currentrow;
-
- if(iRow < 0)
- {
- sysf_messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cancel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭시
- ****************************************************************************************/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼 클릭시
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = -1;
-
- iRow = group3.grd_patinfolist.currentrow;
-
- if(iRow < 0)
- {
- sysf_messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|