123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNI00700" position="absolute 0 0 1195 690" titletext="주사실 이름검색" onload="form_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 10 1195 690" anchor="all" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption10" class="tit_2" position="absolute 0 67 157 87" anchor="default" text="이름 검색 리스트" positiontype="position"/>
- <Shape id="line7" class="line_1" position="absolute 0 70 1194 70" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_patinfo" class="datagrid2" position="absolute 0 87 1194 677" anchor="all" autofittype="col" binddataset="ds_grid" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="110"/>
- <Column size="130"/>
- <Column size="120"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="450"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell celltype="head"/>
- <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="주소"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:middle;" text="bind:pid"/>
- <Cell col="2" style="align:middle;" text="bind:hngnm"/>
- <Cell col="3" style="align:middle;" text="bind:gndrage"/>
- <Cell col="4" style="align:middle;" text="bind:rrgstno"/>
- <Cell col="5" style="align:middle;" text="bind:mpphontel"/>
- <Cell col="6" style="align:left middle;" text="bind:detladdr"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" class="tit_1" position="absolute 0 0 129 25" anchor="default" positiontype="position" text="주사실 이름검색"/>
- <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1194 67">
- <Layouts>
- <Layout>
- <Button id="button1" taborder="0" text="조회" onlbuttonup="button1_onlbuttonup" class="btn1" position="absolute 1115 10 1171 30" anchor="right" onclick="grp_sea_button1_onclick"/>
- <Edit id="ipt_mpphontel" taborder="1" class="input_search" position="absolute 648 10 752 30" anchor="default" onkeydown="grp_sea_ipt_mpphontel_onkeydown" tooltiptext="'-'표기를 해야됩니다." autoselect="true"/>
- <Static id="caption2" text="전화번호" class="search_name" position="absolute 574 10 645 30" anchor="default"/>
- <Edit id="ipt_brthdd" taborder="2" class="input_search" position="absolute 450 10 550 30" anchor="default" onkeydown="grp_sea_ipt_brthdd_onkeydown" autoselect="true"/>
- <Static id="caption3" text="생년월일" class="search_name" position="absolute 377 10 448 30" anchor="default"/>
- <Edit id="ipt_hngnm" taborder="3" class="input_search" position="absolute 253 10 353 30" anchor="default" onkeydown="grp_sea_ipt_hngnm_onkeydown" autoselect="true"/>
- <Static id="caption1" text="성명" class="search_name" position="absolute 206 10 251 30" anchor="default"/>
- <Edit id="ipt_pid" taborder="4" class="input_search" position="absolute 82 10 182 30" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown" autoselect="true"/>
- <Static id="caption9" text="등록번호" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid" 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="gndrage" type="STRING" size="256"/>
- <Column id="rrgstno" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="detladdr" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" 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="brthdd" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="grp_sea.ipt_hngnm" propid="value" datasetid="ds_cond" columnid="hngnm"/>
- <BindItem id="item2" compid="grp_sea.ipt_brthdd" propid="value" datasetid="ds_cond" columnid="brthdd"/>
- <BindItem id="item3" compid="grp_sea.ipt_mpphontel" propid="value" datasetid="ds_cond" columnid="mpphontel"/>
- <BindItem id="item0" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMMNI00700_주사실 이름검색.xfdl
- * Creator :
- * Make Date : 2016-04-27
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- //include "emr_injroomxp::SMMNI00700.xjs";
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- function form_onload(obj:Form, e:LoadEventInfo){
- //폼 초기화 함수
- frmf_initForm(obj);
- var sPamInfo = sysf_getGlobalVariable("paminfo");
- dsf_setCSVToDs("ds_paminfo",sPamInfo);
-
- var pid = ds_paminfo.getColumn(0,"pid");
- ds_cond.setColumn(0,"pid", pid);
- lf_getPatInfo();
- }
- //전화번호수정 팝업
- function group3_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var nCurrow = group3.grd_patinfo.currentrow;
- if(nCurrow >= 0 )
- {
- var nPid = group3.grd_patinfo.getCellValue(nCurrow,0);
- if(utlf_isNull(nPid) == false)
- {
- var objTmp = new Object();
- objTmp.pid = nPid;
- objTmp.srchcond = "1";
-
- frmf_modal("SPPMO01400","SPPMO01400",{objTmp:objTmp});
- lf_getPatInfo();
- }
- }
- }
- //조회버튼
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getPatInfo();
- }
- //조회
- function lf_getPatInfo()
- {
- grp_sea.ipt_pid.updateToDataset();
- grp_sea.ipt_hngnm.updateToDataset();
- grp_sea.ipt_brthdd.updateToDataset();
- grp_sea.ipt_mpphontel.updateToDataset();
-
-
- var lgv_nPid = grp_sea.ipt_pid.value;
- var lgv_sHngnm = grp_sea.ipt_hngnm.value;
- var lgv_nBrthdd = grp_sea.ipt_brthdd.value;
- var lgv_nMpphontel = grp_sea.ipt_mpphontel.value;
-
-
- if(utlf_isNull(lgv_nMpphontel) == true && utlf_isNull(lgv_nBrthdd) == true
- && utlf_isNull(lgv_sHngnm) == true && utlf_isNull(lgv_nPid) == true){
- sysf_messageBox("등록번호 ,성명 ,생년월일,전화번호 중 한가지는 입력하셔야 합니다.","");
- return;
- }
-
- if(utlf_isNull(lgv_sHngnm) != true){
- if(lgv_sHngnm.length<2){
- sysf_messageBox("성명을 최소2자 이상", "C001");
- return;
- }
- }
- if(utlf_isNull(lgv_nBrthdd) != true){
- if(lgv_nBrthdd.length<6){
- sysf_messageBox("생년월일을 최소6자 이상", "C001");
- return;
- }
- }
-
- if(utlf_isNull(lgv_nMpphontel) != true){
- if(lgv_nMpphontel.length<6){
- sysf_messageBox("전화번호를 최소6자 이상", "C001");
- return;
- }
- }
- //입력 데이타셋
- ds_temp.copyData(ds_cond);
-
-
- if(utlf_isNull(lgv_nPid) == true){
- ds_temp.setColumn(0,"pid","0");
- }
-
- var objParam = new Object();
- objParam.id = "TRMNI00701";
- objParam.service = "injroomapp.InjRoomPatMngt";
- objParam.method = "reqGetPatInfo";
- objParam.inds = "refCond=ds_temp";
- objParam.outds = "ds_grid=patinfolist";
- tranf_submit(objParam);
-
- ds_grid.rowposition = -1;
- }
- //pid 0채우기
- function grp_sea_ipt_pid_canchange(obj:Edit, e:ChangeEventInfo)
- {
-
- }
- function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13"){
-
- lf_getPatInfo();
- }
- }
- function grp_sea_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13"){
- lf_getPatInfo();
- }
- }
- function grp_sea_ipt_brthdd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13"){
- lf_getPatInfo();
- }
- }
- function grp_sea_ipt_mpphontel_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13"){
- lf_getPatInfo();
- }
- }
- function grp_sea_ipt_pid_oneditclick(obj:Edit, e:EditClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|