123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRST03301" position="absolute 0 0 860 780" titletext="약품 재고 관리" onload="SMRST03301_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 836 21" style="" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 194 22" style="" text="약품 재고 환자별 상세 내역" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 15 836 760" style="">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 0 5 820 50" style="">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 3 815 40" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;"/>
- <Static id="caption1" class="search_name" position="absolute 185 15 370 32" style="align: middle;" text="조회_마감_재고반영 부서" visible="false"/>
- <Button id="btn_srch" class="btn3" taborder="18" visible="false" position="absolute 748 10 804 32" style="" text="조회" onclick="group3_group2_btn_srch_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption10" class="tit_2" position="absolute 6 51 189 72" style="" text="상세 내역"/>
- <Grid id="datagrid1" binddataset="ds_main_prcplist_prcpinfo" position="absolute 0 85 815 720" style="" onscroll="group3_datagrid1_onscroll" onaftersort="group3_datagrid1_onaftersort" oncelldblclick="group3_datagrid1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="69"/>
- <Column size="0"/>
- <Column size="81"/>
- <Column size="82"/>
- <Column size="56"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="180"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="마감일자"/>
- <Cell col="1" text="마감시간"/>
- <Cell col="2" text="적용일자"/>
- <Cell col="3" text="약품구분"/>
- <Cell col="4" text="입고부서"/>
- <Cell col="5" text="병동"/>
- <Cell col="6" text="등록번호"/>
- <Cell col="7" text="환자명"/>
- <Cell col="8" text="약품코드"/>
- <Cell col="9" text="약품명"/>
- <Cell col="10" text="불출수량"/>
- <Cell col="11" text="UNIQNO"/>
- <Cell col="12" text="투약번호"/>
- <Cell col="13" text="재고반영여부"/>
- </Band>
- <Band id="body">
- <Cell text="bind:genrdd"/>
- <Cell col="1" text="bind:genrtm"/>
- <Cell col="2" text="bind:prcpdd"/>
- <Cell col="3" text="bind:spcldrug"/>
- <Cell col="4" text="bind:deptnm"/>
- <Cell col="5" text="bind:wardnm"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:panm"/>
- <Cell col="8" text="bind:calcscorcd"/>
- <Cell col="9" text="bind:engnm"/>
- <Cell col="10" text="bind:execprcptotqty"/>
- <Cell col="11" text="bind:execdd"/>
- <Cell col="12" displaytype="text" style="align:center middle;" text="bind:drugno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 0 68 814 71" style="strokepen:5 solid #33bbbbff;" anchor="default"/>
- <Button id="btn_excsave" class="btn2" visible="false" position="absolute 15 15 79 34" style="" text="엑셀저장" onclick="group3_btn_excsave_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_chkinstcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_chksum_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="chkast" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chkast"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_updmflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_updmflaglist_flaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256"/>
- <Column id="chktm" type="STRING" size="256"/>
- <Column id="sumdtinfo" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_chksum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="patinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_prnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prninfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prninfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_sumtmflaglist_flaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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>
- <Dataset id="ds_send_sumlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="prcpflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpflag">O</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_chkpid_pharm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pharmflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pharmflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_chkpid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_astlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="astinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="astinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="execdeptcd" 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="indeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchfromdd"/>
- <Col id="calcscorcd"/>
- <Col id="execdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_sumtmflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_prcplist_prcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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="deptnm" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="panm" 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="drugno" 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="deptnm"/>
- <Col id="wardnm"/>
- <Col id="pid"/>
- <Col id="panm"/>
- <Col id="calcscorcd"/>
- <Col id="engnm"/>
- <Col id="execprcptotqty"/>
- <Col id="execdd"/>
- <Col id="drugno"/>
- <Col id="issdeptcd"/>
- <Col id="prcpgenrflag"/>
- <Col id="execprcpuniqno"/>
- <Col id="sumflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chkinstcd_hosp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hospnm" type="STRING" size="256"/>
- <Column id="hospnm1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hospnm"/>
- <Col id="hospnm1"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMRST03301_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group3.datagrid1);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- //화면 Control을 초기화한다
- fInitialize();
- }
- function fInitialize() {
- try
- {
- ds_temp.copyData(arg_ds_temp);
- group3.group2.btn_srch.click();
-
- }
- catch(e)
- {
-
- }
-
- }
-
- function group3_group2_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
- ds_send.setColumn( 0, "calcscorcd",ds_temp.getColumn(0, "drugcd"));
- ds_send.setColumn( 0, "toddflag",ds_temp.getColumn(0, "toddflag"));
- ds_send.setColumn( 0, "indeptcd",ds_temp.getColumn(0, "indeptcd"));
- ds_send.setColumn( 0, "issdeptcd",ds_temp.getColumn(0, "issdeptcd"));
-
- var oParam = {};
- oParam.id = "TXRST06905";
- oParam.service = "stocsumapp.StocSumMngt";
- oParam.method = "reqGetGoodDetList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_prcplist_prcpinfo=prcpinfo";
- oParam.async = false;
- //oParam.callback = "cf_TXRST06905";
- tranf_submit(oParam);
- }
- // function group3_datagrid1_onscroll() {
- //
- // if(group3.datagrid1.vscroll.attribute("max") == group3.datagrid1.vscroll.attribute("pos")) {
- // // end of scroll
- // ds_send.setColumn( 0, "offset", group3.datagrid1.rows-group3.datagrid1.fixedRows); // grid의 header row는 제외
- // // submit("TRADT50203");
- // var oParam = {};
- // oParam.id = "TRADT50203";
- // oParam.service = "pharmacystocapp.DrugStocSum";
- // oParam.method = "reqGetDrugStocSumDetlList";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=prcpinfo";
- // oParam.async = false;
- // oParam.callback = "cf_TRADT50203";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRADT50203(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRADT50203(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRADT50203") > -1
- // arErrorCode.pop("TRADT50203") < 0
- // */
- //
- //
- // group3.datagrid1.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- // }
- //
- // }
- //
- // function group3_datagrid1_onaftersort() {
- //
- // group3.datagrid1.gridToInstance();
- //
- // }
- //
- // function group3_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- //
- // }
- //
- // function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
- //
- // // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
- // // submit("TRADT11026");
- // var oParam = {};
- // oParam.id = "TRADT11026";
- // oParam.service = "pharmacydrugsumapp.BeforeCure";
- // oParam.method = "reqGetChkAst";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=item";
- // oParam.async = false;
- // oParam.callback = "cf_TRADT11026";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRADT11026(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRADT11026(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRADT11026") > -1
- // arErrorCode.pop("TRADT11026") < 0
- // */
- //
- //
- // var chkast = ds_init_chksum_item.getColumn(0, "chkast");
- //
- // // ast에 집계된 내역이 없으면 중지
- // if( chkast != "Y") {
- // alert("조회된 일자로 발주된 데이터가 없습니다. ");
- //
- // //model.refresh();
- //
- // return;
- // }
- //
- // // 조회일자로 집계된 내역을 출력한다.
- // var prcplist = ds_main_prcplist_prcpinfo.getColumn(0, "inorddeptnm");
- // ds_send.setColumn( 0, "prnflag", "E");
- //
- // if (prcplist == "") {
- // model.removeNodeset("ds_main_prcplist_prcpinfo/");
- // // submit("TRADT11024");
- // var oParam = {};
- // oParam.id = "TRADT11024";
- // oParam.service = "pharmacydrugsumapp.BeforeCure";
- // oParam.method = "reqGetAstSum";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=astinfo";
- // oParam.async = false;
- // oParam.callback = "cf_TRADT11024";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRADT11024(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRADT11024(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRADT11024") > -1
- // arErrorCode.pop("TRADT11024") < 0
- // */
- //
- //
- // }
- //
- // var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- //
- // if (file != ""){
- // grd.prcp.saveExcel(file);
- // }
- //
- // ds_send_prcplist_prcpinfo.clearData();
- //
- // }
- //
- ]]></Script>
- </Form>
- </FDL>
|