123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLMF10200" position="absolute 0 0 700 420" titletext="검사시행부서코드관리" oninit="model1_oninit" onload="SPLMF10200_onload">
- <Layouts>
- <Layout>
- <Div id="group1" taborder="1" position="absolute 12 46 688 88" positiontype="position">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 0 2 676 37" anchor="left top right"/>
- <Button id="btn_search" taborder="1" text="조회" onlbuttonup="btn_search_onlbuttonup" class="btn1" position="absolute 608 10 664 30" anchor="default" positiontype="position" onclick="group1_btn_search_onclick"/>
- <Shape id="line11" linetype="vertical" class="line_4" position="absolute 583 6 583 28" anchor="default" positiontype="position"/>
- <Combo id="cmb_srchflag" taborder="2" class="combo_search" position="absolute 82 10 232 30" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="코드">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">코드명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption4" text="검색구분" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
- <Edit id="ipt_refflag" taborder="3" class="input_search" position="absolute 235 10 345 30" anchor="default" imemode="hangul" positiontype="position" onkeydown="group1_ipt_refflag_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_antibiocddetl" taborder="2" useinputpanel="false" position="absolute 12 98 688 385" autofittype="col" binddataset="ds_grid_grd_antibiocddetl" positiontype="position" transparenthittest="false" treeuseexpandkey="false" autoenter="none" class="CSS::lis.css">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="20"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="상태"/>
- <Cell col="2"/>
- <Cell col="3" text="항균제코드"/>
- <Cell col="4" text="항균제명"/>
- <Cell col="5" text="항균제명(약어)"/>
- <Cell col="6" text="항균제명(화면)"/>
- <Cell col="7" text="항균제명(출력)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="image" expr="expr:expr:expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="2" displaytype="expr:lf_CheckAnticd(currow) == -1 ? 'checkbox': 'normal '" edittype="expr:lf_CheckAnticd(currow) == -1 ? 'checkbox': 'none '" text="bind:chk" suppressedit="false"/>
- <Cell col="3" displaytype="normal" edittype="none" text="bind:antibiocd"/>
- <Cell col="4" displaytype="normal" edittype="none" text="bind:antibionm"/>
- <Cell col="5" displaytype="normal" edittype="none" text="bind:antibioabbrnm"/>
- <Cell col="6" displaytype="normal" edittype="none" text="bind:antibioscrnnm"/>
- <Cell col="7" displaytype="normal" edittype="none" text="bind:antibioprntnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="3" text="추가" onclick="button1_onclick" class="btn5" position="absolute 585 388 629 410" positiontype="position"/>
- <Static id="caption1" text="통합항균제코드목록" class="tit_2" position="absolute 16 8 176 22"/>
- <Button id="btn_cfm" taborder="4" text="닫기" class="btn4" position="absolute 632 388 688 410" onclick="btn_cfm_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_antibiocddetl" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" preload="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="antibiocd" type="STRING"/>
- <Column id="antibionm" type="STRING"/>
- <Column id="antibioabbrnm" type="STRING"/>
- <Column id="antibioscrnnm" type="STRING"/>
- <Column id="antibioprntnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- var lgv_sDeptFlag = "";
- //검색
- function lf_GetAntiSearch(btnf){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "refgbn", val: group1.cmb_srchflag.value}
- , {col: "searchgbn", val: group1.cmb_srchflag.value}
- , {col: "searchnm", val: group1.ipt_refflag.value}
- , {col: "btnflag", val: btnf}
- ]);
- ds_grid_grd_antibiocddetl.clearData();
-
-
- var oParam = {};
- oParam.id = "TRLMF00201";
- oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
- oParam.method = "reqGetUnityAntibioList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_antibiocddetl=getUnityAntibioList";
- oParam.async = false;
- oParam.callback = "cbf_SPLMF10200";
- tranf_submit(oParam);
- }
- // 데이터셋불러오기
- function lf_initDataSet(){
-
- lf_getDbDeptcd("0000|","cbf_SPLMF10200");
- }
- //콜백함수
- function cbf_SPLMF10200(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- //통합검체 중 등록된 검체 검색
- function lf_CheckAnticd(nRow){
- var nFindRow=0;
- nFindRow=opener.ds_grid_grd_antibiocddetl.findRow("antibiocd",ds_grid_grd_antibiocddetl.getColumn(nRow,"antibiocd"));
- return nFindRow;
- }
- function SPLMF10200_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- lf_initDataSet();
- //조회
- lf_GetAntiSearch("1");
-
- //그리드 Sort
- grdf_setGridSort(grd_antibiocddetl);
- }
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (group1.ipt_refflag.value == undefined || group1.ipt_refflag.value == ""){
- lf_GetAntiSearch("1");
- } else {
- lf_GetAntiSearch("2");
- }
- }
- //추가
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_antibiocddetl.filterstr = "chk==1";
- opener.ds_grid_grd_select.copyData( ds_grid_grd_antibiocddetl , true);
-
- this.close();
- }
- // 검색어 입력 후 엔터
- function group1_ipt_refflag_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode=="13"){
- if (group1.ipt_refflag.value == undefined || group1.ipt_refflag.value == lgv_sDeptFlag){
- lf_GetAntiSearch("1");
- } else {
- lf_GetAntiSearch("2");
- }
- }
- }
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|