1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPB00300" position="absolute 0 0 1201 787" titletext="슬라이드 재출력" oninit="SMLPB00300_oninit" onload="SMLPB00300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="슬라이드 재출력" class="tit_1" position="absolute 0 0 152 25"/>
- <Button id="btn_save" taborder="1" text="발행" class="btn4" position="absolute 1141 34 1197 56" onclick="btn_save_onclick" anchor="top right"/>
- <Static id="caption11" text="발행순서" class="cell_1" position="absolute 994 37 1059 56" anchor="top right"/>
- <Static id="caption1" text="출력장비" class="cell_1" position="absolute 774 37 839 56" anchor="top right"/>
- <Radio id="radio1" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 1063 38 1133 54" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">역</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo id="cmb_slideqlist" taborder="3" innerdataset="ds_init_cmb_slideqlist" codecolumn="eqseqno" datacolumn="eqnm" position="absolute 845 37 979 56" anchor="top right"/>
- <Combo id="combo3" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 671 36 761 55" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn"/>
- </Row>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">CELL블럭</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">가상블럭</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_excel" taborder="5" text="EXCEL저장" class="btn7" position="absolute 2 34 94 56" onclick="btn_excel_onclick"/>
- <Button id="btn_prt" taborder="6" text="출력" class="btn6" position="absolute 97 34 153 56" onclick="btn_prt_onclick"/>
- <Button id="btn_outoch2" taborder="7" text="자동변환Off" class="btn2" visible="false" position="absolute 1107 131 1193 150" onclick="btn_outoch2_onclick" anchor="top right"/>
- <Button id="btn_outoch1" taborder="8" text="자동변환On" class="btn2" position="absolute 1107 131 1193 150" onclick="btn_outoch1_onclick" anchor="top right"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 4 150 1198 156" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption3" text="슬라이드 목록" class="tit_2" position="absolute 5 133 109 150"/>
- <Grid id="grd_slidlist" class="datagrid2" taborder="10" binddataset="ds_grd_slidlist" useinputpanel="false" position="absolute 4 154 1198 784" autofittype="col" anchor="all" onrbuttonup="grd_slidlist_onrbuttonup" selecttype="multirow" onrbuttondown="grd_slidlist_onrbuttondown" cellsizingtype="both" autosizingtype="row" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="68"/>
- <Column size="87"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="292"/>
- <Column size="230"/>
- <Column size="347"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="선택"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="병리번호"/>
- <Cell col="4" text="접수일자"/>
- <Cell col="5" text="병리번호"/>
- <Cell col="6" text="Block번호"/>
- <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="Cassette 번호"/>
- <Cell col="17" text="Cassette 내용"/>
- <Cell col="18" text="Cassette Type"/>
- <Cell col="19" text="개별 선택"/>
- <Cell col="20" text="슬라이드 번호"/>
- <Cell col="21" text="슬라이드 Type"/>
- <Cell col="22" text="Comment"/>
- <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="relaptno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:grupchoi"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:ptno"/>
- <Cell col="4" text="bind:acptdd"/>
- <Cell col="5" class="text_center" text="bind:ptnodisp"/>
- <Cell col="6" displaytype="text" edittype="text" style="align:center middle;" class="text_center" text="bind:prtnblocnm"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:slidcnts"/>
- <Cell col="8" text="bind:grosdrnm"/>
- <Cell col="9" text="bind:pid"/>
- <Cell col="10" text="bind:hngnm"/>
- <Cell col="11" text="bind:sexage"/>
- <Cell col="12" style="align:center middle;" class="text_center" text="bind:testengnm" wordwrap="both" autosizerow="limitmin"/>
- <Cell col="13" class="text_center" text="bind:spcnm"/>
- <Cell col="14" class="text_center" text="bind:spcseqnm"/>
- <Cell col="15" class="text_center" text="bind:spcseqno"/>
- <Cell col="16" class="text_center" text="bind:csteno"/>
- <Cell col="17" text="bind:cstecnts"/>
- <Cell col="18" displaytype="combo" edittype="combo" text="bind:cstekindcd"/>
- <Cell col="19" displaytype="checkbox" edittype="checkbox" text="bind:indcasechoi"/>
- <Cell col="20" class="text_center" text="bind:slidno"/>
- <Cell col="21" displaytype="combo" edittype="combo" text="bind:slidkindcd"/>
- <Cell col="22" text="bind:cmt"/>
- <Cell col="23" displaytype="combo" edittype="combo" text="bind:hosinhosoutflagcd"/>
- <Cell col="24" displaytype="combo" edittype="combo" text="bind:lendflagcd"/>
- <Cell col="25" text="bind:wardnmroom"/>
- <Cell col="26" text="bind:deptnm"/>
- <Cell col="27" text="bind:orddrnm"/>
- <Cell col="28" text="bind:acptnm"/>
- <Cell col="29" text="bind:readdrnm"/>
- <Cell col="30" text="bind:choinm"/>
- <Cell col="31" text="bind:rsltrgstnm"/>
- <Cell col="32" text="bind:spcacptdd"/>
- <Cell col="33" text="bind:spcacptno"/>
- <Cell col="34" text="bind:acptno"/>
- <Cell col="35" text="bind:testcd"/>
- <Cell col="36" text="bind:acptitemno"/>
- <Cell col="37" text="bind:relaptno"/>
- <Cell col="38" text="bind:reladispptno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <ActiveX id="socket" visible="false" position="absolute 308 122 356 152" progid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" useautobitmapcache="1" anchor="default" taborder="11" OnError="socket_OnError" OnClose="socket_OnClose" OnConnect="socket_OnConnect"/>
- <Combo id="cmb_prnteqmt" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 693 126 827 145" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">슬라이드 라벨러</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">라벨 프린터1</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">라벨 프린터2</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_clear" taborder="13" text="초기화" class="btn2" position="absolute 1051 131 1104 150" onclick="btn_clear_onclick" anchor="top right"/>
- <Combo id="cmb_slidcnts" taborder="14" innerdataset="@ds_resncdlist" codecolumn="resncnts" datacolumn="resncnts" position="absolute 201 127 301 146" oncloseup="cmb_slidcnts_oncloseup"/>
- <Div id="group2" taborder="15" class="div_SA2" position="absolute 3 60 1199 113" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 773 18 845 35" anchor="top right"/>
- <Static id="caption4" text="병리번호 :" class="search_name" position="absolute 16 6 102 23" anchor="default"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 967 19 979 36" anchor="top right"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 5 1110 48" anchor="top right"/>
- <Calendar id="ipt_acptddfrom" taborder="1" class="input_s_essential" position="absolute 854 17 962 36" mask="yyyy-mm-dd" anchor="top right"/>
- <Calendar id="ipt_acptddto" taborder="2" class="input_s_essential" position="absolute 983 17 1090 36" mask="yyyy-mm-dd" anchor="top right" onkeyup="group2_ipt_acptddto_onkeyup"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 16 1179 38" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Static id="caption8" text="슬라이드 종류 :" class="search_name" position="absolute 16 30 133 47" anchor="default"/>
- <Combo id="combo1" taborder="4" innerdataset="ds_init_combo1" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 107 5 268 24" anchor="default"/>
- <Edit id="ipt_fromptno" taborder="5" class="text_center" position="absolute 301 5 351 24" anchor="default"/>
- <Static id="caption7" text="~" class="search_no_b" position="absolute 354 5 366 22" anchor="default"/>
- <Edit id="input2" taborder="6" class="text_center" position="absolute 399 5 449 24" anchor="default"/>
- <Edit id="ipt_toyear" taborder="7" class="text_center" position="absolute 369 5 396 24" anchor="default"/>
- <Edit id="ipt_fromyear" taborder="8" class="text_center" position="absolute 271 5 298 24" anchor="default"/>
- <cp_checkboxList id="checkboxList" taborder="9" scrollbars="none" position="absolute 132 30 893 48" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnonm" type="STRING"/>
- <Column id="ptnocd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_slidlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grupchoi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="ptnodisp" type="STRING"/>
- <Column id="prtnblocnm" type="STRING"/>
- <Column id="slidcnts" type="STRING"/>
- <Column id="grosdrnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="testengnm" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="spcseqnm" type="STRING"/>
- <Column id="spcseqno" type="STRING"/>
- <Column id="csteno" type="STRING"/>
- <Column id="cstecnts" type="STRING"/>
- <Column id="cstekindcd" type="STRING"/>
- <Column id="indcasechoi" type="STRING"/>
- <Column id="slidno" type="STRING"/>
- <Column id="slidkindcd" type="STRING"/>
- <Column id="cmt" type="STRING"/>
- <Column id="hosinhosoutflagcd" type="STRING"/>
- <Column id="lendflagcd" type="STRING"/>
- <Column id="wardnmroom" type="STRING"/>
- <Column id="deptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="acptnm" type="STRING"/>
- <Column id="readdrnm" type="STRING"/>
- <Column id="choinm" type="STRING"/>
- <Column id="rsltrgstnm" type="STRING"/>
- <Column id="spcacptdd" type="STRING"/>
- <Column id="spcacptno" type="STRING"/>
- <Column id="acptno" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="acptitemno" type="STRING"/>
- <Column id="relaptno" type="STRING"/>
- <Column id="reladispptno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_slidcnts" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="resncnts" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_slideqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="eqnm" type="STRING"/>
- <Column id="eqseqno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hosoenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="lendrtnterm" type="STRING" size="256"/>
- <Column id="recvqualmthdcd" type="STRING" size="256"/>
- <Column id="plgydeptcd" type="STRING" size="256"/>
- <Column id="plgyteamcd" type="STRING" size="256"/>
- <Column id="doctjobgradcd" type="STRING" size="256"/>
- <Column id="teamjobgradcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="detlrefcrite" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="prtndirect" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prtndirect">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256" sumtext="선택"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="baseflagcd" type="STRING" size="256" sumtext="구분코드"/>
- <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
- <Column id="resncnts" type="STRING" size="256" sumtext="사유내용"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_caeqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="eqnm" type="STRING" size="256" sumtext="장비명"/>
- <Column id="eqip" type="STRING" size="256" sumtext="장비ip"/>
- <Column id="eqport" type="STRING" size="256" sumtext="장비port"/>
- <Column id="eqflag" type="STRING" size="256" sumtext="1:카세트, 2:슬라이드"/>
- <Column id="eqseqno" type="STRING" size="256" sumtext="장비순번"/>
- <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
- <Column id="baseflagcd" type="STRING" size="256" sumtext="기초구분코드"/>
- <Column id="dispseqno" type="STRING" size="256" sumtext="표시순서"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="ptnocode" type="STRING" size="256"/>
- <Column id="fromyear" type="STRING" size="256"/>
- <Column id="fromptno" type="STRING" size="256"/>
- <Column id="toyear" type="STRING" size="256"/>
- <Column id="toptno" type="STRING" size="256"/>
- <Column id="slidkindcd" type="STRING" size="256"/>
- <Column id="prtflag" type="STRING" size="256"/>
- <Column id="eqseqno" type="STRING" size="256"/>
- <Column id="blockind" type="STRING" size="256"/>
- <Column id="slidcmb" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prtflag">0</Col>
- <Col id="slidkindcd">0</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.combo1" propid="value" datasetid="ds_init" columnid="ptnocode"/>
- <BindItem id="item1" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
- <BindItem id="item2" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
- <BindItem id="item3" compid="group2.ipt_toyear" propid="value" datasetid="ds_init" columnid="toyear"/>
- <BindItem id="item4" compid="group2.input2" propid="value" datasetid="ds_init" columnid="toptno"/>
- <BindItem id="item5" compid="cmb_slideqlist" propid="value" datasetid="ds_init" columnid="eqseqno"/>
- <BindItem id="item6" compid="group2.ipt_acptddfrom" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
- <BindItem id="item7" compid="group2.ipt_acptddto" propid="value" datasetid="ds_init" columnid="acpttodd"/>
- <BindItem id="item8" compid="combo3" propid="value" datasetid="ds_init" columnid="blockind"/>
- <BindItem id="item9" compid="radio1" propid="value" datasetid="ds_hidden" columnid="prtndirect"/>
- <BindItem id="item10" compid="cmb_slidcnts" propid="value" datasetid="ds_init" columnid="slidcmb"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LPZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMLPB00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPB00300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_slidlist);
- frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick");
- fExeInitialize();
- }
- /******************************************************************
- * Argument :
- * Description : 초기화함수
- ******************************************************************/
- function fExeInitialize()
- {
- var sCurDate = "";
-
- //----------------
- // 시스템일시 조회
-
- dsf_createDs( "ds_send", [{col : "instcd", vla : sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetHospitalEnvironmentSetInfo";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_hosoenvinfo=hospenvinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00101";
- tranf_submit(oParam);
- dsf_createDs( "ds_send", [{col : "instcd", vla : sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "refflagcd", val : "0"}]);
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_init_combo1=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00109";
- tranf_submit(oParam);
-
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd(ds_hosoenvinfo, ds_hidden);
-
- //------------------------------------------
- // Cassette(블록) 및 Slide(슬라이드) 목록 조회
- //--------------------
- // 작업구분 목록 조회
- dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "baseflagcd", val : "'81', '82', 'S2'"}]);
- var oParam = {};
- oParam.id = "TRLPZ00103";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetReasonCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_resncdlist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00103";
- tranf_submit(oParam);
-
-
- var sProp = "col=7,cellspacing=4,vcellspacing=0,itemWidth=80,itemHeight=22,overflow='visible'";
- ds_resncdlist.filter("baseflagcd!='81'&& baseflagcd !='S2'");
- ds_resncdlist.deleteRow(ds_resncdlist.findRow("resncd","ZZZZ"));
- group2.checkboxList.setInitComp(sProp, ds_resncdlist, "resncd", "resncnts");
- ds_resncdlist.filter("");
-
- ds_resncdlist.filter("baseflagcd!='81'&& baseflagcd !='82'");
- ds_resncdlist.deleteRow(ds_resncdlist.findRow("resncd","ZZZZ"));
-
- sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
-
- //슬라이드 장비 조회
- dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "baseflagcd", val : "EQ"}
- ,{col : "seaflagcd", val : "0"}]); //"0:전체, 1:카세트, 2:슬라이드"
- var oParam = {};
- oParam.id = "TRLPC01802";
- oParam.service = "plgybaseinfomngtapp.HospEnvSet";
- oParam.method = "reqGetEqList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_caeqlist=caeqlist ds_init_cmb_slideqlist=slideqlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPC01802";
- tranf_submit(oParam);
-
- //------------
- // 초기값 설정
- var currentDate = new Date(sCurDate.substr(0,4), sCurDate.substr(4,2) -1, sCurDate.substr(6,2));
- ds_init.setColumn(0, "ptnocode", "S");
- ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "fromptno", "");
- ds_init.setColumn(0, "toptno", "");
- ds_init.setColumn(0, "acptfromdd", currentDate.getAddDate(-3,"D").getDateFormat("YYYYMMDD"));
- ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
- ds_init.setColumn(0, "slidkindcd", ds_resncdlist.getColumn(1, "resncd"));
- ds_init.setColumn(0, "prtflag", "1");
- ds_init.setColumn(0, "eqseqno", ds_init_cmb_slideqlist.getColumn(0, "eqseqno"));
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드 목록 조회 처리 함수
- ******************************************************************/
- function fGetSlideList()
- {
- var re = / /g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
- var sSlidKindCd = String(group2.checkboxList.getData());
- var sSysDD = ds_data_sysdtinfo.getColumn(0, "sysdd");
- var sTemp = "";
- var sFromDD = ds_init.getColumn(0, "acptfromdd");
- var sToDD =ds_init.getColumn(0, "acpttodd");
- var sCsteno = "";
- // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
- sSlidKindCd = "'" + sSlidKindCd.replace(re, "','") + "'";
-
- //------------------------------------------------
- if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
- {
- ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromyear");
- ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toyear")))
- {
- ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toyear");
- ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
- }
-
- if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
- {
- ds_init.setColumn(0, "fromptno", "000000");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromptno");
- ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toptno")))
- {
- ds_init.setColumn(0, "toptno", "999999");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toptno");
- ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- ds_send.clear();
- sTemp = ds_init.getColumn(0, "ptnocode");
-
- //FSP와 FS 변경 기능 추가
- if(ds_init.getColumn(0, "blockind") == "0")
- {
- sCsteno = "999"; // 가상블럭을 제외하고 모두 조회
- }
- else if(ds_init.getColumn(0, "blockind") == "1")
- {
- sCsteno = "000"; // 가상블럭만 조회
- }
- dsf_createDsRow( "ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")} // 기관코드
- ,{col : "ptnocode", val : sTemp.replace("-", "")}
- ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
- ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
- ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
- ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
- ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")} // 접수시작일자
- ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")} // 접수종료일자
- ,{col : "slidkindcd", val : sSlidKindCd} // 슬라이드 종류
- ,{col : "csteno", val : sCsteno}]);
-
- //--------------------
- //submit("TRLPB00301");
- var oParam = {};
- oParam.id = "TRLPB00301";
- oParam.service = "plgycsteslidmngtapp.SpcCsteSlid";
- oParam.method = "reqGetBatchSlideList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_slidlist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPB00301";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : 자동변환On/Off
- ******************************************************************/
- function fExeIssOutoChange(pFlag)
- {
- var sPrtnblocnm = "";
- var sPrt1 = "";
- var sPrt2 = "";
- for(var iRowNo = 0; iRowNo <= ds_grd_slidlist.rowcount; iRowNo++)
- {
- if(ds_grd_slidlist.getColumn(iRowNo, "grupchoi") == 1)
- {
- if(pFlag == "On")
- {
- sPrtnblocnm = ds_grd_slidlist.getColumn(iRowNo, "prtnblocnm");
- sPrt1 = sPrtnblocnm.substring(0, 3);
- sPrt2 = sPrtnblocnm.substring(3 , sPrtnblocnm.length);
- if(sPrt1 == "FSP")
- {
- sPrtnblocnm = "FS" + sPrt2;
- }
- ds_grd_slidlist.setColumn(iRowNo, "prtnblocnm", sPrtnblocnm);
- }
- else if(pFlag == "Off")
- {
- sPrtnblocnm = ds_grd_slidlist.getColumn(iRowNo, "prtnblocnm");
- sPrt1 = sPrtnblocnm.substring(0, 2);
- sPrt2 = sPrtnblocnm.substring(2 , sPrtnblocnm.length);
- if(sPrt1 == "FS" && sPrtnblocnm.substring(0, 3) != "FSP")
- {
- sPrtnblocnm = "FSP" + sPrt2;
- }
- ds_grd_slidlist.setColumn(iRowNo, "prtnblocnm", sPrtnblocnm);
- }
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 블록번호, 슬라이드내용 일괄 입력
- ******************************************************************/
- function fSetBlocSlidCnt(pFlag)
- {
- for(var iRowNo = 0; iRowNo <= ds_grd_slidlist.rowcount; iRowNo++)
- {
- if(ds_grd_slidlist.getColumn(iRowNo, "grupchoi") == 1)
- {
- if(pFlag == "C")
- {
- ds_grd_slidlist.setColumn(iRowNo, "slidcnts", ds_init.getColumn(0, "slidcmb"));
- }
-
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드 목록을 장비에 출력 처리 함수
- ******************************************************************/
- function fExeSlidIss()
- {
- var sInfoNode = ds_hosoenvinfo;
- var sSlidBcIP = "";
- var sSlidBcPort = "";
- //장비IP set
- for(var iRowNo = 0; iRowNo < ds_init_cmb_slideqlist.rowcount; iRowNo++)
- {
- if(ds_init.getColumn(0, "eqseqno") == ds_init_cmb_slideqlist.getColumn(iRowNo, "eqseqno"))
- {
- sSlidBcIP = ds_init_cmb_slideqlist.getColumn(iRowNo, "eqip");
- sSlidBcPort = ds_init_cmb_slideqlist.getColumn(iRowNo, "eqport");
- }
- }
- trace("sSlidBcIP="+sSlidBcIP);
- trace("sSlidBcPort="+sSlidBcPort);
- //----------------------------------------
- if(utlf_isNull(sSlidBcIP) || sSlidBcIP == "-")
- {
- sysf_messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (utlf_isNull(sSlidBcPort) || sSlidBcPort == "-")
- {
- sysf_messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //-------------------------------------
- socket.connect(sSlidBcIP, sSlidBcPort);
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드재출력화면 출력 처리 function
- ******************************************************************/
- function fExeWorkListPrnt()
- {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
-
- rptf_setNodeListToDOM(objDOM, "/root/main/slidinfo/slidlist", ds_grd_slidlist); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPLPB00300"],[objParam], option);
- }
- /******************************************************************
- * Argument :
- * Description : 조회버튼
- ******************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var pos = grd_slidlist.vscrollbar.pos;
- fGetSlideList();
- grd_slidlist.vscrollbar.pos = pos;
- }
- function group2_ipt_acptddto_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetSlideList();
- }
- }
- /******************************************************************
- * Argument :
- * Description : 초기화버튼
- ******************************************************************/
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_slidlist.clearData();
- }
- /******************************************************************
- * Argument :
- * Description : 자동변환On
- ******************************************************************/
- function btn_outoch1_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_outoch1.visible = false;
- btn_outoch2.visible = true;
- fExeIssOutoChange("On");
- }
- /******************************************************************
- * Argument :
- * Description : 자동변환Off
- ******************************************************************/
- function btn_outoch2_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_outoch1.visible = true;
- btn_outoch2.visible = false;
- fExeIssOutoChange("Off");
- }
- /******************************************************************
- * Argument :
- * Description : 블록번호, 슬라이드내용 일괄 입력
- ******************************************************************/
- function cmb_slidcnts_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- //fSetBlocSlidCnt("C");
- }
- /******************************************************************
- * Argument :
- * Description : 발행버튼
- ******************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var pos = grd_slidlist.vscrollbar.pos;
- fExeSlidIss();
- //fGetSlideList(); //발행후 재조회
- grd_slidlist.vscrollbar.pos = pos;
- }
- /******************************************************************
- * Argument :
- * Description : EXCEL저장 버튼
- ******************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_slidlist, "슬라이드 재출력");
- }
- /******************************************************************
- * Argument :
- * Description : 출력 버튼
- ******************************************************************/
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeWorkListPrnt();
- }
- /******************************************************************
- * Argument :
- * Description : 우클릭 조회
- ******************************************************************/
- function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- if(e.id == "fExeLnAdd")
- {
- fExeLnAdd(); //한줄삽입
- }
- else if(e.id == "fExeLnAddLast")
- {
- fExeLnAddLast(); //끝삽입
- }
- else if(e.id == "fExeLnDel")
- {
- fExeLnDel(); //한줄삭제
- }
- else if(e.id == "fSelectList")
- {
- fSelectList(); //선택
- }
- else if(e.id == "fDeSelectList")
- {
- fDeSelectList(); //해제
- }
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드 목록에 한출 삽입 처리 함수
- ******************************************************************/
- function fExeLnAdd()
- {
- var strNode = ds_grd_slidlist;
- var iRowNo = 0;
-
- if(ds_grd_slidlist.rowposition < 0)
- {
- sysf_messageBox("삽입 위치를 선택", "C002");
- return false;
- }
- else
- {
- iRowNo = ds_grd_slidlist.rowposition + 1;
- ds_grd_slidlist.insertRow(iRowNo);
-
- //-------------------------
- // 상위 슬라이드 정보를 복사
- ds_grd_slidlist.setColumn(iRowNo, "grupchoi", 0);
- ds_grd_slidlist.setColumn(iRowNo, "instcd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "instcd"));
- ds_grd_slidlist.setColumn(iRowNo, "ptno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "ptno"));
- ds_grd_slidlist.setColumn(iRowNo, "ptnodisp", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "ptnodisp"));
- ds_grd_slidlist.setColumn(iRowNo, "spcnm", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "spcnm"));
- ds_grd_slidlist.setColumn(iRowNo, "spcseqno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "spcseqno"));
- ds_grd_slidlist.setColumn(iRowNo, "csteno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "csteno"));
- ds_grd_slidlist.setColumn(iRowNo, "cstecnts", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "cstecnts"));
- ds_grd_slidlist.setColumn(iRowNo, "cstekindcd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "cstekindcd"));
- ds_grd_slidlist.setColumn(iRowNo, "indcasechoi", false);
- ds_grd_slidlist.setColumn(iRowNo, "slidno", "-");
- ds_grd_slidlist.setColumn(iRowNo, "slidcnts", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "slidcnts"));
- ds_grd_slidlist.setColumn(iRowNo, "slidkindcd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "slidkindcd"));
- ds_grd_slidlist.setColumn(iRowNo, "cmt", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "cmt"));
- ds_grd_slidlist.setColumn(iRowNo, "hosinhosoutflagcd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "cmt"));
- ds_grd_slidlist.setColumn(iRowNo, "lendflagcd", "1");
- ds_grd_slidlist.setColumn(iRowNo, "spcacptdd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "spcacptdd"));
- ds_grd_slidlist.setColumn(iRowNo, "spcacptno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "spcacptno"));
- ds_grd_slidlist.setColumn(iRowNo, "acptdd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "acptdd"));
- ds_grd_slidlist.setColumn(iRowNo, "acptno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "acptno"));
- ds_grd_slidlist.setColumn(iRowNo, "testcd", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "testcd"));
- ds_grd_slidlist.setColumn(iRowNo, "acptitemno", ds_grd_slidlist.getColumn( (ds_grd_slidlist.rowposition-1), "acptitemno"));
- }
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드 목록에 한출 추가 처리 함수
- ******************************************************************/
- function fExeLnAddLast()
- {
- ds_grd_slidlist.addRow();
- }
- /******************************************************************
- * Argument :
- * Description : 슬라이드 목록에 한출 삭제 처리 함수
- ******************************************************************/
- function fExeLnDel()
- {
- if(ds_grd_slidlist.rowposition < 0)
- {
- sysf_messageBox("삭제 위치를 선택", "C002");
- return false;
- }
- else
- {
- //--------------------------
- ds_grd_slidlist.deleteRow(ds_grd_slidlist.rowposition);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 다중 선택 함수
- ******************************************************************/
- function fSelectList()
- {
- var iFirstRow = grd_slidlist.selectstartrow;
- var iLasrRow = grd_slidlist.selectendrow;
-
- iFirstRow = iFirstRow;
-
- var iRowNo;
- for(iRowNo = iLasrRow; iRowNo >= iFirstRow; iRowNo--)
- {
- ds_grd_slidlist.setColumn(iRowNo, "grupchoi", "1");
- }
- }
- /******************************************************************
- * Argument :
- * Description : 다중 해제 함수
- ******************************************************************/
- function fDeSelectList()
- {
-
- var iFirstRow = grd_slidlist.selectstartrow;
- var iLasrRow = grd_slidlist.selectendrow;
- var iRowNo;
- for(iRowNo = iLasrRow; iRowNo >= iFirstRow; iRowNo--)
- {
- ds_grd_slidlist.setColumn(iRowNo, "grupchoi", "0");
- }
- }
- /******************************************************************
- * Argument :
- * Description : 우클릭 버튼
- ******************************************************************/
- function grd_slidlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1)
- {
- frmf_setPopupMenuDs( "pmn_popupMenu", [{id: "fExeLnAdd", level: "0", title: "한줄삽입"}
- ,{id: "fExeLnAddLast", level: "0", title: "끝삽입"}
- ,{id: "fExeLnDel", level: "0", title: "한줄삭제"}
- ,{id: "fSelectList", level: "0", title: "선택"}
- ,{id: "fDeSelectList", level: "0", title: "해제"}]);
-
- pmn_popupMenu.trackPopup(e.screenX,e.screenY);
- }
- }
- function socket_OnError(obj:ActiveX, e)
- {
- alert("Error code = " + lError+"\nError Message : "+szMsg);
- socket.close(); // 소켓 닫기
- isConnected = false; // 접속 여부 false
- }
- function socket_OnClose(obj:ActiveX, e)
- {
- trace("socket_Close");
- isConnected = false; // 접속 여부 false
- socket.close();
- //발행후 재조회
- // fGetSlideList();
- }
- function socket_OnConnect(obj:ActiveX, e)
- {
- trace("socket_Connect!");
- fExeSlidSend();
- }
- //슬라이드 목록을 장비에 전송 처리 함수
- function fExeSlidSend()
- {
- var iMaxRowCnt = 0;
- var sSlidNode = ds_grd_slidlist;
- //--------------------------------------
- iMaxRowCnt = ds_grd_slidlist.rowcount;
-
- //정방향
- if(ds_hidden.getColumn(0, "prtndirect") == "1")
- {
- trace("정방향");
- for(var iRowNo = 0; iRowNo < iMaxRowCnt; iRowNo++)
- {
- if(ds_grd_slidlist.getColumn(iRowNo, "grupchoi") == "1")
- {
- sSendMsg = "";
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "ptno") + "▦"; // 병리번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "ptnodisp") + "▦"; // 표시병리번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "spcseqno") + "▦"; // 검체일련번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "csteno") + "▦"; // 블럭번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "slidno") + "▦"; // 슬라이드번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "prtnblocnm") + "▦"; // 블럭내용
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "slidcnts") + "▦"; // 슬라이드내용
-
- // 전송종료여부 설정
- if (iRowNo == iMaxRowCnt)
- {
- sSendMsg += "Y" + "▦";
- }
- else
- {
- sSendMsg += "N" + "▦";
- }
-
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "pid") + "▦"; // 환자번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "hngnm") + "▦"; // 환자명
-
- if(ds_init.getColumn(0, "prtflag") == "0")
- {
- sSendMsg += "SM" + "▩";
- }
- else
- {
- sSendMsg += "SB" + "▩";
- }
- trace("sSendMsg(1) = " + sSendMsg);
- socket.sendString(sSendMsg); // 전송한다.
- }
- }
- }
- //역방향
- else
- {
- trace("역방향");
- for(var iRowNo = iMaxRowCnt -1; iRowNo >= 0; iRowNo --)
- {
- if(ds_grd_slidlist.getColumn(iRowNo, "grupchoi") == "1")
- {
- sSendMsg += ds_grd_slidlist.getColumn(0, "ptno") + "▦"; // 병리번호
- sSendMsg += ds_grd_slidlist.getColumn(0, "ptnodisp") + "▦"; // 표시병리번호
- sSendMsg += ds_grd_slidlist.getColumn(0, "spcseqno") + "▦"; // 검체일련번호
- sSendMsg += ds_grd_slidlist.getColumn(0, "csteno") + "▦"; // 블럭번호
- sSendMsg += ds_grd_slidlist.getColumn(0, "slidno") + "▦"; // 슬라이드번호
- sSendMsg += ds_grd_slidlist.getColumn(0, "prtnblocnm") + "▦"; // 블럭내용
- sSendMsg += ds_grd_slidlist.getColumn(0, "slidcnts") + "▦"; // 슬라이드내용
-
- //------------------
- // 전송종료여부 설정
- if (iRowNo == 1)
- {
- sSendMsg += "Y" + "▦";
- }
- else
- {
- sSendMsg += "N" + "▦";
- }
-
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "pid") + "▦"; // 환자번호
- sSendMsg += ds_grd_slidlist.getColumn(iRowNo, "hngnm") + "▦"; // 환자명
-
- if(ds_init.getColumn(0, "prtflag") == "0")
- {
- sSendMsg += "SM" + "▩";
- }
- else
- {
- sSendMsg += "SB" + "▩";
- }
- trace("sSendMsg(2) = " + sSendMsg);
- socket.sendString(sSendMsg); // 전송한다.
- }
- }
- }
-
- ds_grd_slidlist.clearData();
-
- //----------
- // 소켓 닫기
- socket_OnClose();
- }
- function cmb_slidcnts_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
- {
- fSetBlocSlidCnt("C");
- }
- ]]></Script>
- </Form>
- </FDL>
|