123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNB00700" position="absolute 0 0 520 335" titletext="환자기초정보조회" oninit="SMMNB00700_oninit" onload="SMMNB00700_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 298" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 35" id="group2" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 517 35" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Static text="조회구분 :" position="absolute 5 9 76 26" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 445 7 501 29" id="btn_search" class="btn1" taborder="6" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
- <Shape position="absolute 431 7 437 29" linetype="vertical" id="line13" class="line_4" style="border:0 none #ffe4bbff ;" anchor="default"/>
- <Radio position="absolute 80 7 212 27" id="rdo_refflag" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_refflag_onitemchanged" anchor="default">
- <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 238 9 309 26" id="caption3" class="search_name" anchor="default"/>
- <Edit position="absolute 315 8 430 27" id="ipt_refnm" anchor="default" autoselect="true" onkeyup="group3_group2_ipt_refnm_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="인적사항" position="absolute 0 45 95 61" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 61 517 67" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 65 517 295" id="grd_patinfolist" taborder="7" binddataset="ds_main_patinfo_patinfolist" oncelldblclick="group3_grd_patinfolist_oncelldblclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="95"/>
- <Column size="100"/>
- <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="주민등록번호"/>
- <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 style="align:center middle;" text="bind:pid"/>
- <Cell col="1" style="align:center middle;" text="bind:patnm"/>
- <Cell col="2" style="align:center middle;" text="bind:rrgstno1"/>
- <Cell col="3" style="align:center middle;" text="bind:rrgstno2visible"/>
- <Cell col="4" text="bind:rrgstno2"/>
- <Cell col="5" style="align:center middle;" text="bind:homeTel"/>
- <Cell col="6" style="align:center middle;" 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 306 518 328" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 402 0 458 22" id="btn_confirm" class="btn4" taborder="8" text="확인" onclick="group1_btn_confirm_onclick" anchor="default"/>
- <Button position="absolute 461 0 517 22" id="btn_cancel" class="btn4" taborder="9" text="취소" onclick="group1_btn_cancel_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patinfo_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"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2visible" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="homeTel" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="zipcd1" type="STRING" size="256"/>
- <Column id="zipcd2" type="STRING" size="256"/>
- <Column id="detladdr" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="patnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2visible"/>
- <Col id="rrgstno2"/>
- <Col id="homeTel"/>
- <Col id="mpphontel"/>
- <Col id="zipcd1"/>
- <Col id="zipcd2"/>
- <Col id="detladdr"/>
- <Col id="wardcd"/>
- <Col id="deptnm"/>
- <Col id="roomcd"/>
- </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="refflag" type="STRING" size="256"/>
- <Column id="refnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </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 :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- /* -------------------------------------------------------*/
- /* model.getValue(); 를 함수로 만들었습니다. */
- /* param1 : node는 grid의 xPath입니다. */
- /* param2 : row는 grid에서 선택한 row값입니다. */
- /* param3 : element는 getvalue할 해당 element 명입니다. */
- /* */
- /* 해당 getvalue값을 return 해줍니다. */
- /* return 하지 않으면 해당값을 가져올 수 없습니다. */
- /* -------------------------------------------------------*/
-
- /*fDblClick*/
- function fDblClick(pRow) {
- var iParam="";
- 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("NoSendData", "N");
- opener.frmf_setParameter("SendData" , iParam);
- this.close();
- }
- /*fCancle*/
- function fCancle(){
- opener.frmf_setParameter("NoSendData", "Y");
- this.close();
- }
- /*SMMNB00700_oninit*/
- function SMMNB00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /*SMMNB00700_onload*/
- function SMMNB00700_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_main_cond.copyData(arg_ds_main_cond);
- }catch(e){
- sysf_catchTrace(e);
- }
-
- var refnm = opener.frmf_getParameter("refnm");
- var srchflag = opener.frmf_getParameter("srchflag");
- if( utlf_isNull(refnm) ) {
- group3.group2.ipt_refnm.setFocus();
- group3.group2.ipt_refnm.imemode = "hangul";
- }else {//상위 페이지에서 검색어를 치고 들어온경우
- ds_main_patinfo_patinfolist.clearData();
- dsf_makeValue(ds_main_cond, "refnm", "string", refnm);
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMNB00701";
- oParam.service = "wardcareapp.TranMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- tranf_submit(oParam);
-
- var listcnt = ds_main_patinfo_patinfolist.rowcount;
- if(srchflag == "Y"){ // 등록번호로 조회하여 사용자의 별도의 클릭없이 조회된 환자로 설정하여 리턴_20100504
- if(listcnt > 0){
- fDblClick(0); // 리스트더블클릭
- }else{
- fCancle(); // 취소
- return;
- }
- }
-
- if( ds_main_patinfo_patinfolist.rowcount == 0 ){
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- /*group3_group2_btn_search_onclick*/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_makeValue(ds_main_cond, "refnm", "string", group3.group2.ipt_refnm.value);
- //ds_main_cond.setColumn(0, "refnm", group3.group2.ipt_refnm.value);
- var refnm = group3.group2.ipt_refnm.value;
- 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.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMNB00701";
- oParam.service = "wardcareapp.TranMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- 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.copyData(ds_main_cond);
- var oParam = {};
- oParam.id = "TRMNB00701";
- oParam.service = "wardcareapp.TranMngt";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- tranf_submit(oParam);
-
- if( ds_main_patinfo_patinfolist.rowcount == 0 ){
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- }
- /*group3_group2_rdo_refflag_onitemchanged*/
- function group3_group2_rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group3.group2.ipt_refnm.setFocus();
- }
- /*group3_grd_patinfolist_oncelldblclick*/
- function group3_grd_patinfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = -1;
-
- iRow = ds_main_patinfo_patinfolist.rowposition;
-
- if(iRow < 0)
- {
- sysf_messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- }
- /*group1_btn_confirm_onclick*/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = -1;
-
- iRow = ds_main_patinfo_patinfolist.rowposition;
-
- if(iRow < 0)
- {
- sysf_messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- }
- /*group1_btn_cancel_onclick*/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- fCancle();
- }
- /*group3_group2_ipt_refnm_onkeyup*/
- function group3_group2_ipt_refnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13") {
- frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|