123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB70500" position="absolute 0 0 776 563" titletext="Dump처방 반환내역조회" onload="SPADB70500_onload" oninit="SPADB70500_oninit">
- <Layouts>
- <Layout>
- <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 720 536 776 558" onclick="btn_cls_onclick"/>
- <Div id="group2" taborder="3" position="absolute 0 0 775 40" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" text="처방일자 :" class="search_name" position="absolute 15 12 101 29" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 696 8 702 30" anchor="default"/>
- <Button id="btn_sea" taborder="6" text="조회" class="btn1" position="absolute 705 8 761 30" onclick="group2_btn_sea_onclick" anchor="default"/>
- <Calendar id="ipt_drugfromdd" taborder="7" autoselect="true" class="input_essential" position="absolute 87 10 180 29" onchanged="group2_ipt_drugfromdd_onchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_grdlist" taborder="4" binddataset="ds_grdlist" useinputpanel="false" position="absolute 0 69 775 531" autofittype="col" oncelldblclick="grd_mthdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="32"/>
- <Column size="72"/>
- <Column size="68"/>
- <Column size="53"/>
- <Column size="69"/>
- <Column size="229"/>
- <Column size="87"/>
- <Column size="53"/>
- <Column size="105"/>
- </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="처방명"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="처방의"/>
- <Cell col="8" text="처방일시"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" displaytype="text" style="align:center;" text="bind:drugno"/>
- <Cell col="4" style="align:left;padding:0 3 0 3;" text="bind:prcpcd"/>
- <Cell col="5" style="align:left;padding:0 3 0 3;" text="bind:prcpnm"/>
- <Cell col="6" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" displaytype="text" style="align:center;" text="bind:rgstdt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 65 775 71"/>
- <Static id="caption1" text="Dump처방 반환내역 리스트" class="tit_2" position="absolute 0 48 211 70"/>
- <Shape id="line00" class="line_1" position="absolute 0 63 775 69"/>
- <Shape id="line02" class="line_1" position="absolute 0 64 775 70"/>
- <Button id="Button00" taborder="5" text="Dump취소" position="absolute 704 44 776 64" class="btn2" onclick="Button00_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_A0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="rgstdt" type="STRING" size="256"/>
- <Column id="chkyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_rec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_savelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item14" compid="group2.ipt_drugfromdd" propid="value" datasetid="ds_send" columnid="prcpdd"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- /******************************************************************
- * Argument :
- * Description : include
- ******************************************************************/
- include "com_commonxp::comm_main.xjs"
-
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SPADB61200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /******************************************************************
- * Argument :
- * Description : 조회Button Event
- ******************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /******************************************************************
- * Argument :
- * Description : 확인 Button Event
- ******************************************************************/
- /******************************************************************
- * Argument :
- * Description : 닫기 Button Event
- ******************************************************************/
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function SPADB70500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPADB70500_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send.setColumn(0, "prcpdd", utlf_getCurrentDate());
-
- fSearch();
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- fSearch();
- }
- function fSearch() {
-
- var oParam = {};
- oParam.id = "TRADB70501";
- oParam.service = "pharmacyprescriptionapp.Medication";
- oParam.method = "reqGetDumpPrcpList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grdlist=info";
- oParam.async = false;
- //oParam.callback = "cf_TRADB61201";
- tranf_submit(oParam);
- }
- function fSave() {
-
- var chkyn = "";
- var cnt=0;
- for(var i =0 ; i < ds_grdlist.rowcount; i++) {
- chkyn = ds_grdlist.getColumn(i, "chkyn");
-
- if(chkyn == "1") {
- cnt++;
- }
- }
-
- if(cnt == 0) {
- sysf_messageBox("취소할 처방내역이 없습니다.", "I");
- return;
- }
- var rtn = sysf_messageBox("Dump된 처방을 취소하시겠습니까?", "Q");
-
- if(rtn == "7") {
- return;
- }
-
- ds_savelist.clearData();
- var idx;
- var prcpdd;
- var prcpno;
- var prcphistno;
-
- for(var i =0 ; i < ds_grdlist.rowcount; i++) {
- chkyn = ds_grdlist.getColumn(i, "chkyn");
- prcpdd = ds_grdlist.getColumn(i, "prcpdd");
- prcpno = ds_grdlist.getColumn(i, "prcpno");
- prcphistno = ds_grdlist.getColumn(i, "prcphistno");
-
- if(chkyn == "1") {
- idx = ds_savelist.addRow();
- ds_savelist.setColumn(idx, "prcpdd", prcpdd);
- ds_savelist.setColumn(idx, "prcpno", prcpno);
- ds_savelist.setColumn(idx, "prcphistno", prcphistno);
- }
- }
- var oParam = {};
- oParam.id = "TXADB70501";
- oParam.service = "pharmacyprescriptionapp.Medication";
- oParam.method = "reqSetDumpPrcpList";
- oParam.inds = "req=ds_savelist";
- oParam.outds = "ds_saveinfo=info";
- oParam.async = false;
- oParam.callback = "cf_TXADB70501";
- tranf_submit(oParam);
-
- sysf_messageBox("덤프취소처리 완료하였습니다.", "I");
- fSearch();
- }
- function group2_ipt_drugfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- obj.updateToDataset();
- fSearch();
- }
- function cf_TXADB70501(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }]]></Script>
- </Form>
- </FDL>
|