1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMI02800" position="absolute 0 0 830 305" titletext="상급병실신청 서명관리" onload="SPPMI02800_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 487 278 567 300" id="btn_insert" class="btn4" enable="true" taborder="8" text="신규저장" onclick="btn_insert_onclick"/>
- <Button position="absolute 755 278 811 300" id="button3" class="btn4" taborder="11" text="닫기" onclick="button3_onclick"/>
- <Button position="absolute 427 278 483 300" id="btn_update" class="btn4" taborder="9" text="수정" onclick="btn_update_onclick"/>
- <Button position="absolute 0 278 243 300" id="btn_print" class="btn3" text="입퇴원결정서(상급병실신청서)재출력" style="padding:0 0 0 17;" onclick="btn_print_onclick"/>
- <Button position="absolute 683 278 751 300" id="button7" class="btn4" taborder="10" text="초기화" onclick="button7_onclick"/>
- <Button position="absolute 244 278 425 300" id="button5" class="btn3" text="상급병실신청서 OCR 출력" style="padding:0 0 0 17;" onclick="button5_onclick"/>
- <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 0 124 330 130"/>
- <Static id="caption5" text="상급병실신청서명" class="tit_2" position="absolute 0 2 130 19"/>
- <Static id="caption1" text="환자명" class="cell_1" position="absolute 170 24 233 47" style="padding:0 0 0 4;"/>
- <Static id="caption13" text="환자번호" class="cell_1" position="absolute 0 24 70 47" style="padding:0 0 0 4;"/>
- <Edit id="ipt_pid" taborder="12" position="absolute 72 26 167 45"/>
- <Shape id="line2" class="line_1" position="absolute 0 19 330 25" style="strokepen:3 solid #33bbbbff;"/>
- <Shape id="line11" linetype="horizontal" class="line_2" position="absolute 0 250 330 256"/>
- <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 1 273 330 279"/>
- <Div id="import2" taborder="13" url="pam_pamcomnxp::SPPAO02102_전자서명입력_OCX.xfdl" position="absolute 73 129 330 252" anchor="right bottom" scrollbars="none" dragscrolltype="none"/>
- <Static id="caption2" text="서명" class="cell_1" position="absolute 0 128 70 251" style="padding:0 0 0 4;"/>
- <Grid id="grd_signlist" taborder="14" binddataset="ds_main_uproomsignlist" useinputpanel="false" position="absolute 335 56 810 275" oncelldblclick="grd_signlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="46"/>
- <Column size="33"/>
- <Column size="32"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="61"/>
- <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="55"/>
- <Column size="70"/>
- <Column size="55"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="환자번호"/>
- <Cell col="1"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="입원일자"/>
- <Cell col="4" text="병동코드"/>
- <Cell col="5" text="병동명"/>
- <Cell col="6" text="병실"/>
- <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="금액"/>
- <Cell col="14" text="OCR태그"/>
- <Cell col="15" text="instcd"/>
- <Cell col="16" text="cretno"/>
- <Cell col="17" text="orddeptcd"/>
- <Cell col="18" text="ordtype"/>
- <Cell col="19" text="seqno"/>
- <Cell col="20" text="elctsignkey1"/>
- <Cell col="21" text="elctsigncnts1"/>
- <Cell col="22" text="elctsignkey1"/>
- <Cell col="23" text="elctsigncnts2"/>
- <Cell col="24" text="최초등록정보"/>
- <Cell col="25" colspan="2" text="최초등록정보" taborder="undefined"/>
- <Cell col="27" colspan="2" text="최종수정정보" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" celltype="head" expr="expr:currow + 1"/>
- <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="3" style="align:center middle;" text="bind:indd" mask="yyyy-mm-dd"/>
- <Cell col="4" style="align:center middle;" text="bind:wardcd"/>
- <Cell col="5" style="align:center middle;" text="bind:wardnm"/>
- <Cell col="6" style="align:center middle;" text="bind:roomcd"/>
- <Cell col="7" style="align:center middle;" text="bind:bedcnt"/>
- <Cell col="8" style="align:center middle;" text="bind:signyn"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:ocrtype" enable="false"/>
- <Cell col="10" displaytype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="11" text="bind:roomgrdecd"/>
- <Cell col="12" text="bind:gradenm"/>
- <Cell col="13" displaytype="expr:utlf_isNull(extrapay) ? 'none' : 'normal'" style="align:right middle;" text="bind:extrapay" mask="#,###"/>
- <Cell col="14" text="bind:ocrtag"/>
- <Cell col="15" text="bind:instcd"/>
- <Cell col="16" text="bind:cretno"/>
- <Cell col="17" text="bind:orddeptcd"/>
- <Cell col="18" text="bind:ordtype"/>
- <Cell col="19" text="bind:seqno"/>
- <Cell col="20" text="bind:elctsignkey1"/>
- <Cell col="21" text="bind:elctsigncnts1"/>
- <Cell col="22" text="bind:elctsignkey2"/>
- <Cell col="23" text="bind:elctsigncnts2"/>
- <Cell col="24" text="bind:fstrgstrid"/>
- <Cell col="25" style="align:center middle;" text="bind:fstrgstrnm"/>
- <Cell col="26" displaytype="date" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="27" style="align:center middle;" text="bind:lastupdtrnm"/>
- <Cell col="28" displaytype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="17" text="서명" class="btn2" position="absolute 73 255 115 274"/>
- <Button id="button4" taborder="18" text="서명" class="btn2" position="absolute 236 255 278 274"/>
- <MaskEdit id="input2" taborder="19" mask="yyyy-mm-dd" position="absolute 72 52 167 71" style="align:left middle;"/>
- <Static id="caption3" text="시작일자" class="cell_1" position="absolute 170 50 233 73" style="padding:0 0 0 4;"/>
- <Static id="caption4" text="입원일자" class="cell_1" position="absolute 0 50 70 73" style="padding:0 0 0 4;"/>
- <Static id="caption6" text="병실" class="cell_1" position="absolute 170 76 233 99" style="padding:0 0 0 4;"/>
- <Static id="caption7" text="병동" class="cell_1" position="absolute 0 76 70 99" style="padding:0 0 0 4;"/>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 0 46 330 52"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 0 72 330 78"/>
- <Static id="caption9" text="신청인" class="cell_1" position="absolute 0 254 70 274"/>
- <Static id="caption11" text="관계" class="cell_1" position="absolute 170 254 233 274"/>
- <Static id="caption12" position="absolute 120 257 165 272" style="background:#ecf7fcff;border:1 solid #999999ff ;"/>
- <Static id="caption14" position="absolute 282 257 327 272" style="background:#ecf7fcff;border:1 solid #999999ff ;"/>
- <Edit id="input5" taborder="22" position="absolute 236 26 331 45"/>
- <MaskEdit id="input6" taborder="23" mask="yyyy-mm-dd" position="absolute 236 52 331 71" style="align:left middle;"/>
- <Edit id="input7" taborder="24" position="absolute 72 78 167 97"/>
- <CheckBox id="checkbox1" taborder="25" enable="false" visible="false" position="absolute 12 206 57 226" text="서면" onchanged="checkbox1_onchanged"/>
- <Edit id="input9" taborder="26" position="absolute 236 78 331 97"/>
- <Edit id="input8" taborder="27" position="absolute 236 104 331 123"/>
- <Static id="caption15" text="구분" class="cell_1" position="absolute 0 102 70 125" style="padding:0 0 0 4;"/>
- <Static id="caption17" text="OCRTAG" class="cell_1" position="absolute 170 102 233 125" style="padding:0 0 0 4;"/>
- <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 98 330 104"/>
- <Combo id="combo1" taborder="28" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 73 104 168 123" onitemchanged="combo1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">전자서명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">서면서명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">전자동의</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Div id="grp" taborder="29" position="absolute 335 20 810 52" class="div_SA2">
- <Layouts>
- <Layout>
- <Edit id="input1" taborder="0" position="absolute 85 6 168 25"/>
- <Button id="button2" taborder="1" text="조회" class="btn1" position="absolute 404 5 460 27" onclick="grp_button2_onclick"/>
- <Edit id="input3" taborder="2" position="absolute 77 6 172 25" onkeydown="grp_input3_onkeydown"/>
- <Calendar id="input4" taborder="3" position="absolute 268 6 368 25" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true" style="align:center middle;"/>
- <Static id="caption8" text="환자번호" class="search_name" position="absolute 14 10 94 22"/>
- <Static id="caption10" text="입원일자" class="search_name" position="absolute 199 10 279 22"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_PK018list" 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="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="elctsignkey" type="STRING" size="256"/>
- <Column id="elctsigncnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="indd"/>
- <Col id="elctsignkey"/>
- <Col id="elctsigncnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_uproomsignlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="seqno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="elctsignkey1" type="STRING" size="256" sumtext="서명키"/>
- <Column id="elctsigncnts1" type="STRING" size="256" sumtext="서명카운터"/>
- <Column id="elctsignkey2" type="STRING" size="256" sumtext="본인키"/>
- <Column id="elctsigncnts2" type="STRING" size="256" sumtext="본인카운터"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="gradenm" type="STRING" size="256" sumtext="등급"/>
- <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실"/>
- <Column id="extrapay" type="STRING" size="256" sumtext="실료차"/>
- <Column id="signyn" type="STRING" size="256" sumtext="서명여부"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자명"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="ocrtype" type="STRING" size="256" sumtext="서식구분"/>
- <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAG"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_signinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="seqno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="elctsignkey1" type="STRING" size="256" sumtext="서명키"/>
- <Column id="elctsigncnts1" type="STRING" size="256" sumtext="서명카운터"/>
- <Column id="elctsignkey2" type="STRING" size="256" sumtext="본인키"/>
- <Column id="elctsigncnts2" type="STRING" size="256" sumtext="본인카운터"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="elctappsignyn1" type="STRING" size="256"/>
- <Column id="elctappsignyn2" type="STRING" size="256"/>
- <Column id="papersignyn" type="STRING" size="256"/>
- <Column id="gradenm" type="STRING" size="256" sumtext="등급"/>
- <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실"/>
- <Column id="extrapay" type="STRING" size="256" sumtext="실료차"/>
- <Column id="signyn" type="STRING" size="256" sumtext="서명여부"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자명"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="ocrtype" type="STRING" size="256" sumtext="서식구분"/>
- <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAG"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
- <Column id="updateflag" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="pid"/>
- <Col id="indd"/>
- <Col id="cretno"/>
- <Col id="fromdd"/>
- <Col id="hngnm"/>
- <Col id="elctsignkey1">-</Col>
- <Col id="elctsigncnts1">-</Col>
- <Col id="elctsignkey2">-</Col>
- <Col id="elctsigncnts2">-</Col>
- <Col id="wardnm"/>
- <Col id="roomcd"/>
- <Col id="elctappsignyn1"/>
- <Col id="elctappsignyn2"/>
- <Col id="wardcd"/>
- <Col id="seqno"/>
- <Col id="roomgrdecd"/>
- <Col id="papersignyn"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstdt"/>
- <Col id="ocrtag"/>
- <Col id="ocrtype"/>
- <Col id="bedcnt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_prncd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_rsltflag_indeciprint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="주치의id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="주치의명"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
- <Column id="hometel" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="insukind" type="STRING" size="256" sumtext="환자유형"/>
- <Column id="insukindcd" type="STRING" size="256" sumtext="환자유형"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="침상수"/>
- <Column id="diffamt" type="STRING" size="256" sumtext="차액"/>
- <Column id="inrgstid" type="STRING" size="256" sumtext="입원등록자id"/>
- <Column id="inrgstnm" type="STRING" size="256" sumtext="입원등록자명"/>
- <Column id="diagnm" type="STRING" size="256" sumtext="병명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_rsltflag_patappinfo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주빈번호2"/>
- <Column id="choiflag" type="STRING" size="256" sumtext="신청구분"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
- <Column id="orddd" type="STRING" size="256" sumtext="입원/진료일"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="주치의"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="선택여부"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일"/>
- <Column id="rsrvrgstflag" type="STRING" size="256" sumtext="예약등록여부"/>
- <Column id="elctappdd" type="STRING" size="256" sumtext="전자신청일자"/>
- <Column id="elctappsignkey" type="STRING" size="256" sumtext="전자신청서명키"/>
- <Column id="elctappsigncnts" type="STRING" size="256" sumtext="전자신청서명내용"/>
- <Column id="elctapprelakey" type="STRING" size="256" sumtext="전자신청관계키"/>
- <Column id="elctapprelacnts" type="STRING" size="256" sumtext="전자신청관계내용"/>
- <Column id="lmcd0" type="STRING" size="256" sumtext="과코드0"/>
- <Column id="lmdrid10" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid20" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid30" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd1" type="STRING" size="256" sumtext="과코드1"/>
- <Column id="lmdrid11" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid21" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid31" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd2" type="STRING" size="256" sumtext="과코드2"/>
- <Column id="lmdrid12" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid22" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid32" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd3" type="STRING" size="256" sumtext="과코드3"/>
- <Column id="lmdrid13" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid23" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid33" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd4" type="STRING" size="256" sumtext="과코드4"/>
- <Column id="lmdrid14" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid24" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid34" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd5" type="STRING" size="256" sumtext="과코드5"/>
- <Column id="lmdrid15" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid25" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid35" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="lmcd6" type="STRING" size="256" sumtext="과코드6"/>
- <Column id="lmdrid16" type="STRING" size="256" sumtext="과의사1"/>
- <Column id="lmdrid26" type="STRING" size="256" sumtext="과의사2"/>
- <Column id="lmdrid36" type="STRING" size="256" sumtext="과의사3"/>
- <Column id="lmspecyn" type="STRING" size="256" sumtext="과의사선택여부"/>
- <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
- <Column id="elctsignkey1" type="STRING" size="256" sumtext="전자신청서명키"/>
- <Column id="elctsigncnts1" type="STRING" size="256" sumtext="전자신청서명내용"/>
- <Column id="elctsignkey2" type="STRING" size="256" sumtext="전자신청관계키"/>
- <Column id="elctsigncnts2" type="STRING" size="256" sumtext="전자신청관계내용"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실명"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
- <Column id="extrapay" type="STRING" size="256" sumtext="병실차액"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_autinsuinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
- <Column id="auttel" type="STRING" size="256" sumtext="자보담당자번호"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_signinfo" columnid="pid"/>
- <BindItem id="item1" compid="input5" propid="value" datasetid="ds_main_signinfo" columnid="hngnm"/>
- <BindItem id="item2" compid="input2" propid="value" datasetid="ds_main_signinfo" columnid="indd"/>
- <BindItem id="item3" compid="input6" propid="value" datasetid="ds_main_signinfo" columnid="fromdd"/>
- <BindItem id="item4" compid="input7" propid="value" datasetid="ds_main_signinfo" columnid="wardnm"/>
- <BindItem id="item5" compid="input9" propid="value" datasetid="ds_main_signinfo" columnid="roomcd"/>
- <BindItem id="item6" compid="combo1" propid="value" datasetid="ds_main_signinfo" columnid="ocrtype"/>
- <BindItem id="item7" compid="input8" propid="value" datasetid="ds_main_signinfo" columnid="ocrtag"/>
- <BindItem id="item8" compid="checkbox1" propid="value" datasetid="ds_main_signinfo" columnid="papersignyn"/>
- <BindItem id="item9" compid="grp.input3" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item10" compid="grp.input4" propid="value" datasetid="ds_send" columnid="indd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- include 'emr_prcpmngtxp::MMOCommon.xjs';
- include 'pam_pamcomnxp::PAM.xjs';
- include 'pam_pamcomnxp::PAM001.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : 초기화
- ****************************************************************************************/
- function fInit(){
- // 원무공통코드조회
- pamfGetCodeList([{ dsNm: 'ds_init_PK018list', cdGrpId: 'PK018' }]);
-
- // 인스턴스 초기화
- ds_send.clearData();
- ds_send.addRow();
-
- ds_main_uproomsignlist.clearData();
- ds_main_uproomsignlist.addRow();
-
- ds_main_signinfo.clearData();
- ds_main_signinfo.addRow();
-
- // 신청인 서명여부 표시
- fsign_chk();
-
- // 관계 서명여부 표시
- fsign_Rely_chk();
-
- // 버튼 제어
- btn_update.enable = false;
- btn_insert.enable = false;
-
- // 싸인패드 초기화
- import2.fsignpad_init();
-
- // 포커스
- grp.input1.setFocus();
-
- // 개인정보이용동의서 출력을 위한 서식코드 취득
- lf_reqHardCodeInfo(ds_init_prncd, '5604');
-
- // 부모창에서 넘겨진 파라미터 검증
- if(frmf_checkOpener()){
- var pid = utlf_transNullToEmpty(opener.frmf_getParameter('SPZHA20101_PARM_PID'));
- var indd = utlf_transNullToEmpty(opener.frmf_getParameter('SPZHA20101_PARM_INDD'));
- var autoflag = utlf_transNullToEmpty(opener.frmf_getParameter('SPZHA20101_PARM_AUTOFLAG'));
-
- ds_send.setColumn(0, 'pid', pid);
- ds_send.setColumn(0, 'indd', indd);
-
- // 차트번호가 존재하는 경우에만 조회실시
- if(pid != ''){
- // 초기조회
- fGetUpRoomSignList();
-
- // 자동실시인 경우에만 처리
- if(autoflag == 'Y'){
- // 검색결과가 1건 + 서명 N 인경우 자동으로 설정
- if(grd_signlist.rowcount == 1){
- // 전자동의서 기본출력 처리 by 조중래 20151104
- var extObj = new ExtCommon();
- if(ds_init_PK018list.getColumn(ds_init_PK018list.findRow('cdid', extObj.getIPAddress()), 'cdnm') == 'Y'
- && sysf_messageBox('상급병실신청서', 'Q017') == '6'){
- // 정보 설정
- fSetSignInfo();
-
- // 구분설정 S:전자동의서
- ds_main_signinfo.setColumn(0, 'ocrtype', 'S');
- setOCRType();
-
- // 자동저장
- fSave('I');
- }
- }
- }
- }
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 서명유무 체크
- ****************************************************************************************/
- function fsign_chk(){
- var appsigncnts = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'elctsignkey1'));
-
- if(appsigncnts == ''){
- caption12.style.backgroundColor = '#cce8ff';
- }
- else{
- caption12.style.backgroundColor = '#ff0000';
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 신청인 서명확인
- ****************************************************************************************/
- function fsign_confirm(){
- var flag = ds_main_signinfo.getColumn(0, 'elctappsignyn1');
-
- if(flag == 'Y'){
- // 전자서명 저장
- import2.fsignpad_save();
-
- ds_main_signinfo.setColumn(0, 'elctsignkey1', import2.ds_sign.getColumn(0, 'elctsignkey'));
- ds_main_signinfo.setColumn(0, 'elctsigncnts1', import2.ds_sign.getColumn(0, 'elctsigncnts'));
-
- // 전자서명 싸인패드에 표시
- import2.fsignpad_view(ds_main_signinfo.getColumn(0, 'elctsignkey1'), ds_main_signinfo.getColumn(0, 'elctsigncnts1'));
-
- // 서명유무 체크
- fsign_chk();
-
- return true;
- }
- else{
- sysf_messageBox('신청인 서명이 입력되지 않았습니다.', 'C000');
- return false;
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 신청인관계 서명
- ****************************************************************************************/
- function fsign_Rely_req(){
- // 서면확인용 버튼 기능 수행
- if(!fsign_confirm()){
- return;
- }
- // 신청인관계는 신청인 서명이 존재할 때만 서명 가능함
- if(ds_main_signinfo.getColumn(0, 'elctappsignyn1') != 'Y'){
- sysf_messageBox('신청인 서명이 입력되지 않았습니다.', 'C000');
- return;
- }
-
- import2.fsignpad_init();
- import2.fsignpad_request(0);
-
- ds_main_signinfo.setColumn(0, 'elctappsignyn2', 'Y');
- }
- /****************************************************************************************
- * Argument :
- * Description : 신청인 서명
- ****************************************************************************************/
- function fsign_req(){
- // 상급병실 신청정보가 있을 때만 처리
- if(utlf_isNull(ds_main_signinfo.getColumn(0, 'pid'))){
- sysf_messageBox('상급병실 신청정보가 선택되지 않았습니다.\r\n오른쪽 리스트에서 해당 정보를 선택한 후 진행하십시요.', 'C000');
- return;
- }
- import2.fsignpad_init();
- import2.fsignpad_request(0);
-
- ds_main_signinfo.setColumn(0, 'elctappsignyn1', 'Y');
- }
- /****************************************************************************************
- * Argument :
- * Description : 신청인관계 서명확인
- ****************************************************************************************/
- function fsign_Rely_confirm(){
- var flag = ds_main_signinfo.getColumn(0, 'elctappsignyn2');
-
- if(flag == 'Y'){
- // 전자서명 저장
- import2.fsignpad_save();
-
- ds_main_signinfo.setColumn(0, 'elctsignkey2', import2.ds_sign.getColumn(0, 'elctsignkey'));
- ds_main_signinfo.setColumn(0, 'elctsigncnts2', import2.ds_sign.getColumn(0, 'elctsigncnts'));
-
- // 전자서명 싸인패드에 표시
- import2.fsignpad_view(ds_main_signinfo.getColumn(0, 'elctsignkey2'), ds_main_signinfo.getColumn(0, 'elctsigncnts2'));
-
- // 서명유무 체크
- fsign_Rely_chk();
-
- return true;
- }
- else{
- sysf_messageBox('관계가 입력되지 않았습니다.', 'C000');
- return false;
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 서명유무 체크
- ****************************************************************************************/
- function fsign_Rely_chk(){
- var apprelacnts = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'elctsignkey2'));
-
- if(apprelacnts == '' || apprelacnts == '-'){
- caption14.style.backgroundColor = '#cce8ff';
- }
- else{
- caption14.style.backgroundColor = '#ff0000';
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 서면서명체크 제어
- ****************************************************************************************/
- function setOCRType(){
- var ocrtype = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'ocrtype'));
-
- // 전자서명 이외의 경우 버튼제어
- if(ocrtype != 'E'){
- button1.enable = false;
- button4.enable = false;
- ds_main_signinfo.setColumn(0, 'elctappsignyn1', '');
- ds_main_signinfo.setColumn(0, 'elctsignkey1', '');
- ds_main_signinfo.setColumn(0, 'elctsigncnts1', '');
-
- ds_main_signinfo.setColumn(0, 'elctappsignyn2', '');
- ds_main_signinfo.setColumn(0, 'elctsignkey2', '');
- ds_main_signinfo.setColumn(0, 'elctsigncnts2', '');
-
- fsign_chk();
- fsign_Rely_chk();
- }
- else{
- button1.enable = true;
- button4.enable = true;
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 상급병실신청서OCR서식 재출력
- ****************************************************************************************/
- function fPrintRmsn(){
- var pid = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'pid'));
-
- if(pid == ''){
- sysf_messageBox('환자정보가 선택되지 않았습니다.', 'E000');
- return;
- }
-
- // 구분에 맞춰 폼코드 처리(7:상급병실신청서)
- var formcd = ds_init_prncd.getColumn(ds_init_prncd.findRow('cdseqno', '7'), 'hardcd');
-
- var orddd = ds_main_signinfo.getColumn(0, 'indd');
- var cretno = ds_main_signinfo.getColumn(0, 'cretno');
- var ordtype = ds_main_signinfo.getColumn(0, 'ordtype');
-
- fPerPrintOCR(formcd, pid, orddd, cretno, ordtype, '');
- }
- /****************************************************************************************
- * Argument :
- * Description : 상급병실신청 서명정보설정
- ****************************************************************************************/
- function fSetSignInfo(){
- var row = grd_signlist.currentrow;
-
- // 상세정보 설정
- ds_main_signinfo.copyRow(0, ds_main_uproomsignlist, row);
-
- // 신규저장 / 수정 버튼제어
- if(ds_main_signinfo.getColumn(0, 'signyn') != 'N'){
- ds_main_signinfo.setColumn(0, 'updateflag', 'U');
- btn_update.enable = true;
- btn_insert.enable = false;
- }
- else{
- ds_main_signinfo.setColumn(0, 'updateflag', 'I');
- btn_update.enable = false;
- btn_insert.enable = true;
- }
-
- // 사인표시부 초기화
- import2.fsignpad_init();
-
- // 신청인 서명여부 표시
- fsign_chk();
-
- // 관계 서명여부 표시
- fsign_Rely_chk();
-
- // 구분 제어
- setOCRType();
- }
- /****************************************************************************************
- * Argument :
- * Description : 상급병실신청리스트 조회
- ****************************************************************************************/
- function fGetUpRoomSignList(){
- if(utlf_isNull(ds_send.getColumn(0, 'pid')) || utlf_isNull(ds_send.getColumn(0, 'indd'))){
- sysf_messageBox('환자번호 및 입원일자는 필수입니다.', 'E000');
- return;
- }
-
- // dsf_createDsRow('ds_req', [
- // { col: 'pid', type: 'string', size: 256, val: },
- // { col: 'indd', type: 'string', size: 256, val: }
- // ], false);
-
- ds_main_uproomsignlist.clearData();
- ds_main_uproomsignlist.addRow();
-
- var oParam = {};
- oParam.id = "TRPMI02801";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetUpRoomSignList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_uproomsignlist=resultlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI02801";
- tranf_submit(oParam);
-
- btn_update.enable = false;
- btn_insert.enable = false;
- }
- /****************************************************************************************
- * Argument :
- * Description : 신규저장
- ****************************************************************************************/
- function fSave(flag){
- var value = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'ocrtype'));
-
- if(value == ''){
- sysf_messageBox('서식구분은 필수입력입니다.', 'C000');
- return;
- }
-
- // 관계서명확인용 버튼기능 수행(서면서명/전자동의서 작성의 경우 체크제외)
- if(ds_main_signinfo.getColumn(0, 'ocrtype') == 'E' && !fsign_Rely_confirm()){
- return;
- }
-
- // 신청인 및 관계데이터가 모두 존재할 경우에만 저장처리(서면서명/전자동의서 작성의 경우 체크제외)
- if(ds_main_signinfo.getColumn(0, 'ocrtype') == 'E'){
- if(utlf_isNull(ds_main_signinfo.getColumn(0, 'elctsignkey1'))
- || utlf_isNull(ds_main_signinfo.getColumn(0, 'elctsignkey2'))){
- sysf_messageBox('신청인 또는 관계가 입력되지 않았습니다.', 'C000');
- return;
- }
- }
-
- // 전자동의서 체크 실시
- if(ds_main_signinfo.getColumn(0, 'ocrtype') == 'S'){
- // OCRTAG 등록
- // 1. 병동에서 OCR서식을 출력하여 내려온 경우에 수동입력
- // 2. 전자동의서를 통한 입력
- value = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'ocrtag'));
- if(value == ''){
- // 서식코드 취득
- ds_main_signinfo.setColumn(0, 'formcd', ds_init_prncd.getColumn(ds_init_prncd.findRow('cdseqno', '7'), 'hardcd'));
- ds_main_signinfo.setColumn(0, 'orddd', ds_main_signinfo.getColumn(0, 'indd'));
- ds_main_signinfo.setColumn(0, 'ordtype', 'I');
- ds_main_signinfo.setColumn(0, 'flag', 'U');
-
- // 전자동의서
- var ocrtag = utlf_transNullToEmpty(fPrintOcrConsent(ds_main_signinfo));
-
- if(ocrtag == ''){
- sysf_messageBox('전자동의서가 정상적으로 처리되지 않았습니다.', 'C000');
- return false;
- }
- else{
- ds_main_signinfo.setColumn(0, 'ocrtag', ocrtag);
- }
- }
-
- // 전자동의서 모듈 혹은 병동에서 내려온 서식등록의 유효성 체크
- if(String(ds_main_signinfo.getColumn(0, 'ocrtag')).length != 13){
- sysf_messageBox('전자동의서 OCRTAG가 없거나 비정상입니다.\r\n'
- + '전자동의서를 다시 저장하거나,병실에서 내려온 신청서의 OCRTAG를 정확히 입력해주십시요.', 'C000');
- return false;
- }
- }
-
- var oParam = {};
- oParam.id = "TXPMI02802";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqSetUpRoomSign";
- oParam.inds = "req=ds_main_signinfo";
- oParam.outds = "ds_main_uproomsignlist=resultlist";
- oParam.async = false;
- oParam.callback = "callback";
-
- // 신규저장
- if(flag == 'I'){
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXPMI02802") > -1){
- sysf_messageBox('정상적으로 처리되었습니다.', 'I000');
- }
-
- // 신규저장시 창닫기
- this.close();
- }
-
- // 수정
- if(flag == 'U'){
- if(arErrorCode.pop("TXPMI02802") > -1){
- sysf_messageBox('정상적으로 처리되었습니다.', 'I000');
- }
-
- tranf_submit(oParam);
- }
-
- btn_insert.enable = false;
- btn_update.enable = false;
- }
- /****************************************************************************************
- * Argument :
- * Description : 입퇴원결정서 재출력
- ****************************************************************************************/
- function fPrint(){
- var inpt_pid = utlf_transNullToEmpty(ds_main_signinfo.getColumn(0, 'pid'));
-
- // 상급병실 신청정보가 있을 때만 처리
- if(inpt_pid == ''){
- sysf_messageBox('상급병실 신청정보가 선택되지 않았습니다.'
- + '\r\n오른쪽 리스트에서 해당 정보를 선택한 후 진행하십시요.', 'C000');
- return;
- }
-
- dsf_createDsRow('ds_req', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'indd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'ordtype', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'cretno', type: 'string', size: 256, val: '' },
- { col: 'wardcd', type: 'string', size: 256, val: '' },
- { col: 'roomcd', type: 'string', size: 256, val: '' },
- { col: 'roomgrdecd', type: 'string', size: 256, val: '' },
- { col: 'fromdd', type: 'string', size: 256, val: '' }
- ], false);
-
- ds_req.copyRow(0, ds_main_signinfo, 0, 'instcd=instcd,pid=pid,indd=indd,cretno=cretno,orddeptcd=orddeptcd,wardcd=wardcd,roomcd=roomcd,roomgrdecd=roomgrdecd,fromdd=fromdd');
-
- ds_hidden_rsltflag_indeciprint.clearData();
- ds_hidden_rsltflag_indeciprint.addRow();
-
- ds_hidden_rsltflag_patappinfo1.clearData();
- ds_hidden_rsltflag_patappinfo1.addRow();
-
- var oParam = {};
- oParam.id = "TRPMI01202";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInDeciPrint";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_hidden_rsltflag_indeciprint=indeciprint ds_hidden_rsltflag_patappinfo1=patappinfo1";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI01202";
- tranf_submit(oParam);
-
- // 상급병실 신청내역 있을경우 기존 병실정보에 엎어서 출력
- dsf_updateColumnId(ds_hidden_rsltflag_patappinfo1, 'lmcd=lmcd0 lmdrid1=lmdrid10 lmdrid2=lmdrid20 lmdrid3=lmdrid30 nmcd=lmcd1 nmdrid1=lmdrid11 '
- + 'nmdrid2=lmdrid21 nmdrid3=lmdrid31 nmspecyn=lmspecyn apcd=lmcd2 apdrid1=lmdrid12 apdrid2=lmdrid22 '
- + 'apdrid3=lmdrid32 apspecyn=lmspecyn rdcd=lmcd3 rddrid1=lmdrid13 rddrid2=lmdrid23 rddrid3=lmdrid33 '
- + 'rdspecyn=lmspecyn rtcd=lmcd4 rtdrid1=lmdrid14 rtdrid2=lmdrid24 rtdrid3=lmdrid34 rtspecyn=lmspecyn '
- + 'ancd=lmcd5 andrid1=lmdrid15 andrid2=lmdrid25 andrid3=lmdrid35 anspecyn=lmspecyn npcd=lmcd6 '
- + 'npdrid1=lmdrid16 npdrid2=lmdrid26 npdrid3=lmdrid36 npspecyn=lmspecyn');
-
- // 상급병실 신청내역 있을경우 기존 병실정보에 엎어서 출력.
- ds_hidden_rsltflag_indeciprint.setColumn(0, 'wardnm', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'wardnm'));
- ds_hidden_rsltflag_indeciprint.setColumn(0, 'roomcd', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'roomcd'));
- ds_hidden_rsltflag_indeciprint.setColumn(0, 'bedcnt', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'bedcnt'));
- ds_hidden_rsltflag_indeciprint.setColumn(0, 'diffamt', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'extrapay'));
-
- ds_hidden_rsltflag_patappinfo1.setColumn(0, 'signimgsign', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'elctappsigncnts'));
- ds_hidden_rsltflag_patappinfo1.setColumn(0, 'signimgrela', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'elctapprelacnts'));
- // 전과전실 선택진료 사인 추가 2011.11.18 노회식
- ds_hidden_rsltflag_patappinfo1.setColumn(0, 'signimgsign1', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'elctsigncnts1'));
- ds_hidden_rsltflag_patappinfo1.setColumn(0, 'signimgrela1', ds_hidden_rsltflag_patappinfo1.getColumn(0, 'elctsigncnts2'));
-
- sysf_setGlobalVariable('SPPAO00100_강제출력여부', 'Y', 'p');
-
- //ds_hidden_rsltflag_indeciprint.setColumn(0, 'diagnm', ds_temp.getColumn(0, 'daignm'));
-
- // 공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입퇴원결정서
- fGetPrintName();
-
- var printname = sysf_getGlobalVariable('SPPAO00100_P0045_6_nm', 'p');
- var printtray = sysf_getGlobalVariable('SPPAO00100_P0045_6_tray', 'p');
-
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
-
- rptf_setNodeListToDOM(objDOM, "root/hidden/rsltflag/indeciprint" , ds_hidden_rsltflag_indeciprint);
- rptf_setNodeListToDOM(objDOM, "root/hidden/rsltflag/patappinfo1" , ds_hidden_rsltflag_patappinfo1);
-
- // 입퇴원결정서 프린터
- if(printname != 'false'){
- rptf_exeReportPreview30(['RPPMI01201'], [{ xml_data_XML1: objDOM.documentElement.source }],
- "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0");
- }
-
- // 자보환자안내문 출력
- if(ds_hidden_rsltflag_indeciprint.getColumn(0, '') == '31' || opener.ds_main_ptin.getColumn(0, 'ptin_insukind') == '31'){
- // 공통코드 P0045에서 프린터 명칭과 트레이 호출 - 자보환자안내문
-
- ds_hidden_autinsuinfo.clearData();
- ds_hidden_autinsuinfo.addRow();
-
- oParam = {};
- oParam.id = "TRPMI01203";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetAutInsuInfo";
- oParam.inds = "";
- oParam.outds = "ds_hidden_autinsuinfo=autinsuinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI01203";
- tranf_submit(oParam);
-
- printname = sysf_getGlobalVariable('SPPAO00100_P0045_100_nm', 'p');
- printtray = sysf_getGlobalVariable('SPPAO00100_P0045_100_tray', 'p');
-
- // 디폴트 프린터
- if(printname != 'false'){
- objDOM = rptf_createDOM();
-
- rptf_setNodeListToDOM(objDOM, "root/hidden/autinsuinfo" , ds_hidden_rsltflag_indeciprint);
- rptf_setNodeListToDOM(objDOM, "root/main/ptbs" , opener.ds_main_ptbs);
-
- rptf_exeReportPreview30(['RPPMI01203'], [{ xml_data_XML1: objDOM.documentElement.source }],
- "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0");
- }
- }
-
- sysf_setGlobalVariable('SPPAO00100_강제출력여부', '', 'p');
- }
- /**********************************************************************************
- * 함수명 : dsf_updateColumnId
- * 설 명 : 컬럼 이름을 변경한다, 컬럼명이 없다면 변경하지 못한다
- * argument : oDataset - 대상 Dataset
- * colNms - 변경할 컬럼 이름
- * 사용예시 : 1) dsf_updateColumnId(dataset, "prev_nm1=after_nm1 prev_nm2=after_nm2");
- * return Type :
- * 작성자 :
- **********************************************************************************/
- function dsf_updateColumnId(target:Dataset, colNms){
- if(utlf_isNull(target) || colNms.length < 1){
- return;
- }
- // 변환 하려고 하는 컬럼명들을 배열로 분리한다
- var arr = colNms.split(' ');
- var updatecontrol = target.updatecontrol;
- if(updatecontrol){
- target.updatecontrol = false;
- }
- target.enableevent = false;
- for(var i in arr){
- var names = arr[i].split('=');
- if(names.length != 2){
- break;
- }
- if(!utlf_isNull(target.getColumnInfo(names[0]))){
- target.updateColID(names[0], names[1]);
- }
- }
- if(updatecontrol){
- target.updatecontrol = true;
- }
- target.enableevent = true;
- }
- //=======================================================================================
- // callback
- //---------------------------------------------------------------------------------------
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPPMI02800_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- fInit();
- }
- /****************************************************************************************
- * Argument :
- * Description : 구분 콤보 아이템 변경 이벤트
- ****************************************************************************************/
- function combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
- setOCRType();
- }
- /****************************************************************************************
- * Argument :
- * Description : 체크박스 아이템 클릭 이벤트
- ****************************************************************************************/
- function checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo){
- setOCRType();
- }
- /****************************************************************************************
- * Argument :
- * Description : 환자번호 키보드 입력 이벤트
- ****************************************************************************************/
- function grp_input3_onkeydown(obj:Edit, e:KeyEventInfo){
- if(e.keycode == 13){
- fGetUpRoomSignList();
- }
- }
- /****************************************************************************************
- * Argument :
- * Description : 조회 버튼 클릭 이벤트
- ****************************************************************************************/
- function grp_button2_onclick(obj:Button, e:ClickEventInfo){
- fGetUpRoomSignList();
- }
- /****************************************************************************************
- * Argument :
- * Description : 조회 버튼 클릭 이벤트
- ****************************************************************************************/
- function grd_signlist_oncelldblclick(obj:Grid, e:GridClickEventInfo){
- fSetSignInfo();
- }
- /****************************************************************************************
- * Argument :
- * Description : 입퇴원결정서(상급병실신청서)재출력 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo){
- fPrint();
- }
- /****************************************************************************************
- * Argument :
- * Description : 상급병실신청서 OCR 출력 버튼 클릭 이벤트
- ****************************************************************************************/
- function button5_onclick(obj:Button, e:ClickEventInfo){
- fPrintRmsn();
- }
- /****************************************************************************************
- * Argument :
- * Description : 수정 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_update_onclick(obj:Button, e:ClickEventInfo){
- fSave('U');
- }
- /****************************************************************************************
- * Argument :
- * Description : 신규저장 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_insert_onclick(obj:Button, e:ClickEventInfo){
- fSave('I');
- }
- /****************************************************************************************
- * Argument :
- * Description : 초기화 버튼 클릭 이벤트
- ****************************************************************************************/
- function button7_onclick(obj:Button, e:ClickEventInfo){
- fInit();
- }
- /****************************************************************************************
- * Argument :
- * Description : 닫기 버튼 클릭 이벤트
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo){
- import2.fsignpad_close();
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|