123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC05000" position="absolute 0 0 634 352" titletext="VIP환자기초정보조회" onload="SPPMC05000_onload">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" taborder="1" text="확인" class="btn4" position="absolute 502 322 558 344" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="2" text="취소" class="btn4" position="absolute 561 322 617 344" onclick="btn_cancel_onclick"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 314 618 320"/>
- <Grid id="grd_patbaseinfo" taborder="3" binddataset="ds_main_patbaseinfo_patbaseinfolist" useinputpanel="false" position="absolute 0 65 617 315" oncelldblclick="grd_patbaseinfo_oncelldblclick">
- <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="24" band="head"/>
- <Row size="24"/>
- </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" 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관리부서"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" style="align:left middle;" text="bind:viprgstno"/>
- <Cell col="2" displaytype="combo" text="bind:vipcls" combodataset="ds_init_P0443list_P0443" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="3" displaytype="combo" text="bind:vipflag" combodataset="ds_init_P0444list_P0444" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:rrgstno1"/>
- <Cell col="6" 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" text="bind:brthdd" mask="yyyy-mm-dd"/>
- <Cell col="10" text="bind:sex"/>
- <Cell col="11" text="bind:age"/>
- <Cell col="12" text="bind:email"/>
- <Cell col="13" text="bind:etctel1"/>
- <Cell col="14" text="bind:cntcmthd"/>
- <Cell col="15" text="bind:infoopenyn"/>
- <Cell col="16" text="bind:fromdd" mask="yyyy-mm-dd"/>
- <Cell col="17" text="bind:todd" mask="yyyy-mm-dd"/>
- <Cell col="18" text="bind:zipcd1"/>
- <Cell col="19" text="bind:zipcd2"/>
- <Cell col="20" 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" text="bind:endresn"/>
- <Cell col="24" 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>
- <Shape id="line1" class="line_1" position="absolute 0 61 617 67" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="인적사항" class="tit_2" position="absolute 5 42 100 58"/>
- <Div id="group2" taborder="4" class="div_SA2" position="absolute 0 0 618 35">
- <Layouts>
- <Layout width="618" height="35">
- <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 15 9 101 26"/>
- <Button id="btn_search" taborder="17" text="조회" class="btn1" position="absolute 545 7 601 29" onclick="group2_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 526 7 532 29"/>
- <Edit id="ipt_hngnm" taborder="18" class="input_search" visible="false" position="absolute 224 8 354 27" onkeydown="group2_edit_onkeydown" style="align:left middle;" autoselect="true" imemode="hangul"/>
- <Edit id="ipt_rrgstno1" taborder="19" class="input_search" visible="false" position="absolute 247 8 332 27" onkeydown="group2_edit_onkeydown" maxlength="6" inputtype="number" style="align:left middle;" autoselect="true"/>
- <Combo id="cmb_cond" taborder="20" innerdataset="@ds_cmb_cond" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 106 8 216 27" index="-1" onitemclick="group2_cmb_cond_onitemclick"/>
- <Edit id="ipt_rrgstno2" taborder="21" class="input_search" visible="false" position="absolute 285 8 370 27" onkeydown="group2_edit_onkeydown" style="align:left middle;" autoselect="true" maxlength="7"/>
- <MaskEdit id="ipt_pid" taborder="22" mask="9999999999" class="input_search" visible="false" position="absolute 325 8 455 27" onkeydown="group2_mask_edit_onkeydown" style="align:left middle;" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_P0350list_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <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"/>
- <Column id="checkfnexam" 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_cmb_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_patbaseinfo_patbaseinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="viprgstno" type="STRING" size="256" sumtext="vip등록번호"/>
- <Column id="vipcls" type="STRING" size="256" sumtext="vip분류"/>
- <Column id="vipappno" type="STRING" size="256" sumtext="vip신청번호"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="vipflag" type="STRING" size="256" sumtext="vip구분"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="cntcmthd" type="STRING" size="256" sumtext="연락방법"/>
- <Column id="infoopenyn" type="STRING" size="256" sumtext="정보공개여부"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
- <Column id="hometel" type="STRING" size="256" sumtext="전화[집]"/>
- <Column id="etctel" type="STRING" size="256" sumtext="전화[기타]"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
- <Column id="zipcdseq" type="INT" size="256" sumtext="우편코드번호"/>
- <Column id="addr" type="STRING" size="256" sumtext="상위주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="하위주소"/>
- <Column id="endresn" type="STRING" size="256" sumtext="종료사유"/>
- <Column id="ordremfact" type="STRING" size="256" sumtext="진료참조사항"/>
- <Column id="dutplce" type="STRING" size="256" sumtext="근무처"/>
- <Column id="jobpos" type="STRING" size="256" sumtext="직책"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
- <Column id="fairnmfestivday" type="STRING" size="256" sumtext="영명축일"/>
- <Column id="brthdate" type="STRING" size="256" sumtext="생일"/>
- <Column id="lunarsolarflag" type="STRING" size="256" sumtext="음력/양력"/>
- <Column id="forgneryn" type="STRING" size="256" sumtext="외국인여부"/>
- <Column id="nati" type="STRING" size="256" sumtext="국적"/>
- <Column id="carkind" type="STRING" size="256" sumtext="차종"/>
- <Column id="carno" type="STRING" size="256" sumtext="차량번호"/>
- <Column id="recmerid" type="STRING" size="256" sumtext="의뢰자id"/>
- <Column id="requester" type="STRING" size="256" sumtext="의뢰자이름"/>
- <Column id="requesterrela" type="STRING" size="256" sumtext="의뢰자와의관계"/>
- <Column id="attendantnm" type="STRING" size="256" sumtext="수행원이름"/>
- <Column id="attendantrela" type="STRING" size="256" sumtext="수행원과의관계"/>
- <Column id="attendanttelno" type="STRING" size="256" sumtext="수행원연락처"/>
- <Column id="viprgstrnm" type="STRING" size="256" sumtext="vip등록자"/>
- <Column id="vipappdept" type="STRING" size="256" sumtext="vip신청부서"/>
- <Column id="vipappdeptnm" type="STRING" size="256" sumtext="vip신청부서명"/>
- <Column id="vipmngtdept" type="STRING" size="256" sumtext="vip신청부서명"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item1" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item2" compid="group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
- <BindItem id="item3" compid="group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
- <BindItem id="item4" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-11-17
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-11-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * MaskEdit 에서 입력한 데이터가 format 에 맞는 형식인지 검사 한다
- * ontextchange 이벤트에서만 사용 할 것
- * @param {[type]} obj:MaskEdit [description]
- * @param {[type]} e:TextChangeEventInfo [description]
- * @param {[type]} format [description]
- * @return {[type]} [description]
- */
- function checkValid(obj: MaskEdit, e: TextChangeEventInfo, format) {
- var dummyDay = '20170101120000';
- var postValue = utlf_trim(String(e.posttext).replace(':', '').replace('_', '').replace('-', '').replace(' ', ''));
- postValue = (postValue.length == dummyDay.length) ? postValue : postValue + dummyDay.substr(postValue.length, dummyDay.length);
- if (!utlf_isValidDateTime(postValue, format)) {
- return false;
- }
- return true;
- }
- /**
- * [lf_getCellBindCol description]
- * @param {[type]} cellIdx [description]
- * @return {[type]} [description]
- */
- function lf_getCellBindCol(target: Grid, cellIdx) {
- var text = utlf_trim(target.getCellProperty("body", cellIdx, "text"));
- return text.replace(/bind:/, "").replace(/BIND:/, "");
- }
- /**
- * @param {*} strBuffer integer 타입으로 변환 할 변수
- * @returns {*} integer 타입으로 변환 된 값을 리턴한다. 만약 숫자 형식이 아니라면 0을 리턴한다
- */
- function lf_parseInt(strBuffer){
- var tmpValue = parseInt(utlf_transNullToEmpty(strBuffer).trim());
- if(isNaN(tmpValue)){
- return 0;
- }
- return tmpValue
- }
- /**
- * [erasePrefix description]
- * @param {[type]} target: Dataset [description]
- * @param {[type]} prefix [description]
- * @return {[type]} [description]
- */
- function erasePrefix(target: Dataset, prefix) {
- if (target.rowcount < 1) {
- return;
- }
- for (var i = 0; i < target.colcount; i++) {
- var updatedId = target.getColID(i).replace(prefix, '');
- if (!utlf_isNull(updatedId)) {
- target.updateColID(i, updatedId);
- }
- }
- }
- /**
- * 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- * @param cond
- */
- function fChangeSearchCondition(cond) {
- switch (cond) {
- case '1':
- group2.ipt_pid.visible = true;
- group2.ipt_pid.position.left = 224;
- group2.ipt_pid.position.top = 8;
- group2.ipt_pid.position.width = 130;
- group2.ipt_hngnm.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
- group2.ipt_pid.setFocus();
- break;
- case '2':
- group2.ipt_hngnm.visible = true;
- group2.ipt_hngnm.position.left = 224;
- group2.ipt_hngnm.position.top = 8;
- group2.ipt_hngnm.position.width = 130;
- group2.ipt_pid.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
- group2.ipt_hngnm.setFocus();
- break;
- case '3':
- group2.ipt_rrgstno1.visible = true;
- group2.ipt_rrgstno2.visible = true;
- group2.ipt_rrgstno1.position.left = 224;
- group2.ipt_rrgstno1.position.top = 8;
- group2.ipt_rrgstno1.position.width = 85;
- group2.ipt_rrgstno2.position.left = 312;
- group2.ipt_rrgstno2.position.top = 8;
- group2.ipt_rrgstno2.position.width = 85;
- group2.ipt_hngnm.visible = false;
- group2.ipt_pid.visible = false;
- group2.ipt_rrgstno1.setFocus();
- break;
- case '4':
- group2.ipt_hngnm.visible = true;
- group2.ipt_hngnm.position.left = 224;
- group2.ipt_hngnm.position.top = 8;
- group2.ipt_hngnm.position.width = 125;
- group2.ipt_pid.visible = false;
- group2.ipt_rrgstno1.visible = true;
- group2.ipt_rrgstno1.position.left = 352;
- group2.ipt_rrgstno1.position.top = 8;
- group2.ipt_rrgstno1.position.width = 85;
- group2.ipt_rrgstno2.visible = true;
- group2.ipt_rrgstno2.position.left = 440;
- group2.ipt_rrgstno2.position.top = 8;
- group2.ipt_rrgstno2.position.width = 85;
- group2.ipt_hngnm.setFocus();
- break;
- default:
- //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- break;
- }
- }
- /**
- * 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- */
- function fInputValueCheckXformsReady() {
- var cond = ds_send.getColumn(0, "srchcond");
- switch (cond) {
- case '1':
- //환자등록번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')).length >= 1) {
- // model.setValue("/root/send/pid", ipt_pid.currentText);
- return (true);
- } else {
- //messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '2':
- //환자이름 체크
- //if( ipt_hngnm.currentText.length >= 2 ) return (true);
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'hngnm')).length >= 2) {
- // model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- } else {
- //messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- case '3':
- //환자 주민번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno1')).length >= 1
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno2')).length >= 1) {
- // model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- // model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- } else {
- //messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'hngnm')).length >= 2
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno1')).length >= 1
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno2')).length >= 1) {
- // model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- // model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- // model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- } else {
- //messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- return (true);
- break;
- default:
- group2.cmb_cond.setFocus();
- return (false);
- break;
- }
- }
- /**
- * 입력값의 유효범위 체크
- */
- function fInputValueCheck() {
- var cond = ds_send.getColumn(0, "srchcond");
- switch (cond) {
- case '1':
- //환자등록번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'pid')).length >= 1) {
- // model.setValue("/root/send/pid", ipt_pid.currentText);
- return (true);
- } else {
- sysf_messageBox("환자등록번호를 정확히", "C001");
- return (false);
- }
- break;
- case '2':
- //환자이름 체크
- //if( ipt_hngnm.currentText.length >= 2 ) return (true);
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'hngnm')).length >= 2) {
- // model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- return (true);
- } else {
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- return (false);
- }
- break;
- case '3':
- //환자 주민번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno1')).length >= 1
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno2')).length >= 1) {
- // model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- // model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- return (true);
- } else {
- sysf_messageBox("환자 주민번호를", "C001");
- return (false);
- }
- break;
- case '4':
- //환자이름 유효성 체크. 환자 주민번호 체크
- if (utlf_transNullToEmpty(ds_send.getColumn(0, 'hngnm')).length >= 2
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno1')).length >= 1
- || utlf_transNullToEmpty(ds_send.getColumn(0, 'rrgstno2')).length >= 1) {
- // model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- // model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
- // model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
- } else {
- sysf_messageBox("환자이름 또는 주민번호를", "C001");
- return (false);
- }
- return (true);
- break;
- default:
- sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- group2.cmb_cond.setFocus();
- return (false);
- break;
- }
- }
- /**
- *
- */
- function fConfirm() {
- var row = grd_patbaseinfo.currentrow;
- opener.ds_main.setColumn(0, 'popupendflag', 'cancel');
- if (row >= 0) {
- if (ds_main_patbaseinfo_patbaseinfolist.rowcount > 0) {
- //합번된 등록번호 메세지 처리
- var sPid = utlf_transNullToEmpty(ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "pid"));
- var sHngnm = utlf_transNullToEmpty(ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "hngnm"));
- var sBindPid = utlf_transNullToEmpty(ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "bindpid"));
- if (sBindPid != '' && sBindPid != '-') {
- alert(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.");
- return false;
- }
- opener.ds_main_vippatbaseinfo_vippatbaseinfolist.setColumn(0, "pid", ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "pid"));
- opener.ds_main_vippatbaseinfo_vippatbaseinfolist.setColumn(0, "rrgstno1", ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "rrgstno1"));
- opener.ds_main_vippatbaseinfo_vippatbaseinfolist.setColumn(0, "rrgstno2", ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "rrgstno2"));
- opener.BaseInfoSet("Y");
- this.close();
- }
- } else {
- sysf_messageBox("행이 정확히 선택되지", "E007");
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SPPMC05000_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- appf_getCodeList([{ dsNm: 'ds_init_P0350list_P0350', cdGrpId: 'P0350' }]);
- ds_cmb_cond.copyData(ds_init_P0350list_P0350);
- var deptflag = utlf_transNullToEmpty(opener.frmf_getParameter("deptcd"));
-
- dsf_makeValue(ds_send, "deptflag", 'string', deptflag);
- //플래그 초기화!
- opener.ds_main.setColumn(0, 'popupendflag', 'cancel');
- //if( getNodesetCount("/root/send/srchcond") > 0 ){
- if (ds_send.rowcount > 0) {
-
- if (ds_send.getColumn(0, "checkfnexam") != "1") {
- //조회조건에서 '예약일시'를 제거한다.
- ds_cmb_cond.filter('cdid != "5"');
- }
- fChangeSearchCondition(ds_send.getColumn(0, "srchcond"));
-
-
- try{
-
- ds_send.copyRow(0, arg_ds_hidden_source, 0);
- }
- catch(e) {}
- //값이 부모창에서 입력되었을 경우 조회한다.
- if (ds_send.getColumn(0, "srchcond") != '5' && fInputValueCheckXformsReady()) {
- 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 = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMC05001") > -1) {
- if (ds_main_patbaseinfo_patbaseinfolist.rowcount == 1) {
- if (ds_send.getColumn(0, "autoflag").toUpperCase() == "Y") { //조회 내역이 1건일 경우 자동 화면 닫기
- grd_patbaseinfo.setFocus();
- btn_confirm.click();
- this.close();
- }
- }
- if (ds_main_patbaseinfo_patbaseinfolist.rowcount > 1) {
- grd_patbaseinfo.setFocus();
- } else {
- if (ds_send.getColumn(0, "autoflag").toUpperCase() == "NON") { //조회 내역이 없을 경우 자동 화면 닫기
- btn_cancel.click();
- //window.close();
- }
- fChangeSearchCondition(ds_send.getColumn(0, 'srchcond'));
- }
- }
- }
- } else {
- //조회조건에서 '예약일시'를 제거한다.
- ds_cmb_cond.filter('cdid != "5"');
- // model.makeNode("/root/send/srchcond");
- // model.makeNode("/root/send/pid");
- // model.makeNode("/root/send/hngnm");
- // model.makeNode("/root/send/rrgstno1");
- // model.makeNode("/root/send/rrgstno2");
- }
- }
- /**
- * cmb_cond 콤보 아이템 클릭 이벤트
- * @param obj
- * @param e
- */
- function group2_cmb_cond_onitemclick(obj: Combo, e: ListBoxClickEventInfo) {
- ds_send.setColumn(0, 'srchcond', e.itemvalue);
- fChangeSearchCondition(ds_send.getColumn(0, 'srchcond'));
- }
- /**
- * group2 의 Edit 컴포넌트 키보드 입력 이벤트
- * @param obj
- * @param e
- */
- function group2_edit_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- group2.btn_search.click();
- }
- }
- /**
- * group2 의 MaskEdit 컴포넌트 키보드 입력 이벤트
- * @param obj
- * @param e
- */
- function group2_mask_edit_onkeydown(obj: MaskEdit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- group2.btn_search.click();
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param obj
- * @param e
- */
- function group2_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- if (fInputValueCheck()) {
- 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 = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMC05001") > -1) {
- if (ds_main_patbaseinfo_patbaseinfolist.rowcount > 0) {
- grd_patbaseinfo.setFocus();
- } else {
- fChangeSearchCondition(ds_send.getColumn(0, 'srchcond'));
- }
- }
- }
- }
- /**
- * grd_patbaseinfo 그리드 셀 더블클릭 이벤트
- * @param obj
- * @param e
- */
- function grd_patbaseinfo_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- if (frmf_checkOpener()) {
- fConfirm();
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- /**
- * 확인 버튼 클릭 이벤트
- * @param obj
- * @param e
- */
- function btn_confirm_onclick(obj: Button, e: ClickEventInfo) {
- if (frmf_checkOpener()) {
- fConfirm();
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- /**
- * 닫기 버튼 클릭 이벤트
- * @param obj
- * @param e
- */
- function btn_cancel_onclick(obj: Button, e: ClickEventInfo) {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|