123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMD08700" position="absolute 0 0 865 520" titletext="제한항생제 등록" oninit="SPMMD08700_oninit" onload="SPMMD08700_onload">
- <Layouts>
- <Layout>
- <Static id="caption10" text="제한항생제 등록" class="tit_2" position="absolute 0 72 139 92"/>
- <Button id="btn_excel" taborder="1" text="엑셀" class="btn7" position="absolute 811 69 865 88" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_limantibioapplist" taborder="2" binddataset="ds_limantibiodruglist" position="absolute 0 90 865 493" anchor="all" autofittype="col" autoenter="select" onenterdown="grd_limantibioapplist_onenterdown" cellsizingtype="col" cellclickbound="cell" autoupdatetype="dateselect" oncloseup="grd_limantibioapplist_oncloseup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="60"/>
- <Column size="107"/>
- <Column size="385"/>
- <Column size="71"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="승인필요"/>
- <Cell col="2" text="처방코드"/>
- <Cell col="3" text="처방명"/>
- <Cell col="4" text="차수"/>
- <Cell col="5" text="시작일자"/>
- <Cell col="6" text="종료일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag == "Y" || chkflag == 1) ? 1 : 0"/>
- <Cell col="2" style="align:left middle;" text="bind:prcpcd"/>
- <Cell col="3" style="align:left middle;" text="bind:prcpnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:dgflag" editautoselect="true" editacceptsenter="false"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:valifromdd" editautoselect="true"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:valitodd" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption6" text="제한항생제 등록" class="tit_1" position="absolute 0 0 168 25"/>
- <Button id="button1" taborder="3" text="저장" class="btn4" onclick="button1_onclick" anchor="right bottom" position="absolute 810 499 865 520" positiontype="position"/>
- <Div id="Div00" anchor="left top right" taborder="4" class="div_SA" position="absolute 0 25 865 65" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption2" text="처방코드 :" class="search_name" position="absolute 10 11 89 31"/>
- <Edit id="input5" taborder="4" position="absolute 105 11 270 31" autoselect="true" onkeydown="Div00_input5_onkeydown" inputmode="upper"/>
- <Static id="caption13" text="처방명:" class="search_name" position="absolute 375 11 438 31"/>
- <Edit id="input6" taborder="5" position="absolute 452 11 617 31" autoselect="true" onkeydown="Div00_input6_onkeydown"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 777 10 783 33" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 796 11 852 31" anchor="top right" onclick="Div00_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_limantibiodruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_limantibiodruglist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="체크여부"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="dgflag" type="STRING" size="256" sumtext="차수구분"/>
- <Column id="valifromdd" type="STRING" size="256" sumtext="유효시작일자"/>
- <Column id="valitodd" type="STRING" size="256" sumtext="유효종료일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.input5" propid="value" datasetid="ds_cond" columnid="prcpcd"/>
- <BindItem id="item1" compid="Div00.input6" propid="value" datasetid="ds_cond" columnid="prcpnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-18
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-18 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMD08700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMD08700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_limantibioapplist, 0);
-
- var sUserId = sysf_getUserInfo ( "userid" );
- if(lf_ContainsHardCD("286", sUserId)) {
- button1.enable = true;
- } else {
- button1.enable = false;
- }
-
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- function Div00_input5_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- }
- function Div00_input6_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
- }
- }
- function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRMMD08701";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqGetLimAntibioMasterPrcpList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_limantibiodruglist=limantibiodruglist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_limantibioapplist, "제한항생제등록내역", "SheetName");
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var oDsUpdate = grdf_getGridUpdateData(grd_limantibioapplist);
- grdf_setStatusColumn(oDsUpdate, "m");
- ds_savedata.copyData(oDsUpdate, true);
- var oParam = {};
- oParam.id = "TXMMD08701";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqExeLimAntibiomasterPrcpCd";
- oParam.inds = "savedata=ds_savedata";
- oParam.outds = "ds_limantibiodruglist=limantibiodruglist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function ds_limantibiodruglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkflag") {
- obj.setColumn(e.row, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
-
- if(e.newvalue == "Y" || e.newvalue == 1) {
- obj.setColumn(e.row, "valitodd", "99991231");
- } else {
- obj.setColumn(e.row, "valitodd", utlf_getCurrentDate() - 1);
- }
- }
- }
- function grd_limantibioapplist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- function grd_limantibioapplist_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- ]]></Script>
- </Form>
- </FDL>
|