123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASB01500" position="absolute 0 0 484 257" titletext="처방항생제조회" oninit="SPASB01500_oninit" onload="SPASB01500_onload">
- <Layouts>
- <Layout>
- <Button id="btn_cnfm" taborder="1" text="확인" class="btn4" position="absolute 363 231 419 253" onclick="btn_cnfm_onclick"/>
- <Button id="btn_cncl" taborder="2" text="취소" class="btn4" position="absolute 421 231 477 253" onclick="btn_cncl_onclick"/>
- <Grid id="grd_antibiolist" taborder="3" binddataset="ds_grd_antibiolist" useinputpanel="false" autofittype="col" position="absolute 0 0 480 230">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="28"/>
- <Column size="87"/>
- <Column size="314"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1"/>
- <Cell col="2" text="항생제 코드"/>
- <Cell col="3" text="항생제 명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:check"/>
- <Cell col="1" celltype="head" text="expr:currow + 1"/>
- <Cell col="2" text="bind:drugcd"/>
- <Cell col="3" text="bind:drugnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_antibiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING"/>
- <Column id="drugcd" type="STRING"/>
- <Column id="drugnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="count">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_antibioinfo_antibioinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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";
- function SPASB01500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPASB01500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_antibiolist);
- dsf_createDs("ds_send_reqdata");
- ds_send_reqdata.copyData(arg_ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRASB01501";
- oParam.service = "infcmngtapp.HospInfcMngt";
- oParam.method = "reqGetAntibioInfoList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_grd_antibiolist=antibioinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRASB01501";
- tranf_submit(oParam);
- }
- //확인
- function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var bool = "false";
- var iRow = ds_grd_antibiolist.rowposition;
- var iCnt = ds_temp.getColumn(0, "count");
- var selDrugcd = ds_grd_antibiolist.getColumn(iRow, "drugcd");
- if(iCnt == "1" || iCnt == 1)
- {
- opener.ds_grd_antibiomediinfo.clearData();
-
- }
- if(iCnt != 1)
- {
- for(var i=0; i < iCnt; i++)
- {
- if(selDrugcd = ds_temp_antibioinfo_antibioinfolist.getColumn(i, "drugcd"))
- {
- bool = "ture";
- return;
- }
- }
- }
- if(bool == "false")
- {
- this.opener.ds_main_cond.setColumn(0, "drugcd", ds_grd_antibiolist.getColumn(iRow, "drugcd"));
- //this.opener.ds_main_cond.setColumn(0, "drugcd", ds_grd_antibiolist.getColumn(iRow, "drugcd"));
-
- //this.opener.ds_send_reqdata.setColumn(0, "pid", ds_main_cond.getColumn(0, "pid"));
- //this.opener.ds_send_reqdata.setColumn(0, "fromdd", ds_main_cond.getColumn(0, "fromdd"));
- //this.opener.ds_send_reqdata.setColumn(0, "todd", ds_main_cond.getColumn(0, "todd"));
-
-
- this.opener.ds_main_cond.setColumn(0, "pid", ds_send_reqdata.getColumn(0, "pid"));
- this.opener.ds_main_cond.setColumn(0, "fromdd", ds_send_reqdata.getColumn(0, "fromdd"));
- this.opener.ds_main_cond.setColumn(0, "todd", ds_send_reqdata.getColumn(0, "todd"));
-
-
- //opener.javascript.submit("TRASB00801");
-
- this.opener.fSearch();
- iCnt = parseInt(iCnt)+1;
-
- ds_temp_antibioinfo_antibioinfolist.setColumn(iCnt, "drugcd", selDrugcd);
- ds_temp.setColumn(0, "count", iCnt);
-
- }
-
- this.close();
- }
- //취소
- function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|