12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMI03200" position="absolute 0 0 1180 845" titletext="입원약정서관리" oninit="SPPMI03200_oninit" onload="SPPMI03200_onload">
- <Layouts>
- <Layout>
- <Shape position="absolute 790 650 1180 810" id="roundrect2" type="roundrectangle"/>
- <Static text="입원약정서 상세정보" position="absolute 1 658 172 675" id="caption1" class="tit_2"/>
- <Static text="입원약정서 관리" position="absolute 0 0 160 25" id="caption2" class="tit_1"/>
- <Edit position="absolute 86 679 173 698" align="align:center middle;" id="ipt_pid" enable="false" taborder="16" onkeyup="ipt_pid_onkeyup"/>
- <Static text="환자번호" position="absolute 0 679 85 699" id="caption3" class="cell_1"/>
- <Button position="absolute 179 681 195 697" id="btn_ptbspid" class="icon_search" enable="false" visible="false" text="" onclick="btn_ptbspid_onclick"/>
- <Shape position="absolute 0 674 781 680" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Static text="성명" position="absolute 201 679 285 699" id="caption4" class="cell_1"/>
- <Static text="생년월일" position="absolute 576 679 652 699" id="caption5" class="cell_1"/>
- <Static text="주소" position="absolute 201 700 285 720" id="caption6" class="cell_1"/>
- <Static text="나이/성별" position="absolute 388 679 472 699" id="caption7" class="cell_1"/>
- <Static text="주민번호" position="absolute 0 700 85 720" id="caption8" class="cell_1"/>
- <Shape position="absolute 0 64 1180 70" linetype="horizontal" id="line3" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Edit position="absolute 286 679 386 698" align="align:center middle;" id="opt_hngnm" enable="false"/>
- <Edit position="absolute 473 679 520 698" align="align:center middle;" id="opt_age" enable="false"/>
- <Combo position="absolute 519 679 573 698" align="align:center middle;" id="cmb_sex" enable="false" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">남</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">여</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <MaskEdit position="absolute 653 679 780 698" align="align:center middle;" id="opt_brthdd" enable="false" mask="yyyy-mm-dd"/>
- <Edit position="absolute 286 700 780 719" align="align:left middle;" id="opt_address" enable="false"/>
- <MaskEdit position="absolute 86 700 198 719" align="align:center middle;" id="opt_rrgstno" enable="false" mask="999999-9999999"/>
- <Calendar position="absolute 286 721 386 740" id="ipt_fromdd" enable="true" taborder="6" dateformat="yyyy-MM-dd"/>
- <Calendar position="absolute 473 721 573 740" id="ipt_todd" enable="true" taborder="7" dateformat="yyyy-MM-dd" value="null"/>
- <Combo position="absolute 86 721 143 740" align="align:center middle;" id="cmb_type" enable="true" taborder="17" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">전자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">OCR</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <TextArea position="absolute 86 742 780 810" align="align:left middle;" id="ta_rmk" taborder="8"/>
- <Static text="서식/구분 (*)" position="absolute 0 721 85 741" id="caption11" class="cell_1"/>
- <Static text="시작일자 (*)" position="absolute 201 721 285 741" id="caption12" class="cell_1"/>
- <Static text="종료일자 (*)" position="absolute 388 721 472 741" id="caption13" class="cell_1"/>
- <Static text="비고" position="absolute 0 742 85 810" id="caption14" class="cell_1"/>
- <Grid position="absolute 0 68 1180 645" id="grd_agmt" visible="true" binddataset="ds_main_agmtlist" oncelldblclick="grd_agmt_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0" band="left"/>
- <Column size="25" band="left"/>
- <Column size="70"/>
- <Column size="66"/>
- <Column size="32"/>
- <Column size="32"/>
- <Column size="75"/>
- <Column size="39"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="31"/>
- <Column size="30"/>
- <Column size="84"/>
- <Column size="0"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="200"/>
- <Column size="80"/>
- <Column size="130"/>
- <Column size="80"/>
- <Column size="130"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="isntcd"/>
- <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="ocrtagno"/>
- <Cell col="10" text="연동"/>
- <Cell col="11" text="스캔"/>
- <Cell col="12" text="시작일자"/>
- <Cell col="13" text="seqno"/>
- <Cell col="14" text="종료일자"/>
- <Cell col="15" text="해당입원일자"/>
- <Cell col="16" colspan="2" text="입원구분" taborder="undefined"/>
- <Cell col="18" text="진료과"/>
- <Cell col="19" text="orddeptcd"/>
- <Cell col="20" text="전문의"/>
- <Cell col="21" text="medispclcd"/>
- <Cell col="22" text="주민번호"/>
- <Cell col="23" text="주소"/>
- <Cell col="24" text="비고"/>
- <Cell col="25" text="최초등록자"/>
- <Cell col="26" text="최초등록일시"/>
- <Cell col="27" text="최종수정자"/>
- <Cell col="28" text="최종수정일시"/>
- <Cell col="29" text="cretno"/>
- <Cell col="30" text="roomnm"/>
- <Cell col="31" text="insukind"/>
- <Cell col="32" text="hometel"/>
- <Cell col="33" text="mpphontel"/>
- <Cell col="34" text="hospnm"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" celltype="head" expr="expr:currow + 1"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" text="bind:age"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:sex" combodataset="ds_combo_sex" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="6" displaytype="date" text="bind:brthdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:ocrtype" combodataset="ds_combo_ocrtype" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="8" displaytype="combo" edittype="combo" text="bind:agmttype" combodataset="ds_combo_agmttype" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="9" style="align:left;padding:0 0 0 5;" text="bind:ocrtagno"/>
- <Cell col="10" text="bind:emrif"/>
- <Cell col="11" text="bind:scanyn"/>
- <Cell col="12" displaytype="date" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="13" text="bind:seqno"/>
- <Cell col="14" displaytype="date" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="15" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="16" text="bind:ordtype"/>
- <Cell col="17" text="bind:orgordtype"/>
- <Cell col="18" style="align:left;padding:0 0 0 5;" text="bind:orddeptnm"/>
- <Cell col="19" text="bind:orddeptcd"/>
- <Cell col="20" style="align:left;padding:0 0 0 5;" text="bind:medispclnm"/>
- <Cell col="21" text="bind:medispclid"/>
- <Cell col="22" text="bind:rrgstno" mask="999999-9999999"/>
- <Cell col="23" text="bind:address"/>
- <Cell col="24" style="align:left;padding:0 0 0 5;" text="bind:rmk"/>
- <Cell col="25" text="bind:fstrgstrnm"/>
- <Cell col="26" displaytype="expr:utlf_isNull(fstrgstdt) ? 'none' : 'normal'" text="bind:fstrgstdt" mask="@@@@-@@-@@ @@:@@:@@"/>
- <Cell col="27" text="bind:lastupdtrnm"/>
- <Cell col="28" displaytype="expr:utlf_isNull(lastupdtdt) ? 'none' : 'normal'" text="bind:lastupdtdt" mask="@@@@-@@-@@ @@:@@:@@"/>
- <Cell col="29" text="bind:cretno"/>
- <Cell col="30" text="bind:roomnm"/>
- <Cell col="31" text="bind:insukind"/>
- <Cell col="32" text="bind:hometel"/>
- <Cell col="33" text="bind:mpphontel"/>
- <Cell col="34" text="bind:hospnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1110 816 1178 838" id="btn_init" class="btn4" taborder="15" text="초기화" onclick="btn_init_onclick"/>
- <Button position="absolute 738 655 780 674" id="btn_delete" class="btn5" taborder="11" text="삭제" onclick="btn_delete_onclick"/>
- <Edit position="absolute 653 721 780 740" align="align:center middle;" id="input4" enable="false"/>
- <Static text="OCRNO" position="absolute 576 721 652 741" id="caption10" class="cell_1"/>
- <Button position="absolute 1 817 129 839" id="button1" class="btn3" taborder="12" text="약정서 신규출력" onclick="button1_onclick"/>
- <Button position="absolute 692 655 734 674" id="btn_insert" class="btn5" taborder="10" text="저장" onclick="btn_insert_onclick"/>
- <Button position="absolute 133 817 237 839" id="button3" class="btn3" taborder="14" text="약정서재출력" onclick="button3_onclick"/>
- <Button position="absolute 521 655 612 674" align="align:center middle;" id="button4" class="btn5" taborder="9" text="의무기록연동" onclick="button4_onclick"/>
- <Edit position="absolute 395 655 517 674" id="ipt_ocrtagnoif" taborder="2" style="align:center middle;"/>
- <Static text="* 의무기록연동용 :" position="absolute 289 655 393 675" align="align:right middle;" id="caption18"/>
- <Static text="가. 외래에서 출력된 OCR약정서의 경우, 반납 이전에 반드시 의무기록연동을 실시하시기 바랍니다. (원무출력 시 자동연동) 나. 약정서의 삭제는 의무기록 연동 이전에만 가능하며, 의무기록 연동 이후는 의무기록실과의 업무협조를 통하여 해당 의무기록(약정서)을 삭제하시기 바랍니다. 다. 약정서의 재출력은 의무기록 연동 이전에만 가능하며, 의무기록 연동 이후는 OCR반납화면에서 재출력하시기 바랍니다." position="absolute 801 676 1179 809" id="caption21"/>
- <Static text="[ 참 고 사 항 ]" position="absolute 937 660 1033 678" align="align:center middle;" id="caption22" style="font:Dotum,10,bold;"/>
- <Button position="absolute 241 817 345 839" id="button5" class="btn3" taborder="14" text="OCR미리보기" onclick="button5_onclick"/>
- <Combo position="absolute 142 721 198 740" align="align:center middle;" id="combo1" enable="true" taborder="17" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">기간</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Div id="grp_srch" taborder="18" position="absolute 0 25 1180 60" class="div_SA">
- <Layouts>
- <Layout width="1180" height="35">
- <Static id="caption9" text="차트번호" class="search_name" position="absolute 22 9 94 26" anchor="default"/>
- <Edit id="ipt_pid2" taborder="1" position="absolute 95 8 160 27" anchor="default" onkeyup="grp_srch_ipt_pid2_onkeyup"/>
- <Static id="caption15" text="OCRTAGNO" class="search_name" position="absolute 182 9 275 26" anchor="default"/>
- <Edit id="input1" taborder="2" position="absolute 280 8 402 27" anchor="default" onkeyup="grp_srch_input1_onkeyup"/>
- <Static id="caption16" text="적용기간" class="search_name" position="absolute 421 9 493 26" anchor="default"/>
- <Calendar id="input2" taborder="3" position="absolute 499 8 589 27" anchor="default" dateformat="yyyy-MM-dd" autoselect="true" autoskip="true"/>
- <Calendar id="input3" taborder="4" position="absolute 605 8 695 27" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
- <Static id="caption17" text="~" position="absolute 592 8 602 28" anchor="default"/>
- <Static id="caption19" text="구분" class="search_name" position="absolute 721 9 768 26" anchor="default"/>
- <Radio id="radio1" taborder="5" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 767 8 902 28" anchor="default" style="textpadding:0 3 0 3;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">기간</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption20" text="입원일자" class="search_name" position="absolute 926 9 998 26" anchor="default"/>
- <Calendar id="input5" taborder="6" position="absolute 1001 8 1091 27" anchor="default" dateformat="yyyy-MM-dd" value="null" autoskip="true" autoselect="true"/>
- <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1115 7 1171 29" anchor="default" onclick="grp_srch_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="ocrtagno" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="agmttype" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="ocrtagno"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="agmttype">0</Col>
- <Col id="indd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_agmtdesc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="rrgstno" type="STRING" size="256"/>
- <Column id="address" type="STRING" size="256"/>
- <Column id="agmttype" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="ocrtagno" type="STRING" size="256"/>
- <Column id="orgfromdd" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="ocrtype" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="age"/>
- <Col id="sex"/>
- <Col id="brthdd"/>
- <Col id="rrgstno"/>
- <Col id="address"/>
- <Col id="agmttype">1</Col>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="rmk"/>
- <Col id="ocrtagno"/>
- <Col id="orgfromdd"/>
- <Col id="indd"/>
- <Col id="ocrtype">S</Col>
- <Col id="agmttype">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_agmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_printinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq" 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="address" type="STRING" size="256"/>
- <Column id="hometelno" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="hospnm" type="STRING" size="256"/>
- <Column id="ordcentnm" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="roomnm" type="STRING" size="256"/>
- <Column id="roomcnt" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="curdate" type="STRING" size="256"/>
- <Column id="curtm" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="address"/>
- <Col id="hometelno"/>
- <Col id="mpphontel"/>
- <Col id="hospnm"/>
- <Col id="ordcentnm"/>
- <Col id="orddeptnm"/>
- <Col id="roomnm"/>
- <Col id="roomcnt"/>
- <Col id="insukind"/>
- <Col id="curdate"/>
- <Col id="curtm"/>
- <Col id="usernm"/>
- <Col id="instcd"/>
- <Col id="orddd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ininfo" 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="agmttype" type="STRING" size="256"/>
- <Column id="autoyn" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="ordtype" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="bedcnt" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="officetelno" type="STRING" size="256"/>
- <Column id="aprv1" type="STRING" size="256"/>
- <Column id="aprv2" type="STRING" size="256"/>
- <Column id="aprv3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="indd"/>
- <Col id="agmttype"/>
- <Col id="autoyn"/>
- <Col id="orddeptcd"/>
- <Col id="orddrid"/>
- <Col id="cretno"/>
- <Col id="ordtype"/>
- <Col id="orddeptnm"/>
- <Col id="roomcd"/>
- <Col id="bedcnt"/>
- <Col id="insukind"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="officetelno"/>
- <Col id="aprv1"/>
- <Col id="aprv2"/>
- <Col id="aprv3"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_agmtcount" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_inptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_PK048" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_PK066" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ocrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_combo_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">남</Col>
- <Col id="value">M</Col>
- </Row>
- <Row>
- <Col id="label">여</Col>
- <Col id="value">F</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo_ocrtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">OCR</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">전자</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo_agmttype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">일반</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">기간</Col>
- <Col id="value">2</Col>
- </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_send_data9" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_srch.ipt_pid2" propid="value" datasetid="ds_send_cond" columnid="pid"/>
- <BindItem id="item1" compid="grp_srch.input1" propid="value" datasetid="ds_send_cond" columnid="ocrtagno"/>
- <BindItem id="item2" compid="grp_srch.input2" propid="value" datasetid="ds_send_cond" columnid="fromdd"/>
- <BindItem id="item3" compid="grp_srch.input3" propid="value" datasetid="ds_send_cond" columnid="todd"/>
- <BindItem id="item4" compid="grp_srch.radio1" propid="value" datasetid="ds_send_cond" columnid="agmttype"/>
- <BindItem id="item5" compid="grp_srch.input5" propid="value" datasetid="ds_send_cond" columnid="indd"/>
- <BindItem id="item6" compid="ipt_ocrtagnoif" propid="value" datasetid="ds_send_cond" columnid="ocrtagno"/>
- <BindItem id="item7" compid="ipt_pid" propid="value" datasetid="ds_send_agmtdesc" columnid="pid"/>
- <BindItem id="item8" compid="opt_hngnm" propid="value" datasetid="ds_send_agmtdesc" columnid="hngnm"/>
- <BindItem id="item9" compid="opt_age" propid="value" datasetid="ds_send_agmtdesc" columnid="age"/>
- <BindItem id="item10" compid="cmb_sex" propid="value" datasetid="ds_send_agmtdesc" columnid="sex"/>
- <BindItem id="item11" compid="opt_brthdd" propid="value" datasetid="ds_send_agmtdesc" columnid="brthdd"/>
- <BindItem id="item12" compid="opt_rrgstno" propid="value" datasetid="ds_send_agmtdesc" columnid="rrgstno"/>
- <BindItem id="item13" compid="opt_address" propid="value" datasetid="ds_send_agmtdesc" columnid="address"/>
- <BindItem id="item14" compid="cmb_type" propid="value" datasetid="ds_send_agmtdesc" columnid="ocrtype"/>
- <BindItem id="item15" compid="combo1" propid="value" datasetid="ds_send_agmtdesc" columnid="agmttype"/>
- <BindItem id="item16" compid="ipt_fromdd" propid="value" datasetid="ds_send_agmtdesc" columnid="fromdd"/>
- <BindItem id="item17" compid="ipt_todd" propid="value" datasetid="ds_send_agmtdesc" columnid="todd"/>
- <BindItem id="item18" compid="input4" propid="value" datasetid="ds_send_agmtdesc" columnid="ocrtagno"/>
- <BindItem id="item19" compid="ta_rmk" propid="value" datasetid="ds_send_agmtdesc" columnid="rmk"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-09-08
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-09-08 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "pam_ipatmngtxp::SPPMI03200.xjs"
- include "pam_pamcomnxp::PAM001.xjs"
- include "emr_prcpmngtxp::SMMMO00100.xjs"
- include "emr_prcpmngtxp::MMO001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPPMI03200
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPPMI03200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPPMI03200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPPMI03200_onload(obj:Form, e:LoadEventInfo)
- {
- var oOpener = frmf_getoOpener();
-
- ds_main_ininfo.setColumn(0,"pid", oOpener.frmf_getParameter("SPPMI03200_PARM_PID"));
- ds_main_ininfo.setColumn(0,"indd", oOpener.frmf_getParameter("SPPMI03200_PARM_ORDDD"));
- ds_main_ininfo.setColumn(0,"agmttype", oOpener.frmf_getParameter("SPPMI03200_PARM_AGMTTYPE"));
- ds_main_ininfo.setColumn(0,"orddeptcd", oOpener.frmf_getParameter("SPPMI03200_PARM_ORDDEPTCD"));
- ds_main_ininfo.setColumn(0,"orddrid", oOpener.frmf_getParameter("SPPMI03200_PARM_ORDDRID"));
- ds_main_ininfo.setColumn(0,"cretno", oOpener.frmf_getParameter("SPPMI03200_PARM_CRETNO"));
- ds_main_ininfo.setColumn(0,"ordtype", oOpener.frmf_getParameter("SPPMI03200_PARM_ORDTYPE"));
-
- //if(this.getOwnerFrame().form.name != "SPMMO00100_입원의뢰서" && this.getOwnerFrame().form.name != "SPPMI02200") { //_입원의뢰서???????? name == ID ??????
- // 입원 / 응급등록시 호출된 경우
- //}
- // model.refreshpart("/root/main/ininfo");
- // OCR연동을 위한 서식코드 취득
- // reqHardCodeInfo("/root/send/reqdata", "/root/init/prncd", "5604");
- lf_reqHardCodeInfo(ds_init_prncd,5604);
- // 2009.04.02 - 출력물 자동 출력여부를 위해서 원무공통코드조회
- pamfGetCodeList([{dsNm: "ds_init_PK048", cdGrpId: "PK048"},{dsNm: "ds_init_PK066", cdGrpId: "PK066"}]);
- // 차트번호가 전달된 경에는 자동검색 실시
- if (!utlf_isNull(ds_main_ininfo.getColumn(0,"pid"))) {
- // 차트번호 설정
- ds_send_cond.setColumn(0,"pid",ds_main_ininfo.getColumn(0,"pid"));
- // 검색 실시
- fSearch();
- }
-
- if(ds_send_agmtdesc.rowcount == 0){
- idx = ds_send_agmtdesc.addRow();
- }
- ds_send_agmtdesc.setColumn(0,"ocrtype" ,"S"); // O:OCR, S:전자서명
- ds_send_agmtdesc.setColumn(0,"agmttype" ,"1");
- ds_send_agmtdesc.setColumn(0,"fromdd" ,utlf_getCurrentDate());
- var todd = utlf_getNewDate();
- todd = todd.getAddDate(364, "D");
- todd = utlf_getDateTime(todd, "D");
- ds_send_agmtdesc.setColumn(0,"todd" ,todd);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 상단 조회버튼 클릭하여 조회실행
- ****************************************************************************************/
- function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- // 검색 필수조건 확인
- if (utlf_isNull(ds_send_cond.getColumn(0,"pid")) && utlf_isNull(ds_send_cond.getColumn(0,"ocrtagno"))
- && (utlf_isNull(ds_send_cond.getColumn(0,"fromdd")) || utlf_isNull(ds_send_cond.getColumn(0,"todd"))))
- {
- sysf_messageBox("차트번호 또는 OCRTAGNO가 없는 경우에는 적용기간을 입력하시기 바랍니다.", "E000");
- return;
- }
-
- // 적용기간 제한 설정
- if (utlf_getDateInterval(ds_send_cond.getColumn(0,"fromdd"), ds_send_cond.getColumn(0,"todd")) > 10) {
- sysf_messageBox("시스템부하방지를 위하여 검색기간은 최대 10일 이내로 설정 해주십시요. ", "C000");
- return;
- }
-
- fSearch();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.ipt_pid2
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 차트번호 입력후 엔터키로 조회
- ****************************************************************************************/
- function grp_srch_ipt_pid2_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if (e.keycode == 13) {
- //setInputNodeCurText();
- frmf_setInputNodeCurPid(obj);
- fSearch();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input1
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 차트번호 입력후 엔터키로 조회
- ****************************************************************************************/
- function grp_srch_input1_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- // 바코드 리더기
- fSetBcode();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_agmt
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 입원약정서 항목 더블클릭으로 선택하여 아래 상세란에 세팅
- ****************************************************************************************/
- function grd_agmt_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_send_agmtdesc.rowcount == 0 ) ds_send_agmtdesc.addRow();
- dsf_makeValue(ds_send_agmtdesc, "emrif", "string", '');
- dsf_makeValue(ds_send_agmtdesc, "scanyn", "string", '');
- ds_send_agmtdesc.copyRow(0,ds_main_agmtlist,e.row);
- dsf_makeValue(ds_send_agmtdesc,"orgfromdd","string",ds_send_agmtdesc.getColumn(0,"fromdd"));
- // 의무기록 연동 이후에는 시작일자 및 종료일자 수정 불가능하도록 제어
- if (ds_send_agmtdesc.getColumn(0,"emrif") == "Y") {
- ipt_fromdd.enable = false;
- ipt_todd.enable = false;
- } else {
- ipt_fromdd.enable = true;
- ipt_todd.enable = true;
- }
- // 서식/구분은 수정 불가
- cmb_type.enable = false;
- combo1.enable = false;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 의무기록연동 저장
- ****************************************************************************************/
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fOCRSave();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_insert
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약정서 상세정보 저장
- ****************************************************************************************/
- function btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_send_agmtdesc.getColumn(0,"pid"))) {
- sysf_messageBox("대상 약정서가 선택되지 않았습니다. ", "C000");
- return;
- }
- // 수정은 OCR 서식만 가능(전자서명 불가)
- if (ds_send_agmtdesc.getColumn(0,"ocrtype") != "O") {
- sysf_messageBox("전사서명서식은 수정 불가능합니다.");
- return;
- }
- if (utlf_isNull(ds_send_agmtdesc.getColumn(0,"fromdd"))) {
- sysf_messageBox("시작일자는 필수입니다. ", "C000");
- return;
- }
- if (sysf_messageBox("등록하시겠습니까?", "Q000") == "6") {
- dsf_makeValue(ds_send_agmtdesc,"updateflag" ,"string","U");
- dsf_makeValue(ds_send_agmtdesc,"formcd" ,"string",fGetFromCd(ds_send_agmtdesc.getColumn(0,"agmttype")));
-
- var oParam = {};
- oParam.id = "TXPMI03202";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqSetInAgmt";
- oParam.inds = "req=ds_send_agmtdesc";
- oParam.outds = "ds_main_agmtlist=resultlist ds_main_ocrinfo=ocrinfo";
- oParam.async = false;
- oParam.callback = "cf_TXPMI03202";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPMI03202") > -1) {
- // 성공시 리스트 재조회
- var oParam = {};
- oParam.id = "TXPMI03203";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqSetInAgmtPrint";
- oParam.inds = "req=ds_send_printcond";
- oParam.outds = "ds_main_printinfo=resultlist";
- oParam.async = false;
- //oParam.callback = "cf_TXPMI03203";
- tranf_submit(oParam);
- }
- }
- }
- function cf_TXPMI03202(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_delete
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약정서 상세정보 삭제
- ****************************************************************************************/
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- // OCR서식의 경우에만 기존로직 설정
- if (ds_send_agmtdesc.getColumn(0,"ocrtype") == "O" && ds_send_agmtdesc.getColumn(0,"emrif") == "Y") {
- sysf_messageBox("이미 연동이 완료된 데이터입니다. ", "C000");
- return;
- }
-
- if (sysf_messageBox("삭제하시겠습니까?", "Q000") == "6") {
- dsf_makeValue(ds_send_agmtdesc,"updateflag","string","D");
-
- var oParam = {};
- oParam.id = "TXPMI03202";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqSetInAgmt";
- oParam.inds = "req=ds_send_agmtdesc";
- oParam.outds = "ds_main_agmtlist=resultlist ds_main_ocrinfo=ocrinfo";
- oParam.async = false;
- oParam.callback = "cf_TXPMI03202";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPMI03202") > -1) {
- // 성공시 리스트 재조회
- fSearch();
- }
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_pid
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 상세정보 환자번호 입력후 엔터하여 환자정보 검색
- ****************************************************************************************/
- function ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if (e.keycode == 13) {
- //setInputNodeCurText();
- frmf_setInputNodeCurPid(ipt_pid);
-
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("btn_ptbspid", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_ptbspid
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자정보 검색
- ****************************************************************************************/
- function btn_ptbspid_onclick(obj:Button, e:ClickEventInfo)
- {
- var ptbs_pid = ds_send_agmtdesc.getColumn(0,"pid");
-
- if (utlf_isNull(ptbs_pid.getTrim())) {
- ds_send_data9.clearData();
- } else {
- dsf_makeValue(ds_send_data9,"pid" ,"string",ptbs_pid);
- dsf_makeValue(ds_send_data9,"srchcond" ,"string","1");
- }
-
- dsf_makeValue(ds_send_data9,"autoflag" ,"string","Y");
- dsf_makeValue(ds_send_data9,"checkfnexam" ,"string","1");
- var objArg = new Object();
- objArg.arg_ds_send = ds_send_data9;
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
- ds_send_data9.clearData();
-
- // 팝업 정상종료 체크
- //if (model.getValue("/root/main/popupendflag") == 'ok') {
- if(frmf_getParameter("SPPMC02500_popupendflag") == "ok") {
- // 환자기본정보 입력
- ds_send_agmtdesc.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
- ds_send_agmtdesc.setColumn(0,"hngnm", ds_patinfolist.getColumn(0,"hngnm"));
- ds_send_agmtdesc.setColumn(0,"age", ds_patinfolist.getColumn(0,"age"));
- ds_send_agmtdesc.setColumn(0,"sex", ds_patinfolist.getColumn(0,"sex"));
- ds_send_agmtdesc.setColumn(0,"brthdd", ds_patinfolist.getColumn(0,"brthdd"));
- ds_send_agmtdesc.setColumn(0,"rrgstno", ds_patinfolist.getColumn(0,"rrgstno1") + ds_patinfolist.getColumn(0,"rrgstno2"));
- ds_send_agmtdesc.setColumn(0,"address", ds_patinfolist.getColumn(0,"addr") + ds_patinfolist.getColumn(0,"detladdr"));
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약정서 신규출력
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_send_agmtdesc.getColumn(0,"ocrtype")) || utlf_isNull(ds_send_agmtdesc.getColumn(0,"agmttype"))) {
- sysf_messageBox("서식 및 구분이 선택되지 않았습니다. ", "C000");
- return;
- }
- if (utlf_isNull(ds_main_ininfo.getColumn(0,"pid"))) {
- sysf_messageBox("환자정보가 없습니다", "C000");
- return;
- }
- if (ds_send_cond.getColumn(0,"pid") != ds_main_ininfo.getColumn(0,"pid")) {
- sysf_messageBox("입원등록화면의 환자와 다른 환자가 현재 조회되었습니다.\r\n입원약정서 화면을 닫고 새로 진행해주시기 바랍니다.", "C000");
- return;
- }
- if (ds_send_agmtdesc.getColumn(0,"agmttype") == "2"
- && (utlf_isNull(ds_send_agmtdesc.getColumn(0,"fromdd")) || utlf_isNull(ds_send_agmtdesc.getColumn(0,"todd"))))
- {
- sysf_messageBox("기간약정서의 경우 시작일자 / 종료일자를 입력해야합니다.", "C000");
- return;
- }
- // OCR 서식
- if (ds_send_agmtdesc.getColumn(0,"ocrtype") == "O") {
- // 일반약정서
- if (ds_send_agmtdesc.getColumn(0,"agmttype") == "1") {
- // 약정서 출력
- fPrintAgmt( ds_main_ininfo.getColumn(0,"pid"),
- ds_main_ininfo.getColumn(0,"indd"),
- ds_main_ininfo.getColumn(0,"orddeptcd"),
- ds_main_ininfo.getColumn(0,"orddrid"),
- '1',
- 'N',
- '',
- '',
- '',
- '',
- ds_main_ininfo.getColumn(0,"cretno"));
- // 기간약정서
- } else {
- // 기존의 출력데이터 존재유무확인
- var retMsg = fReqGetInAgmtCount(ds_main_ininfo.getColumn(0,"pid"),
- ds_main_ininfo.getColumn(0,"indd"),
- "2");
- if (retMsg == true) {
- sysf_messageBox("이미 기간약정서가 존재합니다. 재출력은 OCR반납화면을 이용하시기 바랍니다.", "C000");
- return;
- } else {
- // 신규출력
- fPrintAgmt( ds_main_ininfo.getColumn(0,"pid"),
- ds_main_ininfo.getColumn(0,"indd"),
- ds_main_ininfo.getColumn(0,"orddeptcd"),
- ds_main_ininfo.getColumn(0,"orddrid"),
- '2',
- 'N',
- '',
- '',
- '',
- ds_send_agmtdesc.getColumn(0,"todd"),
- ds_main_ininfo.getColumn(0,"cretno")
- );
- }
- }
- // 전자동의서
- } else {
- // 전자동의서의 경우 입원이력 체크(반드시 있어야함)
- if (utlf_isNull(ds_main_ininfo.getColumn(0,"cretno"))) {
- sysf_messageBox("전자동의서의 경우 입원등록 이후에 진행하시기 바랍니다. ", "C000");
- return;
- }
-
- // 입원정보 조회
- var oParam = {};
- oParam.id = "TRPMI03206";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInptInfo";
- oParam.inds = "req=ds_main_ininfo";
- oParam.outds = "ds_main_inptinfo=inptinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRPMI03206";
- tranf_submit(oParam);
-
- // 입원정보 설정
- ds_main_ininfo.setColumn(0,"orddeptnm", ds_main_inptinfo.getColumn(0,"orddeptnm"));
- ds_main_ininfo.setColumn(0,"roomcd", ds_main_inptinfo.getColumn(0,"roomcd"));
- ds_main_ininfo.setColumn(0,"bedcnt", ds_main_inptinfo.getColumn(0,"bedcnt"));
- ds_main_ininfo.setColumn(0,"insukind", ds_main_inptinfo.getColumn(0,"insukind"));
-
- // 전자동의서 파라미터 설정
- frmf_setParameter("SSMRC03160_param_patid", ds_main_ininfo.getColumn(0,"pid"));
- frmf_setParameter("SSMRC03160_param_indate", ds_main_ininfo.getColumn(0,"indd"));
- frmf_setParameter("SSMRC03160_param_cretno", ds_main_ininfo.getColumn(0,"cretno"));
- frmf_setParameter("SSMRC03160_param_instcd", sysf_getUserInfo("dutplceinstcd"));
- frmf_setParameter("SSMRC03160_param_cuser", sysf_getUserInfo("userid"));
- frmf_setParameter("SSMRC03160_param_class", ds_main_ininfo.getColumn(0,"ordtype"));
- frmf_setParameter("SSMRC03160_param_cpensize", "1"); // 환자측 펜굵기 강제지정
- frmf_setParameter("SSMRC03160_param_sendmsg", "1"); // 환자측 필압설정 강제지정
-
- // 구분에 따라 서식코드 / 기간 설정
- if (ds_send_agmtdesc.getColumn(0,"agmttype") == "1") {
- frmf_setParameter("SSMRC03160_param_docucd","1300013648"); // 1300013648 일반약정서
- ds_main_ininfo.setColumn(0,"fromdd", ds_send_agmtdesc.getColumn(0,"fromdd"));
- ds_main_ininfo.setColumn(0,"todd", ds_send_agmtdesc.getColumn(0,"fromdd"));
- ds_main_ininfo.setColumn(0,"agmttype", "1");
- frmf_setParameter("SSMRC03160_param_flag", "A"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
- } else {
- frmf_setParameter("SSMRC03160_param_docucd","1300013649"); // 1300013649 기간약정서
- ds_main_ininfo.setColumn(0,"fromdd", ds_send_agmtdesc.getColumn(0,"fromdd"));
- ds_main_ininfo.setColumn(0,"todd", ds_send_agmtdesc.getColumn(0,"todd"));
- ds_main_ininfo.setColumn(0,"agmttype", "2");
- frmf_setParameter("SSMRC03160_param_flag", "T"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
- }
-
- // 담당자 연락처 설정
- if (sysf_getUserInfo("dutplceinstcd") == "031") {
- ds_main_ininfo.setColumn(0,"officetelno", "053-200-5061");
- } else {
- ds_main_ininfo.setColumn(0,"officetelno", "053-200-2073");
- }
-
- // 결재정보 설정
- ds_main_ininfo.setColumn(0,"aprv1", sysf_getUserInfo("usernm"));
- ds_main_ininfo.setColumn(0,"aprv2", ds_init_PK066.lookup("detl","원무 마감 팀장","cdnm"));
- ds_main_ininfo.setColumn(0,"aprv3", ds_init_PK048.lookup("detl","원무 마감 부서장","cdnm"));
-
- // 전자동의서 팝업 호출
- frmf_modal("SSMRC03160", "SSMRC03160", null, null, null, null, null, null, null, null, null, null, "M");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약정서 재출력
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fRePrintOcr();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button5
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : OCR미리보기
- ****************************************************************************************/
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_send_agmtdesc.getColumn(0,"ocrtagno")) || ds_send_agmtdesc.getColumn(0,"scanyn") != "Y") {
- sysf_messageBox("약정서가 선택되지 않았거나 스캔되지 않았습니다.\r\n데이터를 확인하시기 바랍니다.", "C000");
- return;
- }
- ds_send_iemr.clear();
- dsf_makeValue(ds_send_iemr,"pid" ,"string",ds_send_agmtdesc.getColumn(0,"pid"));
- dsf_makeValue(ds_send_iemr,"ocrcode","string",ds_send_agmtdesc.getColumn(0,"ocrtagno"));
- // if((window.children.item("imgemrviewer") == null)){
- // window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
- // }else{
- // messageBox("약정서 뷰어 호출에 실패하였습니다.", "C000");
- // }
- if(!utlf_isNull(ds_send_iemr.getColumn(0, "pid")) && !utlf_isNull(ds_send_iemr.getColumn(0, "ocrcode")))
- {
- var objArg = new Object();
- objArg.arg_ds_hidden_temp = ds_send_iemr;
- frmf_open("SSMRC03130", "SSMRC03130", objArg, null, null, null, null, null, null, null, null, null, "M");
- } else {
- sysf_messageBox("약정서 뷰어 호출에 실패하였습니다.", "C000");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit();
- }
- ]]></Script>
- </Form>
- </FDL>
|