123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT50200" position="absolute 0 0 1201 829" titletext="약품 재고 관리" oninit="SMADT50200_oninit" onload="SMADT50200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1195 827" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 80" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 1006 7 1012 70" linetype="vertical" id="line13" anchor="top right"/>
- <Static text="재고반영일자 :" position="absolute 707 48 810 65" id="caption4" class="search_name" visible="true" anchor="default"/>
- <Calendar position="absolute 816 45 906 66" id="srchdd" class="input_search" visible="true" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" oncloseup="group3_group2_srchdd_oncloseup"/>
- <MaskEdit position="absolute 940 10 995 31" id="ipt_totm" class="input_search" mask="##:##:##" anchor="default" type="string" onkillfocus="group3_group2_ipt_totm_onkillfocus" autoselect="true"/>
- <Calendar position="absolute 660 10 748 31" id="cmb_fromddflag" class="input_search" enable="true" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <MaskEdit position="absolute 755 10 810 31" id="ipt_fromtm" class="input_search" enable="true" mask="##:##:##" anchor="default" limitbymask="decimal" type="string" onkillfocus="group3_group2_ipt_fromtm_onkillfocus" autoselect="true"/>
- <Calendar position="absolute 845 10 933 31" id="cmb_toddflag" class="input_search" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Static text="마감 구간" position="absolute 570 13 655 30" align="align:center middle;" id="caption17" class="search_name" anchor="default"/>
- <Static text="~" position="absolute 822 8 852 33" align="align:center middle;" id="caption18" anchor="default"/>
- <Button position="absolute 1097 45 1177 67" id="btn_endref" class="btn4" text="재고반영" anchor="top right" onclick="group3_group2_btn_endref_onclick"/>
- <Button position="absolute 1020 9 1076 31" id="btn_end" class="btn4" text="마감" anchor="top right" onclick="group3_group2_btn_end_onclick"/>
- <Button position="absolute 1020 45 1076 67" id="btn_sea" class="btn1" taborder="1" text="조회" anchor="top right" onclick="group3_group2_btn_sea_onclick"/>
- <Shape position="absolute 1084 42 1090 69" linetype="vertical" id="line2" anchor="top right"/>
- <Combo position="absolute 911 45 991 66" id="cbo_srchsumtm" class="combo_essential" visible="true" innerdataset="@ds_init_sumdtinfo" datacolumn="genrtmnm" codecolumn="genrtm" anchor="default"/>
- <Static text="조회/마감/재고반영 부서" position="absolute 185 13 361 30" align="align:center middle;" id="caption1" class="search_name" anchor="default"/>
- <Combo position="absolute 361 10 451 31" id="combo_deptcd" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">all</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3240300000</Col>
- <Col id="datacolumn">병동약국</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3240400000</Col>
- <Col id="datacolumn">외래약국</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3240807000</Col>
- <Col id="datacolumn">특수조제실</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button position="absolute 6 9 110 31" id="button3" class="btn3" taborder="18" visible="true" text="마감시간관리" anchor="default" onclick="group3_group2_button3_onclick"/>
- <Static text="약품코드 :" position="absolute 512 48 587 65" id="caption2" class="search_name" anchor="default"/>
- <Combo position="absolute 360 45 495 66" id="cmb_srchadminflag" class="combo_search" innerdataset="@ds_init_cmb_srchadminflag" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
- <Static text="관리분류 :" position="absolute 270 48 356 65" id="caption3" class="search_name" anchor="default"/>
- <Edit position="absolute 595 45 695 66" id="ipt_srchadmincd" class="input_search" anchor="default" onkeydown="group3_group2_ipt_srchadmincd_onkeydown" autoselect="true"/>
- <Button id="btn_joyongje" taborder="19" text="조영제 마감" class="btn4" position="absolute 1092 9 1189 31" anchor="top right" onclick="group3_group2_btn_joyongje_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="마감 리스트" position="absolute 574 89 757 106" id="caption10" class="tit_2" anchor="default"/>
- <Grid position="absolute 575 110 1194 799" id="grd_datagrid1" binddataset="ds_main_prcplist" anchor="all" autofittype="col" oncelldblclick="group3_grd_datagrid1_oncelldblclick" onvtracklast="group3_grd_datagrid1_onvtracklast">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="마감일자"/>
- <Cell col="2" text="마감시간"/>
- <Cell col="3" text="처방일자"/>
- <Cell col="4" text="약품구분"/>
- <Cell col="5" text="I/O"/>
- <Cell col="6" text="병동"/>
- <Cell col="7" text="등록번호"/>
- <Cell col="8" text="약품코드"/>
- <Cell col="9" text="약품명"/>
- <Cell col="10" text="불출수량"/>
- <Cell col="11" text="실시일자"/>
- <Cell col="12" text="마감부서"/>
- <Cell col="13" text="발행구분"/>
- <Cell col="14" text="UNIQNO"/>
- <Cell col="15" text="재고반영여부"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:genrdd"/>
- <Cell col="2" text="bind:genrtm"/>
- <Cell col="3" text="bind:prcpdd"/>
- <Cell col="4" text="bind:spcldrug"/>
- <Cell col="5" text="bind:ioflag"/>
- <Cell col="6" text="bind:wardcd"/>
- <Cell col="7" text="bind:pid"/>
- <Cell col="8" style="align:left middle;" text="bind:calcscorcd"/>
- <Cell col="9" style="align:left middle;" text="bind:engnm"/>
- <Cell col="10" text="bind:execprcptotqty"/>
- <Cell col="11" text="bind:execdd"/>
- <Cell col="12" text="bind:issdeptcd"/>
- <Cell col="13" text="bind:prcpgenrflag"/>
- <Cell col="14" text="bind:execprcpuniqno"/>
- <Cell col="15" text="bind:sumflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 105 550 111" linetype="horizontal" id="line4" class="line_1" anchor="default"/>
- <Shape position="absolute 574 105 1194 111" linetype="horizontal" id="line1" class="line_1" anchor="left top right"/>
- <Button position="absolute 113 9 169 31" id="btn_excsave" class="btn7" visible="false" text="엑셀" anchor="default" onclick="group3_btn_excsave_onclick"/>
- <Static text="마감 이력" position="absolute 0 89 183 110" id="caption5" class="tit_2" anchor="default"/>
- <Grid position="absolute 0 134 550 799" id="grd_drugsum" binddataset="ds_main_endinfo" anchor="left top bottom" oncellclick="group3_grd_drugsum_oncellclick" autoenter="none" selectbandtype="default" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="68"/>
- <Column size="54"/>
- <Column size="68"/>
- <Column size="54"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="마감일자"/>
- <Cell col="1" text="마감시간"/>
- <Cell col="2" colspan="4" text="마감구간" taborder="undefined"/>
- <Cell col="6" text="마감부서"/>
- <Cell col="7" text="마감자"/>
- <Cell col="8" text="재고반영여부"/>
- <Cell col="9" text="마감된 처방수"/>
- </Band>
- <Band id="body">
- <Cell displaytype="expr:utlf_isNull(genrdd) ? "normal" : "date"" text="bind:genrdd"/>
- <Cell col="1" text="bind:genrtm" mask="##:##:##"/>
- <Cell col="2" displaytype="expr:utlf_isNull(sumfromdd) ? "normal" : "date"" text="bind:sumfromdd"/>
- <Cell col="3" text="bind:sumfromtm" mask="##:##:##"/>
- <Cell col="4" displaytype="expr:utlf_isNull(sumtodd) ? "normal" : "date"" text="bind:sumtodd"/>
- <Cell col="5" text="bind:sumtotm" mask="##:##:##"/>
- <Cell col="6" text="bind:sumdeptnm"/>
- <Cell col="7" text="bind:sumnm"/>
- <Cell col="8" text="bind:endflag"/>
- <Cell col="9" text="bind:cnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Calendar position="absolute 442 111 548 132" id="input7" class="input_default" anchor="default" onchanged="group3_input7_onchanged"/>
- <Static text="마감일자 :" position="absolute 246 115 324 132" id="caption11" class="search_name" anchor="default"/>
- <Static text="~" position="absolute 431 112 443 132" align="align:center middle;" id="caption7" anchor="default"/>
- <Calendar position="absolute 323 111 429 132" id="input6" class="input_default" anchor="default" onchanged="group3_input6_onchanged"/>
- <Shape id="line00" class="line_1" position="absolute 0 104 550 110"/>
- <Shape id="line02" class="line_1" position="absolute 0 106 550 112"/>
- <Shape id="line03" class="line_1" position="absolute 574 104 1194 110" anchor="left top right"/>
- <Shape id="line05" class="line_1" position="absolute 574 106 1194 112" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="약품 재고 마감 관리(Ver 0426)" class="tit_1" position="absolute 0 0 229 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="genrdd" type="STRING" size="256"/>
- <Column id="genrtm" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="spcldrug" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="execprcptotqty" type="STRING" size="256"/>
- <Column id="execdd" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="execprcpuniqno" type="STRING" size="256"/>
- <Column id="sumflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="genrdd"/>
- <Col id="genrtm"/>
- <Col id="prcpdd"/>
- <Col id="spcldrug"/>
- <Col id="ioflag"/>
- <Col id="wardcd"/>
- <Col id="pid"/>
- <Col id="calcscorcd"/>
- <Col id="engnm"/>
- <Col id="execprcptotqty"/>
- <Col id="execdd"/>
- <Col id="issdeptcd"/>
- <Col id="prcpgenrflag"/>
- <Col id="execprcpuniqno"/>
- <Col id="sumflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_astinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_endinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="execdeptcd" type="STRING" size="256"/>
- <Column id="prcpflag" type="STRING" size="256"/>
- <Column id="endtime" type="STRING" size="256"/>
- <Column id="fromddflag" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="toddflag" type="STRING" size="256"/>
- <Column id="totm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="srchorddeptcd" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- <Column id="spcldrug" type="STRING" size="256"/>
- <Column id="maendflag" type="STRING" size="256"/>
- <Column id="ddflag" type="STRING" size="256"/>
- <Column id="srchdeptcd" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- <Column id="sumlistinfo" type="STRING" size="256"/>
- <Column id="srchadminflag" type="STRING" size="256"/>
- <Column id="srchadmincd" type="STRING" size="256"/>
- <Column id="srchendfromdd" type="STRING" size="256"/>
- <Column id="srchendtodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="calcscorcd"/>
- <Col id="execdeptcd"/>
- <Col id="prcpflag">O</Col>
- <Col id="endtime"/>
- <Col id="fromddflag"/>
- <Col id="fromtm">150001</Col>
- <Col id="toddflag"/>
- <Col id="totm">150000</Col>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="srchorddeptcd"/>
- <Col id="issdeptcd"/>
- <Col id="spcldrug"/>
- <Col id="maendflag"/>
- <Col id="ddflag"/>
- <Col id="srchdeptcd">전체</Col>
- <Col id="offset">0</Col>
- <Col id="pagesize">1000</Col>
- <Col id="sumlistinfo"/>
- <Col id="srchadminflag"/>
- <Col id="srchadmincd"/>
- <Col id="srchendfromdd"/>
- <Col id="srchendtodd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_sumtmflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flagcd" type="STRING" size="256"/>
- <Column id="flagnm" type="STRING" size="256"/>
- <Column id="fromddflag" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="toddflag" type="STRING" size="256"/>
- <Column id="totm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="flagcd"/>
- <Col id="flagnm"/>
- <Col id="fromddflag"/>
- <Col id="fromtm"/>
- <Col id="toddflag"/>
- <Col id="totm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_updmflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromddflag" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="nextfromtm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromddflag"/>
- <Col id="fromtm"/>
- <Col id="nextfromtm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chksum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_chkinstcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_sumdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmb_srchadminflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_sumlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpflag">O</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_reqdata" 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">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="fromddflag" type="STRING" size="256"/>
- <Column id="toddflag" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="totm" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="drugcd"/>
- <Col id="fromddflag"/>
- <Col id="toddflag"/>
- <Col id="fromtm"/>
- <Col id="totm"/>
- <Col id="issdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.combo_deptcd" propid="value" datasetid="ds_send" columnid="srchdeptcd"/>
- <BindItem id="item1" compid="group3.group2.cmb_fromddflag" propid="value" datasetid="ds_send" columnid="fromddflag"/>
- <BindItem id="item2" compid="group3.group2.ipt_fromtm" propid="value" datasetid="ds_send" columnid="fromtm"/>
- <BindItem id="item3" compid="group3.group2.cmb_toddflag" propid="value" datasetid="ds_send" columnid="toddflag"/>
- <BindItem id="item4" compid="group3.group2.ipt_totm" propid="value" datasetid="ds_send" columnid="totm"/>
- <BindItem id="item5" compid="group3.group2.cmb_srchadminflag" propid="value" datasetid="ds_send" columnid="srchadminflag"/>
- <BindItem id="item6" compid="group3.group2.ipt_srchadmincd" propid="value" datasetid="ds_send" columnid="srchadmincd"/>
- <BindItem id="item7" compid="group3.group2.srchdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item8" compid="group3.group2.cbo_srchsumtm" propid="value" datasetid="ds_send" columnid="endtime"/>
- <BindItem id="item9" compid="group3.input6" propid="value" datasetid="ds_send" columnid="srchendfromdd"/>
- <BindItem id="item10" compid="group3.input7" propid="value" datasetid="ds_send" columnid="srchendtodd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- var arErrorCode = new HashArray();
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMADT50200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADT50200_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchendfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchendtodd", utlf_getCurrentDate());
- ds_main_prcplist.clearData();
-
- misfComboComCdList("030M0003", group3.group2.cmb_srchadminflag, "Y");
-
- var oParam = {};
- oParam.id = "TRADT50202";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndDate";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_sumdtinfo=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50202";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRADT50204";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_endinfo=endinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50204";
- tranf_submit(oParam);
-
- group3.group2.combo_deptcd.setFocus();
- group3.group2.combo_deptcd.index = 0;
-
- // 마감시간 구분
- ds_send_sumlistinfo.setColumn(0, "prcpflag","S");
- var oParam = {};
- oParam.id = "TRADT10206";
- oParam.service = "pharmacyprescriptionapp.DrugPrint";
- oParam.method = "reqGetSumtmFlagList";
- oParam.inds = "req=ds_send_sumlistinfo";
- oParam.outds = "ds_init_sumtmflaglist=flaglist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT10206";
- tranf_submit(oParam);
-
- if( ds_init_sumtmflaglist.getColumn(0, "fromtm") == "0000" ) {
- ds_send.setColumn(0, "fromtm", ds_init_sumtmflaglist.getColumn(0, "fromtm") + "00");
- } else {
- ds_send.setColumn(0, "fromtm", ds_init_sumtmflaglist.getColumn(0, "fromtm") + "01");
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "totm") == "2359" ) {
- ds_send.setColumn(0, "totm",ds_init_sumtmflaglist.getColumn(0, "totm") + "59" );
- } else {
- ds_send.setColumn(0, "totm",ds_init_sumtmflaglist.getColumn(0, "totm") + "00" );
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "fromddflag") == "0" ) { // 전일
- ds_send.setColumn(0, "fromddflag", utlf_getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(ds_init_sumtmflaglist.getColumn(0, "fromddflag") == "1") { // 당일
- ds_send.setColumn(0, "fromddflag", utlf_getCurrentDate());
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "toddflag") == "0" ) { // 전일
- ds_send.setColumn(0, "toddflag", utlf_getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if(ds_init_sumtmflaglist.getColumn(0, "toddflag") == "1") { // 당일
- ds_send.setColumn(0, "toddflag", utlf_getCurrentDate());
- }
-
- grdf_setGridSort(group3.grd_drugsum); // 그리드 소트만
- grdf_setGridSort(group3.grd_datagrid1); // 그리드 소트만
- }
- /******************************************************************
- * Argument :
- * Description : 마감구간 시간 설정
- ******************************************************************/
- function group3_group2_ipt_fromtm_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
- {
- var getFromtm = ds_send.getColumn(0, "fromtm");
- if( getFromtm > 235959 ){
- sysf_messageBox("시간이 23시59분59초 보다 큽니다. ", "I");
- group3.group2.ipt_fromtm.setFocus();
- return;
- }
- }
- function group3_group2_ipt_totm_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
- {
- var getTotm = ds_send.getColumn(0, "totm");
- if( getTotm > 235959 ){
- sysf_messageBox("시간이 23시59분59초 보다 큽니다. ", "I");
- group3.group2.ipt_totm.setFocus();
- }
- }
- /******************************************************************
- * Argument :
- * Description : 약품코드 input event
- ******************************************************************/
- function group3_group2_ipt_srchadmincd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- frmf_inputEnterKey("group3.group2.btn_sea", "onclick", new ClickEventInfo);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 조회 Button event
- ******************************************************************/
- function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_prcplist.clearData();
- ds_send.setColumn(0, "offset", "0");
-
- dsf_setTypeFormat(ds_send, "offset:INT^pagesize:INT");
- var oParam = {};
- oParam.id = "TRADT50200";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetDrugStocSumList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_prcplist=prcpinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50200";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : 마감 button event
- ******************************************************************/
- function group3_group2_btn_end_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send.setColumn(0, "maendflag", "Y"); // 20110428_laboru_화면에서 수동 마감할 경우 Y 값
-
- var fromddflag = ds_send.getColumn(0, "fromddflag");
- var toddflag = ds_send.getColumn(0, "toddflag");
- if(fromddflag == toddflag) { // 20110428_laboru_날짜 체크
- ds_send.setColumn(0, "ddflag", "N");
- } else {
- ds_send.setColumn(0, "ddflag", "Y");
- }
-
- var oParam = {};
- oParam.id = "TRADT50201";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqExeDrugStocSumEnd";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
- oParam.error = false;
- oParam.callback = "cf_TRADT50201";
- tranf_submit(oParam);
-
- /*
- if( arErrorCode.pop("TRADT50201") > -1 ){
- sysf_messageBox("마감이","I001");
- }else{
- sysf_messageBox("마감이","E009");
- return;
- }
- */// TF return node 존재하지 않아 항상 true
- sysf_messageBox("마감이","I001");
-
- call_TRADT50202();
- }
- function cf_TRADT50201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : Excel button event
- ******************************************************************/
- function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
- var oParam = {};
- oParam.id = "TRADT11026";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetChkAst";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_chksum=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT11026";
- tranf_submit(oParam);
-
- var chkast = ds_init_chksum.getColumn(0, "chkast");
-
- // ast에 집계된 내역이 없으면 중지
- if( chkast != "Y" ) {
- alert("조회된 일자로 발주된 데이터가 없습니다. ");
- return;
- }
-
- // 조회일자로 집계된 내역을 출력한다.
- var prcplist = ds_main_prcplist.getColumn(0, "inorddeptnm");
- ds_send.setColumn(0, "prnflag", "E");
-
- if( utlf_isNull(prcplist) ) {
- ds_main_prcplist.clearData();
- var oParam = {};
- oParam.id = "TRADT11024";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetAstSum";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_astinfo=astinfo";
- oParam.async = false;
- oParam.callback = "cf_TRADT11024";
- tranf_submit(oParam);
- }
-
-
- //var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
-
- if( ds_main_prcplist.getRowCount > 0 ){
- grdf_exportExcel(grd_datagrid1, "약품재고관리-마감리스트", "약품재고관리-마감리스트", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
-
- //model.removeNodeset("/root/send/prcplist/prcpinfo")
- }
- /******************************************************************
- * Argument :
- * Description : 마감시간관리 button event
- ******************************************************************/
- function group3_group2_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPADT64100", "SPADT64100", null, null, null, null, null, null, null, null, null, null, "M");
- if( frmf_getParameter("SPADT64100_param") == "Y") {
- //model.makeValue("/root/send/sumlistinfo/prcpflag", "A");
-
- var oParam = {};
- oParam.id = "TRADT10206";
- oParam.service = "pharmacyprescriptionapp.DrugPrint";
- oParam.method = "reqGetSumtmFlagList";
- oParam.inds = "req=ds_send_sumlistinfo";
- oParam.outds = "ds_init_sumtmflaglist=flaglist";
- oParam.async = false;
- oParam.callback = "cf_TRADT10206";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRADT10206") > -1 ) {
- if( ds_init_sumtmflaglist.getColumn(0, "fromtm") == "0000" ) {
- ds_send.setColumn(0, "fromtm", ds_init_sumtmflaglist.getColumn(0, "fromtm") + "00");
- } else {
- ds_send.setColumn(0, "fromtm", ds_init_sumtmflaglist.getColumn(0, "fromtm") + "01");
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "totm") == "2359") {
- ds_send.setColumn(0, "totm", ds_init_sumtmflaglist.getColumn(0, "totm") + "59" );
- } else {
- ds_send.setColumn(0, "totm", ds_init_sumtmflaglist.getColumn(0, "totm") + "00" );
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "fromddflag") == "0") { // 전일
- ds_send.setColumn(0, "fromddflag", utlf_getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if( ds_init_sumtmflaglist.getColumn(0, "fromddflag") == "1") { // 당일
- ds_send.setColumn(0, "fromddflag", utlf_getCurrentDate());
- }
-
- if( ds_init_sumtmflaglist.getColumn(0, "toddflag") == "0") { // 전일
- ds_send.setColumn(0, "toddflag", utlf_getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD") );
- } else if( ds_init_sumtmflaglist.getColumn(0, "toddflag") == "1") { // 당일
- ds_send.setColumn(0, "toddflag", utlf_getCurrentDate());
- }
- }
- }
- }
- function cf_TRADT10206(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : 재고반영 button event
- ******************************************************************/
- function group3_group2_btn_endref_onclick(obj:Button, e:ClickEventInfo)
- {
- var endtime = ds_send.getColumn(0, "endtime");
- if( !utlf_isNull(endtime) ){
- ds_cond_reqdata.addColumn("srchfromdd", "string", 256);
- ds_cond_reqdata.addColumn("endtime", "string", 256);
- ds_cond_reqdata.addColumn("srchdeptcd", "string", 256);
- var addRow = ds_cond_reqdata.addRow();
-
- ds_cond_reqdata.setColumn(addRow, "srchfromdd", ds_send.getColumn(0, "srchfromdd"));
- ds_cond_reqdata.setColumn(addRow, "endtime", ds_send.getColumn(0, "endtime"));
- ds_cond_reqdata.setColumn(addRow, "srchdeptcd", ds_send.getColumn(0, "srchdeptcd"));
-
- var oParam = {};
- oParam.id = "TXADT50202";
- oParam.service = "pharmacystocapp.DeliveDrugStocSumMngt";
- oParam.method = "reqExeDeliveMisDrugStocSumEnd";
- oParam.inds = "req=ds_cond_reqdata";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXADT50202";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXADT50202") > -1 ){
- ds_send.setColumn(0, "endtime","");
- sysf_messageBox("재고반영이","I001");
- }else{
- ds_send.setColumn(0, "endtime","");
- sysf_messageBox("재고반영이","E009");
- return;
- }
- ds_cond_reqdata.clearData();
- }else{
- sysf_messageBox("재고반영시간을","C002");
- group3.group2.cbo_srchsumtm.setFocus();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRADT50204";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_endinfo=endinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50204";
- tranf_submit(oParam);
- }
- function cf_TXADT50202(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : 마감일자(srchendfromdd) button event
- ******************************************************************/
- function group3_input6_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADT50204";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_endinfo=endinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50204";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : 마감일자(srchendtodd) button event
- ******************************************************************/
- function group3_input7_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADT50204";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_endinfo=endinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50204";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : 마감이력 click event
- ******************************************************************/
- function group3_grd_drugsum_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cRow = ds_main_endinfo.rowposition;
- if( cRow > -1 ){
- ds_send.setColumn(0, "srchfromdd", ds_main_endinfo.getColumn(cRow, "genrdd"));
- var oParam = {};
- oParam.id = "TRADT50202";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndDate";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_sumdtinfo=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50202";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "endtime", ds_main_endinfo.getColumn(cRow, "genrtm"));
- frmf_inputEnterKey("group3.group2.btn_sea", "onclick", new ClickEventInfo);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 마감리스트 상세조회 event
- ******************************************************************/
- function group3_grd_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var grdinx = ds_main_prcplist.rowposition;
- ds_temp.setColumn(0, "drugcd", ds_main_prcplist.getColumn(grdinx, "calcscorcd"));
- ds_temp.setColumn(0, "toddflag", ds_send.getColumn(0, "srchfromdd"));
- ds_temp.setColumn(0, "totm", ds_send.getColumn(0, "endtime"));
- ds_temp.setColumn(0, "issdeptcd", ds_main_prcplist.getColumn(grdinx, "issdeptcd"));
-
- var wndobj = frmf_findPopup("SMADT50201");
-
- if(wndobj == null){
- var objArg = new Object();
- objArg.arg_ds_temp = ds_temp;
- frmf_open("SMADT50201", "SMADT50201", objArg, null, 0, 0, 0, null, null, null, null, null, "M");
- } else {
- wndobj.ds_main_prcplist.clearData();
-
- wndobj.ds_temp.setColumn(0, "drugcd", ds_temp.getColumn(0, "drugcd"));
- wndobj.ds_temp.setColumn(0, "fromtm", ds_temp.getColumn(0, "fromtm"));
- wndobj.ds_temp.setColumn(0, "issdeptcd", ds_temp.getColumn(0, "issdeptcd"));
- wndobj.ds_send.setColumn(0, "fromddflag", ds_send.getColumn(0, "fromddflag"));
- wndobj.ds_send.setColumn(0, "toddflag", ds_send.getColumn(0, "toddflag"));
-
- wndobj.frmf_inputEnterKey("group3.group2.btn_srch", "onclick", new ClickEventInfo);
- }
- }
- function group3_grd_datagrid1_onvtracklast(obj:Grid, e:ScrollEventInfo)
- {
-
- ds_send.setColumn(0, "offset", ds_main_prcplist.rowcount);
-
- dsf_setTypeFormat(ds_send, "offset:INT^pagesize:INT");
-
- dsf_createDs("ds_temp_prcplist");
- ds_temp_prcplist.assign(ds_main_prcplist);
- ds_temp_prcplist.clearData();
-
- var oParam = {};
- oParam.id = "TRADT50200";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetDrugStocSumList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_prcplist=prcpinfo";
- oParam.async = false;
- oParam.callback = "cf_TRADT50200";
- tranf_submit(oParam);
- }
- function cf_TRADT50200(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- if( ds_temp_prcplist.rowcount > 0 ){
- ds_main_prcplist.appendData(ds_temp_prcplist, true, false);
- }
-
- dsf_deleteDs("ds_temp_prcplist");
- }
- /******************************************************************
- * Argument :
- * Description : 재고반영일자 event
- ******************************************************************/
- function group3_group2_srchdd_oncloseup(obj:Calendar, e:CalendarCloseUpEventInfo)
- {
- call_TRADT50202();
- }
- function call_TRADT50202() {
- ds_send.setColumn(0, "endtime", "");
- var oParam = {};
- oParam.id = "TRADT50202";
- oParam.service = "pharmacystocapp.DrugStocSum";
- oParam.method = "reqGetEndDate";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_sumdtinfo=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT50202";
- tranf_submit(oParam);
- }
- function group3_group2_btn_joyongje_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMADT50300", "SMADT50300", null, null, null, null, null, null, null, null, null, null, "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|