12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT01000" position="absolute 0 0 1256 786" titletext="원외처방 사후관리" onload="SMADT01000_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 25 1255 782" anchor="all" positiontype="position" scrollbars="none">
- <Layouts>
- <Layout width="1256" height="757">
- <Static id="Static02" class="sta_DA_box" position="absolute 0 402 1254 504" anchor="left top right"/>
- <Edit id="edt_altedicd" enable="false" position="absolute 89 430 189 450" anchor="left top" imemode="hangul" maxlength="12" taborder="10" tabstop="false" positiontype="position"/>
- <Static id="caption11" class="cell_1" position="absolute 192 428 275 452" style="align:center middle;" anchor="left top" text="용량" align="align:center middle;" positiontype="position"/>
- <Static id="caption12" class="cell_1" position="absolute 326 428 373 452" style="align:center middle;" anchor="left top" text="단위" align="align:center middle;" positiontype="position"/>
- <Static id="caption14" class="cell_1" position="absolute 192 453 275 477" style="align:center middle;" anchor="left top" text="횟수" align="align:center middle;" positiontype="position"/>
- <Static id="caption15" class="cell_1" position="absolute 326 453 373 477" style="align:center middle;" anchor="left top" text="일수" align="align:center middle;" positiontype="position"/>
- <Static id="caption16" class="cell_1" position="absolute 432 428 484 452" style="align:center middle;" anchor="left top" text="총량" align="align:center middle;" positiontype="position"/>
- <Static id="caption17" class="cell_1" position="absolute 2 453 86 477" style="align:center middle;" anchor="left top" text="용법코드" align="align:center middle;" positiontype="position"/>
- <Static id="caption8" class="cell_1" position="absolute 2 428 86 452" style="align:center middle;" anchor="left top" text="보험등재코드" align="align:center middle;" positiontype="position"/>
- <Shape id="line7" class="line_2" position="absolute 229 480 1201 480" anchor="top right" linetype="horizontal" positiontype="position"/>
- <Static id="caption25" class="cell_1" position="absolute 2 403 86 427" style="align:center middle;" anchor="left top" text="원처방코드" align="align:center middle;" positiontype="position"/>
- <Edit id="edt_prcpcd" enable="false" position="absolute 89 405 189 425" anchor="left top" imemode="hangul" taborder="11" tabstop="false" positiontype="position"/>
- <Static id="caption26" class="cell_1" position="absolute 192 403 275 427" style="align:center middle;" anchor="left top" text="원처방약품명" align="align:center middle;" positiontype="position"/>
- <Edit id="edt_prcpnm" enable="false" position="absolute 278 405 540 425" anchor="left top" imemode="hangul" taborder="12" tabstop="false" positiontype="position"/>
- <Button id="btn_del" class="btn4" position="absolute 1197 380 1253 400" anchor="top right" text="삭제" taborder="9" onclick="group3_btn_del_onclick" positiontype="position"/>
- <Button id="btn_save" class="btn4" position="absolute 1138 380 1194 400" anchor="top right" text="저장" taborder="8" onclick="group3_btn_save_onclick" positiontype="position"/>
- <Button id="button1" class="btn4" position="absolute 1066 380 1135 400" anchor="top right" text="초기화" onclick="group3_button1_onclick" taborder="7" positiontype="position"/>
- <Grid id="grd_druglist" position="absolute 225 83 1254 376" anchor="left top right" binddataset="ds_grid_grd_druglist" ondbclick="grd_druglist_ondbclick" cellsizingtype="both" autofittype="none" autoenter="select" oncelldblclick="group3_grd_druglist_oncelldblclick" taborder="13" positiontype="position" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="97"/>
- <Column size="209"/>
- <Column size="53"/>
- <Column size="42"/>
- <Column size="42"/>
- <Column size="40"/>
- <Column size="53"/>
- <Column size="45"/>
- <Column size="73"/>
- <Column size="257"/>
- <Column size="84"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="약품코드"/>
- <Cell col="2" text="약품명"/>
- <Cell col="3" text="1회용량"/>
- <Cell col="4" text="단위"/>
- <Cell col="5" text="횟수"/>
- <Cell col="6" text="일수"/>
- <Cell col="7" colspan="2" text="총량"/>
- <Cell col="9" text="용법코드"/>
- <Cell col="10" text="용법"/>
- <Cell col="11" text="대체유무"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" style="align:left;" text="bind:prcpcd"/>
- <Cell col="2" style="align:left;" text="bind:prcpnm"/>
- <Cell col="3" style="align:right;" text="bind:prcpqty"/>
- <Cell col="4" style="align:left;" text="bind:prcpvolunit"/>
- <Cell col="5" style="align:right;" text="bind:prcptims"/>
- <Cell col="6" style="align:right;" text="bind:prcpdayno"/>
- <Cell col="7" style="align:right;" text="bind:totqty"/>
- <Cell col="8" style="align:left;" text="bind:totqtyunit"/>
- <Cell col="9" style="align:left;" text="bind:mthdcd"/>
- <Cell col="10" style="align:left top;padding:2 2 0 2;" text="bind:mthdnm" wordwrap="char"/>
- <Cell col="11" text="bind:aftyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption27" class="tit_2" position="absolute 225 62 310 82" text="원외처방" anchor="default" positiontype="position"/>
- <Shape id="line10" class="line_1" position="absolute 225 79 1254 82" anchor="top right" linetype="horizontal" positiontype="position"/>
- <Shape id="line11" class="line_1" position="absolute 0 79 215 82" anchor="default" linetype="horizontal" positiontype="position"/>
- <Static id="caption28" class="tit_2" position="absolute 0 62 85 82" anchor="default" text="투약번호" positiontype="position"/>
- <Grid id="grd_aftlist" position="absolute 0 514 1254 757" anchor="all" onclick="grd_aftlist_onclick" binddataset="ds_grid_grd_aftlist" autoenter="select" cellsizingtype="col" oncellclick="group3_grd_aftlist_oncellclick" taborder="14" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="128"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="40"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="40"/>
- <Column size="37"/>
- <Column size="69"/>
- <Column size="159"/>
- <Column size="153"/>
- <Column size="255"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="원처방코드"/>
- <Cell col="2" text="원처방약품명"/>
- <Cell col="3" text="EDI코드"/>
- <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" displaytype="normal" text="대체사유구분"/>
- <Cell col="13" text="대체상세사유"/>
- <Cell col="14" text="약국명"/>
- <Cell col="15" text="약국연락처"/>
- <Cell col="16" text="제약회사"/>
- <Cell col="17" text="담당자"/>
- <Cell col="18" text="입력일자"/>
- <Cell col="19" text="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left;" text="bind:prcpcd"/>
- <Cell col="2" style="align:left;" text="bind:prcpnm"/>
- <Cell col="3" text="bind:edicd"/>
- <Cell col="4" style="align:left;" text="bind:altdrugnm"/>
- <Cell col="5" style="align:right;" text="bind:drugqty"/>
- <Cell col="6" style="align:right;" text="bind:ordunit"/>
- <Cell col="7" style="align:right;" text="bind:drugtims"/>
- <Cell col="8" style="align:right;" text="bind:drugdays"/>
- <Cell col="9" style="align:right;" text="bind:totdrugqty"/>
- <Cell col="10" style="align:left;" text="bind:drugmthd"/>
- <Cell col="11" displaytype="combo" edittype="none" style="align:left;" text="bind:altresncls" combodataset="ds_init_D_C004" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="12" displaytype="combo" text="bind:altresnflag" combodataset="ds_init_altresnflaginfo" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="13" style="align:left top;" text="bind:altresn" wordwrap="both"/>
- <Cell col="14" style="align:left;" text="bind:pharmnm"/>
- <Cell col="15" style="align:left;" text="bind:pharmtel"/>
- <Cell col="16" style="align:left;" text="bind:prodcmpynm"/>
- <Cell col="17" text="bind:usernm"/>
- <Cell col="18" text="bind:fstrgstdt" mask="@@@@-@@-@@"/>
- <Cell col="19" text="bind:lastupdtdt" mask="@@@@-@@-@@"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit id="edt_ordunit" enable="false" position="absolute 376 430 429 450" anchor="left top" imemode="hangul" taborder="15" tabstop="false" positiontype="position"/>
- <Edit id="edt_drugmthd" enable="false" position="absolute 89 455 189 475" anchor="left top" imemode="hangul" taborder="16" tabstop="false" positiontype="position"/>
- <Static id="caption29" class="cell_1" position="absolute 2 478 86 502" style="align:center middle;" anchor="left top" text="용법" align="align:center middle;" positiontype="position"/>
- <Edit id="edt_drugmthdnm" enable="false" position="absolute 89 480 323 502" anchor="left top" imemode="hangul" taborder="17" tabstop="false" positiontype="position"/>
- <Shape id="line4" class="line_1" position="absolute 228 404 1201 404" anchor="top right" linetype="horizontal" positiontype="position"/>
- <Shape id="line5" class="line_2" position="absolute 228 456 1201 456" anchor="top right" linetype="horizontal" positiontype="position"/>
- <Shape id="line8" class="line_3" position="absolute 0 510 1254 513" anchor="top right" linetype="horizontal" positiontype="position"/>
- <Edit id="edt_prodcmpynm" class="input_default" taborder="1" position="absolute 1077 405 1254 425" anchor="left top right" imemode="hangul" lengthunit="utf8" maxlength="100" positiontype="position"/>
- <Static id="caption31" class="cell_1" position="absolute 980 403 1072 427" style="align:center middle;" anchor="left top" text="제약회사" align="align:center middle;" positiontype="position"/>
- <Edit id="edt_altdrugnm" class="input_default" taborder="0" position="absolute 632 405 976 425" anchor="left top" imemode="hangul" lengthunit="utf8" maxlength="200" positiontype="position"/>
- <Static id="caption32" class="cell_1" position="absolute 326 478 629 502" style="align:center middle;" anchor="left top" text="대체상세사유 (※30자 이하로만 입력하여 주세요.)" align="align:center middle;" wordwrap="none" positiontype="position"/>
- <Static id="caption33" class="cell_1" position="absolute 543 403 629 427" style="align:center middle;" anchor="left top" text="대체약품명" align="align:center middle;" positiontype="position"/>
- <Static id="caption34" class="cell_1" position="absolute 543 428 629 452" style="align:center middle;" anchor="left top" text="약국명" align="align:center middle;" positiontype="position"/>
- <Static id="caption35" class="cell_1" position="absolute 980 428 1072 452" style="align:center middle;" anchor="left top" text="약국연락처" align="align:center middle;" positiontype="position"/>
- <Edit id="edt_pharmnm" class="input_default" taborder="2" position="absolute 632 430 976 450" anchor="left top" imemode="hangul" lengthunit="utf8" maxlength="100" positiontype="position"/>
- <Edit id="edt_pharmtel" class="input_default" taborder="3" position="absolute 1077 430 1254 450" anchor="left top right" imemode="hangul" maxlength="20" lengthunit="utf8" inputtype="number" positiontype="position"/>
- <Static id="caption38" class="cell_1" position="absolute 543 453 629 477" style="align:center middle;" anchor="left top" text="대체사유" align="align:center middle;" positiontype="position"/>
- <Div id="group5" taborder="19" style="align:center top;" class="div_SA" position="absolute 0 0 521 59" anchor="default">
- <Layouts>
- <Layout>
- <Static id="caption2" text="처방일자" class="search_name" position="absolute 272 10 346 30" anchor="default" positiontype="position"/>
- <Calendar id="cal_prcpdd1" taborder="0" class="input_essential" position="absolute 346 10 448 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true" onchanged="Calendar_onchanged" positiontype="position"/>
- <MaskEdit id="edt_srchdrugno" taborder="3" mask="99999" class="input_search" position="absolute 346 33 448 53" anchor="default" imemode="hangul" maxlength="5" autoselect="true" onkeyup="group3_group5_edt_srchdrugno_onkeyup" positiontype="position"/>
- <Static id="caption4" text="투약번호" class="search_name" position="absolute 273 34 347 54" anchor="default" positiontype="position"/>
- <Button id="btn_sea" taborder="5" text="조회" class="btn1" position="absolute 457 20 513 40" anchor="top right" onclick="group3_group5_btn_sea_onclick" positiontype="position"/>
- <Static id="caption13" text="등록번호 :" class="search_name" position="absolute 7 35 85 52" anchor="default"/>
- <Edit id="ipt_pid" taborder="6" position="absolute 93 33 173 52" anchor="default" onkeydown="group3_group5_ipt_pid_onkeydown"/>
- <Button id="btn_ptbs_search" taborder="7" onclick="group2_btn_ptbs_search_onclick" class="icon_search" position="absolute 176 35 192 51" anchor="default"/>
- <Edit id="ipt_srchhngnm" taborder="8" readonly="true" position="absolute 195 33 259 52" anchor="default"/>
- <CheckBox id="chk_srchpid" taborder="9" text="등록번호만으로 조회" position="absolute 16 10 167 27" anchor="default" truevalue="Y" value="Y"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption20" text="대체처방" class="tit_2" position="absolute 0 384 95 404" anchor="left top right" positiontype="position"/>
- <Grid id="grd_drugnolist" position="absolute 0 83 215 376" onclick="grd_drugnolist_onclick" binddataset="ds_grid_grd_drugnolist" autoenter="select" cellsizingtype="both" taborder="18" oncellclick="group3_grd_drugnolist_oncellclick" anchor="default" positiontype="position" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="처방일자"/>
- <Cell col="3" text="투약번호"/>
- <Cell col="4" edittype="none" text="처방변경사유"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" style="align:left;" text="bind:pid"/>
- <Cell col="2" displaytype="date" style="align:left;" text="bind:drugdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="3" style="align:left;" text="bind:drugno"/>
- <Cell col="4" displaytype="combo" edittype="none" style="align:left;" text="bind:altresncls" combodataset="ds_init_D_C004" combocodecol="cdid" combodatacol="cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <MaskEdit id="mae_drugqty" taborder="20" mask="#,###" enable="false" position="absolute 278 430 323 450" tabstop="false" anchor="left top"/>
- <MaskEdit id="mae_totdrugqty" taborder="21" mask="#,###" enable="false" position="absolute 487 430 540 450" tabstop="false" anchor="left top"/>
- <MaskEdit id="mae_drugtims" taborder="22" mask="#,###" enable="false" position="absolute 278 455 323 475" tabstop="false" anchor="left top"/>
- <MaskEdit id="mae_drugdays" taborder="23" mask="#,###" enable="false" position="absolute 376 455 429 475" tabstop="false" anchor="left top"/>
- <Combo id="cmb_altresncls" taborder="4" class="combo_default" position="absolute 632 455 976 475" anchor="left top right" codecolumn="codecolumn" datacolumn="datacolumn" autoselect="true" onkeydown="Combo_onkeydown">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">대체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">변경</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="Static00" position="absolute 526 0 1254 59" class="sta_DA_box" anchor="default"/>
- <Static id="Static01" text="등록번호" position="absolute 530 6 597 29" class="cell_1" anchor="default"/>
- <Edit id="opt_pid" taborder="24" position="absolute 600 8 735 27" anchor="default" class="output" readonly="true"/>
- <Static id="Static03" text="수납일자" class="cell_1" position="absolute 530 32 597 55" anchor="default"/>
- <Edit id="opt_drugdd" taborder="25" position="absolute 600 34 735 53" readonly="true" anchor="default" class="output"/>
- <Static id="Static04" text="투약번호" class="cell_1" position="absolute 746 32 813 55" anchor="default"/>
- <Static id="Static05" text="환자명" class="cell_1" position="absolute 746 6 813 29" anchor="default"/>
- <Edit id="opt_drugno" taborder="26" position="absolute 816 34 951 53" readonly="true" anchor="default" class="output" password="false"/>
- <Edit id="opt_hngnm" taborder="27" position="absolute 816 8 951 27" readonly="true" anchor="default" class="output" password="false"/>
- <Static id="Static06" text="진료의" class="cell_1" position="absolute 962 32 1029 55" anchor="default"/>
- <Static id="Static07" text="진료과" class="cell_1" position="absolute 962 6 1029 29" anchor="default"/>
- <Edit id="opt_orddrnm" taborder="28" position="absolute 1032 34 1167 53" readonly="true" anchor="default" class="output" password="false"/>
- <Edit id="opt_orddeptnm" taborder="29" position="absolute 1032 8 1167 27" readonly="true" anchor="default" class="output" password="false"/>
- <Static id="caption00" text="대체사유구분" class="cell_1" position="absolute 980 454 1072 478" anchor="left top" style="align:center middle;"/>
- <Combo id="combo_altresnflag" taborder="30" position="absolute 1077 454 1253 475" class="combo_default" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">재고부족</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">동일성분대체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">99</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Shape id="line00" class="line_1" position="absolute 225 80 1254 83" anchor="top right"/>
- <Shape id="line01" class="line_1" position="absolute 0 80 215 83"/>
- <Shape id="line02" class="line_1" position="absolute 225 81 1254 84" anchor="top right"/>
- <Shape id="line03" class="line_1" position="absolute 0 81 215 84"/>
- <Shape id="line06" class="line_3" position="absolute 0 511 1254 514" anchor="top right"/>
- <Shape id="line09" class="line_3" position="absolute 0 512 1254 515" anchor="top right"/>
- <TextArea id="tar_altresn" taborder="6" position="absolute 632 480 1253 502" anchor="left top right" imemode="hangul" maxlength="120" onmouseenter="group3_tar_altresn_onmouseenter" onmouseleave="group3_tar_altresn_onmouseleave" lengthunit="utf8" scrollbars="autovert" wordwrap="word" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="원외처방 사후관리(대체조제 정보)" class="tit_1" position="absolute 0 0 290 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="prcpqty" type="STRING"/>
- <Column id="prcpvolunit" type="STRING"/>
- <Column id="prcptims" type="STRING"/>
- <Column id="prcpdayno" type="STRING"/>
- <Column id="totqty" type="STRING"/>
- <Column id="totqtyunit" type="STRING"/>
- <Column id="mthdcd" type="STRING"/>
- <Column id="mthdnm" type="STRING"/>
- <Column id="aftyn" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_aftlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="edicd" type="STRING"/>
- <Column id="altdrugnm" type="STRING"/>
- <Column id="drugqty" type="STRING"/>
- <Column id="ordunit" type="STRING"/>
- <Column id="drugtims" type="STRING"/>
- <Column id="drugdays" type="STRING"/>
- <Column id="totdrugqty" type="STRING"/>
- <Column id="drugmthd" type="STRING"/>
- <Column id="altresncls" type="STRING"/>
- <Column id="altresnflag" type="STRING"/>
- <Column id="altresn" type="STRING"/>
- <Column id="pharmnm" type="STRING"/>
- <Column id="pharmtel" type="STRING"/>
- <Column id="prodcmpynm" type="STRING"/>
- <Column id="usernm" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_drugnolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="drugdd" type="STRING"/>
- <Column id="drugno" type="STRING"/>
- <Column id="altresncls" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_altresnclsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_altresnflaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_D_C004" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="255"/>
- <Column id="temp4" type="STRING" size="255"/>
- <Column id="temp5" type="STRING" size="255"/>
- <Column id="cdgrupid" type="STRING" size="255"/>
- <Column id="cmt" type="STRING" size="255"/>
- <Column id="lastupdtrid" type="STRING" size="255"/>
- <Column id="fstrgstdt" type="STRING" size="255"/>
- <Column id="fstrgstrid" type="STRING" size="255"/>
- <Column id="lastupdtdt" type="STRING" size="255"/>
- <Column id="cdid" type="STRING" size="255"/>
- <Column id="temp1" type="STRING" size="255"/>
- <Column id="temp2" type="STRING" size="255"/>
- <Column id="bizflag" type="STRING" size="255"/>
- <Column id="temp3" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_D_C005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="255"/>
- <Column id="temp4" type="STRING" size="255"/>
- <Column id="temp5" type="STRING" size="255"/>
- <Column id="cdgrupid" type="STRING" size="255"/>
- <Column id="cmt" type="STRING" size="255"/>
- <Column id="lastupdtrid" type="STRING" size="255"/>
- <Column id="fstrgstdt" type="STRING" size="255"/>
- <Column id="fstrgstrid" type="STRING" size="255"/>
- <Column id="lastupdtdt" type="STRING" size="255"/>
- <Column id="cdid" type="STRING" size="255"/>
- <Column id="temp1" type="STRING" size="255"/>
- <Column id="temp2" type="STRING" size="255"/>
- <Column id="bizflag" type="STRING" size="255"/>
- <Column id="temp3" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_chkrpl" 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">A</Col>
- </Row>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdrugdd" type="STRING" size="256"/>
- <Column id="srchprcpdd1" type="STRING" size="256"/>
- <Column id="srchprcpdd2" type="STRING" size="256"/>
- <Column id="srchdrugno" type="STRING" size="256"/>
- <Column id="srchpid" type="STRING" size="256"/>
- <Column id="chkrpl" type="STRING" size="256"/>
- <Column id="srchpidonly" type="STRING" size="256"/>
- <Column id="srchhngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchpidonly">Y</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="255"/>
- <Column id="orddd" type="STRING" size="255"/>
- <Column id="cretno" type="BIGDECIMAL" size="255"/>
- <Column id="acptseqno" type="BIGDECIMAL" size="255"/>
- <Column id="instcd" type="STRING" size="255"/>
- <Column id="orgorddd" type="STRING" size="255"/>
- <Column id="orgcretno" type="BIGDECIMAL" size="255"/>
- <Column id="calcbaseflag" type="STRING" size="255"/>
- <Column id="calcyn" type="STRING" size="255"/>
- <Column id="ordtm" type="STRING" size="255"/>
- <Column id="centcd" type="STRING" size="255"/>
- <Column id="centernm" type="STRING" size="255"/>
- <Column id="orddeptcd" type="STRING" size="255"/>
- <Column id="subdeptcd" type="STRING" size="255"/>
- <Column id="orddrid" type="STRING" size="255"/>
- <Column id="mskind" type="STRING" size="255"/>
- <Column id="insukind" type="STRING" size="255"/>
- <Column id="suppkind" type="STRING" size="255"/>
- <Column id="specordyn" type="STRING" size="255"/>
- <Column id="fsexamflag" type="STRING" size="255"/>
- <Column id="ordtype" type="STRING" size="255"/>
- <Column id="medamtestmyn" type="STRING" size="255"/>
- <Column id="rsrvflag" type="STRING" size="255"/>
- <Column id="hosoutexptresncd" type="STRING" size="255"/>
- <Column id="clincstdyacptflag" type="STRING" size="255"/>
- <Column id="clincstdyno" type="STRING" size="255"/>
- <Column id="nursacptyn" type="STRING" size="255"/>
- <Column id="nursacptdt" type="STRING" size="255"/>
- <Column id="dracptyn" type="STRING" size="255"/>
- <Column id="dracptdt" type="STRING" size="255"/>
- <Column id="prcpgenryn" type="STRING" size="255"/>
- <Column id="prcpnotoccrresn" type="STRING" size="255"/>
- <Column id="estmspclappyn" type="STRING" size="255"/>
- <Column id="elbulbodstat" type="STRING" size="255"/>
- <Column id="elbulbodstatdt" type="STRING" size="255"/>
- <Column id="histstat" type="STRING" size="255"/>
- <Column id="etcordflag" type="STRING" size="255"/>
- <Column id="hngnm" type="STRING" size="255"/>
- <Column id="sex" type="STRING" size="255"/>
- <Column id="rrgstno1" type="STRING" size="255"/>
- <Column id="rrgstno2" type="STRING" size="255"/>
- <Column id="nonprgresncd" type="STRING" size="255"/>
- <Column id="nonprgresncnts" type="STRING" size="255"/>
- <Column id="age" type="STRING" size="255"/>
- <Column id="ioflag" type="STRING" size="255"/>
- <Column id="mainjudgid" type="STRING" size="255"/>
- <Column id="prcplockid" type="STRING" size="255"/>
- <Column id="tranindd" type="STRING" size="255"/>
- <Column id="orddrnm" type="STRING" size="255"/>
- <Column id="orddeptnm" type="STRING" size="255"/>
- <Column id="rareobstflag" type="STRING" size="255"/>
- <Column id="tranflag" type="STRING" size="255"/>
- <Column id="autoformcd" type="STRING" size="255"/>
- <Column id="prcptdayaftrcptyn" type="STRING" size="255"/>
- <Column id="rcptvipresncd" type="STRING" size="255"/>
- <Column id="rcptvipetcresn" type="STRING" size="255"/>
- <Column id="coopteamcd" type="STRING" size="255"/>
- <Column id="coopteamnm" type="STRING" size="255"/>
- <Column id="scndyn" type="STRING" size="255"/>
- <Column id="specordtypenm" type="STRING" size="255"/>
- <Column id="specordtype" type="STRING" size="255"/>
- <Column id="hometel" type="STRING" size="255"/>
- <Column id="mpphontel" type="STRING" size="255"/>
- <Column id="waitcnt" type="BIGDECIMAL" size="255"/>
- <Column id="editcnt" type="BIGDECIMAL" size="255"/>
- <Column id="endcnt" type="BIGDECIMAL" size="255"/>
- <Column id="bloodtrans" type="STRING" size="255"/>
- <Column id="bloodtransetc" type="STRING" size="255"/>
- <Column id="drgflag" type="STRING" size="255"/>
- <Column id="actlinsuyn" type="STRING" size="255"/>
- <Column id="multiord" type="STRING" size="255"/>
- <Column id="memoyn" type="STRING" size="255"/>
- <Column id="bmtflag" type="STRING" size="255"/>
- <Column id="replyn" type="STRING" size="255"/>
- <Column id="repltypenm" type="STRING" size="255"/>
- <Column id="bfjudgvalue" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_drugListCond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdrugdd" type="STRING" size="256"/>
- <Column id="srchdrugno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_saveData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="drugno" type="INT" size="256"/>
- <Column id="drugseqno" type="INT" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="altedicd" type="STRING" size="256"/>
- <Column id="altdrugnm" type="STRING" size="256"/>
- <Column id="prcpedicd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="drugqty" type="STRING" size="256"/>
- <Column id="cretno" type="INT" size="256"/>
- <Column id="ordunit" type="STRING" size="256"/>
- <Column id="drugtims" type="BIGDECIMAL" size="256"/>
- <Column id="drugdays" type="BIGDECIMAL" size="256"/>
- <Column id="totdrugqty" type="BIGDECIMAL" size="256"/>
- <Column id="drugmthd" type="STRING" size="256"/>
- <Column id="altresncls" type="STRING" size="256"/>
- <Column id="altresnflag" type="STRING" size="256"/>
- <Column id="altresn" type="STRING" size="256"/>
- <Column id="pharmnm" type="STRING" size="256"/>
- <Column id="pharmtel" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="drugmthdnm" type="STRING" size="256"/>
- <Column id="m" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_errlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="drugdd" type="STRING" size="256" sumtext="투약일자"/>
- <Column id="drugno" type="STRING" size="256" sumtext="투약번호"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.edt_prcpcd" propid="value" datasetid="ds_saveData" columnid="prcpcd"/>
- <BindItem id="item2" compid="group3.edt_altedicd" propid="value" datasetid="ds_saveData" columnid="altedicd"/>
- <BindItem id="item3" compid="group3.mae_drugqty" propid="value" datasetid="ds_saveData" columnid="drugqty"/>
- <BindItem id="item4" compid="group3.edt_ordunit" propid="value" datasetid="ds_saveData" columnid="ordunit"/>
- <BindItem id="item1" compid="group3.edt_drugmthd" propid="value" datasetid="ds_saveData" columnid="drugmthd"/>
- <BindItem id="item5" compid="group3.mae_drugtims" propid="value" datasetid="ds_saveData" columnid="drugtims"/>
- <BindItem id="item6" compid="group3.mae_drugdays" propid="value" datasetid="ds_saveData" columnid="drugdays"/>
- <BindItem id="item7" compid="group3.edt_altdrugnm" propid="value" datasetid="ds_saveData" columnid="altdrugnm"/>
- <BindItem id="item8" compid="group3.edt_prodcmpynm" propid="value" datasetid="ds_saveData" columnid="prodcmpynm"/>
- <BindItem id="item9" compid="group3.edt_pharmnm" propid="value" datasetid="ds_saveData" columnid="pharmnm"/>
- <BindItem id="item10" compid="group3.edt_pharmtel" propid="value" datasetid="ds_saveData" columnid="pharmtel"/>
- <BindItem id="item11" compid="group3.cmb_altresncls" propid="value" datasetid="ds_saveData" columnid="altresncls"/>
- <BindItem id="item13" compid="group3.tar_altresn" propid="value" datasetid="ds_saveData" columnid="altresn"/>
- <BindItem id="item14" compid="group3.edt_prcpnm" propid="value" datasetid="ds_saveData" columnid="prcpnm"/>
- <BindItem id="item15" compid="group3.edt_drugmthdnm" propid="value" datasetid="ds_saveData" columnid="drugmthdnm"/>
- <BindItem id="item16" compid="group3.mae_totdrugqty" propid="value" datasetid="ds_saveData" columnid="totdrugqty"/>
- <BindItem id="item17" compid="group3.group5.ipt_pid" propid="value" datasetid="ds_cond" columnid="srchpid"/>
- <BindItem id="item18" compid="group3.group5.ipt_srchhngnm" propid="value" datasetid="ds_cond" columnid="srchhngnm"/>
- <BindItem id="item12" compid="group3.opt_pid" propid="value" datasetid="ds_patdata" columnid="pid"/>
- <BindItem id="item19" compid="group3.opt_hngnm" propid="value" datasetid="ds_patdata" columnid="hngnm"/>
- <BindItem id="item20" compid="group3.opt_orddeptnm" propid="value" datasetid="ds_patdata" columnid="orddeptnm"/>
- <BindItem id="item21" compid="group3.opt_drugdd" propid="value" datasetid="ds_patdata" columnid="drugdd"/>
- <BindItem id="item22" compid="group3.opt_drugno" propid="value" datasetid="ds_patdata" columnid="drugno"/>
- <BindItem id="item23" compid="group3.opt_orddrnm" propid="value" datasetid="ds_patdata" columnid="orddrnm"/>
- <BindItem id="item24" compid="group3.group5.cal_prcpdd1" propid="value" datasetid="ds_cond" columnid="srchdrugdd"/>
- <BindItem id="item25" compid="group3.group5.edt_srchdrugno" propid="value" datasetid="ds_cond" columnid="srchdrugno"/>
- <BindItem id="item26" compid="group3.group5.chk_srchpid" propid="value" datasetid="ds_cond" columnid="srchpidonly"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * File Name : SMADT01000_원외처방사후관리.xfdl
- * Creator :
- * Make Date :
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- var lvnGrdFWid = 215; // 그리드 접은 width
- var lvnGrdSWid = 400; // 그리드 펼쳐진 width
- var lvnSelRow = 0;
- var lvnAreaFoldHei = group3.tar_altresn.position.height;
- var lvnAreaSpreadHei = 50;
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : lf_setLoadData
- * Description : 최초 로드시 호출
- * Argument :
- * :
- * :
- * 예)lf_setLoadData();
- * return type :
- * Creator :
- ****************************************************************************************/
- function lf_setLoadData(){
- group3.group5.cal_prcpdd1.value = utlf_getCurrentDate();
-
- grdf_setRowTypeIcon(group3.grd_aftlist, 0)
-
- var arrParam = [{dsNm: "ds_init_altresnclsinfo", cdGrpId: "A0033"}
- ,{dsNm: "ds_init_altresnflaginfo", cdGrpId: "A0034"}
- ]
- appf_getCodeList(arrParam);
-
- var pamInfoCvs = sysf_getGlobalVariable("paminfo");
-
- ds_paminfo.clearData();
- dsf_setCSVToDs("ds_paminfo",pamInfoCvs);
- group3.group5.cal_prcpdd1.setFocus();
-
- if (!utlf_isNull(pamInfoCvs))
- {
- group3.group5.ipt_pid.value = ds_paminfo.getColumn(0, "pid");
- lf_search();
- }
- var mparam = frmf_getMenuParam();
- if (mparam == "E"){
- group3.btn_save.enable = false;
- group3.btn_del.enable = false;
- }
-
- grdf_setToolTipBind(group3.grd_drugnolist); // tooltip 추가
- grdf_setToolTipBind(group3.grd_druglist); // tooltip 추가
- grdf_setToolTipBind(group3.grd_aftlist); // tooltip 추가
- }
- /****************************************************************************************
- * Components :
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 등록번호 엔터시 조회
- ****************************************************************************************/
- function edt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 ) {
- lf_search();
- }
- }
- // 공통코드 콜백
- function cbf_getAllBizCodeList(){
- //trace(ds_init_D_C004.saveXML())
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMADT01000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMADT01000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- lf_setLoadData();
- }
- // 조회버튼
- function group3_group5_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_search();
- }
- // 조회
- function lf_search(){
- var sDate = group3.group5.cal_prcpdd1.value;
-
- var success = null;
- var srchdrugdd = group3.group5.cal_prcpdd1.value;
- var srchdrugno = group3.group5.edt_srchdrugno.value;
- var srchpid = group3.group5.ipt_pid.value;
- var srchpidonly = group3.group5.chk_srchpid.value ;
-
- // 등록번호로만으로 조회
- if (srchpidonly == "Y") {
- if (utlf_isNull(srchpid) ) {
- sysf_messageBox("등록번호를","C001");
- return;
- }
- } else {
- if (utlf_isNull(srchdrugdd) ) {
- sysf_messageBox("수납일자를","C001");
- return;
- }
-
- if (utlf_isNull(srchdrugno) && utlf_isNull(srchpid)) {
- sysf_messageBox("투약번호나 등록번호를","C001");
- return;
- }
- }
-
- ds_saveData.clearData();
-
- tranf_submit({
- id: "TRADT01001"
- , service: "pharmacyprescriptionapp.AfterMngt"
- , method: "reqGetDrugNoList"
- , inds: "req=ds_cond"
- , outds: "ds_grid_grd_drugnolist=drugnolist "
- , async: false
- , callback: "cbf_callBack"
- , alert: false
- });
- }
- function cbf_callBack(strSvcID, nErrorCode, strErrorMag){
- // if (nErrorCode != 0)
- // {
- // //alert(ErrorMsg);
- // return;
- // }
-
- switch(strSvcID){
- case "TRADT01001": // 조회버튼
- if ( nErrorCode > -1 ) {
- ds_grid_grd_drugnolist.rowposition = 0;
- lf_setDruglistCond(ds_grid_grd_drugnolist.rowposition);
-
- var oParam = {};
- oParam.id = "TRADT01002";
- oParam.service = "pharmacyprescriptionapp.AfterMngt";
- oParam.method = "reqGetDrugDetlList";
- oParam.inds = "req=ds_drugListCond";
- oParam.outds = "ds_grid_grd_druglist=druglist ds_patdata=patdata ds_grid_grd_aftlist=aftlist";
- oParam.async = false;
- oParam.callback = "cbf_callBack";
- tranf_submit(oParam);
-
- }
-
- break;
-
- case "TXADT00101": // 저장
- lf_search();
- if (ds_cond.getColumn(0, "chkrpl") != "N"){
- ds_grid_grd_drugnolist.rowposition = lvnSelRow;
- lvnSelRow = 0;
- }
- break;
-
- case "TXADT00101_D": // 삭제
- lf_search();
- if (ds_cond.getColumn(0, "chkrpl") == "A"){
- ds_grid_grd_drugnolist.rowposition = lvnSelRow;
- lvnSelRow = 0;
- }
-
- break;
-
- default:
-
- break;
- }
- }
- // 원외처방 파라메터 세팅
- function lf_setDruglistCond(row){
- ds_drugListCond.clearData();
- var nRow = ds_drugListCond.addRow();
-
- ds_drugListCond.setColumn(nRow, "srchdrugdd", ds_grid_grd_drugnolist.getColumn(row,"drugdd"));
- ds_drugListCond.setColumn(nRow, "srchdrugno", ds_grid_grd_drugnolist.getColumn(row,"drugno"));
- }
- // 원외처방 그리드 더블클릭
- function group3_grd_druglist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_grid_grd_druglist.getColumn(e.row, "aftyn") == "Y")
- {
- sysf_messageBox("이미 대체된 자료", "E008");
- ds_saveData.clearData();
- return;
- }
-
- lf_setPharmInfo(ds_grid_grd_druglist, e.row);
- }
- // 대체처방 edit group 세팅
- function lf_setPharmInfo(objDs, nRow){
- ds_saveData.clearData();
- ds_saveData.addRow();
-
- ds_saveData.setColumn(0, "drugdd", objDs.getColumn(nRow, "drugdd"));
- ds_saveData.setColumn(0, "drugno", objDs.getColumn(nRow, "drugno"));
- ds_saveData.setColumn(0, "drugseqno", objDs.getColumn(nRow, "drugseqno"));
- ds_saveData.setColumn(0, "prcpcd", objDs.getColumn(nRow, "prcpcd"));
- ds_saveData.setColumn(0, "prcpnm", objDs.getColumn(nRow, "prcpnm"));
- ds_saveData.setColumn(0, "pid", objDs.getColumn(nRow, "pid"));
- ds_saveData.setColumn(0, "orddd", objDs.getColumn(nRow, "orddd"));
- ds_saveData.setColumn(0, "orddrid", objDs.getColumn(nRow, "orddrid"));
- ds_saveData.setColumn(0, "orddeptcd", objDs.getColumn(nRow, "orddeptcd"));
- ds_saveData.setColumn(0, "cretno", objDs.getColumn(nRow, "cretno"));
- ds_saveData.setColumn(0, "altedicd", objDs.getColumn(nRow, "edicd"));
- if (objDs.name == "ds_grid_grd_druglist"){
- ds_saveData.setColumn(0, "ordunit", objDs.getColumn(nRow, "prcpvolunit"));
- ds_saveData.setColumn(0, "drugtims", objDs.getColumn(nRow, "prcptims"));
- ds_saveData.setColumn(0, "drugdays", objDs.getColumn(nRow, "prcpdayno"));
- ds_saveData.setColumn(0, "totdrugqty", objDs.getColumn(nRow, "totqty"));
- ds_saveData.setColumn(0, "drugmthd", objDs.getColumn(nRow, "mthdcd"));
- ds_saveData.setColumn(0, "drugqty", objDs.getColumn(nRow, "prcpqty"));
- ds_saveData.setColumn(0, "drugmthdnm", objDs.getColumn(nRow, "mthdnm"));
- ds_saveData.setColumn(0, "m", "i");
- } else {
- ds_saveData.setColumn(0, "instcd", objDs.getColumn(nRow, "instcd"));
- ds_saveData.setColumn(0, "altresncls", objDs.getColumn(nRow, "altresncls"));
- ds_saveData.setColumn(0, "altresnflag", objDs.getColumn(nRow, "altresnflag"));
- ds_saveData.setColumn(0, "altdrugnm", objDs.getColumn(nRow, "altdrugnm"));
- ds_saveData.setColumn(0, "prcpedicd", objDs.getColumn(nRow, "prcpedicd"));
- ds_saveData.setColumn(0, "altresn", objDs.getColumn(nRow, "altresn"));
- ds_saveData.setColumn(0, "pharmnm", objDs.getColumn(nRow, "pharmnm"));
- ds_saveData.setColumn(0, "prodcmpynm", objDs.getColumn(nRow, "prodcmpynm"));
- ds_saveData.setColumn(0, "drugqty", objDs.getColumn(nRow, "drugqty"));
-
- ds_saveData.setColumn(0, "pharmtel", objDs.getColumn(nRow, "pharmtel"));
- // ds_saveData.setColumn(0, "usernm", objDs.getColumn(nRow, "usernm"));
- // ds_saveData.setColumn(0, "fstrgstdt", objDs.getColumn(nRow, "fstrgstdt"));
- // ds_saveData.setColumn(0, "lastupdtdt", objDs.getColumn(nRow, "lastupdtdt"));
- ds_saveData.setColumn(0, "ordunit", objDs.getColumn(nRow, "ordunit"));
- ds_saveData.setColumn(0, "drugtims", objDs.getColumn(nRow, "drugtims"));
- ds_saveData.setColumn(0, "drugdays", objDs.getColumn(nRow, "drugdays"));
- ds_saveData.setColumn(0, "totdrugqty", objDs.getColumn(nRow, "totdrugqty"));
- ds_saveData.setColumn(0, "drugmthd", objDs.getColumn(nRow, "drugmthd"));
- ds_saveData.setColumn(0, "drugmthdnm", objDs.getColumn(nRow, "drugmthdnm"));
- ds_saveData.setColumn(0, "m", "u");
- }
- }
- // 초기화
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_saveData.clearData();
- }
- // 대체처방 클릭
- function group3_grd_aftlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_setPharmInfo(ds_grid_grd_aftlist, e.row);
- }
- function group3_group5_cmb_chkrpl_onkeydown(obj:Combo, e:KeyEventInfo)
- {
- if(e.keycode == "40") { //아래쪽 방향키 입력시
- obj.dropdown();
- }
- }
- // 저장버튼
- function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (!lf_isValid()) return;
- lvnSelRow = ds_grid_grd_drugnolist.rowposition;
-
- tranf_submit({
- id: "TXADT00101"
- , service: "pharmacyprescriptionapp.AfterMngt"
- , method: "reqExeAftMngt"
- , inds: "req=ds_saveData:U"
- , outds: "item=ds_item"
- , async: false
- , callback: "cbf_callBack"
- , alert: true
- });
- }
- // 저장 유효성 체크
- function lf_isValid(){
- if (utlf_isNull(ds_saveData.getColumn(0, "prcpcd")))
- {
- sysf_messageBox("처리할 처방데이터를", "C002");
- return false;
- }
-
- // if (utlf_isNull(ds_saveData.getColumn(0, "altdrugnm")))
- // {
- // sysf_messageBox("대체약품명은", "I003");
- // return false;
- // }
- if (utlf_isNull(ds_saveData.getColumn(0, "altresncls")))
- {
- sysf_messageBox("처방변경사유는", "I003");
- return false;
- }
-
- return true;
- }
- function group3_group5_cmb_chkrpl_onkeyup(obj:Combo, e:KeyEventInfo)
- {
- if (e.keycode == 13){
- lf_search();
- }
- }
- function Combo_onkeydown(obj:Combo, e:KeyEventInfo)
- {
- if(e.keycode == 40) { //아래쪽 방향키 입력시
- obj.dropdown();
- }
- }
- function group3_tar_altresn_onmouseenter(obj:TextArea, e:MouseEventInfo)
- {
- obj.position.height = lvnAreaSpreadHei;
- }
- function group3_tar_altresn_onmouseleave(obj:TextArea, e:MouseEventInfo)
- {
- obj.position.height = lvnAreaFoldHei;
- }
- // 삭제버튼
- function group3_btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if (!lf_isDelValid()) return;
-
- var result = sysf_messageBox( "해당 데이터를 삭제", "S001");
- if( result==7 || result == 2 ) return;
-
- lvnSelRow = ds_grid_grd_drugnolist.rowposition;
- ds_saveData.setColumn(0, "m", "d");
-
- tranf_submit({
- id: "TXADT00101_D"
- , service: "pharmacyprescriptionapp.AfterMngt"
- , method: "reqExeAftMngt"
- , inds: "req=ds_saveData:U"
- , outds: "item=ds_item"
- , async: false
- , callback: "cbf_callBack"
- , alert: true
- });
-
- // if (fValidateSelData() == false) return;
- //
- // var result = sysf_messageBox( "해당 데이터를 삭제", "S001");
- // if( result==7 || result == 2 ) return;
- //
- // model.copyNode("/root/send/req/data","/root/main/altdetlinfo");
- // model.setValue("/root/send/req/data/m","d");
- // var success = submit("TXADT01001");
- // if (success) {
- // model.copyNode("/root/main/altdetlinfo","/root/init/data");
- // grd_drugnolist.dispatch("onclick");
- // }
- }
- function lf_isDelValid(){
- if (utlf_isNull(ds_saveData.getColumn(0, "prcpcd")))
- {
- sysf_messageBox("처리할 처방데이터를", "C002");
- return false;
- } else return true;
-
- // if (sysf_messageBox("해당 데이터를", "Q001") == 7)
- // {
- // return false;
- // }
-
- }
- // 외래처방 출력이력 버튼
- function btn_prtHistory_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
-
- if ( ds_grid_grd_drugnolist.rowcount > 0 ) {
- var nRow = ds_grid_grd_drugnolist.rowposition;
- objArg.plgv_pid = ds_grid_grd_drugnolist.getColumn(nRow, "pid");
- objArg.plgv_prcpdd = ds_grid_grd_drugnolist.getColumn(nRow, "drugdd");
- objArg.plgv_drugno = ds_grid_grd_drugnolist.getColumn(nRow, "drugno");
- }
-
- var sRtnValue = frmf_modal("SMADT00300", "SMADT00300", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function group3_group5_edt_srchdrugno_onkeyup(obj:MaskEdit, e:KeyEventInfo)
- {
- if (e.keycode == 13){
- lf_search();
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : cal_prcpdd1
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기간변경
- ****************************************************************************************/
- function Calendar_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- obj.updateToDataset();
- lf_search();
- }
- function group3_grd_drugnolist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_setDruglistCond(e.row);
-
- var oParam = {};
- oParam.id = "TRADT01002";
- oParam.service = "pharmacyprescriptionapp.AfterMngt";
- oParam.method = "reqGetDrugDetlList";
- oParam.inds = "req=ds_drugListCond";
- oParam.outds = "ds_grid_grd_druglist=druglist ds_patdata=patdata ds_grid_grd_aftlist=aftlist";
- oParam.async = false;
- oParam.callback = "cbf_callBack";
- tranf_submit(oParam);
- }
- function group3_group5_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode== 13) {
- obj.updateToDataset();
- lf_search();
- }
- }
- function group3_group5_cal_prcpdd1_oneditclick(obj:Calendar, e:EditClickEventInfo)
- {
-
- }
- function group2_btn_ptbs_search_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500", "SPPMC02500", "", "", 1, 150, 150, "", "", "", "", "", "M");
- ds_cond.setColumn(0,"srchpid" , ds_patinfolist.getColumn(0,"pid"));
- ds_cond.setColumn(0,"srchhngnm", ds_patinfolist.getColumn(0,"hngnm"));
- }
- ]]></Script>
- </Form>
- </FDL>
|