123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC05300" position="absolute 0 0 634 343" titletext="VIP환자기초정보조회" onload="SPPMC05300_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 0 618 316" style="">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 0 0 618 35" style="" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" class="search_name" position="absolute 15 8 101 25" style="" text="검색조건 :"/>
- <Button id="btn_search" class="btn1_letter2" taborder="6" position="absolute 545 7 601 29" style="" text="조회" onclick="group3_group2_btn_search_onclick"/>
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 529 7 532 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
- <Edit id="ipt_hngnm" class="input_search" taborder="1" visible="false" position="absolute 224 8 354 27" style="" anchor="default" onkeypress="group3_group2_ipt_hngnm_onkeypress"/>
- <MaskEdit id="ipt_rrgstno1" class="input_search" taborder="2" visible="false" mask="999999" position="absolute 247 8 332 27" style="" anchor="default" onkeypress="group3_group2_ipt_rrgstno1_onkeypress"/>
- <Combo innerdataset="ds_init_P0350list_P0350" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_cond" class="combo_search" taborder="10" position="absolute 106 8 216 27" style="" onitemchanged="group3_group2_cmb_cond_onitemchanged"/>
- <MaskEdit id="ipt_rrgstno2" class="input_search" taborder="3" visible="false" mask="9999999" position="absolute 285 8 370 27" style="" anchor="default" onkeypress="group3_group2_ipt_rrgstno2_onkeypress"/>
- <MaskEdit id="ipt_pid" class="input_search" taborder="4" visible="false" mask="9999999999" position="absolute 325 8 455 27" style="" anchor="default" onkeypress="group3_group2_ipt_pid_onkeypress"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" class="tit_2" position="absolute 5 44 112 61" style="" text="인적사항"/>
- <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 61 617 65" style="" anchor="default"/>
- <Grid id="grd_patbaseinfo" binddataset="ds_main_patbaseinfo_patbaseinfolist" taborder="7" position="absolute 0 65 617 315" style="" oncelldblclick="group3_grd_patbaseinfo_oncelldblclick" onkeypress="group3_grd_patbaseinfo_onkeypress">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="68"/>
- <Column size="100"/>
- <Column size="69"/>
- <Column size="67"/>
- <Column size="65"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="250"/>
- <Column size="250"/>
- <Column size="0"/>
- <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"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="23" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="vip등록번호"/>
- <Cell col="2" text="vip분류"/>
- <Cell col="3" text="vip구분"/>
- <Cell col="4" text="환자성명"/>
- <Cell col="5" colspan="2" text="주민등록번호" taborder="undefined"/>
- <Cell col="7" text="집전화번호"/>
- <Cell col="8" text="휴대전화번호"/>
- <Cell col="9" displaytype="normal" text="생일"/>
- <Cell col="10" text="성별"/>
- <Cell col="11" text="나이"/>
- <Cell col="12" text="이메일"/>
- <Cell col="13" text="기타전화번호1"/>
- <Cell col="14" text="연락방법"/>
- <Cell col="15" text="정보공개여부"/>
- <Cell col="16" text="시작일자"/>
- <Cell col="17" text="종료일자"/>
- <Cell col="18" colspan="2" text="우편번호" taborder="undefined"/>
- <Cell col="20" text="우편번호순서"/>
- <Cell col="21" text="주소"/>
- <Cell col="22" text="상세주소"/>
- <Cell col="23" text="종료사유"/>
- <Cell col="24" text="진료참조사항"/>
- <Cell col="25" text="근무처"/>
- <Cell col="26" text="직책"/>
- <Cell col="27" text="종교"/>
- <Cell col="28" text="세례명"/>
- <Cell col="29" text="영명축일"/>
- <Cell col="30" text="생일"/>
- <Cell col="31" text="음력_양력구분"/>
- <Cell col="32" text="외국인여부"/>
- <Cell col="33" text="국적"/>
- <Cell col="34" text="차종"/>
- <Cell col="35" text="차량번호"/>
- <Cell col="36" text="의뢰자"/>
- <Cell col="37" text="의뢰자와의관계"/>
- <Cell col="38" text="수행원이름"/>
- <Cell col="39" text="수행원과의관계"/>
- <Cell col="40" text="수행원연락처"/>
- <Cell col="41" text="VIP등록자"/>
- <Cell col="42" text="최초등록자ID"/>
- <Cell col="43" text="최초등록시간"/>
- <Cell col="44" text="최종수정자ID"/>
- <Cell col="45" text="최종수정시간"/>
- <Cell col="46" text="신청부서"/>
- <Cell col="47" text="신청부서명"/>
- <Cell col="48" text="vip관리부서"/>
- <Cell col="49" text="최초등록일시"/>
- <Cell col="50" text="최종수정자ID"/>
- <Cell col="51" text="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:pid"/>
- <Cell col="1" style="align:left middle;" text="bind:viprgstno"/>
- <Cell col="2" displaytype="combo" style="align:left middle;" text="bind:vipcls" combodataset="ds_init_P0444list_P0444" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="combo" style="align:left middle;" text="bind:vipflag" combodataset="ds_init_P0444list_P0444" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" style="align:left middle;" text="bind:hngnm"/>
- <Cell col="5" style="align:left middle;" text="bind:rrgstno1"/>
- <Cell col="6" style="align:left middle;" text="bind:rrgstno2"/>
- <Cell col="7" style="align:left middle;" text="bind:hometel"/>
- <Cell col="8" style="align:left middle;" text="bind:mpphontel"/>
- <Cell col="9" displaytype="date" style="align:left middle;" text="bind:brthdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" style="align:left middle;" text="bind:sex"/>
- <Cell col="11" style="align:left middle;" text="bind:age"/>
- <Cell col="12" style="align:left middle;" text="bind:email"/>
- <Cell col="13" style="align:left middle;" text="bind:etctel1"/>
- <Cell col="14" style="align:left middle;" text="bind:cntcmthd"/>
- <Cell col="15" style="align:left middle;" text="bind:infoopenyn"/>
- <Cell col="16" displaytype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="17" displaytype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="18" style="align:left middle;" text="bind:zipcd1"/>
- <Cell col="19" style="align:left middle;" text="bind:zipcd2"/>
- <Cell col="20" style="align:left middle;" text="bind:zipcdseq"/>
- <Cell col="21" style="align:left middle;" text="bind:addr"/>
- <Cell col="22" style="align:left middle;" text="bind:detladdr"/>
- <Cell col="23" style="align:left middle;" text="bind:endresn"/>
- <Cell col="24" style="align:left middle;" text="bind:ordremfact"/>
- <Cell col="25" style="align:left middle;" text="bind:dutplce"/>
- <Cell col="26" style="align:left middle;" text="bind:jobpos"/>
- <Cell col="27" style="align:left middle;" text="bind:religncd"/>
- <Cell col="28" style="align:left middle;" text="bind:baptnm"/>
- <Cell col="29" style="align:left middle;" text="bind:fairnmfestivday"/>
- <Cell col="30" style="align:left middle;" text="bind:brthdate"/>
- <Cell col="31" style="align:left middle;" text="bind:lunarsolarflag"/>
- <Cell col="32" style="align:left middle;" text="bind:forgneryn"/>
- <Cell col="33" style="align:left middle;" text="bind:nati"/>
- <Cell col="34" style="align:left middle;" text="bind:carkind"/>
- <Cell col="35" style="align:left middle;" text="bind:carno"/>
- <Cell col="36" style="align:left middle;" text="bind:requester"/>
- <Cell col="37" style="align:left middle;" text="bind:requesterrela"/>
- <Cell col="38" style="align:left middle;" text="bind:attendantnm"/>
- <Cell col="39" style="align:left middle;" text="bind:attendantrela"/>
- <Cell col="40" style="align:left middle;" text="bind:attendanttelno"/>
- <Cell col="41" style="align:left middle;" text="bind:viprgstrnm"/>
- <Cell col="42" style="align:left middle;" text="bind:fstrgstrid"/>
- <Cell col="43" style="align:left middle;" text="bind:fstrgstdt"/>
- <Cell col="44" style="align:left middle;" text="bind:lastupdtrid"/>
- <Cell col="45" style="align:left middle;" text="bind:lastupdtdt"/>
- <Cell col="46" style="align:left middle;" text="bind:vipappdept"/>
- <Cell col="47" style="align:left middle;" text="bind:vipappdeptnm"/>
- <Cell col="48" style="align:left middle;" text="bind:vipmngtdept"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" scrollbars="autoboth" position="absolute 0 316 618 343" style="">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" class="btn4_letter2" taborder="8" position="absolute 502 5 558 27" style="" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button id="btn_cancel" class="btn4_letter2" taborder="9" position="absolute 561 5 617 27" style="" text="취소" onclick="group1_btn_cancel_onclick"/>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 618 3" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patbaseinfo_patbaseinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="myself" type="STRING" size="256"/>
- <Column id="opener" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0350list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_P0350list_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="deptflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="tmp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0443list_P0443" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0444list_P0444" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- <BindItem id="item1" compid="group3.group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
- <BindItem id="item2" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item3" compid="group3.group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
- <BindItem id="item4" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- include "com_basiccodexp::ZBC001.xjs"
- include "pam_pamcomnxp::PAM.xjs"
- var arErrorCode = new HashArray();
- function SPPMC05300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group3.grd_patbaseinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var arrParam = [
- {dsNm: "ds_init_P0350list", cdGrpId: "P0350" }
- ];
-
- appf_getCodeList(arrParam);
- dsf_makeValue( ds_send, "deptflag", "string", "" );
- ds_send.setColumn( 0, "deptflag", opener.javascript.frmf_getParameter("deptcd"));
- var deptflag = ds_send.getColumn(0, "deptflag");
- //model.alert(deptflag);
- //플래그 초기화!
- opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
- opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- if( ds_send_srchcond.rowcount;> 0 ){
- if( ds_send.getColumn(0, "checkfnexam") != "1" ){
- //조회조건에서 '예약일시'를 제거한다.
- group3.group2.cmb_cond.choices.itemset.attribute("nodeset") = "ds_init_P0350list_P0350[cdid != '5' ]";
- }
- fChangeSearchCondition( ds_send.getColumn(0, "srchcond") );
- //model.refresh();
- //값이 부모창에서 입력되었을 경우 조회한다.
- if(ds_send.getColumn(0, "srchcond") != '5' && fInputValueCheckXformsReady() ){
- //if( fInputValueCheckXformsReady() ){
-
- //if( submit("TRPMC05001") ){
- var oParam = {};
- oParam.id = "TRPMC05001";
- oParam.service = "patinfomngtapp.VipPatMngt";
- oParam.method = "reqGetBasePatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patbaseinfo_patbaseinfolist=patbaseinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC05001";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMC05001") > -1) {
- if( group3.grd_patbaseinfo.rows == 2 ){
- if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){ //조회 내역이 1건일 경우 자동 화면 닫기
- group3.grd_patbaseinfo.setFocus();
- group1.btn_confirm.dispatch("DOMActivate");
- window.close();
- }
- }
- if( group3.grd_patbaseinfo.rows > 1 ){
- group3.grd_patbaseinfo.setFocus();
- }else{
- if( ds_send.getColumn(0, "autoflag").toUpperCase() == "NON" ){ //조회 내역이 없을 경우 자동 화면 닫기
- group1.btn_cancel.dispatch("DOMActivate");
- //window.close();
- }
- fChangeSearchCondition( group3.group2.cmb_cond.value );
- }
- }
- }
- }else{
- //조회조건에서 '예약일시'를 제거한다.
- group3.group2.cmb_cond.choices.itemset.attribute("nodeset") = "ds_init_P0350list_P0350[cdid != '5' ]";
- dsf_makeValue( ds_send, "srchcond", "string", "" );
- dsf_makeValue( ds_send, "pid", "string", "" );
- dsf_makeValue( ds_send, "hngnm", "string", "" );
- dsf_makeValue( ds_send, "rrgstno1", "string", "" );
- dsf_makeValue( ds_send, "rrgstno2", "string", "" );
- //model.refresh();
- }
- }
- function cf_TRPMC05001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- function fInputValueCheckXformsReady(){
- var cond = ds_send.getColumn(0, "srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- //sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '2':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- //sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- case '3':
- //환자 주민번호 체크
- if( group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
- ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
- ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
- return (true);
- }else{
- //sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if(group3.group2.ipt_hngnm.text.length >= 2 || group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
- ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
- }else{
- //sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- return( true );
- break;
- default :
- group3.group2.cmb_cond.setFocus();
- return( false );
- break;
- }
- }
- //입력값의 유효범위 체크
- function fInputValueCheck(){
- var cond = ds_send.getColumn(0, "srchcond");
- switch(cond){
- case '1':
- //환자등록번호 체크
- if(group3.group2.ipt_pid.text.length >= 1 ){
- ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
- return (true);
- }else{
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '2':
- //환자이름 체크
- //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
- if(group3.group2.ipt_hngnm.text.length >= 2 ){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- return (true);
- }else{
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- case '3':
- //환자 주민번호 체크
- if( group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1 ){
- ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
- ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
- return (true);
- }else{
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if(group3.group2.ipt_hngnm.text.length >= 2 || group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
- ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
- ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
- ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
- }else{
- sysf_messageBox("환자이름 또는 주민번호를", "C001");
- return (false);
- }
- return( true );
- break;
- default :
- sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- group3.group2.cmb_cond.setFocus();
- return( false );
- break;
- }
- }
- //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- function fChangeSearchCondition( cond){
- switch(cond){
- case '1':
- dsf_makeValue( ds_send, "pid", "string", "" );
- dsf_makeValue( ds_send, "deptflag", "string", "" );
- group3.group2.ipt_pid.visible = true;
- group3.group2.ipt_pid.attribute("left") = "219px";
- group3.group2.ipt_pid.attribute("top") = "8px";
- group3.group2.ipt_hngnm.visible = "hidden";
- group3.group2.ipt_rrgstno1.visible = "hidden";
- group3.group2.ipt_rrgstno2.visible = "hidden";
- group3.group2.ipt_pid.setFocus();
- break;
- case '2':
- dsf_makeValue( ds_send, "hngnm", "string", "" );
- dsf_makeValue( ds_send, "deptflag", "string", "" );
- group3.group2.ipt_hngnm.visible = true;
- group3.group2.ipt_hngnm.attribute("left") = "219px";
- group3.group2.ipt_hngnm.attribute("top") = "8px";
- group3.group2.ipt_pid.visible = "hidden";
- group3.group2.ipt_rrgstno1.visible = "hidden";
- group3.group2.ipt_rrgstno2.visible = "hidden";
- group3.group2.ipt_hngnm.setFocus();
- break;
- case '3':
- dsf_makeValue( ds_send, "rrgstno1", "string", "" );
- dsf_makeValue( ds_send, "rrgstno2", "string", "" );
- dsf_makeValue( ds_send, "deptflag", "string", "" );
- group3.group2.ipt_rrgstno1.visible = true;
- group3.group2.ipt_rrgstno2.visible = true;
- group3.group2.ipt_rrgstno1.attribute("left") = "219px";
- group3.group2.ipt_rrgstno1.attribute("top") = "8px";
- group3.group2.ipt_rrgstno2.attribute("left") = "307px";
- group3.group2.ipt_rrgstno2.attribute("top") = "8px";
- group3.group2.ipt_hngnm.visible = "hidden";
- group3.group2.ipt_pid.visible = "hidden";
- group3.group2.ipt_rrgstno1.setFocus();
- break;
- case '4':
- //dsf_makeValue( ds_send, "pid", "string", "" );
- dsf_makeValue( ds_send, "hngnm", "string", "" );
- dsf_makeValue( ds_send, "rrgstno1", "string", "" );
- dsf_makeValue( ds_send, "rrgstno2", "string", "" );
- dsf_makeValue( ds_send, "deptflag", "string", "" );
- group3.group2.ipt_hngnm.visible = true;
- group3.group2.ipt_hngnm.attribute("left") = "219px";
- group3.group2.ipt_hngnm.attribute("top") = "8px";
- group3.group2.ipt_pid.visible = "hidden";
- group3.group2.ipt_rrgstno1.visible = true;
- group3.group2.ipt_rrgstno1.attribute("left") = "352px";
- group3.group2.ipt_rrgstno1.attribute("top") = "8px";
- group3.group2.ipt_rrgstno2.visible = true;
- group3.group2.ipt_rrgstno2.attribute("left") = "440px";
- group3.group2.ipt_rrgstno2.attribute("top") = "8px";
- group3.group2.ipt_hngnm.setFocus();
- break;
- default :
- //sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- break;
- }
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- if( fInputValueCheck() ){
-
- //if( submit("TRPMC05001") ){
- var oParam = {};
- oParam.id = "TRPMC05001";
- oParam.service = "patinfomngtapp.VipPatMngt";
- oParam.method = "reqGetBasePatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patbaseinfo_patbaseinfolist=patbaseinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC05001";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMC05001") > -1) {
- if( group3.grd_patbaseinfo.rows > 1 ){
- group3.grd_patbaseinfo.setFocus();
- }else{
- fChangeSearchCondition( group3.group2.cmb_cond.value );
- }
- }
- }
- }
- function cf_TRPMC05001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group3_group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo) {
- inputEnterKey("group3.group2.btn_search", "DOMActivate");
- }
- function group3_group2_ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
- inputEnterKey("group3.group2.btn_search", "DOMActivate");
- }
- function group3_group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- var cond = ds_send.getColumn(0, "srchcond");
- //
- //model.refresh();
- fChangeSearchCondition( cond );
- }
- function group3_group2_ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
- inputEnterKey("group3.group2.btn_search", "DOMActivate");
- }
- function group3_group2_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
- inputEnterKey("group3.group2.btn_search", "DOMActivate");
- }
- function group3_grd_patbaseinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if ( frmf_checkOpener() ) {
- row = group3.grd_patbaseinfo.row;
- if( row > 0 ){
- if( ds_main_patbaseinfo_patbaseinfolist.rowcount;> 0 ){
- opener.model.copyNode("ds_main_vippatbaseinfo_vippatbaseinfolist", group3.grd_patbaseinfo.getNode( row ));
- opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
- opener.ds_main.setColumn( 0, "popupendflag", "ok");
- //opener.model.refresh();
- window.close();
- }
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- function group3_grd_patbaseinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
- if( event.keyCode == 13 ){
- group1.btn_confirm.dispatch("DOMActivate");
- }
- //alert("aaa");
- }
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- if ( frmf_checkOpener() ) {
- row = group3.grd_patbaseinfo.row;
- opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
- opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- if( row > 0 ){
- if( ds_main_patbaseinfo_patbaseinfolist.rowcount;> 0 ){
- //합번된 등록번호 메세지 처리
- var sPid = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "pid"));
- var sHngnm = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "hngnm"));
- var sBindPid = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "bindpid"));
- if( sBindPid != '' && sBindPid != '-' ){
- alert(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.");
- return false;
- }
- opener.model.copyNode("ds_main_vippatbaseinfo_vippatbaseinfolist", group3.grd_patbaseinfo.getNode( row ));
- opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
- opener.ds_main.setColumn( 0, "popupendflag", "ok");
- }
- //else{
- // opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- //}
- //
- //opener.model.refresh();
- //window.close();
- }else {
- //opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- sysf_messageBox("행이 정확히 선택되지", "E007");
- //
- //opener.model.refresh();
- //window.close();
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- //
- //opener.model.refresh();
- //window.close();
- }
- //opener.model.refresh();
- window.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
- opener.ds_main.setColumn( 0, "popupendflag", "cancel");
- window.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|