1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRC00400" position="absolute 0 0 1200 790" titletext="차트전달처리" oninit="SMMRC00400_oninit" onload="SMMRC00400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 784" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 784" align="align:center top;" id="group2">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 0 442 418 477"/>
- <Grid position="absolute 0 95 599 412" id="grd_recvchrtlist" binddataset="ds_main_movchrt_recvchrtlist" onlbuttonup="group3_group2_grd_recvchrtlist_onlbuttonup" oncellclick="group3_group2_grd_recvchrtlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="32"/>
- <Column size="54"/>
- <Column size="50"/>
- <Column size="61"/>
- <Column size="60"/>
- <Column size="66"/>
- <Column size="63"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="59"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="V"/>
- <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="대출번호"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkflag"/>
- <Cell col="1" text="bind:ioflag"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:pnm"/>
- <Cell col="4" text="bind:deptnm"/>
- <Cell col="5" text="bind:indate"/>
- <Cell col="6" text="bind:outdate"/>
- <Cell col="7" displaytype="combo" text="bind:allchrtflag" combodataset="ds_allchrtflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="8" text="bind:sendeddeptnm"/>
- <Cell col="9" text="bind:sendedmannm"/>
- <Cell col="10" text="bind:movehistseqno"/>
- <Cell col="11" text="bind:chrtseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 155 45 265 64" id="ipt_recvdeptnm" class="input_search" enable="false" visible="true" autoselect="true"/>
- <Edit position="absolute 44 45 154 64" id="ipt_recvdeptid" class="input_essential" enable="false" visible="true" autoselect="true" onkillfocus="group3_group2_ipt_recvdeptid_onkillfocus"/>
- <Edit position="absolute 315 45 415 64" id="ipt_recvmanid" class="input_essential" enable="false" autoselect="true" onkillfocus="group3_group2_ipt_recvmanid_onkillfocus"/>
- <Button position="absolute 525 45 567 64" id="btn_x_recv" class="btn2" text="받기" onclick="group3_group2_btn_x_recv_onclick"/>
- <Static text="받은과" position="absolute 0 45 43 64" align="align:center middle;" id="caption2" class="cell_1" visible="true" style="padding:0 0 0 4;"/>
- <Static text="받은이" position="absolute 269 45 312 64" align="align:center middle;" id="caption6" class="cell_1" style="padding:0 0 0 4;"/>
- <Edit position="absolute 417 45 517 64" id="ipt_recvmannm" class="input_search" enable="false" autoselect="true"/>
- <Button position="absolute 1141 45 1194 64" id="btn_x_send" class="btn2" text="보내기" onclick="group3_group2_btn_x_send_onclick"/>
- <Button position="absolute 1115 48 1131 64" id="btn_r_user2" class="icon_search" text="" onclick="group3_group2_btn_r_user2_onclick"/>
- <Static text="받을곳" position="absolute 592 45 640 64" align="align:center middle;" id="caption1" class="cell_1"/>
- <Static text="보내는이" position="absolute 863 45 918 64" align="align:center middle;" id="caption3" class="cell_1" style="padding:0 0 0 4;"/>
- <Edit position="absolute 920 45 1009 64" id="ipt_sendmanid" class="input_essential" autoselect="true" onkeydown="group3_group2_ipt_sendmanid_onkeydown"/>
- <Edit position="absolute 1010 45 1110 64" id="ipt_sendmannm" class="input_search" autoselect="true"/>
- <Shape position="absolute 0 40 584 46" linetype="horizontal" id="line3" class="line_10"/>
- <Shape position="absolute 591 40 1194 46" linetype="horizontal" id="line2" class="line_10"/>
- <Shape position="absolute 0 484 1194 490" linetype="horizontal" id="line7" class="line_10"/>
- <Static text="등록번호 :" position="absolute 13 452 99 469" id="caption5" class="search_name"/>
- <Button position="absolute 345 450 401 472" id="btn_r_movlist" class="btn1" text="조회" onclick="group3_group2_btn_r_movlist_onclick"/>
- <Shape position="absolute 327 450 333 472" linetype="vertical" id="line13" class="line_4"/>
- <Edit position="absolute 92 451 182 470" id="input9" class="input_search" autoselect="true"/>
- <Button position="absolute 185 451 201 467" id="btn_r_pat" class="icon_search" text=""/>
- <Edit position="absolute 204 451 294 470" id="input10" class="input_search" autoselect="true"/>
- <Grid position="absolute 0 489 599 780" id="grd_chrtlsit" binddataset="ds_main_chrtlist" oncelldblclick="group3_group2_grd_chrtlsit_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="34"/>
- <Column size="79"/>
- <Column size="72"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="차트과"/>
- <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="대출번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:ioflag"/>
- <Cell col="1" text="bind:orddeptnm"/>
- <Cell col="2" text="bind:atdoct"/>
- <Cell col="3" text="bind:orddd"/>
- <Cell col="4" text="bind:dschdd"/>
- <Cell col="5" displaytype="combo" text="bind:allchrtflag" combodataset="ds_allchrtflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="6" text="bind:activedept"/>
- <Cell col="7" text="bind:medirecno"/>
- <Cell col="8" text="bind:chrtseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Tab position="absolute 594 70 1188 415" id="switch1" onchanged="group3_group2_switch1_onchanged">
- <Tabpages>
- <Tabpage text="대출차트" position="absolute 0 0 592 318" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 592 316" id="grd_sendchrtlist" binddataset="ds_main_movchrt_sendchrtlist" onlbuttonup="group3_group2_switch1_case1_grd_sendchrtlist_onlbuttonup" oncellclick="group3_group2_switch1_case1_grd_sendchrtlist_oncellclick" onrbuttondown="group3_group2_switch1_case1_grd_sendchrtlist_onrbuttondown" onrbuttonup="group3_group2_switch1_case1_grd_sendchrtlist_onrbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="32"/>
- <Column size="54"/>
- <Column size="50"/>
- <Column size="61"/>
- <Column size="60"/>
- <Column size="66"/>
- <Column size="63"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="59"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="V"/>
- <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="대출번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:chkflag" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:ioflag"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:pnm"/>
- <Cell col="4" text="bind:deptnm"/>
- <Cell col="5" text="bind:indate"/>
- <Cell col="6" text="bind:outdate"/>
- <Cell col="7" text="bind:allchrtflag"/>
- <Cell col="8" text="bind:sendeddeptnm"/>
- <Cell col="9" text="bind:sendedmannm"/>
- <Cell col="10" text="bind:movehistseqno"/>
- <Cell col="11" text="bind:chrtseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="과보관차트" position="absolute 0 0 592 318" id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 590 316" id="grd_keepchat" binddataset="ds_main_movchrt_keepchrtlist" onlbuttonup="group3_group2_switch1_case2_grd_keepchat_onlbuttonup" oncellclick="group3_group2_switch1_case2_grd_keepchat_oncellclick" oncelldblclick="group3_group2_switch1_case2_grd_keepchat_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="32"/>
- <Column size="54"/>
- <Column size="50"/>
- <Column size="61"/>
- <Column size="60"/>
- <Column size="66"/>
- <Column size="63"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="290"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="V"/>
- <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="보관사유"/>
- </Band>
- <Band id="body">
- <Cell text="bind:chkflag" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:ioflag"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:pnm"/>
- <Cell col="4" text="bind:deptnm"/>
- <Cell col="5" text="bind:indate"/>
- <Cell col="6" text="bind:outdate"/>
- <Cell col="7" text="bind:allchrtflag"/>
- <Cell col="8" text="bind:sendeddeptnm"/>
- <Cell col="9" text="bind:sendedmannm"/>
- <Cell col="10" text="bind:movehistseqno"/>
- <Cell col="11" text="bind:chrtseqno"/>
- <Cell col="12" text="bind:keepdeptnm"/>
- <Cell col="13" text="bind:keepresn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button position="absolute 1118 73 1193 92" id="btn_x_rtnchrt" class="btn2" text="기록실반납" onclick="group3_group2_btn_x_rtnchrt_onclick"/>
- <Button position="absolute 1050 73 1114 92" id="btn_x_keepchrt" class="btn2" text="차트보관" onclick="group3_group2_btn_x_keepchrt_onclick"/>
- <Button position="absolute 1138 14 1194 36" id="btn_r_refresh" class="btn1" text="조회" onclick="group3_group2_btn_r_refresh_onclick"/>
- <Grid position="absolute 601 489 1193 780" id="grd_movhistlist" binddataset="ds_main_movhistlist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="85"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="85"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="보낸과"/>
- <Cell col="1" text="보낸이"/>
- <Cell col="2" text="보낸일시"/>
- <Cell col="3" text="받은과"/>
- <Cell col="4" text="받은이"/>
- <Cell col="5" text="받은일시"/>
- <Cell col="6" text="차트번호"/>
- <Cell col="7" text="대출번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:senddeptnm"/>
- <Cell col="1" text="bind:sendmanid"/>
- <Cell col="2" text="bind:senddt"/>
- <Cell col="3" text="bind:recvdeptnm"/>
- <Cell col="4" text="bind:recvmanid"/>
- <Cell col="5" text="bind:recvdt"/>
- <Cell col="6" text="bind:medirecno"/>
- <Cell col="7" text="bind:chrtseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 315 65 415 84" id="ipt_bcno" class="input_essential" autoselect="true" onkillfocus="group3_group2_ipt_bcno_onkillfocus"/>
- <Static text="바코드" position="absolute 270 65 313 84" align="align:center middle;" id="caption4" class="cell_1" style="padding:0 0 0 4;"/>
- <Combo position="absolute 644 45 799 64" id="cbo_deptcd" class="combo_search" innerdataset="@ds_init_dept" datacolumn="depthnm" codecolumn="deptcd"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="차트전달처리" position="absolute 0 0 111 20" id="cpt_title" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="차트받기" position="absolute 0 24 82 40" id="caption10" class="tit_2"/>
- <Static text="차트보내기" position="absolute 591 24 688 40" id="caption11" class="tit_2"/>
- <Static text="차트 최종 이력 조회" position="absolute 0 422 147 438" id="caption25" class="tit_2"/>
- <Shape position="absolute 8 779 1195 785" linetype="horizontal" id="line8" class="line_3"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptflag" type="STRING" size="256" sumtext="과구분"/>
- <Column id="selectpartyn" type="STRING" size="256" sumtext="분과선택YN"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="chrtseqno" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="depthnm" type="STRING" size="256" sumtext="진료과이름(한글명)"/>
- <Column id="deptenm" type="STRING" size="256" sumtext="진료과이름(영문명)"/>
- <Column id="deptabbr" type="STRING" size="256" sumtext="진료과이름(약어)"/>
- <Column id="usedyn" type="STRING" size="256" sumtext="사용유무"/>
- <Column id="allwardyn" type="STRING" size="256" sumtext="전체병동유무"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="depthnm">전체</Col>
- <Col id="deptcd">ALL</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chrtdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과이름(한글명)"/>
- <Column id="deptabbr" type="STRING" size="256" sumtext="진료과이름(약어)"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_chrtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="체크flag"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="pnm" type="STRING" size="256" sumtext="환자이름"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="외래/입원구분"/>
- <Column id="medirecno" type="BIGDECIMAL" size="256" sumtext="차트이력번호"/>
- <Column id="bcno" type="STRING" size="256" sumtext="바코드번호"/>
- <Column id="chrtrem" type="STRING" size="256" sumtext="비고"/>
- <Column id="chrtstat" type="STRING" size="256" sumtext="분실상태"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="차트과/퇴원과 코드"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="차트과/퇴원과 명"/>
- <Column id="orddeptabbr" type="STRING" size="256" sumtext="차트과/퇴원과 약어명"/>
- <Column id="lendyn" type="STRING" size="256" sumtext="대출여부"/>
- <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="차트생성일"/>
- <Column id="orddd" type="STRING" size="256" sumtext="원무키-진료일"/>
- <Column id="cretno" type="BIGDECIMAL" size="256" sumtext="원무키-생성번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_movhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="senddeptnm" type="STRING" size="256" sumtext="보낸과"/>
- <Column id="sendmanid" type="STRING" size="256" sumtext="보낸이"/>
- <Column id="senddt" type="STRING" size="256" sumtext="보낸일시"/>
- <Column id="recvdeptnm" type="STRING" size="256" sumtext="받은과"/>
- <Column id="recvmanid" type="STRING" size="256" sumtext="받은이"/>
- <Column id="recvdt" type="STRING" size="256" sumtext="받은일시"/>
- <Column id="medirecno" type="BIGDECIMAL" size="256" sumtext="차트번호"/>
- <Column id="chrtseqno" type="BIGDECIMAL" size="256" sumtext="대출번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_movchrt_recvchrtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="대출번호"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원/외래구분"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="pnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="indate" type="STRING" size="256" sumtext="진료일/입원일"/>
- <Column id="outdate" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="allchrtflag" type="STRING" size="256" sumtext="전체차트여부"/>
- <Column id="sendeddeptnm" type="STRING" size="256" sumtext="보낸과"/>
- <Column id="sendedmannm" type="STRING" size="256" sumtext="보낸이"/>
- <Column id="movehistseqno" type="BIGDECIMAL" size="256" sumtext="이동번호"/>
- <Column id="chrtseqno" type="BIGDECIMAL" size="256" sumtext="대출번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_movchrt_sendchrtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="대출번호"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원/외래구분"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="pnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="indate" type="STRING" size="256" sumtext="진료일/입원일"/>
- <Column id="outdate" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="allchrtflag" type="STRING" size="256" sumtext="전체차트여부"/>
- <Column id="sendeddeptnm" type="STRING" size="256" sumtext="보낸과"/>
- <Column id="sendedmannm" type="STRING" size="256" sumtext="보낸이"/>
- <Column id="movehistseqno" type="BIGDECIMAL" size="256" sumtext="이동번호"/>
- <Column id="chrtseqno" type="BIGDECIMAL" size="256" sumtext="대출번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_movchrt_keepchrtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="대출번호"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="입원/외래구분"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="pnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="indate" type="STRING" size="256" sumtext="진료일/입원일"/>
- <Column id="outdate" type="STRING" size="256" sumtext="퇴원일"/>
- <Column id="allchrtflag" type="STRING" size="256" sumtext="전체차트여부"/>
- <Column id="sendeddeptnm" type="STRING" size="256" sumtext="보낸과"/>
- <Column id="sendedmannm" type="STRING" size="256" sumtext="보낸이"/>
- <Column id="movehistseqno" type="BIGDECIMAL" size="256" sumtext="이동번호"/>
- <Column id="chrtseqno" type="BIGDECIMAL" size="256" sumtext="대출번호"/>
- <Column id="keepdeptnm" type="STRING" size="256" sumtext="보관과"/>
- <Column id="keepresn" type="STRING" size="256" sumtext="보관사유"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태flag"/>
- <Column id="movehistseqno" type="BIGDECIMAL" size="256" sumtext="이동이력코드"/>
- <Column id="recvmanid" type="STRING" size="256" sumtext="받은이"/>
- <Column id="keepresn" type="STRING" size="256"/>
- <Column id="chrtseqno" type="STRING" size="256"/>
- <Column id="recvtrgtdeptid" type="STRING" size="256"/>
- <Column id="sendmanid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="recvdeptid" type="STRING" size="256"/>
- <Column id="recvdeptnm" type="STRING" size="256"/>
- <Column id="recvmanid" type="STRING" size="256"/>
- <Column id="recvmannm" type="STRING" size="256"/>
- <Column id="recvtrgtdeptid" type="STRING" size="256"/>
- <Column id="recvtrgtdeptnm" type="STRING" size="256"/>
- <Column id="sendmanid" type="STRING" size="256"/>
- <Column id="sendmannm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="pnm" type="STRING" size="256"/>
- <Column id="bcno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_allchrtflag" 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">Y</Col>
- </Row>
- <Row>
- <Col id="value">N</Col>
- <Col id="label">과차트</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_param" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inwardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_checkAuth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="btn_r_" type="STRING" size="256"/>
- <Column id="btn_x_" type="STRING" size="256"/>
- <Column id="btn_p_" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_recvdeptid" propid="value" datasetid="ds_main_condition" columnid="recvdeptid"/>
- <BindItem id="item1" compid="group3.group2.ipt_recvdeptnm" propid="value" datasetid="ds_main_condition" columnid="recvdeptnm"/>
- <BindItem id="item2" compid="group3.group2.ipt_recvmanid" propid="value" datasetid="ds_main_condition" columnid="recvmanid"/>
- <BindItem id="item3" compid="group3.group2.ipt_bcno" propid="value" datasetid="ds_main_condition" columnid="bcno"/>
- <BindItem id="item4" compid="group3.group2.ipt_recvmannm" propid="value" datasetid="ds_main_condition" columnid="recvmannm"/>
- <BindItem id="item5" compid="group3.group2.cbo_deptcd" propid="value" datasetid="ds_main_condition" columnid="recvtrgtdeptid"/>
- <BindItem id="item6" compid="group3.group2.ipt_sendmanid" propid="value" datasetid="ds_main_condition" columnid="sendmanid"/>
- <BindItem id="item7" compid="group3.group2.ipt_sendmannm" propid="value" datasetid="ds_main_condition" columnid="sendmannm"/>
- <BindItem id="item8" compid="group3.group2.input9" propid="value" datasetid="ds_main_condition" columnid="pid"/>
- <BindItem id="item9" compid="group3.group2.input10" propid="value" datasetid="ds_main_condition" columnid="pnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_chrtmngtxp -> SMMRC00400
- * Creator : yjh
- * Make Date : 2017-03-28
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-03-28 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_chrtmngtxp::SMMRC00100.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- function fRtnChrt()
- {
- var icnt = 0;
- for ( var i= 1; i< grd_sendchrtlist.rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- icnt++;
- }
- }
-
- if(icnt < 1){
- messagebox("반납할 차트를 ", "c001");
-
- //window.alert("반납할 차트를 선택해 주세요", "차트전달처리", 0 | 64);
- return;
- }
-
- btn_x_rtnchrt.dispatch("DOMActivate");
- }
- function fKeepChrt()
- {
- var icnt = 0;
- for ( var i= 1; i< grd_sendchrtlist.rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- icnt++;
- }
- }
-
- if(icnt < 1){
- window.alert("보관할 차트를 선택해 주세요", "차트전달처리", 0 | 64);
- return;
- }
-
- modal("SMMRC00410", 1, event.screenX-20, event.screenY-80);
- var keepresn = getParameter("SMMRC00100_KEEPRESN");
- //var keepresn = model.getValue("/root/hidden/parameters/result/resultvalue");
- if(keepresn.length < 1)
- {
- return;
- } else{
- var tmpSaveData = "m▦movehistseqno▦keepresn";
-
- for ( var i= 1; i< grd_sendchrtlist.rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- var movehistseqno = grd_sendchrtlist.valueMatrix(i, 11);
- tmpSaveData = tmpSaveData +"▩u▦" + movehistseqno + "▦" + keepresn;
- icnt++;
- }
- }
-
- model.makeValue("/root/send/savedata", tmpSaveData);
- submit("TXMRC00403");
-
-
-
- }
- btn_x_keepchrt.dispatch("DOMActivate");
- model.refresh();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMRC00400
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMRC00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMRC00400
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMRC00400_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_condition.setColumn(0, "recvmanid", sysf_getUserId());
- ds_main_condition.setColumn(0, "recvmannm", sysf_getUserName());
- ds_main_condition.setColumn(0, "sendmanid", sysf_getUserId());
- ds_main_condition.setColumn(0, "sendmannm", sysf_getUserName());
- ds_main_condition.setColumn(0, "recvdeptid", sysf_getUserInfo("dutplcecd"));
- ds_main_condition.setColumn(0, "recvdeptnm", sysf_getUserInfo("dutplcenm"));
-
- ds_send_reqdata.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd"));
-
- group3.group2.switch1.tabindex = 0;
-
- ds_send_reqdata.setColumn(0, "orddeptflag", "'D', 'W'");
-
- //진료과 불러오기.
- var oParam = {};
- oParam.id = "TRMRC00050";
- oParam.service = "chrtmngtapp.ChrtRendMngt";
- oParam.method = "reqGetDept";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_dept=dept ds_init_chrtdept=chrtdept";
- oParam.async = false;
- //oParam.callback = "cf_TRMRC00050";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRMRC00401";
- oParam.service = "chrtmngtapp.ChrtRendMngt";
- oParam.method = "reqMovChrt";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_movchrt_recvchrtlist=recvchrtlist ds_main_movchrt_sendchrtlist=sendchrtlist ds_main_movchrt_keepchrtlist=keepchrtlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMRC00401";
- tranf_submit(oParam);
-
- fchkAuth();
-
- // 2008.01.08. 파라메터로 입원병동코드를 받는다..(응급실에서..)
- var inwardcd ;
- if (frmf_isPopup() == true) {
- // 입원병동코드
- inwardcd = utlf_transNullToEmpty(opener.frmf_getParameter("inwardcd"));
- if (inwardcd.length > 0){
- ds_main_condition.setcolumn(0, "recvtrgtdeptid", inwardcd);
- ds_hidden_param.setColumn(0, "inwardcd", inwardcd);
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_recvchrtlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 왼쪽 클릭시
- ****************************************************************************************/
- function group3_group2_grd_recvchrtlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if (grd_recvchrtlist.rows <= 1 || grd_recvchrtlist.row == 0){
- return;
- }
-
- if (grd_recvchrtlist.col == 1){
- return;
- }
-
- if(grd_recvchrtlist.mouseRow < grd_recvchrtlist.fixedrows){
- return;
- }
-
- for ( var i= 0; i< grd_recvchrtlist.selectedRows; i++)
- {
- var chk = grd_recvchrtlist.valueMatrix(grd_recvchrtlist.selectedRow(i), 1);
- if (chk == "Y"){
- grd_recvchrtlist.valueMatrix(grd_recvchrtlist.selectedRow(i), 1) = "N"
- } else {
- grd_recvchrtlist.valueMatrix(grd_recvchrtlist.selectedRow(i), 1) = "Y"
- }
-
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_recvchrtlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_group2_grd_recvchrtlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(event.button== 1 && grd_recvchrtlist.row == 0 && grd_recvchrtlist.col== 1) {
- for ( var i= 1; i< grd_recvchrtlist.Rows; i++)
- {
- var tmp = grd_recvchrtlist.valueMatrix(i, 1);
-
- if(tmp == "N"){
- grd_recvchrtlist.valueMatrix(i, 1) = "Y"
- } else {
- grd_recvchrtlist.valueMatrix(i, 1) = "N"
- }
- }
- return;
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_recvdeptid
- * Event : onkillfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 포커스 아웃시
- ****************************************************************************************/
- function group3_group2_ipt_recvdeptid_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- setInputNodeCurText();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_recvmanid
- * Event : onkillfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 포커스 아웃시
- ****************************************************************************************/
- function group3_group2_ipt_recvmanid_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- setInputNodeCurText();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_x_recv
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 받기버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_x_recv_onclick(obj:Button, e:ClickEventInfo)
- {
- var tmpSaveData = "m▦movehistseqno▦recvmanid"
- var recvmanid = model.getValue("/root/main/condition/recvmanid");
-
- if(recvmanid == ""){
- window.alert("받는이 ID를 입력해 주세요", "차트전달처리", 0 | 64);
- model.setFocus("ipt_recvmanid");
- return;
- }
-
- for ( var i= 1; i< grd_recvchrtlist.rows; i++)
- {
- var tmp = grd_recvchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- //grd_recvchrtlist.rowStatus(i) = 2;
- var movehistseqno = grd_recvchrtlist.valueMatrix(i, 11);
- tmpSaveData = tmpSaveData +"▩u▦" + movehistseqno + "▦" + recvmanid;
-
- }
- }
-
- model.makeValue("/root/send/savedata", tmpSaveData);
- //submit("TXMRC00400");
- submit("TXMRC00401");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_x_send
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 보내기버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_x_send_onclick(obj:Button, e:ClickEventInfo)
- {
- var icnt = 0;
- // var tmpSaveData = "m▦movehistseqno▦recvtrgtdeptid▦sendmanid▦chrtseqno"
- var tmpSaveData = "m▦movehistseqno▦deptcd▦sendmanid▦chrtseqno"
- var sendmanid = model.getValue("/root/main/condition/sendmanid");
-
- if(sendmanid == ""){
- window.alert("보내는이 ID를 입력해 주세요", "차트전달처리", 0 | 64);
- model.setFocus("ipt_sendmanid");
- return;
- }
-
- // var recvtrgtdeptid = model.getValue("/root/main/condition/recvtrgtdeptid");
- //
- // if(recvtrgtdeptid == ""){
- // window.alert("받을과 코드를 입력해 주세요", "차트전달처리", 0 | 64);
- // model.setFocus("ipt_recvtrgtdeptid");
- // return;
- // }
-
- var deptcd = model.getValue("/root/init/dept/deptcd");
-
- if(deptcd == ""){
- window.alert("받을곳을 입력해 주세요", "차트전달처리", 0 | 64);
- model.setFocus("cbo_deptcd");
- return;
- }
-
- for ( var i= 1; i< grd_sendchrtlist.rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- //grd_recvchrtlist.rowStatus(i) = 2;
- var movehistseqno = grd_sendchrtlist.valueMatrix(i, 11);
- var chrtseqno = grd_sendchrtlist.valueMatrix(i, 12);
-
- // tmpSaveData = tmpSaveData +"▩i▦" + movehistseqno + "▦" + recvtrgtdeptid + "▦" + sendmanid + "▦" + chrtseqno;
- tmpSaveData = tmpSaveData +"▩i▦" + movehistseqno + "▦" + deptcd + "▦" + sendmanid + "▦" + chrtseqno;
- //alert(tmpSaveData);
- icnt++;
- }
- }
- if(icnt < 1){
- window.alert("반납할 차트를 선택해 주세요", "차트전달처리", 0 | 64);
- return;
- }
-
- model.makeValue("/root/send/savedata", tmpSaveData);
- submit("TXMRC00402");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_r_user2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_r_user2_onclick(obj:Button, e:ClickEventInfo)
- {
- model.removenode("/root/hidden/tmp/tempuserinfo/list");
- model.reset("/root/hidden/tmp/tempuserinfo");
- var user = ipt_sendmanid.currentText;
- var flag = "userid";
-
- if(isNaN(user)){
- flag = "usernm";
- }
-
- model.setValue("/root/hidden/tmp/userpopupinfo/param", "_OneS");
- model.setValue("/root/hidden/tmp/userpopupinfo/flag", flag);
- model.setValue("/root/hidden/tmp/userpopupinfo/searchitem", user);
-
- modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/hidden/tmp/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/hidden/tmp/tempuserinfo", iParam);
- clearParameter("SPZSU10103_");
-
- ds_main_condition.setcolumn(0, "sendmanid", model.getValue("/root/hidden/tmp/tempuserinfo/list/userid"));
- ds_main_condition.setcolumn(0, "sendmannm", model.getValue("/root/hidden/tmp/tempuserinfo/list/usernm"));
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_sendmanid
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function group3_group2_ipt_sendmanid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(event.keyCode == "13"){
- setInputNodeCurText();
- btn_r_user2.dispatch("DOMActivate");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_r_movlist
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_r_movlist_onclick(obj:Button, e:ClickEventInfo)
- {
- var tmpPID = model.getValue("/root/main/condition/pid");
- ds_send_reqdata.setColumn(0, "pid", tmpPID);
-
- submit("TRMRC00300");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_chrtlsit
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_group2_grd_chrtlsit_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var chrtseqno = grd_chrtlsit.valueMatrix(grd_chrtlsit.row,9);
- ds_send_reqdata.setColumn(0, "chrtseqno", chrtseqno);
-
- submit("TRMRC00402");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_sendchrtlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 왼쪽 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case1_grd_sendchrtlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if (grd_sendchrtlist.rows <= 1 || grd_sendchrtlist.row == 0){
- return;
- }
-
- if (grd_sendchrtlist.col == 1){
- return;
- }
-
- if(grd_sendchrtlist.mouseRow < grd_sendchrtlist.fixedrows){
- return;
- }
-
- for ( var i= 0; i< grd_sendchrtlist.selectedRows; i++)
- {
- var chk = grd_sendchrtlist.valueMatrix(grd_sendchrtlist.selectedRow(i), 1);
- if (chk == "Y"){
- grd_sendchrtlist.valueMatrix(grd_sendchrtlist.selectedRow(i), 1) = "N"
- } else {
- grd_sendchrtlist.valueMatrix(grd_sendchrtlist.selectedRow(i), 1) = "Y"
- }
-
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_sendchrtlist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case1_grd_sendchrtlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(event.button== 1 && grd_sendchrtlist.row == 0 && grd_sendchrtlist.col== 1) {
- for ( var i= 1; i< grd_sendchrtlist.Rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "N"){
- grd_sendchrtlist.valueMatrix(i, 1) = "Y"
- } else {
- grd_sendchrtlist.valueMatrix(i, 1) = "N"
- }
- }
- return;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_sendchrtlist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case1_grd_sendchrtlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- grdf_setSelectedCell(obj, e);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_sendchrtlist
- * Event : onrbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case1_grd_sendchrtlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- grdf_setSelectedCell(obj, e);
-
- if(obj.getEditText() == undefined){
- window.setPopupMenu(true, "/root/hidden/sendlist_menu/menu", "label", "func", false);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_keepchat
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 왼쪽 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case2_grd_keepchat_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if (grd_keepchat.rows <= 1 || grd_keepchat.row == 0){
- return;
- }
-
- if (grd_keepchat.col == 1){
- return;
- }
-
- if(grd_keepchat.mouseRow < grd_keepchat.fixedrows){
- return;
- }
-
- for ( var i= 0; i< grd_keepchat.selectedRows; i++)
- {
- var chk = grd_keepchat.valueMatrix(grd_keepchat.selectedRow(i), 1);
- if (chk == "Y"){
- grd_keepchat.valueMatrix(grd_keepchat.selectedRow(i), 1) = "N"
- } else {
- grd_keepchat.valueMatrix(grd_keepchat.selectedRow(i), 1) = "Y"
- }
-
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_keepchat
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case2_grd_keepchat_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(event.button== 1 && grd_keepchat.row == 0 && grd_keepchat.col== 1) {
- for ( var i= 1; i< grd_keepchat.Rows; i++)
- {
- var tmp = grd_keepchat.valueMatrix(i, 1);
- if(tmp == "N"){
- grd_keepchat.valueMatrix(i, 1) = "Y"
- } else {
- grd_keepchat.valueMatrix(i, 1) = "N"
- }
- }
- return;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_keepchat
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_group2_switch1_case2_grd_keepchat_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- model.removenode("/root/hidden/parameters/result/resultvalue");
- modal("SMMRC00410", 1, event.screenX-20, event.screenY-80, "", "/root/main/movchrt/keepchrtlist["+ grd_keepchat.row +"]/keepresn", "/root/main/keepresn");
-
- var keepresn = model.getValue("/root/hidden/parameters/result/resultvalue");
- if(keepresn.length < 1)
- {
- return;
- } else{
- var tmpSaveData = "m▦movehistseqno▦keepresn";
-
- for ( var i= 1; i< grd_keepchat.rows; i++)
- {
- var tmp = grd_keepchat.valueMatrix(i, 1);
- if(tmp == "Y"){
- var movehistseqno = grd_keepchat.valueMatrix(i, 11);
- tmpSaveData = tmpSaveData +"▩u▦" + movehistseqno + "▦" + keepresn;
- }
- }
-
- model.makeValue("/root/send/savedata", tmpSaveData);
- submit("TXMRC00403");
-
- }
- }
- /****************************************************************************************
- * Components : Tab
- * Components ID : switch1
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 탭 변경시
- ****************************************************************************************/
- function group3_group2_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- btn_x_keepchrt.visible = true;
-
- break;
-
- case 1 :
- btn_x_keepchrt.visible = false;
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_x_rtnchrt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기록실반납버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_x_rtnchrt_onclick(obj:Button, e:ClickEventInfo)
- {
- var icnt = 0;
-
- var tmpSaveData = "m▦movehistseqno▦recvtrgtdeptid▦sendmanid▦chrtseqno";
- var sendmanid = model.getValue("/root/main/condition/sendmanid");
-
- if(sendmanid == ""){
- window.alert("보내는이 ID를 입력해 주세요", "차트전달처리", 0 | 64);
- model.setFocus("ipt_sendmanid");
- return;
- }
-
- // var recvtrgtdeptid = "3230000000"; //의료정보팀 부서코드.
- var deptcd = "3230000000"; //의료정보팀 부서코드.
-
- for ( var i= 1; i< grd_sendchrtlist.rows; i++)
- {
- var tmp = grd_sendchrtlist.valueMatrix(i, 1);
- if(tmp == "Y"){
- //grd_recvchrtlist.rowStatus(i) = 2;
- var movehistseqno = grd_sendchrtlist.valueMatrix(i, 11);
- var chrtseqno = grd_sendchrtlist.valueMatrix(i, 12);
-
- // tmpSaveData = tmpSaveData +"▩i▦" + movehistseqno + "▦" + recvtrgtdeptid + "▦" + sendmanid + "▦" + chrtseqno;
- tmpSaveData = tmpSaveData +"▩i▦" + movehistseqno + "▦" + deptcd + "▦" + sendmanid + "▦" + chrtseqno;
- icnt++;
- }
- }
-
- if(icnt < 1){
- window.alert("반납할 차트를 선택해 주세요", "차트전달처리", 0 | 64);
- return;
- }
-
- model.makeValue("/root/send/savedata", tmpSaveData);
- submit("TXMRC00402");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_x_keepchrt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 차트보관버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_x_keepchrt_onclick(obj:Button, e:ClickEventInfo)
- {
- fKeepChrt();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_r_refresh
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_r_refresh_onclick(obj:Button, e:ClickEventInfo)
- {
- submit("TRMRC00401");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_bcno
- * Event : onkillfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 포커스 아웃시
- ****************************************************************************************/
- function group3_group2_ipt_bcno_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- setInputNodeCurText();
- }
- ]]></Script>
- </Form>
- </FDL>
|