12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI03900" position="absolute 0 0 1198 796" titletext="입원/퇴원/재원조회" onload="SMPMI03900_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="입원/퇴원/재원조회" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="group2" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="35">
- <Edit id="ipt_text" taborder="1" class="input_search" visible="false" position="absolute 543 11 658 30" onkeydown="group2_ipt_text_onkeydown"/>
- <Static id="caption1" text="구분 :" class="search_name" position="absolute 7 12 67 29"/>
- <Button id="button1" taborder="2" text="조회" class="btn1" position="absolute 1121 10 1177 32" onclick="group2_button1_onclick" anchor="top right"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1108 10 1114 32" anchor="top right"/>
- <Static id="caption17" text="입원일자 :" class="search_name" position="absolute 796 12 882 29"/>
- <Static id="caption20" text="~" class="search_no_b" position="absolute 982 12 992 29"/>
- <Static id="caption3" text="조회항목 :" class="search_name" position="absolute 333 12 419 29"/>
- <Combo id="cmb_srchcond" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 414 11 529 30" onitemchanged="group2_cmb_srchcond_onitemchanged">
- <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">14</Col>
- <Col id="datacolumn">환자번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">환자성명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">진료과</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">보험유형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">유형보조</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">할인계정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">8</Col>
- <Col id="datacolumn">입원경로</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9</Col>
- <Col id="datacolumn">보호자(피보험자)</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">성별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">12</Col>
- <Col id="datacolumn">선택진료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">13</Col>
- <Col id="datacolumn">VIP</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_infromdd" taborder="4" class="input_search" position="absolute 872 11 972 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_intodd" taborder="5" class="input_search" position="absolute 1002 11 1102 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Radio id="rdo_indschacptstat" taborder="6" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 55 13 249 28" style="textpadding:0 3 0 3;" onitemchanged="group2_rdo_indschacptstat_onitemchanged">
- <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">3</Col>
- <Col id="datacolumn">재원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">퇴원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">가퇴원</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cmb_sex" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" visible="false" position="absolute 543 11 658 30">
- <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>
- <Combo id="cmb_orddeptcd" taborder="8" innerdataset="@ds_hidden_init_orddeptcd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Combo id="cmb_wardcd" taborder="9" innerdataset="@ds_hidden_init_wardcd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Combo id="cmb_specordyn" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" visible="false" position="absolute 543 11 658 30">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">선택진료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">비선택진료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_insukind" taborder="11" innerdataset="@ds_hidden_init_insukind" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Combo id="cmb_vipyn" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" visible="false" position="absolute 543 11 658 30">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">VIP</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">일반</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_suppkind" taborder="13" innerdataset="@ds_hidden_init_suppkind" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Combo id="cmb_disccd" taborder="14" innerdataset="@ds_hidden_init_disccd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Combo id="cmb_inpath" taborder="15" innerdataset="ds_init_cmb_inpath" codecolumn="cdid" datacolumn="cdnm" class="combo_search" visible="false" position="absolute 543 11 658 30"/>
- <Radio id="radio1" taborder="16" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 247 13 314 28" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">퇴원예고</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="checkbox1" taborder="17" position="absolute 665 11 705 30" text="VIP" falsevalue="N" truevalue="Y"/>
- <CheckBox id="chk_tdayinexptyn" taborder="18" visible="false" position="absolute 788 11 893 30" text="당일입원제외" falsevalue="N" truevalue="Y"/>
- <Calendar id="ipt_indd" taborder="19" class="input_search" visible="false" position="absolute 1002 11 1102 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <CheckBox id="chk_srchdateyn" taborder="20" position="absolute 708 11 793 30" text="특정인조회" falsevalue="N" truevalue="Y" onclick="group2_chk_srchdateyn_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="입원/퇴원/재원내역" class="tit_2" position="absolute 0 76 140 92"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 92 1194 98" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Button id="button3" taborder="2" text="엑셀저장" class="btn7" position="absolute 1117 73 1194 92" onclick="button3_onclick" anchor="top right"/>
- <Grid id="grd_inddschspec" class="datagrid2" taborder="3" binddataset="ds_main_inptlist_inddschspec" useinputpanel="false" position="absolute 0 97 1194 766" cellsizebandtype="allband" cellsizingtype="both" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="25"/>
- <Column size="77"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="110"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="66"/>
- <Column size="84"/>
- <Column size="86"/>
- <Column size="50"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="85"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="58"/>
- <Column size="63"/>
- <Column size="82"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="55"/>
- <Column size="242"/>
- <Column size="81"/>
- <Column size="63"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="85"/>
- <Column size="105"/>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="139"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="300"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="격"/>
- <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="선택 여부"/>
- <Cell col="15" text="선택진료 서명"/>
- <Cell col="16" text="입원경로"/>
- <Cell col="17" text="입원일자"/>
- <Cell col="18" text="응급실내원일"/>
- <Cell col="19" text="입원시간"/>
- <Cell col="20" text="퇴원일자"/>
- <Cell col="21" text="퇴원시간"/>
- <Cell col="22" text="퇴원예고일"/>
- <Cell col="23" text="재원 일수"/>
- <Cell col="24" text="현진료과 재원일수"/>
- <Cell col="25" text="예상 재원기간"/>
- <Cell col="26" text="퇴원 예정일"/>
- <Cell col="27" text="약정 구분"/>
- <Cell col="28" text="약정 잔여일수"/>
- <Cell col="29" text="사망 여부"/>
- <Cell col="30" text="사망일자"/>
- <Cell col="31" text="진료의뢰 서유무"/>
- <Cell col="32" text="주소"/>
- <Cell col="33" text="외국인"/>
- <Cell col="34" text="주/부"/>
- <Cell col="35" text="보험유형"/>
- <Cell col="36" text="보험회사명"/>
- <Cell col="37" text="보조유형"/>
- <Cell col="38" text="보조유형사유"/>
- <Cell col="39" text="병실등급"/>
- <Cell col="40" text="상급 서명"/>
- <Cell col="41" text="병실형태"/>
- <Cell col="42" text="할인"/>
- <Cell col="43" text="전화(자택)"/>
- <Cell col="44" text="전화(휴대폰)"/>
- <Cell col="45" text="진료과약어"/>
- <Cell col="46" text="입원경로1"/>
- <Cell col="47" text="종교"/>
- <Cell col="48" text="담당의"/>
- <Cell col="49" text="진료과약어"/>
- <Cell col="50" text="진단명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:isolateinfo"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm" enable="false"/>
- <Cell col="4" style="align:center middle;" text="bind:hngnm2" enable="false"/>
- <Cell col="5" displaytype="expr:utlf_isNull(rrgstno) ? 'none' : 'normal'" style="align:center middle;" text="bind:rrgstno" mask="##/##/##" maskchar=" " enable="false"/>
- <Cell col="6" style="align:center middle;" text="bind:sex" enable="false"/>
- <Cell col="7" style="align:center middle;" text="bind:age" enable="false"/>
- <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:orddeptnm" enable="false"/>
- <Cell col="9" displaytype="normal" edittype="none" style="align:center middle;" text="bind:medispclnm" enable="false"/>
- <Cell col="10" displaytype="combo" text="bind:wardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="11" style="align:center middle;" text="bind:roomcd" enable="false"/>
- <Cell col="12" style="align:center top;padding:5 2 3 2;" text="bind:bednm" wordwrap="char" enable="false"/>
- <Cell col="13" style="align:center middle;" text="bind:inrmchk"/>
- <Cell col="14" displaytype="normal" edittype="none" style="align:center middle;" text="bind:specordyn"/>
- <Cell col="15" style="align:center middle;" text="bind:sasmyn"/>
- <Cell col="16" displaytype="combo" text="bind:inpath" combodataset="ds_init_P0002list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="17" displaytype="date" style="align:center middle;" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="18" displaytype="expr:erindd == '-' ? 'normal' : 'date'" style="align:center middle;" text="bind:erindd" mask="expr:erindd == '-' ? '' : 'yyyy-MM-dd'" calendardisplaynulltype="none" enable="false"/>
- <Cell col="19" displaytype="expr:utlf_isNull(intm) ? 'none' : 'normal'" style="align:center middle;" text="bind:intm" mask="##:##" maskchar=" " enable="false"/>
- <Cell col="20" displaytype="date" style="align:center middle;" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="21" displaytype="expr:utlf_isNull(dschtm) ? 'none' : 'normal'" style="align:center middle;" text="bind:dschtm" mask="expr:dschtm == '-' ? '' : '##:##'" enable="false"/>
- <Cell col="22" displaytype="normal" style="align:center top;padding:5 2 3 2;" text="bind:dschdclrdt" wordwrap="word" enable="false"/>
- <Cell col="23" style="align:center middle;" text="bind:inhospdays"/>
- <Cell col="24" style="align:center middle;" text="bind:inhospdeptdays"/>
- <Cell col="25" style="align:center middle;" text="bind:fcstinterm"/>
- <Cell col="26" displaytype="date" style="align:center middle;" text="bind:dschfcstdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="27" style="align:center middle;" text="bind:agmttype"/>
- <Cell col="28" style="align:center middle;" text="bind:agmtdd"/>
- <Cell col="29" style="align:center middle;" text="bind:dethyn"/>
- <Cell col="30" displaytype="expr:dethdt == '-' ? 'normal' : 'date'" style="align:center middle;" text="bind:dethdt" mask="expr:dethdt == '-' ? '' : 'yyyy-MM-dd'" calendardisplaynulltype="none"/>
- <Cell col="31" style="align:center middle;" text="bind:cnstyn"/>
- <Cell col="32" style="align:left top;padding:5 2 3 2;" text="bind:detladdr" wordwrap="char" enable="false"/>
- <Cell col="33" text="bind:forgeryn"/>
- <Cell col="34" displaytype="combo" style="align:center middle;" text="bind:mskind" combodataset="ds_init_P0006list" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="35" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="36" text="bind:insucdnm" enable="false"/>
- <Cell col="37" displaytype="combo" style="align:center middle;" text="bind:suppkind" combodataset="ds_hidden_init_suppkind" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="38" displaytype="combo" style="align:center middle;" text="bind:suppkindresn" combodataset="ds_init_P0032list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="39" displaytype="combo" style="align:left top;padding:5 2 3 2;" text="bind:roomgrdecd" wordwrap="char" combodataset="ds_hidden_init_roomgrdecd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="40" text="bind:roomsignyn"/>
- <Cell col="41" displaytype="combo" text="bind:roomtypecd" combodataset="ds_init_P0026list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="42" displaytype="normal" edittype="none" style="align:left middle;" text="bind:disccd" enable="false"/>
- <Cell col="43" style="align:left middle;" text="bind:hometel" enable="false"/>
- <Cell col="44" style="align:left middle;" text="bind:mpphontel" enable="false"/>
- <Cell col="45"/>
- <Cell col="46" text="bind:inpath1"/>
- <Cell col="47" displaytype="normal" edittype="none" text="bind:religncd" enable="false"/>
- <Cell col="48" style="align:left middle;" text="bind:orddrnm"/>
- <Cell col="49" text="bind:deptengabbr"/>
- <Cell col="50" displaytype="normal" edittype="none" style="align:left middle;" text="bind:diagnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button4" taborder="4" text="출력" class="btn6" position="absolute 1064 73 1116 92" onclick="button4_onclick" anchor="top right"/>
- <Button id="button5" taborder="5" text="미리보기" class="btn2" position="absolute 999 73 1063 92" onclick="button5_onclick" anchor="top right"/>
- <Div id="grp_report" taborder="6" visible="false" position="absolute 865 71 930 86"/>
- <Button id="button2" taborder="7" text="초기화" class="btn4" position="absolute 1126 769 1194 791" onclick="button2_onclick" anchor="right bottom"/>
- <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 765 1194 771" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0160list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0002list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0070list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0025list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0026list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0006list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0032list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="indschacptstat" type="STRING" size="256"/>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="eryn" type="STRING" size="256"/>
- <Column id="vipyn" type="STRING" size="256"/>
- <Column id="tdayinexptyn" type="STRING" size="256"/>
- <Column id="srchdateyn" type="STRING" size="256"/>
- <Column id="srchdate" type="STRING" size="256"/>
- <Column id="gubunexpt" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="indschacptstat"/>
- <Col id="srchcond"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="data1"/>
- <Col id="sess_posinstcd"/>
- <Col id="ioflag"/>
- <Col id="eryn"/>
- <Col id="vipyn"/>
- <Col id="tdayinexptyn"/>
- <Col id="srchdateyn"/>
- <Col id="srchdate"/>
- <Col id="gubunexpt"/>
- <Col id="hngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_roomgrdecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="autoflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="autoflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_inptlist_inddschspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="privacyyn" type="STRING" size="256" sumtext="사생활보호여부"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
- <Column id="hngnm2" type="STRING" size="256" sumtext="표시명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="forgeryn" type="STRING" size="256" sumtext="외국인"/>
- <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
- <Column id="inpath" type="STRING" size="256" sumtext="입원경로"/>
- <Column id="inpath1" type="STRING" size="256" sumtext="입원경로1"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="erindd" type="STRING" size="256" sumtext="응급입원일자"/>
- <Column id="intm" type="STRING" size="256" sumtext="입원시간"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="dschtm" type="STRING" size="256" sumtext="퇴원시간"/>
- <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예고일"/>
- <Column id="inhospdays" type="STRING" size="256" sumtext="재원일수"/>
- <Column id="inhospdeptdays" type="STRING" size="256" sumtext="현진료과재원일수"/>
- <Column id="fcstinterm" type="STRING" size="256" sumtext="예상재원기간"/>
- <Column id="dschfcstdd" type="STRING" size="256" sumtext="퇴원예정일"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="주소"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="medispclid" type="STRING" size="256" sumtext="전문의"/>
- <Column id="medispclnm" type="STRING" size="256" sumtext="전문의명"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="선택진료"/>
- <Column id="sasmyn" type="STRING" size="256" sumtext="선택신청서명"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="suppkindresn" type="STRING" size="256" sumtext="보조유형사유"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급"/>
- <Column id="roomsignyn" type="STRING" size="256" sumtext="상급병실전자서명여부"/>
- <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태"/>
- <Column id="bednm" type="STRING" size="256" sumtext="병상명"/>
- <Column id="disccd" type="STRING" size="256" sumtext="할인코드"/>
- <Column id="hometel" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰번호"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="cnstyn" type="STRING" size="256" sumtext="진료의뢰서"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- <Column id="deptengabbr" type="STRING" size="256" sumtext="진료과약어"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="전문의명"/>
- <Column id="diagnm" type="STRING" size="256" sumtext="진단명"/>
- <Column id="inrmchk" type="STRING" size="256" sumtext="입실여부"/>
- <Column id="dschtype" type="STRING" size="256" sumtext="퇴원구분"/>
- <Column id="isolateinfo" type="STRING" size="256" sumtext="격리병실정보"/>
- <Column id="agmttype" type="STRING" size="256" sumtext="입원약정서 구분"/>
- <Column id="agmtdd" type="STRING" size="256" sumtext="기간약정서 잔여일수"/>
- <Column id="aprvfromto" type="STRING" size="256" sumtext="승인기간"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_text" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item1" compid="group2.cmb_srchcond" propid="value" datasetid="ds_send" columnid="srchcond"/>
- <BindItem id="item2" compid="group2.ipt_infromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item3" compid="group2.ipt_intodd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item4" compid="group2.rdo_indschacptstat" propid="value" datasetid="ds_send" columnid="indschacptstat"/>
- <BindItem id="item5" compid="group2.cmb_sex" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item6" compid="group2.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item7" compid="group2.cmb_wardcd" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item8" compid="group2.cmb_specordyn" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item9" compid="group2.cmb_insukind" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item10" compid="group2.cmb_vipyn" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item11" compid="group2.cmb_suppkind" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item12" compid="group2.cmb_disccd" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item13" compid="group2.cmb_inpath" propid="value" datasetid="ds_send" columnid="data1"/>
- <BindItem id="item14" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="indschacptstat"/>
- <BindItem id="item15" compid="group2.checkbox1" propid="value" datasetid="ds_send" columnid="vipyn"/>
- <BindItem id="item16" compid="group2.chk_tdayinexptyn" propid="value" datasetid="ds_send" columnid="tdayinexptyn"/>
- <BindItem id="item17" compid="group2.ipt_indd" propid="value" datasetid="ds_send" columnid="srchdate"/>
- <BindItem id="item18" compid="group2.chk_srchdateyn" propid="value" datasetid="ds_send" columnid="srchdateyn"/>
- </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';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [fInitialize description]
- * @return {[type]} [description]
- */
- function fInitialize() {
- ds_main_inptlist_inddschspec.clearData();
- ds_send.clearData();
- ds_send.addRow();
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "indschacptstat", "1");
- ds_send.setColumn(0, "srchcond", "2");
- fSelectRefItem("2")
- }
- /**
- * [fSelectRefItem description]
- * @param {[type]} refitem [description]
- * @return {[type]} [description]
- */
- function fSelectRefItem(refitem) {
- // 1. 전체 2. 환자성명 3. 진료과 4. 병동 5. 보험유형 6.유형보조
- // 7. 할인계정 8. 입원경로 9. 보호자 10.주소별 11.성별 12. 선택진료 13. VIP
- ds_send.setColumn(0, "data1", "");
- if (refitem == '1') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '2' || refitem == '9' || refitem == '10' || refitem == '14') {
- group2.ipt_text.visible = true;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- group2.ipt_text.setFocus();
- }
- else if (refitem == '3') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = true;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '4') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = true;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '5') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = true;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '6') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = true;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '7') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = true;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '8') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = true;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '11') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = true;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '12') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = true;
- group2.cmb_vipyn.visible = false;
- }
- else if (refitem == '13') {
- group2.ipt_text.visible = false;
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = true;
- }
- }
- /**
- * [fPrint description]
- * @param {[type]} pCond [description]
- * @return {[type]} [description]
- */
- function fPrint(pCond) {
- var sPrintYN = "false";
- var sAutoCloseYN = "false";
- var sViewYN = "";
- if (pCond == "PREVIEW") {
- sPrintYN = "false";
- sAutoCloseYN = "false";
- sViewYN = "";
- }
- if (pCond == "PRINT") {
- sPrintYN = "true";
- sAutoCloseYN = "false";
- sViewYN = "grp_report";
- }
- if (ds_main_inptlist_inddschspec.rowcount > 0) {
- var sInDschKind = ds_send.getColumn(0, "indschacptstat");
- var sPrintFromdd = String(ds_send.getColumn(0, "fromdd"));
- var sPrinttodd = String(ds_send.getColumn(0, "todd"));
- var sPrintKind = "입원일자 :";
- if (sInDschKind == "1") {
- sPrintKind = "입원일자 :";
- }
- else if (sInDschKind == "3") {
- sPrintKind = "재원일자 :";
- sPrintFromdd = utlf_getCurrentDate();
- sPrinttodd = utlf_getCurrentDate();
- }
- else if (sInDschKind == "2") {
- sPrintKind = "퇴원일자 :";
- }
- else if (sInDschKind == "4") {
- sPrintKind = "가퇴원일자 :";
- }
- else if (sInDschKind == "5") {
- sPrintKind = "퇴원예고일자 :";
- }
- else {
- sPrintKind = "출력일자 :";
- }
- sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 2);
- sPrinttodd = sPrinttodd.substr(0, 4) + "-" + sPrinttodd.substr(4, 2) + "-" + sPrinttodd.substr(6, 2);
- dsf_createDs('ds_hidden_printtype');
- dsf_makeValue(ds_hidden_printtype, "printkind", 'string', sPrintKind);
- dsf_makeValue(ds_hidden_printtype, "printfromdd", 'string', sPrintFromdd);
- dsf_makeValue(ds_hidden_printtype, "printtodd", 'string', sPrinttodd);
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/inptlist/inddschspec" , ds_main_inptlist_inddschspec);
- rptf_setNodeListToDOM(objDOM, "root/hidden/printtype" , ds_hidden_printtype);
-
- var option = "open=1;save=1;printdialog=0;print=1;zoom=0;directprint=" + (sPrintYN == 'true' ? '1' : '0');
- rptf_exeReportPreview30(["RPPMI00701"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
- // exeReportPreview("RPPMI00701", "XMLSTR", "", "", sPrintYN, "", "", "", "", sAutoCloseYN, "", sViewYN);
- }
- else {
- sysf_messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SMPMI03900_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_setGridSort(grd_inddschspec);
- //-----------------------------------------------------------------------------------------------------------------------------------------------------------
- // 2009.06.10 조진희 변경개발요청 수정추가 박재형
- // 기존에 SMPMI00700_입원재원퇴원조회를 사용하고 있었는데 다른곳에서 임으로 다 사용하는 바람에 따로 화면을 원무 전용으로 해서 만들어달라고 요청들어옴.
- // 하여 SMPMI00700_입원재원퇴원조회를 복사하여 SMPMI03900_원무입원재원퇴원조회를 만들어서 적용할꺼고. 나머지 map, app, mgr, rex쪽은 모두 똑같이 사용한다.
- //-----------------------------------------------------------------------------------------------------------------------------------------------------------
- appf_getCodeList([
- { dsNm: 'ds_init_P0149list', cdGrpId: 'P0149' },
- { dsNm: 'ds_init_P0160list', cdGrpId: 'P0160' },
- { dsNm: 'ds_init_P0002list', cdGrpId: 'P0002' },
- { dsNm: 'ds_init_P0008list', cdGrpId: 'P0008' },
- { dsNm: 'ds_init_P0010list', cdGrpId: 'P0010' },
- { dsNm: 'ds_init_P0070list', cdGrpId: 'P0070' },
- { dsNm: 'ds_init_P0025list', cdGrpId: 'P0025' },
- { dsNm: 'ds_init_P0026list', cdGrpId: 'P0026' },
- { dsNm: 'ds_init_P0006list', cdGrpId: 'P0006' },
- { dsNm: 'ds_init_P0032list', cdGrpId: 'P0032' },
- { dsNm: 'ds_init_P0016list', cdGrpId: 'P0016' }
- ]);
- ds_send.setColumn(0, "ioflag", "I");
- dsf_createDsRow('ds_TRPMI00106', [
- { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'dridsorttype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00106.copyRow(0, ds_send, 0);
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_TRPMI00106";
- oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
- + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_wardcd=wardcd "
- + "ds_hidden_init_roomcd=roomcd ds_hidden_init_roomgrdecd=roomgrdecd ds_hidden_init_flag=flag";
- oParam.async = false;
- tranf_submit(oParam);
- fInitialize();
- }
- /**
- * rdo_indschacptstat 라디오 아이템 변경 후 이벤트
- * @param {[type]} obj: Radio [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function group2_rdo_indschacptstat_onitemchanged(obj: Radio, e: ItemChangeEventInfo) {
- var indschacptstat = e.postvalue;
- if (indschacptstat == "1") {
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- if (indschacptstat == "2") {
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- if (indschacptstat == "3") {
- ds_send.setColumn(0, "fromdd", '19000101');
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchcond", "2");
- frmf_inputEnterKey('group2.cmb_srchcond', 'onitemchanged', new ItemChangeEventInfo)
- ds_send.setColumn(0, "srchdate", utlf_getCurrentDate());
- }
- if (indschacptstat == "4") {
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- if (indschacptstat == "2" || indschacptstat == "4") {
- group2.caption17.text = "퇴원일자 :";
- }
- else {
- group2.caption17.text = "입원일자 :";
- }
- if (indschacptstat == "3") {
- group2.caption17.visible = false;
- group2.caption20.visible = false;
- group2.ipt_infromdd.visible = false;
- group2.ipt_intodd.visible = false;
- group2.chk_tdayinexptyn.visible = true;
-
- ds_send.setColumn(0, "srchcond", "2");
- group2.chk_tdayinexptyn.position.x = 710;
- group2.chk_tdayinexptyn.position.width = 105;
- group2.chk_srchdateyn.position.x = 805;
- group2.chk_srchdateyn.position.width = 105;
- if (ds_send.getColumn(0, "srchdateyn") == "Y") {
- var left1 = group2.chk_srchdateyn.position.x;
- var left2 = left1 + 85;
- group2.ipt_indd.position.x = left2;
- group2.ipt_indd.position.width = 100;
- group2.ipt_indd.visible = true;
- group2.caption17.visible = false;
- group2.ipt_infromdd.visible = false;
- group2.caption20.visible = false;
- group2.ipt_intodd.visible = false;
- }
- else {
- group2.ipt_indd.visible = false;
- if (ds_send.getColumn(0, "indschacptstat") != "3") {
- group2.caption17.visible = true;
- group2.ipt_infromdd.visible = true;
- group2.caption20.visible = true;
- group2.ipt_intodd.visible = true;
- }
- }
- }
- else {
- group2.ipt_text.visible = false;
- group2.caption17.visible = true;
- group2.caption20.visible = true;
- group2.ipt_infromdd.visible = true;
- group2.ipt_intodd.visible = true;
- group2.chk_tdayinexptyn.visible = false;
- ds_send.setColumn(0, "srchcond", "1");
- ds_send.setColumn(0, "tdayinexptyn", "N");
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- group2.chk_srchdateyn.position.x = 710;
- group2.chk_srchdateyn.position.width = 105;
- if (ds_send.getColumn(0, "srchdateyn") == "Y") {
- var left1 = group2.chk_srchdateyn.position.x;
- var left2 = left1 + 85;
- group2.ipt_indd.position.x = left2;
- group2.ipt_indd.position.width = 100;
- group2.ipt_indd.visible = true;
- group2.caption17.visible = false;
- group2.ipt_infromdd.visible = false;
- group2.caption20.visible = false;
- group2.ipt_intodd.visible = false;
- }
- else {
- group2.ipt_indd.visible = false;
- if (ds_send.getColumn(0, "indschacptstat") != "3") {
- group2.caption17.visible = true;
- group2.ipt_infromdd.visible = true;
- group2.caption20.visible = true;
- group2.ipt_intodd.visible = true;
- }
- }
- }
- }
- /**
- * 조회항목 cmb_srchcond 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function group2_cmb_srchcond_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- fSelectRefItem(ds_send.getColumn(0, "srchcond"));
- }
- /**
- * ipt_text 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function group2_ipt_text_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13 && ds_send.getColumn(0, "srchcond") == "2") {
- obj.updateToDataset();
- ds_source.setColumn(0, "srchcond", "2");
- ds_source.setColumn(0, "hngnm", ds_send.getColumn(0, 'data1'));
- //JHP 20081110
- if (ds_send.getColumn(0, "indschacptstat") == "3") {
- // do nothing
- }
- else {
- ds_source.setColumn(0, "autoflag", "Y");
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_source }, "", '', '', '', "", "", "", "", "", "M");
- ds_send.setColumn(0, "data1", ds_patinfolist.getColumn(0, "pid"));
- ds_send.setColumn(0, "srchcond", "14");
- }
- group2.button1.click();
- }
-
- }
- /**
- * 특정인조회 체크박스 클릭 이벤트
- * @param {[type]} obj: CheckBox [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function group2_chk_srchdateyn_onclick(obj: CheckBox, e: ClickEventInfo) {
- // 날짜가 없으면 전체를 조회
- if (ds_send.getColumn(0, "srchdateyn") == "Y") {
- var left1 = group2.chk_srchdateyn.position.x;
- var left2 = left1 + 85;
- group2.ipt_indd.position.x = left2;
- group2.ipt_indd.position.width = 100;
- group2.ipt_indd.visible = true;
- group2.caption17.visible = false;
- group2.ipt_infromdd.visible = false;
- group2.caption20.visible = false;
- group2.ipt_intodd.visible = false;
- group2.rdo_indschacptstat.disabled = true;
- group2.radio1.disabled = true;
- }
- else {
- group2.ipt_indd.visible = false;
- if (ds_send.getColumn(0, "indschacptstat") != "3") {
- group2.caption17.visible = true;
- group2.ipt_infromdd.visible = true;
- group2.caption20.visible = true;
- group2.ipt_intodd.visible = true;
- }
- group2.rdo_indschacptstat.disabled = false;
- group2.radio1.disabled = false;
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function group2_button1_onclick(obj: Button, e: ClickEventInfo) {
- if (ds_send.getColumn(0, "gubunexpt") == "Y") {
- var chkcond = ds_send.getColumn(0, "srchcond");
- if (chkcond == "2" || chkcond == "14") {
- // do nothing
- }
- else {
- sysf_messageBox("구분제외는 환자를 지정 하여야 합니다.", "I");
- return;
- }
- }
- var sSrchDateYN = ds_send.getColumn(0, "srchdateyn");
- var sCond = ds_send.getColumn(0, "srchcond");
- // 2009.01.06 - 특정인 조회 시 환자번호, 환자명 선택이 아니면
- if (sSrchDateYN == "Y" && (sCond != "2" && sCond != "14")) {
- sysf_messageBox("특정인 조회 시 환자명이나 환자번호를 선택해야 합니다.", "I");
- return;
- }
- if (sCond == "14" || sCond == "2" || sCond == "9") {
- var sText = ds_send.getColumn(0, "data1");
- if (!utlf_isNull(sText)) {
- dsf_createDsRow('ds_TRPMI00701', [
- { col: 'indschacptstat', type: 'string', size: 256, val: '' },
- { col: 'srchcond', type: 'string', size: 256, val: '' },
- { col: 'data1', type: 'string', size: 256, val: '' },
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'eryn', type: 'string', size: 256, val: '' },
- { col: 'vipyn', type: 'string', size: 256, val: '' },
- { col: 'tdayinexptyn', type: 'string', size: 256, val: '' },
- { col: 'srchdate', type: 'string', size: 256, val: '' },
- { col: 'srchdateyn', type: 'string', size: 256, val: '' },
- { col: 'fromtm', type: 'string', size: 256, val: '' },
- { col: 'totm', type: 'string', size: 256, val: '' },
- { col: 'timeflag', type: 'string', size: 256, val: '' },
- { col: 'dclrflag', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00701.copyRow(0, ds_send, 0);
- ds_main_inptlist_inddschspec.clearData();
- var oParam = {};
- oParam.id = "TRPMI00701";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetInDschRef";
- oParam.inds = "req=ds_TRPMI00701";
- oParam.outds = "ds_main_inptlist_inddschspec=inddschspec";
- oParam.async = false;
- tranf_submit(oParam);
- if (ds_main_inptlist_inddschspec.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- else {
- sysf_messageBox("검색할 단어를 입력하십시오!", "I");
- group2.ipt_text.setFocus();
- }
- }
- else {
- dsf_createDsRow('ds_TRPMI00701', [
- { col: 'indschacptstat', type: 'string', size: 256, val: '' },
- { col: 'srchcond', type: 'string', size: 256, val: '' },
- { col: 'data1', type: 'string', size: 256, val: '' },
- { col: 'fromdd', type: 'string', size: 256, val: '' },
- { col: 'todd', type: 'string', size: 256, val: '' },
- { col: 'eryn', type: 'string', size: 256, val: '' },
- { col: 'vipyn', type: 'string', size: 256, val: '' },
- { col: 'tdayinexptyn', type: 'string', size: 256, val: '' },
- { col: 'srchdate', type: 'string', size: 256, val: '' },
- { col: 'srchdateyn', type: 'string', size: 256, val: '' },
- { col: 'fromtm', type: 'string', size: 256, val: '' },
- { col: 'totm', type: 'string', size: 256, val: '' },
- { col: 'timeflag', type: 'string', size: 256, val: '' },
- { col: 'dclrflag', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00701.copyRow(0, ds_send, 0);
- ds_main_inptlist_inddschspec.clearData();
- var oParam = {};
- oParam.id = "TRPMI00701";
- oParam.service = "ipatmngtapp.IPatRef";
- oParam.method = "reqGetInDschRef";
- oParam.inds = "req=ds_TRPMI00701";
- oParam.outds = "ds_main_inptlist_inddschspec=inddschspec";
- oParam.async = false;
- tranf_submit(oParam);
- if (ds_main_inptlist_inddschspec.rowcount == 0) {
- sysf_messageBox("조회 결과가 없습니다.", "I");
- }
- }
- }
- /**
- * 미리보기 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button5_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PREVIEW");
- }
- /**
- * 출력 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button4_onclick(obj: Button, e: ClickEventInfo) {
- fPrint("PRINT");
- }
- /**
- * 엑셀저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_inddschspec, "원무입원퇴원재원조회_" + group2.rdo_indschacptstat.text + "_" + utlf_getCurrentDate().toDate().getDateFormat("YYYYMMDD"), "SheetName", true, "" , 'user' , true);
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var indschacptstat = ds_send.getColumn(0, 'indschacptstat');
- if (indschacptstat == "5") {
- group2.caption17.text = "퇴원예고 :";
-
- group2.chk_srchdateyn.position.x = 710;
- group2.chk_srchdateyn.position.width = 105;
-
- group2.ipt_infromdd.visible = true;
- group2.ipt_intodd.visible = true;
- group2.chk_tdayinexptyn.visible = false;
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchcond", "1");
- ds_send.setColumn(0, "tdayinexptyn", "N");
- group2.cmb_orddeptcd.visible = false;
- group2.cmb_wardcd.visible = false;
- group2.cmb_insukind.visible = false;
- group2.cmb_suppkind.visible = false;
- group2.cmb_disccd.visible = false;
- group2.cmb_inpath.visible = false;
- group2.cmb_sex.visible = false;
- group2.cmb_specordyn.visible = false;
- group2.cmb_vipyn.visible = false;
- group2.ipt_text.visible = false;
- if (ds_send.getColumn(0, "srchdateyn") == "Y") {
- var left1 = group2.chk_srchdateyn.position.x;
- var left2 = left1 + 85;
- group2.ipt_indd.position.x = left2;
- group2.ipt_indd.position.width = 100;
- group2.ipt_indd.visible = true;
- group2.caption17.visible = false;
- group2.ipt_infromdd.visible = false;
- group2.caption20.visible = false;
- group2.ipt_intodd.visible = false;
- }
- else {
- group2.ipt_indd.visible = false;
- if (ds_send.getColumn(0, "indschacptstat") != "3") {
- group2.caption17.visible = true;
- group2.ipt_infromdd.visible = true;
- group2.caption20.visible = true;
- group2.ipt_intodd.visible = true;
- }
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|