1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC02500" position="absolute 0 0 618 343" titletext="환자기초정보조회" onload="SPPMC02500_onload" oninit="SPPMC02500_oninit">
- <Layouts>
- <Layout>
- <Grid id="grd_patinfo2" class="datagrid2" taborder="0" binddataset="ds_patinfolist" useinputpanel="false" position="absolute 0 62 618 315" oncelldblclick="grd_patinfo2_oncelldblclick" onkeydown="grd_patinfo2_onkeydown" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="18"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="100"/>
- <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="250"/>
- <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="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"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="합 번"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="환자성명"/>
- <Cell col="4" text="영문이름"/>
- <Cell col="5" text="한문이름"/>
- <Cell col="6" colspan="3" text="주민등록번호"/>
- <Cell col="9" text="최근보험유형"/>
- <Cell col="10" text="집전화번호"/>
- <Cell col="11" text="휴대전화번호"/>
- <Cell col="12" text="최근내원일"/>
- <Cell col="13" text="최근내원과"/>
- <Cell col="14" text="외래미수금"/>
- <Cell col="15" text="퇴원미수금"/>
- <Cell col="16" text="생년월일"/>
- <Cell col="17" text="성별"/>
- <Cell col="18" text="나이"/>
- <Cell col="19" text="합본등록번호"/>
- <Cell col="20" text="기타전화번호1"/>
- <Cell col="21" text="기타전화번호2"/>
- <Cell col="22" text="sms전송승인 여부"/>
- <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="RH혈액형"/>
- <Cell col="31" text="외국인여부"/>
- <Cell col="32" text="국적"/>
- <Cell col="33" text="여권번호"/>
- <Cell col="34" text="추천여부"/>
- <Cell col="35" text="추천인ID"/>
- <Cell col="36" text="추천인명"/>
- <Cell col="37" text="추천인관계"/>
- <Cell col="38" text="VIP여부"/>
- <Cell col="39" text="VIP비고"/>
- <Cell col="40" text="종교코드"/>
- <Cell col="41" text="세례명"/>
- <Cell col="42" text="성당명"/>
- <Cell col="43" text="사망여부"/>
- <Cell col="44" text="사망시각"/>
- <Cell col="45" text="사망일자"/>
- <Cell col="46" text="사망시간"/>
- <Cell col="47" text="내원사유"/>
- <Cell col="48" text="동물여부"/>
- <Cell col="49" text="원외예외사유코드"/>
- <Cell col="50" text="재원여부"/>
- <Cell col="51" text="장애인여부"/>
- <Cell col="52" text="특이/문제환자"/>
- <Cell col="53" text="당일퇴원여부"/>
- <Cell col="54" text="참고사항"/>
- <Cell col="55" text="최초등록자ID"/>
- <Cell col="56" text="최초등록일시"/>
- <Cell col="57" text="최종수정자ID"/>
- <Cell col="58" text="최종수정일시"/>
- <Cell col="59" text="pidflag"/>
- <Cell col="60"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:pid"/>
- <Cell col="1" text="bind:bindyn"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" text="bind:engnm"/>
- <Cell col="5" text="bind:chinm"/>
- <Cell col="6" text="bind:rrgstno1"/>
- <Cell col="7" text="bind:rrgstno2"/>
- <Cell col="8" text="bind:rrgstno3"/>
- <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:lastinsukind"/>
- <Cell col="10" text="bind:hometel"/>
- <Cell col="11" text="bind:mpphontel"/>
- <Cell col="12" displaytype="expr:getColumn(currow,'lastorddd')=="" || getColumn(currow,'lastorddd')==null?"":"date"" text="bind:lastorddd"/>
- <Cell col="13" displaytype="combo" edittype="none" style="align:left middle;padding:0 3 0 3;" text="bind:lastorddeptcd" combodataset="ds_init_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
- <Cell col="14" text="bind:outuncoamt"/>
- <Cell col="15" text="bind:dschuncoamt"/>
- <Cell col="16" text="bind:brthdd" mask="yyyy-mm-dd"/>
- <Cell col="17" text="bind:sex"/>
- <Cell col="18" text="bind:age"/>
- <Cell col="19" text="bind:bindpid"/>
- <Cell col="20" text="bind:etctel1"/>
- <Cell col="21" text="bind:etctel2"/>
- <Cell col="22" text="bind:smsaprvyn"/>
- <Cell col="23" text="bind:email"/>
- <Cell col="24" text="bind:zipcd1"/>
- <Cell col="25" text="bind:zipcd2"/>
- <Cell col="26" text="bind:zipcdseq"/>
- <Cell col="27" style="align:left middle;padding:0 3 0 3;" text="bind:addr"/>
- <Cell col="28" text="bind:detladdr"/>
- <Cell col="29" text="bind:btype"/>
- <Cell col="30" text="bind:rh"/>
- <Cell col="31" text="bind:forgeryn"/>
- <Cell col="32" text="bind:nati"/>
- <Cell col="33" text="bind:psptno"/>
- <Cell col="34" text="bind:recmyn"/>
- <Cell col="35" text="bind:recmerid"/>
- <Cell col="36" text="bind:recmernm"/>
- <Cell col="37" text="bind:recmerrela"/>
- <Cell col="38" text="bind:vipyn"/>
- <Cell col="39" text="bind:viprem"/>
- <Cell col="40" text="bind:religncd"/>
- <Cell col="41" text="bind:baptnm"/>
- <Cell col="42" text="bind:chchnm"/>
- <Cell col="43" text="bind:dethyn"/>
- <Cell col="44" text="bind:dethdt"/>
- <Cell col="45" text="bind:dethdd"/>
- <Cell col="46" text="bind:dethtm"/>
- <Cell col="47" text="bind:chosresn"/>
- <Cell col="48" text="bind:animyn"/>
- <Cell col="49" text="bind:exptresncd"/>
- <Cell col="50" text="bind:inhospyn"/>
- <Cell col="51" text="bind:handicapryn"/>
- <Cell col="52" text="bind:patspcfyn"/>
- <Cell col="53" text="bind:tdaydsch"/>
- <Cell col="54" text="bind:remfact"/>
- <Cell col="55" text="bind:acptdd"/>
- <Cell col="56" text="bind:acptno"/>
- <Cell col="57" text="bind:lastupdtrid"/>
- <Cell col="58" text="bind:lastupdtdt"/>
- <Cell col="59" text="bind:pidflag"/>
- <Cell col="60" text="bind:hngnm2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="인적사항" class="tit_2" position="absolute 5 44 100 61"/>
- <Grid id="grd_patinfo" class="datagrid2" taborder="1" binddataset="ds_patinfolist" useinputpanel="false" position="absolute 0 62 618 315" oncelldblclick="grd_patinfo_oncelldblclick" onkeydown="grd_patinfo_onkeydown" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="18"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="85"/>
- <Column size="100"/>
- <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="250"/>
- <Column size="250"/>
- <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="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"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="합 번"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="환자성명"/>
- <Cell col="4" text="영문이름"/>
- <Cell col="5" text="한문이름"/>
- <Cell col="6" colspan="3" text="주민등록번호"/>
- <Cell col="9" text="최근보험유형"/>
- <Cell col="10" text="집전화번호"/>
- <Cell col="11" text="휴대전화번호"/>
- <Cell col="12" text="최근내원일"/>
- <Cell col="13" text="최근내원과"/>
- <Cell col="14" text="외래미수금"/>
- <Cell col="15" text="퇴원미수금"/>
- <Cell col="16" text="생년월일"/>
- <Cell col="17" text="성별"/>
- <Cell col="18" text="나이"/>
- <Cell col="19" text="합본등록번호"/>
- <Cell col="20" text="기타전화번호1"/>
- <Cell col="21" text="기타전화번호2"/>
- <Cell col="22" text="sms전송승인 여부"/>
- <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="RH혈액형"/>
- <Cell col="31" text="외국인여부"/>
- <Cell col="32" text="국적"/>
- <Cell col="33" text="여권번호"/>
- <Cell col="34" text="추천여부"/>
- <Cell col="35" text="추천인ID"/>
- <Cell col="36" text="추천인명"/>
- <Cell col="37" text="추천인관계"/>
- <Cell col="38" text="VIP여부"/>
- <Cell col="39" text="VIP비고"/>
- <Cell col="40" text="종교코드"/>
- <Cell col="41" text="세례명"/>
- <Cell col="42" text="성당명"/>
- <Cell col="43" text="사망여부"/>
- <Cell col="44" text="사망시각"/>
- <Cell col="45" text="사망일자"/>
- <Cell col="46" text="사망시간"/>
- <Cell col="47" text="내원사유"/>
- <Cell col="48" text="동물여부"/>
- <Cell col="49" text="원외예외사유코드"/>
- <Cell col="50" text="재원여부"/>
- <Cell col="51" text="장애인여부"/>
- <Cell col="52" text="특이/문제환자"/>
- <Cell col="53" text="당일퇴원여부"/>
- <Cell col="54" text="참고사항"/>
- <Cell col="55" text="최초등록자ID"/>
- <Cell col="56" text="최초등록일시"/>
- <Cell col="57" text="최종수정자ID"/>
- <Cell col="58" text="최종수정일시"/>
- <Cell col="59" text="pidflag"/>
- <Cell col="60"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" text="bind:pid"/>
- <Cell col="1" text="bind:bindyn"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" text="bind:engnm"/>
- <Cell col="5" text="bind:chinm"/>
- <Cell col="6" text="bind:rrgstno1"/>
- <Cell col="7" text="bind:rrgstno2"/>
- <Cell col="8" text="bind:rrgstno3"/>
- <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:lastinsukind"/>
- <Cell col="10" style="align:left middle;padding:0 3 0 3;" text="bind:hometel"/>
- <Cell col="11" style="align:left middle;padding:0 3 0 3;" text="bind:mpphontel"/>
- <Cell col="12" displaytype="expr:getColumn(currow,'lastorddd')=="" || getColumn(currow,'lastorddd')==null?"":"date"" text="bind:lastorddd"/>
- <Cell col="13" displaytype="combo" style="align:left middle;padding:0 3 0 3;" text="bind:lastorddeptcd" combodataset="ds_init_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
- <Cell col="14" text="bind:outuncoamt"/>
- <Cell col="15" text="bind:dschuncoamt"/>
- <Cell col="16" text="bind:brthdd" mask="yyyy-mm-dd"/>
- <Cell col="17" text="bind:sex"/>
- <Cell col="18" text="bind:age"/>
- <Cell col="19" text="bind:bindpid"/>
- <Cell col="20" text="bind:etctel1"/>
- <Cell col="21" text="bind:etctel2"/>
- <Cell col="22" text="bind:smsaprvyn"/>
- <Cell col="23" text="bind:email"/>
- <Cell col="24" text="bind:zipcd1"/>
- <Cell col="25" text="bind:zipcd2"/>
- <Cell col="26" text="bind:zipcdseq"/>
- <Cell col="27" style="align:left middle;padding:0 3 0 3;" text="bind:addr"/>
- <Cell col="28" style="align:left middle;padding:0 3 0 3;" text="bind:detladdr"/>
- <Cell col="29" text="bind:btype"/>
- <Cell col="30" text="bind:rh"/>
- <Cell col="31" text="bind:forgeryn"/>
- <Cell col="32" text="bind:nati"/>
- <Cell col="33" text="bind:psptno"/>
- <Cell col="34" text="bind:recmyn"/>
- <Cell col="35" text="bind:recmerid"/>
- <Cell col="36" text="bind:recmernm"/>
- <Cell col="37" text="bind:recmerrela"/>
- <Cell col="38" text="bind:vipyn"/>
- <Cell col="39" text="bind:viprem"/>
- <Cell col="40" text="bind:religncd"/>
- <Cell col="41" text="bind:baptnm"/>
- <Cell col="42" text="bind:chchnm"/>
- <Cell col="43" text="bind:dethyn"/>
- <Cell col="44" text="bind:dethdt"/>
- <Cell col="45" text="bind:dethdd"/>
- <Cell col="46" text="bind:dethtm"/>
- <Cell col="47" text="bind:chosresn"/>
- <Cell col="48" text="bind:animyn"/>
- <Cell col="49" text="bind:exptresncd"/>
- <Cell col="50" text="bind:inhospyn"/>
- <Cell col="51" text="bind:handicapryn"/>
- <Cell col="52" text="bind:patspcfyn"/>
- <Cell col="53" text="bind:tdaydsch"/>
- <Cell col="54" text="bind:remfact"/>
- <Cell col="55" text="bind:acptdd"/>
- <Cell col="56" text="bind:acptno"/>
- <Cell col="57" text="bind:lastupdtrid"/>
- <Cell col="58" text="bind:lastupdtdt"/>
- <Cell col="59" text="bind:pidflag"/>
- <Cell col="60" text="bind:hngnm2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox id="bl_inhospyn" taborder="2" position="absolute 527 42 611 62" text="재원여부" truevalue="Y" falsevalue="N"/>
- <Div id="group2" taborder="3" class="div_SA2" position="absolute 0 0 618 35">
- <Layouts>
- <Layout>
- <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 545 7 601 29" onclick="group2_btn_search_onclick" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 529 7 535 29" anchor="default"/>
- <Edit id="ipt_hngnm" taborder="2" class="input_search" visible="false" position="absolute 224 8 354 27" onkeydown="group2_ipt_hngnm_onkeydown" imemode="hangul" autoselect="true" anchor="default"/>
- <Combo id="cmb_cond" taborder="0" innerdataset="@ds_P0350" codecolumn="cdid" datacolumn="cdnm" position="absolute 90 8 215 27" onitemchanged="group2_cmb_cond_onitemchanged" anchor="default"/>
- <Edit id="ipt_rrgstno1" taborder="3" inputtype="number" maxlength="6" position="absolute 247 8 332 27" visible="false" autoselect="true" style="align:left middle;" inputfilter="dot,comma,sign,space" anchor="default" autoskip="true"/>
- <MaskEdit id="ipt_rrgstno2" taborder="4" mask="9999999" class="input_search" visible="false" position="absolute 285 8 370 27" onkeydown="group2_ipt_rrgstno2_onkeydown" autoselect="true" limitbymask="integer" anchor="default" style="align:left;"/>
- <Edit id="ipt_pid" taborder="5" class="input_search" visible="false" position="absolute 325 8 455 27" onkeydown="group2_ipt_pid_onkeydown" inputtype="number" autoselect="true" maxlength="8" anchor="default"/>
- <Calendar id="ipt_acptdd" taborder="6" class="input_search" visible="false" position="absolute 390 8 520 27" onchanged="group2_ipt_acptdd_onchanged" autoselect="true" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" taborder="4" position="absolute 0 316 618 343">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" taborder="10" text="확인" class="btn4" position="absolute 503 5 559 27" onclick="group1_btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="11" text="취소" class="btn4" position="absolute 562 5 618 27" onclick="group1_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <MaskEdit id="ipt_rrgstno1" taborder="6" displaynulltext=" " type="string" mask="999999" maskchar=" " autoselect="true" autoskip="true" limitbymask="integer" onkeydown="group2_ipt_rrgstno1_onkeydown" class="input_search" visible="false" position="absolute 247 40 332 59"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
- <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
- <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
- <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
- <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
- <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
- <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="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
- <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
- <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
- <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
- <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
- <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
- <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
- <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
- <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
- <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
- <Column id="nati" type="STRING" size="256" sumtext="국적"/>
- <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
- <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
- <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
- <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
- <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
- <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
- <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
- <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
- <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
- <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
- <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
- <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
- <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
- <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
- <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
- <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
- <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
- <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
- <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
- <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
- <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
- <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
- <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
- <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
- <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
- <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
- <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
- <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
- <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
- <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
- <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
- <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
- <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <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="acptdd" type="STRING" size="256"/>
- <Column id="inhospyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="acptdd"/>
- <Col id="inhospyn"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item1" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- <BindItem id="item3" compid="group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
- <BindItem id="item4" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item5" compid="group2.ipt_acptdd" propid="value" datasetid="ds_send" columnid="acptdd"/>
- <BindItem id="item6" compid="bl_inhospyn" propid="value" datasetid="ds_send" columnid="inhospyn"/>
- <BindItem id="item2" compid="ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
- <BindItem id="item7" compid="group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- include "pam_pamcomnxp::PAM.xjs"
- var arErrorCode = new HashArray();
- var PAM_FLAG = false;
- function SPPMC02500_oninit(obj:Form, e:InitEventInfo) {
- frmf_initForm(obj); // 폼 초기화
- }
- function SPPMC02500_onload(obj:Form, e:LoadEventInfo) {
-
- grdf_initGrid(grd_patinfo);
- grdf_initGrid(grd_patinfo2);
- var arrParam = [{dsNm:"ds_P0350", cdGrpId:"P0350"}];
-
- appf_getCodeList(arrParam);
-
- // 진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- if (frmf_checkOpener()) {
-
- if (utlf_isNull(opener.objects["ds_main"])) {
- var objDs = new Dataset("ds_main");
- opener.addChild("ds_main", objDs);
- objDs.name = "ds_main";
- }
-
- if (utlf_isNull(opener.ds_main.getColumnInfo("popupendflag"))) {
- opener.ds_main.addColumn("popupendflag", "string");
- }
-
- if (opener.ds_main.rowcount < 1) {
- opener.ds_main.addRow();
- }
-
- opener.ds_main.setColumn("popupendflag", "cancel");
-
- var sId = opener.frmf_getScreenID();
-
- if (sId.substr(0, 3) == "SMP" || sId.substr(0, 3) == "SPP") {
- PAM_FLAG = true;
- }
-
- opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
-
- try {
- ds_send.copyData(arg_ds_send);
- } catch(e) { }
-
- }
-
- if (PAM_FLAG) {
- grd_patinfo.visible = true;
- grd_patinfo2.visible = false;
- } else {
- grd_patinfo.visible = false;
- grd_patinfo2.visible = true;
- }
-
- if (!utlf_isNull(ds_send.getColumnInfo("srchcond"))) {
- if ( ds_send.getColumnInfo("checkfnexam") == null
- || (!utlf_isNull(ds_send.getColumnInfo("checkfnexam")) && ds_send.getColumn(0, "checkfnexam") != "1") ) {
- // 조회조건에서 '예약일시'를 제거한다.
- ds_P0350.deleteRow(ds_P0350.findRow("cdid", "5"));
- }
-
- if (utlf_isNull(ds_send.getColumn(0, "srchcond")) || ds_send.getColumn(0, "srchcond") == "-") {
- ds_send.setColumn(0,"srchcond", "4");
- }
-
- fChangeSearchCondition(ds_send.getColumn(0, "srchcond"));
-
- // 값이 부모창에서 입력되었을 경우 조회한다.
- if (ds_send.getColumn(0, "srchcond") != "5" && fInputValueCheckXformsReady()) {
-
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC02500";
-
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRPMC02500") > -1) {
- if (PAM_FLAG) {
- if (ds_patinfolist.rowcount == 1) {
- // 조회 내역이 1건일 경우 자동 화면 닫기
- if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0, "autoflag")).toUpperCase() == "Y" ) {
- grd_patinfo.setFocus();
- group1.btn_confirm.click();
- this.close();
- }
- }
-
- if (ds_patinfolist.rowcount >= 1) {
- grd_patinfo.setFocus();
- } else {
- // 조회 내역이 없을 경우 자동 화면 닫기
- if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "NON" ) {
- group1.btn_cancel.click();
- }
-
- fChangeSearchCondition(ds_send.getColumn(0, "srchcond"));
- }
- } else {
- if (ds_patinfolist.rowcount == 1) {
- // 조회 내역이 1건일 경우 자동 화면 닫기
- if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "Y" ) {
- grd_patinfo2.setFocus();
- group1.btn_confirm.click();
- this.close();
- }
- }
-
- if( ds_patinfolist.rowcount > 1 ) {
- grd_patinfo2.setFocus();
- } else {
- if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "NON" ) {
- group1.btn_cancel.click();
- }
- fChangeSearchCondition(ds_send.getColumn(0,"srchcond"));
- }
- }
- }
- }
- } else {
- //조회조건에서 '예약일시'를 제거한다.
- ds_P0350.deleteRow(ds_P0350.findRow("cdid", "5"));
-
- ds_send.addColumn("srchcond", "string");
- ds_send.addColumn("pid", "string");
- ds_send.addColumn("hngnm", "string");
- ds_send.addColumn("rrgstno1", "string");
- ds_send.addColumn("rrgstno2", "string");
- ds_send.addColumn("acptdd", "string");
-
- }
-
- //진료일 오늘 날짜 디폴트 세팅
- if (utlf_isNull(ds_send.getColumnInfo("acptdd"))) {
- ds_send.addColumn("acptdd", "string");
- }
-
- ds_send.setColumn(0, "acptdd", utlf_getCurrentDate());
-
- // 재원여부 디폴트 세팅
- if (utlf_isNull(ds_send.getColumnInfo("inhospyn"))) {
- ds_send.addColumn("inhospyn", "string");
- }
-
- ds_send.setColumn(0, "inhospyn", "N");
- }
- // 검색조건변경
- function group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- fChangeSearchCondition(e.postvalue);
- }
- // 조회버튼 클릭
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
-
- if (fInputValueCheck()) {
- // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
- ds_send.addColumn("functionyn", "string");
- ds_send.setColumn(0, "functionyn", "N");
- // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
-
- var oParam = {};
- oParam.id = "TRPMC02500";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_patinfolist=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC02500";
-
- tranf_submit(oParam);
-
- dsf_setTypeFormat(ds_patinfolist, "pid:string");
-
- if (arErrorCode.pop("TRPMC02500") >= 0) {
- if (PAM_FLAG) {
- if (ds_patinfolist.rowcount > 0) {
- ds_patinfolist.rowposition = 0;
- grd_patinfo.setFocus();
- } else {
- fChangeSearchCondition(group2.cmb_cond.value);
- }
- } else {
- if (ds_patinfolist.rowcount > 0) {
- ds_patinfolist.rowposition = 0;
- grd_patinfo2.setFocus();
- } else {
- fChangeSearchCondition(group2.cmb_cond.value);
- }
- }
- }
- }
- }
- // 원무용 인적사항 내역 더블클릭
- function grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if (frmf_checkOpener()) {
- if (ds_patinfolist.rowposition >= 0) {
- group1.btn_confirm.click();
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- // 원무용 인적사항 내역 엔터키입력
- function grd_patinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
- if (e.keycode == 13 && ds_patinfolist.rowposition >= 0) {
- group1.btn_confirm.click();
- }
- }
- // 원무 외 인적사항 내역 더블클릭
- function grd_patinfo2_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if (frmf_checkOpener()) {
- if (ds_patinfolist.rowposition >= 0) {
- group1.btn_confirm.click();
- }
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- }
- // 원무 외 인적사항 내역 엔터키입력
- function grd_patinfo2_onkeydown(obj:Grid, e:KeyEventInfo) {
- if(e.keycode == 13 && ds_patinfolist.rowposition >= 0) {
- group1.btn_confirm.click();
- }
- }
- // 확인버튼 클릭
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
-
- if (frmf_checkOpener()) {
-
- opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
-
- var row = ds_patinfolist.rowposition;
-
- if (row >= 0) {
- if (ds_patinfolist.rowcount > 0) {
-
- // 합번된 등록번호 메세지 처리
- var sPid = ds_patinfolist.getColumn(row,"pid");
- var sHngnm = ds_patinfolist.getColumn(row,"hngnm");
- var sBindPid = ds_patinfolist.getColumn(row,"bindpid");
-
- if (!utlf_isNull(sBindPid) && sBindPid != "-" && sBindPid != " ") {
-
- var retValue = sysf_messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
-
- if (retValue == "6") {
- try {
- ds_send.clearData();
- ds_send.addRow();
-
- ds_send.setColumn(0, "srchcond", "1");
-
- fChangeSearchCondition("1");
-
- ds_send.setColumn(0, "pid", sBindPid);
-
- group2.btn_search.click();
-
- } catch(e) {
- return false;
- }
- }
- return false;
- }
-
- opener.dsf_createDs("ds_patinfolist");
-
- opener.ds_patinfolist.copyData(ds_patinfolist);
- opener.ds_patinfolist.clearData();
- opener.ds_patinfolist.addRow();
- opener.ds_patinfolist.copyRow(0, ds_patinfolist, row);
-
- opener.frmf_setParameter("SPPMC02500_popupendflag", "ok");
- }
- } else {
- sysf_messageBox("행이 정확히 선택되지", "E007");
- }
-
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
-
- this.close();
- }
- // 취소버튼 클릭
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
- this.close();
- }
- // 환자명 입력후 엔터 입력
- function group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- group2.btn_search.setFocus();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev);
- }
- }
- // 주민번호 입력후 엔터 입력
- function group2_ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- group2.btn_search.setFocus();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev);
- }
- }
- // 주민번호 뒷자리 입력후 엔터 입력
- function group2_ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- group2.btn_search.setFocus();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev);
- }
- }
- // 환자번호 입력후 엔터 입력
- function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
- if (e.keycode == 13) {
- group2.btn_search.setFocus();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev);
- }
- }
- // 날짜 변경
- function group2_ipt_acptdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev);
- }
- function cf_TRPAM00101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- else ds_tmp_orddridlist.updateColID("nmspecyn","nmsp");
- }
- // 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- function fChangeSearchCondition(cond) {
- switch(cond) {
- case '1':
- if(utlf_isNull(ds_send.getColumnInfo("pid"))) {
- ds_send.addColumn("pid", "string");
- }
- group2.ipt_pid.visible = true;
- group2.ipt_pid.position.left = 219;
- 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_acptdd.visible = false;
- group2.ipt_pid.setFocus();
- break;
- case '2':
- if(utlf_isNull(ds_send.getColumnInfo("hngnm"))) {
- ds_send.addColumn("hngnm", "string");
- }
- ds_send.setColumn(0,"pid", "");
- group2.ipt_hngnm.visible = true;
- group2.ipt_hngnm.position.left = 219;
- 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_acptdd.visible = false;
- group2.ipt_hngnm.setFocus();
- break;
- case '3':
- if(utlf_isNull(ds_send.getColumnInfo("rrgstno1"))) {
- ds_send.addColumn("rrgstno1", "string");
- }
- if(utlf_isNull(ds_send.getColumnInfo("rrgstno2"))) {
- ds_send.addColumn("rrgstno2", "string");
- }
- ds_send.setColumn(0,"pid", "");
-
- group2.ipt_rrgstno1.visible = true;
- group2.ipt_rrgstno1.position.left = 219;
- group2.ipt_rrgstno1.position.top = 8;
- group2.ipt_rrgstno1.position.width = 85;
- group2.ipt_rrgstno2.visible = true;
- group2.ipt_rrgstno2.position.left = 307;
- group2.ipt_rrgstno2.position.top = 8;
- group2.ipt_rrgstno2.position.width = 85;
- group2.ipt_pid.visible = false;
- group2.ipt_hngnm.visible = false;
- group2.ipt_acptdd.visible = false;
- group2.ipt_rrgstno1.setFocus();
- break;
- case '4':
- if(utlf_isNull(ds_send.getColumnInfo("hngnm"))) {
- ds_send.addColumn("hngnm", "string");
- }
- if(utlf_isNull(ds_send.getColumnInfo("rrgstno1"))) {
- ds_send.addColumn("rrgstno1", "string");
- }
- if(utlf_isNull(ds_send.getColumnInfo("rrgstno2"))) {
- ds_send.addColumn("rrgstno2", "string");
- }
- ds_send.setColumn(0,"pid", "");
- group2.ipt_hngnm.visible = true;
- group2.ipt_hngnm.position.left = 219;
- group2.ipt_hngnm.position.top = 8;
- group2.ipt_hngnm.position.width = 130;
- 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_pid.visible = false;
- group2.ipt_acptdd.visible = false;
- group2.ipt_hngnm.setFocus();
- break;
- case '5':
- if(utlf_isNull(ds_send.getColumnInfo("acptdd"))) {
- ds_send.addColumn("acptdd", "string");
- }
- group2.ipt_acptdd.visible = true;
- group2.ipt_acptdd.position.left = 219;
- group2.ipt_acptdd.position.top = 8;
- group2.ipt_acptdd.position.width = 130;
- group2.ipt_hngnm.visible = false;
- group2.ipt_rrgstno1.visible = false;
- group2.ipt_rrgstno2.visible = false;
- group2.ipt_pid.visible = false;
- ds_send.setColumn(0, "acptdd", utlf_getCurrentDate());
- group2.ipt_acptdd.setFocus();
- break;
- default :
- break;
- }
- }
- // 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
- function fInputValueCheckXformsReady() {
-
- var cond = ds_send.getColumn(0, "srchcond");
-
- switch(cond) {
- case '1': //환자등록번호 체크
- if (utlf_isNull(ds_send.getColumn(0, "pid"))) {
- //sysf_messageBox("환자등록번호를 정확히", "C001");
- //group2.ipt_pid.setFocus();
- return false;
- } else {
- return true;
- }
- break;
- case '2': // 환자이름 체크
- if (utlf_isNull(ds_send.getColumn(0, "hngnm"))) {
- return false;
- } else if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length >= 2) {
- return true;
- } else {
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- group2.ipt_hngnm.setFocus();
- return false;
- }
- break;
- case '3': // 환자 주민번호 체크
- if (utlf_isNull(ds_send.getColumn(0, "rrgstno1")) && utlf_isNull(ds_send.getColumn(0, "rrgstno2"))) {
- return false;
- } else {
- if(utlf_transNull(ds_send.getColumn(0,"rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0,"rrgstno2"), "").length >=1) {
- return true;
- } else {
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
- sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1) {
- sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- group2.ipt_rrgstno2.setFocus();
- return false;
- }
- sysf_messageBox("환자 주민번호를", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- }
- break;
- case '4': // 환자명+주민번호 체크
-
- if (utlf_isNull(ds_send.getColumn(0, "hngnm")) && utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
- return false;
- } else if(!utlf_isNull(ds_send.getColumn(0, "hngnm")) && !utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
- //환자이름 체크
- if (utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2){
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- group2.ipt_hngnm.setFocus();
- return false;
- }
- //환자 주민번호 체크
- if (utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
- sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- return true;
- } else {
- if (!utlf_isNull(ds_send.getColumn(0, "hngnm")) && utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
- //환자명 조회로 변경
- ds_send.setColumn(0, "srchcond", "2");
- fChangeSearchCondition("2");
- if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2){
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- group2.ipt_hngnm.setFocus();
- return false;
- }
- return true;
- } else if (utlf_isNull(ds_send.getColumn(0, "hngnm"))) {
- // 주민번호 조회로 변경
- ds_send.setColumn(0, "srchcond", "3");
- fChangeSearchCondition("3");
- if (utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length >= 1) {
- return true;
- } else {
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4){
- sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1){
- sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- group2.ipt_rrgstno2.setFocus();
- return false;
- }
- sysf_messageBox("환자 주민번호를", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- }
- }
- break;
- case '5': // 예약일자 유효성 체크
- if (utlf_isValidDateTime(ds_send.getColumn(0, "acptdd"), "YYYYMMDD")) {
- return true;
- } else {
- return false;
- }
- break;
- default :
- group2.cmb_cond.setFocus();
- return false;
- break;
- }
- }
- function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- // 입력값의 유효범위 체크
- function fInputValueCheck() {
-
- var cond = ds_send.getColumn(0, "srchcond");
-
- switch(cond) {
- case '1': // 환자등록번호 체크
- if (utlf_isNull(ds_send.getColumn(0, "pid"))) {
- sysf_messageBox("환자등록번호를 정확히", "C001");
- group2.ipt_pid.setFocus();
- return false;
- } else {
- return true;
- }
- break;
- case '2':
- //환자이름 체크
- if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length >= 2) {
- return true;
- } else {
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- group2.ipt_hngnm.setFocus();
- return false;
- }
- break;
- case '3':
- //환자 주민번호 체크
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length >=1) {
- return true;
- } else {
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
- sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1) {
- sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
- group2.ipt_rrgstno2.setFocus();
- return false;
- }
- sysf_messageBox("환자 주민번호를", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- break;
- case '4': // 환자이름 유효성 체크. 환자 주민번호 체크
- // 환자이름 체크
- if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2) {
- sysf_messageBox("환자이름을 2자리 이상", "C001");
- group2.ipt_hngnm.setFocus();
- return false;
- }
-
- // 환자 주민번호 체크
- if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
- sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
- group2.ipt_rrgstno1.setFocus();
- return false;
- }
- return true;
- break;
- case '5': // 예약일자 유효성 체크
-
- if (utlf_isValidDateTime(ds_send.getColumn(0, "acptdd"), "YYYYMMDD")) {
- return true;
- } else {
- sysf_messageBox("예약일자를 정확히", "C001");
- return false;
- }
-
- break;
- default :
- sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
- group2.cmb_cond.setFocus();
- return false;
- break;
- }
- }]]></Script>
- </Form>
- </FDL>
|