123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNS03100" position="absolute 0 0 520 343" titletext="환자기초정보조회" oninit="SMMNS03100_oninit" onload="SMMNS03100_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 81 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 80 8 215 28" id="rdo_refflag" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" 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 300 8 415 27" id="ipt_refnm" autoselect="true" onkeyup="group3_group2_ipt_refnm_onkeyup" imemode="hangul"/>
- </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="43"/>
- <Column size="87"/>
- <Column size="90"/>
- <Column size="43"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="56"/>
- <Column size="57"/>
- <Column size="34"/>
- <Column size="35"/>
- <Column size="379"/>
- <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" text="환자명"/>
- <Cell col="3" text="S/A"/>
- <Cell col="4" text="병실"/>
- <Cell col="5" text="집전화"/>
- <Cell col="6" text="휴대전화"/>
- <Cell col="7" colspan="2" text="주민번호" taborder="undefined"/>
- <Cell col="9" colspan="2" text="우편번호" taborder="undefined"/>
- <Cell col="11" text="주소"/>
- <Cell col="12" text="구분"/>
- </Band>
- <Band id="body">
- <Cell text="bind:patfgnm"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" text="bind:sexage"/>
- <Cell col="4" text="bind:wardno"/>
- <Cell col="5" text="bind:hometel"/>
- <Cell col="6" text="bind:mpphontel"/>
- <Cell col="7" text="bind:rrgstno1"/>
- <Cell col="8" text="bind:rrgstno2visible"/>
- <Cell col="9" text="bind:zipcd1"/>
- <Cell col="10" text="bind:zipcd2"/>
- <Cell col="11" text="bind:detladdr"/>
- <Cell col="12" text="bind:patfg"/>
- </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_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="조건명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회일자From"/>
- <Column id="enddd" type="STRING" size="256" sumtext="조회일자To"/>
- <Column id="flg" type="STRING" size="256" sumtext="전체환자/신규환자조회구분"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2visible" type="STRING" size="256" sumtext="주민번호2visible"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대번화"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
- <Column id="patfg" type="STRING" size="256" sumtext="입원외래구분"/>
- <Column id="patfgnm" type="STRING" size="256" sumtext="입원외래구분한글명"/>
- <Column id="wardno" type="STRING" size="256" sumtext="병동-병실"/>
- <Column id="educfromdd" type="STRING" size="256" sumtext="등록일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="indd" 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="refflag" type="STRING" size="256"/>
- <Column id="refnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="enddd" type="STRING" size="256"/>
- <Column id="flg" type="STRING" size="256"/>
- <Column id="xpath" 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_spclcarexp -> SMMNS03100
- * Creator : yjh
- * Make Date : 2017-09-15
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-15 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //flg - 1 : 원무 환자정보조회
- // - 2 : 전문간호 신규등록환자 조회
- // - 3 : sms전송 환자조회
- var pid = opener.frmf_getParameter("pid");
- var fromdd = opener.frmf_getParameter("fromdd");
- var enddd = opener.frmf_getParameter("enddd");
- var flg = opener.frmf_getParameter("flg");
- var xpath = opener.frmf_getParameter("xpath");
- var pNRow = opener.frmf_getParameter("pNRow");
- ds_main_cond.setColumn(0, "fromdd",fromdd);
- ds_main_cond.setColumn(0, "enddd",enddd);
- ds_main_cond.setColumn(0, "flg",flg);
- /* -------------------------------------------------------*/
- /* model.getValue(); 를 함수로 만들었습니다. */
- /* param1 : node는 grid의 xPath입니다. */
- /* param2 : row는 grid에서 선택한 row값입니다. */
- /* param3 : element는 getvalue할 해당 element 명입니다. */
- /* */
- /* 해당 getvalue값을 return 해줍니다. */
- /* return 하지 않으면 해당값을 가져올 수 없습니다. */
- /* -------------------------------------------------------*/
- function fGetValue(node, row, element) {
- var rtnValue = node.getColumn(row, element);
- return rtnValue;
- }
-
- function fDblClick(pRow) {
- var iParam="";
- var iNode = ds_main_patinfo_patinfolist;
-
- var iParam_pid = fGetValue(iNode, pRow, "pid");
- var iParam_patnm = fGetValue(iNode, pRow, "patnm");
- var iParam_rrgstno1 = fGetValue(iNode, pRow, "rrgstno1");
- var iParam_rrgstno2 = fGetValue(iNode, pRow, "rrgstno2visible");
- var iParam_hometel = fGetValue(iNode, pRow, "hometel");
- var iParam_mpphontel = fGetValue(iNode, pRow, "mpphontel");
- var iParam_zipcd1 = fGetValue(iNode, pRow, "zipcd1");
- var iParam_zipcd2 = fGetValue(iNode, pRow, "zipcd2");
- var iParam_detladdr = fGetValue(iNode, pRow, "detladdr");
- var iParam_roomcd = fGetValue(iNode, pRow, "roomcd");
- var iParam_age = fGetValue(iNode, pRow, "sexage");
- var iParam_patfg = fGetValue(iNode, pRow, "patfg");
- var iParam_wardno = fGetValue(iNode, pRow, "wardno");
- var iParam_educfromdd = fGetValue(iNode, pRow, "educfromdd");
- var iParam_indd = fGetValue(iNode, pRow, "indd");
- var iParam_cretno = fGetValue(iNode, pRow, "cretno");
- var iParam_rrgstno = iParam_rrgstno1 + "-" + iParam_rrgstno2;
- var iParam_zipcd = iParam_zipcd1 + "-" + iParam_zipcd2;
-
- if(iParam_patfg == "O")
- iParam_patfg ="외래";
- else if(iParam_patfg == "I")
- iParam_patfg ="입원";
-
- if( utlf_isNull(pNRow) ){
- pNRow = 0;
- }
-
- if(flg == "1"){//원무환자정보
- ///root/cond
- eval("opener."+xpath).setColumn(pNRow, "pid", iParam_pid);
- eval("opener."+xpath).setColumn(pNRow, "patnm", iParam_patnm);
- }else if( flg == "2" ){//신규등록환자정보
- ///root/main/item/patinfo
- eval("opener."+xpath).setColumn(pNRow, "pid", iParam_pid);
- eval("opener."+xpath).setColumn(pNRow, "pidnm", iParam_patnm);
- eval("opener."+xpath).setColumn(pNRow, "resno", iParam_rrgstno);
- eval("opener."+xpath).setColumn(pNRow, "age", iParam_age);
- eval("opener."+xpath).setColumn(pNRow, "telno1", iParam_hometel);
- eval("opener."+xpath).setColumn(pNRow, "telno2", iParam_mpphontel);
- eval("opener."+xpath).setColumn(pNRow, "addr1", iParam_zipcd);
- eval("opener."+xpath).setColumn(pNRow, "addr2", iParam_detladdr);
- eval("opener."+xpath).setColumn(pNRow, "patfg", iParam_patfg);
- eval("opener."+xpath).setColumn(pNRow, "wardno", iParam_wardno);
- eval("opener."+xpath).setColumn(pNRow, "reqdd", iParam_educfromdd);
- eval("opener."+xpath).setColumn(pNRow, "indd", iParam_indd);
- eval("opener."+xpath).setColumn(pNRow, "cretno", iParam_cretno);
- }else if(flg == "3"){//sms전송환자정보
- eval("opener."+xpath).setColumn(pNRow, "pid", iParam_pid);
- eval("opener."+xpath).setColumn(pNRow, "hngnm", iParam_patnm);
- eval("opener."+xpath).setColumn(pNRow, "mpphontel", iParam_mpphontel);
- eval("opener."+xpath).setColumn(pNRow, "cretno", iParam_cretno);
-
- }
- this.close();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNS03100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNS03100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNS03100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNS03100_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "refflag", "2");
-
- if( utlf_isNull(pid) ) {
- group3.group2.ipt_refnm.setFocus();
- group3.group2.ipt_refnm.imemode = "hangul";
- }else {//상위 페이지에서 검색어를 치고 들어온경우
- ds_main_cond.setColumn(0, "refnm", pid);
- ds_send_reqdata.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRMNS03101";
- oParam.service = "spclcareapp.SpclCarePatMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNS03101";
- tranf_submit(oParam);
-
- // var msg = model.getValue("/root/properties/error/msg");
- // var refCnt = msg.substring(0, 1);
- if( arErrorCode.pop("TRMNS03101") < 0 ) {
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- function cf_TRMNS03101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * 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 = utlf_transNullToEmpty(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 = "TRMNS03101";
- oParam.service = "spclcareapp.SpclCarePatMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNS03101";
- tranf_submit(oParam);
-
- // var msg = model.getValue("/root/hidden/error/msg");
- // var refCnt = msg.substring(0, 1);
- if( arErrorCode.pop("TRMNS03101") < 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 = "TRMNS03101";
- oParam.service = "spclcareapp.SpclCarePatMngt";
- oParam.method = "reqGetPatList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRMNS03101";
- tranf_submit(oParam);
-
- // var msg = model.getValue("/root/hidden/error/msg");
- // var refCnt = msg.substring(0, 1);
- if( arErrorCode.pop("TRMNS03101") < 0 ) {
- sysf_messageBox("조회된 결과가", "I004");
- group3.group2.ipt_refnm.setFocus();
- }
- }
- }
- }
- /****************************************************************************************
- * 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 : 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 = ds_main_patinfo_patinfolist.rowposition;
-
- if(iRow < 0)
- {
- sysf_messageBox("리스트에서 선택한 것이", "I004");
- return;
- }else
- {
- fDblClick(iRow);
- }
- }
- /****************************************************************************************
- * 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 = ds_main_patinfo_patinfolist.rowposition;
-
- 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)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|