123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT50100" position="absolute 0 0 1182 778" titletext="고가/고주의/고위험 약품관리" onload="SMADT50100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1181 773" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Shape position="absolute 100 394 300 418" id="roundrect2" type="roundrectangle" anchor="default"/>
- <Static position="absolute 158 399 173 414" id="caption39" class="color_7" anchor="default"/>
- <Static text="범 례" position="absolute 105 397 150 415" align="align:center middle;" id="caption47" class="cell_2" anchor="default"/>
- <Static text="처방내역" position="absolute 0 402 108 423" id="caption4" class="tit_2" anchor="default"/>
- <Static text="반환의뢰" position="absolute 175 399 244 413" align="align:center middle;" id="caption55" anchor="default"/>
- <Static text="교환약" position="absolute 255 399 300 413" align="align:center middle;" id="caption10" anchor="default"/>
- <Static position="absolute 235 399 250 414" align="align:center middle;" id="caption30" class="color_9" anchor="default"/>
- <Button position="absolute 1100 396 1180 418" id="button4" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_button4_onclick"/>
- <Grid position="absolute 0 423 1180 748" id="grd_prcplist" class="datagrid2" binddataset="ds_main_prcplist_item" anchor="all" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="30"/>
- <Column size="56"/>
- <Column size="50"/>
- <Column size="81"/>
- <Column size="53"/>
- <Column size="56"/>
- <Column size="33"/>
- <Column size="34"/>
- <Column size="34"/>
- <Column size="44"/>
- <Column size="30"/>
- <Column size="28"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="84"/>
- <Column size="74"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="I/O" wordwrap="char"/>
- <Cell col="2" text="등록번호" wordwrap="char"/>
- <Cell col="3" text="환자명" wordwrap="char"/>
- <Cell col="4" text="진료과" wordwrap="char"/>
- <Cell col="5" text="병실" wordwrap="char"/>
- <Cell col="6" text="투약번호" wordwrap="char"/>
- <Cell col="7" text="수량" wordwrap="char"/>
- <Cell col="8" text="횟수" wordwrap="char"/>
- <Cell col="9" text="일수" wordwrap="char"/>
- <Cell col="10" text="불출량" wordwrap="char"/>
- <Cell col="11" text="단위" wordwrap="char"/>
- <Cell col="12" text="조제보류" wordwrap="char"/>
- <Cell col="13" text="반환확인일시" wordwrap="char"/>
- <Cell col="14" text="집계부서" wordwrap="char"/>
- <Cell col="15" text="시행부서" wordwrap="char"/>
- <Cell col="16" text="발행부서" wordwrap="char"/>
- <Cell col="17" text="마감일시" wordwrap="char"/>
- <Cell col="18" text="출력일시" wordwrap="char"/>
- <Cell col="19" text="실시일자" wordwrap="char"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:ioflag"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" style="align:left top;padding:2 2 0 2;" text="bind:orddeptcdnm" wordwrap="char"/>
- <Cell col="5" text="bind:roomcd"/>
- <Cell col="6" text="bind:drugno" mask="expr:utlf_isNull(drugno)?'':'######'"/>
- <Cell col="7" text="bind:prcpqty"/>
- <Cell col="8" text="bind:prcptims"/>
- <Cell col="9" text="bind:prcpdayno"/>
- <Cell col="10" text="bind:sumqty"/>
- <Cell col="11" text="bind:cntsunit"/>
- <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:nodrug" enable="false"/>
- <Cell col="13" displaytype="expr:utlf_isNull(rtndt)?'normal':'date'" text="bind:rtndt" mask="expr:utlf_isNull(rtndt)?'':'yyyy-MM-dd HH:mm:ss'"/>
- <Cell col="14" style="align:left top;padding:2 2 0 2;" text="bind:sumdeptcdnm" wordwrap="char"/>
- <Cell col="15" style="align:left top;padding:2 2 0 2;" text="bind:execdeptcdnm" wordwrap="char"/>
- <Cell col="16" style="align:left top;padding:2 2 0 2;" text="bind:issdeptcdnm" wordwrap="char"/>
- <Cell col="17" displaytype="expr:utlf_isNull(sumdt)?'normal':'date'" style="align:left;" text="bind:sumdt" mask="expr:utlf_isNull(sumdt)?'':'yyyy-MM-dd HH:mm:ss'"/>
- <Cell col="18" displaytype="expr:utlf_isNull(prntdt)?'normal':'date'" style="align:left;" text="bind:prntdt" mask="expr:utlf_isNull(prntdt)?'':'yyyy-MM-dd HH:mm:ss'"/>
- <Cell col="19" displaytype="expr:utlf_isNull(execdd)?'normal':'date'" style="align:left;" text="bind:execdd" mask="expr:utlf_isNull(execdd)?'':'yyyy-MM-dd HH:mm:ss'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 0 1180 40" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="재고일자 :" position="absolute 10 13 98 30" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 1110 10 1166 32" id="btn_sea" class="btn1" text="조회" onclick="group3_group2_btn_sea_onclick" anchor="top right"/>
- <Calendar position="absolute 92 11 200 30" id="input3" class="input_search" anchor="default" autoselect="true"/>
- <Static text="구분 :" position="absolute 210 13 296 30" id="caption3" class="search_name" anchor="default"/>
- <CheckBox position="absolute 388 11 453 31" id="chk_warn" text="고주의" onchanged="group3_group2_chk_warn_onchanged" anchor="default"/>
- <CheckBox position="absolute 333 11 383 31" id="chk_expn" text="고가" onclick="group3_group2_chk_expn_onclick" onchanged="group3_group2_chk_expn_onchanged" anchor="default"/>
- <Combo position="absolute 655 11 755 30" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_combo1_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">
- </Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">병동+외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static text="추가옵션 :" position="absolute 565 13 651 30" id="caption5" class="search_name" anchor="default"/>
- <CheckBox position="absolute 270 11 320 31" id="checkbox5" text="전체" onchanged="group3_group2_checkbox5_onchanged" anchor="default"/>
- <CheckBox position="absolute 458 11 523 31" id="chk_dngr" text="고위험" onchanged="group3_group2_chk_dngr_onchanged" anchor="default"/>
- <Shape id="line13" linetype="vertical" position="absolute 1093 8 1099 34" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1088 43 1180 65" id="btn_save" class="btn4" text="일재고마감" onclick="group3_btn_save_onclick" anchor="top right"/>
- <Button position="absolute 1005 43 1085 65" id="btn_excel" class="btn7" text="엑셀저장" onclick="group3_btn_excel_onclick" anchor="top right"/>
- <Button position="absolute 107 43 163 65" id="btn_print" class="btn6" text="출력" anchor="default" onclick="group3_btn_print_onclick" visible="false"/>
- <Button position="absolute 0 43 104 65" id="button3" class="btn3" taborder="18" visible="true" text="재고시간관리" onclick="group3_button3_onclick" anchor="default"/>
- <Static text="* 불출량 (마감, 집계, 교환약 불출수량/약국미불출과 특수조제 조제보류는 제외/마감이후 의사반환도 포함)" position="absolute 167 46 816 66" id="caption1" anchor="default" style="color:red;font:Dotum,9,bold;"/>
- <Button position="absolute 950 43 976 65" id="button5" class="icon_top" text="" onclick="group3_button5_onclick" anchor="top right"/>
- <Button position="absolute 976 43 1002 65" id="button6" class="icon_bottom" text="" onclick="group3_button6_onclick" anchor="top right"/>
- <Shape id="line01" class="line_1" position="absolute 0 66 1180 70" anchor="left top right"/>
- <Shape id="line00" class="line_1" position="absolute 0 65 1180 69" anchor="left top right"/>
- <Shape id="line02" class="line_1" position="absolute 0 67 1180 71" anchor="left top right"/>
- <Shape id="line03" class="line_1" position="absolute 0 419 1180 423" anchor="left top right"/>
- <Shape id="line04" class="line_1" position="absolute 0 418 1180 422" anchor="left top right"/>
- <Shape id="line05" class="line_1" position="absolute 0 420 1180 424" anchor="left top right"/>
- <Grid position="absolute 0 70 1180 390" id="grd_druglist" binddataset="ds_main_srchcond_druglist" oncellclick="group3_grd_druglist_oncellclick" anchor="left top right" cellsizingtype="both" extendsizetype="row" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="92"/>
- <Column size="175"/>
- <Column size="34"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="73"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="68"/>
- <Column size="130"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="약품코드" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="약품명" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="단위" taborder="undefined"/>
- <Cell col="4" colspan="3" text="전일재고" taborder="undefined"/>
- <Cell col="7" colspan="3" text="입고량" taborder="undefined"/>
- <Cell col="10" colspan="3" text="불출량" taborder="undefined"/>
- <Cell col="13" colspan="3" text="반환확인량" taborder="undefined"/>
- <Cell col="16" colspan="3" text="전산재고" taborder="undefined"/>
- <Cell col="19" colspan="3" text="실재고" taborder="undefined"/>
- <Cell col="22" rowspan="2" text="고가내일" taborder="undefined"/>
- <Cell col="23" rowspan="2" text="교환내일" taborder="undefined"/>
- <Cell col="24" rowspan="2" text="차용" taborder="undefined"/>
- <Cell col="25" rowspan="2" text="보정량" taborder="undefined"/>
- <Cell col="26" rowspan="2" text="비고" taborder="undefined"/>
- <Cell col="27" rowspan="2" text="최종수정자" taborder="undefined"/>
- <Cell col="28" rowspan="2" text="최종수정일시" taborder="undefined"/>
- <Cell row="1" col="4" text="총재고"/>
- <Cell row="1" col="5" text="병동"/>
- <Cell row="1" col="6" text="외래"/>
- <Cell row="1" col="7" text="총입고"/>
- <Cell row="1" col="8" text="병동"/>
- <Cell row="1" col="9" text="외래"/>
- <Cell row="1" col="10" text="총불출"/>
- <Cell row="1" col="11" text="병동"/>
- <Cell row="1" col="12" text="외래"/>
- <Cell row="1" col="13" text="총반환"/>
- <Cell row="1" col="14" text="병동"/>
- <Cell row="1" col="15" text="외래"/>
- <Cell row="1" col="16" text="총전산재고"/>
- <Cell row="1" col="17" text="병동"/>
- <Cell row="1" col="18" text="외래"/>
- <Cell row="1" col="19" text="총실재고"/>
- <Cell row="1" col="20" text="병동"/>
- <Cell row="1" col="21" text="외래"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left top;padding:2 2 0 2;" text="bind:drugcd" wordwrap="char"/>
- <Cell col="2" style="align:left top;padding:2 2 0 2;" text="bind:hngnm" wordwrap="char"/>
- <Cell col="3" text="bind:cntsunit"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:bftotstocqty" mask="expr:utlf_isNull(bftotstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:bfinstocqty" mask="expr:utlf_isNull(bfinstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="6" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:bfoutstocqty" mask="expr:utlf_isNull(bfoutstocqty)?'':'#,#0.0#'" editautoselect="false"/>
- <Cell col="7" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:totwinqty" mask="expr:utlf_isNull(totwinqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="8" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:inwinqty" mask="expr:utlf_isNull(inwinqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="9" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:outwinqty" mask="expr:utlf_isNull(outwinqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="10" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:totsumqty" mask="expr:utlf_isNull(totsumqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="11" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:insumqty" mask="expr:utlf_isNull(insumqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="12" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:outsumqty" mask="expr:utlf_isNull(outsumqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="13" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:totrtnqty" mask="expr:utlf_isNull(totrtnqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="14" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:inrtnqty" mask="expr:utlf_isNull(inrtnqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="15" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:outrtnqty" mask="expr:utlf_isNull(outrtnqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="16" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:totstocqty" mask="expr:utlf_isNull(totstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="17" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:instocqty" mask="expr:utlf_isNull(instocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="18" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:outstocqty" mask="expr:utlf_isNull(outstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="19" displaytype="normal" edittype="masknumber" style="align:right middle;padding:0 2 0 2;" text="bind:realtotstocqty" mask="expr:utlf_isNull(realtotstocqty)?'':'#,##0.0#'" editautoselect="true"/>
- <Cell col="20" displaytype="normal" edittype="masknumber" style="align:right middle;padding:0 2 0 2;" text="bind:realinstocqty" mask="expr:utlf_isNull(realinstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="21" displaytype="normal" edittype="masknumber" style="align:right middle;padding:0 2 0 2;" text="bind:realoutstocqty" mask="expr:utlf_isNull(realoutstocqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="22" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" text="bind:nextsumqty" mask="expr:utlf_isNull(nextsumqty)?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="23" displaytype="normal" edittype="none" style="align:right middle;padding:0 2 0 2;" mask="expr:utlf_isNull()?'':'#,##0.0#'" editautoselect="false"/>
- <Cell col="24" displaytype="normal" edittype="masknumber" style="align:right middle;padding:0 2 0 2;" text="bind:loanqty" mask="expr:utlf_isNull(loanqty)?'':'#,##0.0#'" editautoselect="true"/>
- <Cell col="25" edittype="masknumber" style="align:right middle;padding:0 2 0 2;" text="bind:corrqty" mask="expr:utlf_isNull(corrqty)?'':'#,##0.0#'" editautoselect="true"/>
- <Cell col="26" displaytype="text" edittype="text" style="align:left top;padding:2 2 0 2;" text="bind:cmt" wordwrap="char" editautoselect="true"/>
- <Cell col="27" text="bind:lastupdtrid"/>
- <Cell col="28" displaytype="expr:utlf_isNull(lastupdtdt)?'normal':'date'" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt)?'':'yyyy-MM-dd HH:mm:ss'"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 465 210 700 346" id="group4" class="div_SA2" visible="false" anchor="default">
- <Layouts>
- <Layout>
- <Calendar position="absolute 124 11 224 30" id="input1" class="input_search" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Static text="시작재고일자 :" position="absolute 11 13 124 30" id="caption6" class="tit_2" anchor="default"/>
- <Static text="총재고량 :" position="absolute 11 36 127 53" id="caption7" class="tit_2" anchor="default"/>
- <MaskEdit position="absolute 123 34 223 53" id="input2" mask="(-1)#,###" anchor="default"/>
- <Button position="absolute 107 104 163 126" id="button1" class="btn4" text="저장" anchor="default"/>
- <Button position="absolute 167 104 223 126" id="button2" class="btn4" text="닫기" onclick="group3_group4_button2_onclick" anchor="default"/>
- <MaskEdit position="absolute 123 57 223 76" id="input4" mask="(-1)#,###" anchor="default"/>
- <Static text="병동재고량 :" position="absolute 11 59 119 76" id="caption8" class="tit_2" anchor="default"/>
- <Static text="외래재고량 :" position="absolute 11 82 119 99" id="caption9" class="tit_2" anchor="default"/>
- <MaskEdit position="absolute 123 80 223 99" id="input5" mask="(-1)#,###" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="고가/고주의/고위험 약품관리" class="tit_1" position="absolute 0 0 220 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_prcplist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="orddeptcdnm" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="drugno" type="STRING"/>
- <Column id="prcpqty" type="STRING"/>
- <Column id="prcptims" type="STRING"/>
- <Column id="prcpdayno" type="STRING"/>
- <Column id="sumqty" type="STRING"/>
- <Column id="cntsunit" type="STRING"/>
- <Column id="nodrug" type="STRING"/>
- <Column id="rtndt" type="STRING"/>
- <Column id="sumdeptcdnm" type="STRING"/>
- <Column id="execdeptcdnm" type="STRING"/>
- <Column id="issdeptcdnm" type="STRING"/>
- <Column id="sumdt" type="STRING"/>
- <Column id="prntdt" type="STRING"/>
- <Column id="execdd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_srchcond_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="cntsunit" type="STRING"/>
- <Column id="bftotstocqty" type="STRING"/>
- <Column id="bfinstocqty" type="STRING"/>
- <Column id="bfoutstocqty" type="STRING"/>
- <Column id="totwinqty" type="STRING"/>
- <Column id="inwinqty" type="STRING"/>
- <Column id="outwinqty" type="STRING"/>
- <Column id="totsumqty" type="STRING"/>
- <Column id="insumqty" type="STRING"/>
- <Column id="outsumqty" type="STRING"/>
- <Column id="totrtnqty" type="STRING"/>
- <Column id="inrtnqty" type="STRING"/>
- <Column id="outrtnqty" type="STRING"/>
- <Column id="totstocqty" type="STRING"/>
- <Column id="instocqty" type="STRING"/>
- <Column id="outstocqty" type="STRING"/>
- <Column id="realtotstocqty" type="STRING"/>
- <Column id="realinstocqty" type="STRING"/>
- <Column id="realoutstocqty" type="STRING"/>
- <Column id="nextsumqty" type="STRING"/>
- <Column id="loanqty" type="STRING"/>
- <Column id="corrqty" type="STRING"/>
- <Column id="cmt" type="STRING"/>
- <Column id="lastupdtrid" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="enddd" type="STRING" size="256"/>
- <Column id="viewopt" type="STRING" size="256"/>
- <Column id="ynall" type="STRING" size="256"/>
- <Column id="initstocdd" type="STRING" size="256"/>
- <Column id="initstocqty" type="STRING" size="256"/>
- <Column id="expnyn" type="STRING" size="256"/>
- <Column id="warnyn" type="STRING" size="256"/>
- <Column id="dngryn" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_sumtmflaglist_flaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data_stocdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.input3" propid="value" datasetid="ds_send_srchdata" columnid="enddd"/>
- <BindItem id="item1" compid="group3.group2.checkbox5" propid="value" datasetid="ds_send_srchdata" columnid="ynall"/>
- <BindItem id="item2" compid="group3.group2.chk_expn" propid="value" datasetid="ds_send_srchdata" columnid="expnyn"/>
- <BindItem id="item3" compid="group3.group2.chk_warn" propid="value" datasetid="ds_send_srchdata" columnid="warnyn"/>
- <BindItem id="item4" compid="group3.group2.chk_dngr" propid="value" datasetid="ds_send_srchdata" columnid="dngryn"/>
- <BindItem id="item5" compid="group3.group2.combo1" propid="value" datasetid="ds_send_srchdata" columnid="viewopt"/>
- <BindItem id="item6" compid="group3.group4.input1" propid="value" datasetid="ds_send_srchdata" columnid="initstocdd"/>
- <BindItem id="item7" compid="group3.group4.input2" propid="value" datasetid="ds_send_srchdata" columnid="initstocqty"/>
- <BindItem id="item8" compid="group3.group4.input4" propid="value" datasetid="ds_send_srchdata" columnid="initstocqty"/>
- <BindItem id="item9" compid="group3.group4.input5" propid="value" datasetid="ds_send_srchdata" columnid="initstocqty"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_commonxp::AST.xjs"
- include "ast_pharmacystocxp::SMADT50100.xjs"
- var arErrorCode = new HashArray();
- function SMADT50100_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- ds_send_srchdata.setColumn(0,"enddd", utlf_getCurrentDate()) ;
- grdf_setRowTypeIcon(group3.grd_druglist, 0); // 그리드 상태 표시
- }
- function fStocChk(param) {
- if( param == "IS") {
- group3.group4.visible = true;
- }
- }
- function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if( group3.group2.chk_expn.value == "" && group3.group2.chk_warn.value == "" && group3.group2.chk_dngr.value == "") {
- sysf_messageBox("구분을 하나이상 선택하세요" , "Z001");
- return;
- }
- //model.removeNodeset("/root/main/srchcond/druglist");
- //model.removeNodeset("/root/main/prcplist/item");
- ds_main_srchcond_druglist.clearData();
- ds_main_prcplist_item.clearData();
- //submit("TRADT50101");
- var oParam = {};
- oParam.id = "TRADT50101";
- oParam.service = "pharmacystocapp.WarnMngt";
- oParam.method = "reqGetWarnStocList";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_main_srchcond_druglist=druglist";
- oParam.async = false;
- oParam.callback = "cf_TRADT50101";
- tranf_submit(oParam);
- fCalcQty();
- //combo1.dispatch("xforms-value-changed");
-
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "realtotstocqty"), "data", "background-color") = "#fcd2c1";
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "realinstocqty"), "data", "background-color") = "#fcd2c1";
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "realoutstocqty"), "data", "background-color") = "#fcd2c1";
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "loanqty"), "data", "background-color") = "#fcd2c1";
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "corrqty"), "data", "background-color") = "#fcd2c1";
- group3.grd_druglist.colStyle(group3.grd_druglist.getBindCellIndex("body", "cmt"), "data", "background-color") = "#fcd2c1";
- }
- function cf_TRADT50101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function group3_group2_chk_warn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(group3.group2.chk_warn.value == "" ) {
- //model.setValue("/root/send/srchdata/ynall", "");
- ds_send_srchdata.setColumn(0,"ynall", "") ;
- }
- //model.refresh();
-
- }
- function group3_group2_chk_expn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(group3.group2.chk_expn.value == "" ) {
- //model.setValue("/root/send/srchdata/ynall", "");
- ds_send_srchdata_ynall.setColumn(0,"ynall", "") ;
- }
- //model.refresh();
-
- }
- function group3_group2_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- //var opt = model.getValue("/root/send/srchdata/viewopt");
- var opt = ds_send_srchdata.getColumn(0,"viewopt");
-
- if(opt == "I") {
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inbrngfwrdqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inwinqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "insumqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "instocqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inrtnqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "realinstocqty")) = false;
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outbrngfwrdqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outwinqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outsumqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outstocqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outrtnqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "realoutstocqty")) = true;
-
- } else if (opt == "O") {
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inbrngfwrdqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inwinqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "insumqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "instocqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "inrtnqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "realinstocqty")) = true;
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outbrngfwrdqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outwinqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body", "outsumqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outstocqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outrtnqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","realoutstocqty")) = false;
-
- } else if (opt == "A") {
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inbrngfwrdqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inwinqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","insumqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","instocqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inrtnqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","realinstocqty")) = false;
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outbrngfwrdqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outwinqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outsumqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outstocqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outrtnqty")) = false;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","realoutstocqty")) = false;
-
- } else {
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inbrngfwrdqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inwinqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","insumqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","instocqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","inrtnqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","realinstocqty")) = true;
-
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outbrngfwrdqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outwinqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outsumqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outstocqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","outrtnqty")) = true;
- group3.grd_druglist.colhidden(grd_druglist.getBindCellIndex("body","realoutstocqty")) = true;
- }
-
- }
- function group3_group2_checkbox5_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(group3.group2.checkbox5.value == "") {
- //model.setValue("/root/send/srchdata/expnyn", "");
- //model.setValue("/root/send/srchdata/warnyn", "");
- //model.setValue("/root/send/srchdata/dngryn", "");
- ds_send_srchdata.setColumn(0,"expnyn", "") ;
- ds_send_srchdata.setColumn(0,"warnyn", "") ;
- ds_send_srchdata.setColumn(0,"dngryn", "") ;
- }else {
- //model.setValue("/root/send/srchdata/expnyn", "Y");
- //model.setValue("/root/send/srchdata/warnyn", "Y");
- //model.setValue("/root/send/srchdata/dngryn", "Y");
- ds_send_srchdata.setColumn(0,"expnyn", "Y") ;
- ds_send_srchdata.setColumn(0,"warnyn", "Y") ;
- ds_send_srchdata.setColumn(0,"dngryn", "Y") ;
- }
- //model.refresh();
-
- }
- function group3_group2_chk_dngr_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if(group3.group2.chk_dngr.value == "" ) {
- //model.setValue("/root/send/srchdata/ynall", "");
- ds_send_srchdata.setColumn(0,"ynall", "") ;
- }
- //model.refresh();
-
- }
- function group3_grd_druglist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col != obj.getBindCellIndex("body", "realtotstocqty") && e.col != obj.getBindCellIndex("body", "realinstocqty")
- && e.col != obj.getBindCellIndex("body", "realoutstocqty") && e.col != obj.getBindCellIndex("body", "loanqty")
- && e.col != obj.getBindCellIndex("body", "corrqty") && e.col != obj.getBindCellIndex("body", "cmt") && e.row > -1) {
- var rowid = e.row;
- ds_send_srchdata.setColumn(0,"drugcd", ds_main_srchcond_druglist.getColumn(rowid,"drugcd")) ;
- var oParam = {};
- oParam.id = "TRADT50102";
- oParam.service = "pharmacystocapp.WarnMngt";
- oParam.method = "reqGetWarnPrcpList";
- oParam.inds = "req=ds_send_srchdata";
- oParam.outds = "ds_main_prcplist_item=prcplist";
- oParam.async = false;
- oParam.callback = "cf_TRADT50102";
- tranf_submit(oParam);
- }
- }
- function cf_TRADT50102(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_main_prcplist_item, "prcpqty:FLOAT^prcptims:FLOAT^sumqty:FLOAT");
- }
- function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteDs("ds_send_data_stocdata");
- dsf_createDsRow("ds_send_data_stocdata", [
- {col:"drugcd" , type:"STRING" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"drugcd")}
- , {col:"totstocqty" , type:"BIGDECIMAL" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"realtotstocqty")}
- , {col:"instocqty" , type:"BIGDECIMAL" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"realinstocqty")}
- , {col:"outstocqty" , type:"BIGDECIMAL" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"realoutstocqty")}
- , {col:"loanqty" , type:"BIGDECIMAL" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"loanqty")}
- , {col:"corrqty" , type:"BIGDECIMAL" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"corrqty")}
- , {col:"cmt" , type:"STRING" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"cmt")}
- , {col:"lastupdtrid" , type:"STRING" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"lastupdtrid")}
- , {col:"lastupdtdt" , type:"STRING" , size:256, val:ds_main_srchcond_druglist.getColumn(0,"lastupdtdt")}
- ]);
- var oParam = {};
- oParam.id = "TXADT50101";
- oParam.service = "pharmacystocapp.WarnMngt";
- oParam.method = "reqExeWarnStocEnd";
- oParam.inds = "req=ds_send_srchdata data=ds_send_data_stocdata";
- oParam.outds = "ds_temp=count";
- oParam.async = false;
- //oParam.callback = "cf_TXADT50101";
- tranf_submit(oParam);
-
- var e = new ClickEventInfo;
- frmf_inputEnterKey("group3.group2.btn_sea", "onclick", e);
- }
- function group3_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPADT64100","SPADT64100","","","","","","","","","","","M");
- if(frmf_getParameter("SPADT64100_param") == "Y") {
- //////////아래 소스 의미없이 카피된듯함. 이화면에서 사용하지 않는 컴포넌트와 데이터셋을 사용
- // //if(submit("TRADT10206")) {
- // var oParam = {};
- // oParam.id = "TRADT10206";
- // oParam.service = "pharmacyprescriptionapp.DrugPrint";
- // oParam.method = "reqGetSumtmFlagList";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_init_sumtmflaglist_flaglist=flaglist";
- // oParam.async = false;
- // oParam.callback = "cf_TRADT10206";
- //
- // tranf_submit(oParam);
- //
- // if(arErrorCode.pop("TRADT10206") > -1) {
- // var idx = cmb_sumtmflag.value;
- // //var fromddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromddflag");
- // //var fromtm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/fromtm");
- // //var toddflag = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/toddflag");
- // //var totm = model.getValue("/root/init/sumtmflaglist/flaglist[flagcd = '" + idx + "']/totm");
- // //model.setValue("/root/hidden/srchinfo/fromddflag", fromddflag);
- // //model.setValue("/root/hidden/srchinfo/fromtm", fromtm);
- // //model.setValue("/root/hidden/srchinfo/toddflag", toddflag);
- // //model.setValue("/root/hidden/srchinfo/totm", totm);
- // //model.refresh();
- // var fromddflag = ds_init_sumtmflaglist_flaglist.getColumn("flagcd=='"+idx+"'","fromddflag")
- // var fromtm = ds_init_sumtmflaglist_flaglist.getColumn("flagcd=='"+idx+"'","fromtm")
- // var toddflag = ds_init_sumtmflaglist_flaglist.getColumn("flagcd=='"+idx+"'","toddflag")
- // var totm = ds_init_sumtmflaglist_flaglist.getColumn("flagcd=='"+idx+"'","totm")
- // ds_hidden_srchinfo.setColumn(0,"fromddflag", fromddflag) ;
- // ds_hidden_srchinfo.setColumn(0,"fromtm", fromtm) ;
- // ds_hidden_srchinfo.setColumn(0,"toddflag", toddflag) ;
- // ds_hidden_srchinfo.setColumn(0,"totm", totm) ;
- // }
- }
- }
- function cf_TRADT10206(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group3_group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.group4.visible = false;
- }
- function group3_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.grd_druglist.position.bottom = 390;
- }
- function group3_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- group3.grd_druglist.position.bottom = group3.grd_prcplist.position.bottom;
- }
- function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_srchcond_druglist.rowcount > 0 ){
- grdf_exportExcel(group3.grd_druglist, "집계리스트", "집계리스트", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function group3_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_prcplist_item.rowcount > 0 ){
- grdf_exportExcel(group3.grd_prcplist, "집계리스트", "집계리스트", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function group3_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|