123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLMF01300" position="absolute 0 0 1202 787" titletext="New Form" oninit="SMLMF01300_oninit" onload="SMLMF01300_onload">
- <Layouts>
- <Layout>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1127 22 1195 44" onclick="btn_reset_onclick" anchor="top right"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1068 22 1124 44" onclick="btn_save_onclick" anchor="top right"/>
- <Static id="caption6" text="미생물검사그룹관리" class="tit_1" position="absolute 0 0 144 25"/>
- <Static id="caption1" text="검사그룹 리스트" class="tit_2" position="absolute 1 95 118 111"/>
- <Div id="group1" taborder="3" position="absolute 0 50 1195 85" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 270 7 276 29"/>
- <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 15 9 105 26"/>
- <Static id="caption4" text="검색구분 :" class="search_name" position="absolute 737 9 827 26" anchor="top right"/>
- <Combo id="cmb_RefFlag" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 99 8 249 27" value="1" text="사용가능자료" index="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Button id="btn_Ref" taborder="2" text="조회" class="btn1" position="absolute 288 7 344 29" onclick="group1_btn_Ref_onclick"/>
- <Button id="btn_search" taborder="3" text="검색" class="btn1" position="absolute 1123 7 1179 29" onclick="group1_btn_search_onclick" anchor="top right"/>
- <Combo id="cmb_search" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 830 8 980 27" value="1" text="코드" index="0" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Edit id="ipt_searchtext" taborder="5" class="input_search" position="absolute 983 8 1093 27" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" text="검사그룹에 포함할 검체설정" class="tit_2" position="absolute 581 95 773 112" anchor="top right"/>
- <Static id="caption5" text="검체정보" class="tit_2" position="absolute 895 95 972 112" anchor="top right"/>
- <Grid id="grd_spclist" taborder="4" binddataset="ds_grd_spclist" useinputpanel="false" position="absolute 891 115 1196 784" anchor="top right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="29"/>
- <Column size="56"/>
- <Column size="195"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" text="선택"/>
- <Cell col="2" displaytype="normal" text="코드"/>
- <Cell col="3" displaytype="normal" text="검체명"/>
- </Band>
- <Band id="body">
- <Cell text="expr:expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" displaytype="normal" style="align:left middle;" text="bind:spccd"/>
- <Cell col="3" displaytype="normal" style="align:left middle;" text="bind:spcscrnnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_worktestgruplist" taborder="5" binddataset="ds_grd_worktestgruplist" useinputpanel="false" position="absolute 1 115 575 784" oncellclick="grd_worktestgruplist_oncellclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="98"/>
- <Column size="98"/>
- <Column size="57"/>
- <Column size="100"/>
- <Column size="100"/>
- <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="그룹화면명"/>
- <Cell col="7" text="그룹출력명"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:worktestgrupfromdd" mask="yyyy-MM-dd" enable="true"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:worktestgruptodd" mask="yyyy-MM-dd" enable="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:worktestgrupcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:worktestgrupnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:worktestgrupabbrnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:worktestgrupscrnm"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:worktestgrupprntnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_worktestgrupspclist" taborder="6" binddataset="ds_grd_worktestgrupspclist" useinputpanel="false" position="absolute 582 115 851 784" anchor="top right bottom" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="31"/>
- <Column size="91"/>
- <Column size="146"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" text="코드"/>
- <Cell col="2" displaytype="normal" text="검체명"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="normal" style="align:left middle;" text="bind:spccd"/>
- <Cell col="2" displaytype="normal" style="align:left middle;" text="bind:spcscrnnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_rowadd" taborder="7" text="행추가" class="btn2" position="absolute 519 90 572 109" onclick="btn_rowadd_onclick" anchor="top right"/>
- <Button id="btn_rowdel" taborder="8" text="행삭제" class="btn2" position="absolute 795 90 848 109" onclick="btn_rowdel_onclick" anchor="top right"/>
- <Button id="btn_spc" taborder="9" class="icon_left" position="absolute 858 410 884 429" onclick="btn_spc_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcscrnnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_worktestgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="worktestgrupfromdd" type="STRING"/>
- <Column id="worktestgruptodd" type="STRING"/>
- <Column id="worktestgrupcd" type="STRING"/>
- <Column id="worktestgrupnm" type="STRING"/>
- <Column id="worktestgrupabbrnm" type="STRING"/>
- <Column id="worktestgrupscrnm" type="STRING"/>
- <Column id="worktestgrupprntnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_worktestgrupspclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="spccd" type="STRING"/>
- <Column id="spcscrnnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refgbn" type="STRING" size="256"/>
- <Column id="searchgbn" type="STRING" size="256"/>
- <Column id="searchnm" type="STRING" size="256"/>
- <Column id="btnflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refgbn">1</Col>
- <Col id="searchgbn">1</Col>
- </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="data1" type="STRING" size="256"/>
- <Column id="data2" type="STRING" size="256"/>
- <Column id="worktestgrupcd" type="STRING" size="256"/>
- <Column id="spccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_listinfo_worktestgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="worktestgrupfromdd" type="STRING" size="256"/>
- <Column id="worktestgruptodd" type="STRING" size="256"/>
- <Column id="worktestgrupcd" type="STRING" size="256"/>
- <Column id="worktestgrupnm" type="STRING" size="256"/>
- <Column id="worktestgrupabbrnm" type="STRING" size="256"/>
- <Column id="worktestgrupscrnm" type="STRING" size="256"/>
- <Column id="worktestgrupprntnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_listinfo_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="spccd" type="STRING" size="256"/>
- <Column id="spcscrnnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_spcinfo_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="spccd" type="STRING" size="256"/>
- <Column id="spcscrnnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="worktestgrupfromdd" type="STRING"/>
- <Column id="worktestgruptodd" type="STRING"/>
- <Column id="worktestgrupcd" type="STRING"/>
- <Column id="worktestgrupnm" type="STRING"/>
- <Column id="worktestgrupabbrnm" type="STRING"/>
- <Column id="worktestgrupscrnm" type="STRING"/>
- <Column id="worktestgrupprntnm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_spccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <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";
- function SMLMF01300_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLMF01300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_worktestgruplist);
- grdf_initGrid(grd_worktestgrupspclist);
- grdf_initGrid(grd_spclist);
- }
- //조회
- function fGetSpcGrup(gbn)
- {
- ds_hidden_ref.setColumn(0, "btnflag", gbn);
-
- var oParam = {};
- oParam.id = "TRLMF01301";
- oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
- oParam.method = "reqGetWorkTestGrupList";
- oParam.inds = "cond=ds_hidden_ref";
- oParam.outds = "ds_grd_worktestgruplist=worktestgruplist ds_grd_spclist=spclist";
- oParam.async = false;
- //oParam.callback = "cf_TRLMF01301";
- tranf_submit(oParam);
- }
- //상세조회
- function fOnclick_grd_worktestgruplist()
- {
- var row = ds_grd_worktestgruplist.rowposition;
-
- if(row >= 0)
- {
- ds_send.setColumn(0, "worktestgrupcd", ds_grd_worktestgruplist.getColumn(row, "worktestgrupcd"));
- var oParam = {};
- oParam.id = "TRLMF01302";
- oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
- oParam.method = "reqGetWorkTestGrupKindSpcList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_worktestgrupspclist=spclist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- //저장
- function fExeSave()
- {
- var arrPostion = new Array();
- for(i = 0; i < ds_grd_worktestgrupspclist.rowcount; i++)
- {
- arrPostion[0] = i;
- grdf_setStatus(grd_worktestgrupspclist, "I", arrPostion);
- }
- grdf_setStatusColumn(ds_grd_worktestgrupspclist, "status");
-
- var row = ds_grd_worktestgruplist.rowposition;
- ds_send_spccd.copyData(grdf_getGridUpdateData(grd_worktestgrupspclist));
- ds_send_data2.copyRow(0, ds_grd_worktestgruplist, ds_grd_worktestgruplist.rowposition);
-
- var oParam = {};
- oParam.id = "TXLMF01301";
- oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
- oParam.method = "reqExeWorkTestGrupKindSpcList";
- oParam.inds = "cond1=ds_send_spccd cond2=ds_send_data2";
- oParam.async = false;
- tranf_submit(oParam);
- }
- //목록추가
- function fOnclick_btn()
- {
- var row = ds_grd_worktestgruplist.rowposition;
- var worktestgrupcd = ds_listinfo_worktestgruplist.getColumn(row, "worktestgrupcd");
-
- var equaldata = true;
-
- for(i = 0; i < ds_grd_spclist.rowcount; i++)
- {
- var equaldata = true;
- if(ds_grd_spclist.getColumn(i, "chk") == 1)
- {
- var spccd = ds_grd_spclist.getColumn(i, "spccd");
- var spcscrnnm = ds_grd_spclist.getColumn(i, "spcscrnnm");
- var str = spccd + spcscrnnm ;
-
- for(j = 0; j < ds_grd_worktestgrupspclist.rowcount; j++)
- {
- var spccd2 = ds_grd_worktestgrupspclist.getColumn(j, "spccd");
- var spcscrnnm2 = ds_grd_worktestgrupspclist.getColumn(j, "spcscrnnm");
- var str2 = spccd2 + spcscrnnm
- if(str == str2)
- {
- equaldata = false;
- }
- }
- if(equaldata)
- {
- var a = ds_grd_worktestgrupspclist.addRow();
- ds_grd_worktestgrupspclist.copyRow(a, ds_grd_spclist, i);
- equaldata = true;
- }
- else
- {
- var spcscrnnm = ds_grd_spclist.getColumn(i, "spcscrnnm");
- alert(spcscrnnm + "은 이미 가지고 있습니다.");
- }
- }
- }
- }
- //행추가
- function finsRowAdd()
- {
- var addRw = ds_grd_worktestgruplist.addRow();
- var arrPostion = new Array();
- arrPostion[0] = addRw;
- grdf_setStatus(grd_worktestgruplist, "I", arrPostion);
- }
- //행삭제
- function fInsRowdel()
- {
- ds_grd_worktestgrupspclist.deleteRow(ds_grd_worktestgrupspclist.rowposition);
- }
- //조회
- function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetSpcGrup(1);
- }
- //검색
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetSpcGrup(2);
- }
- //행추가
- function btn_rowadd_onclick(obj:Button, e:ClickEventInfo)
- {
- finsRowAdd();
- }
- //목록추가
- function btn_spc_onclick(obj:Button, e:ClickEventInfo)
- {
- fOnclick_btn();
- }
- //초기화
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- //상세조회
- function grd_worktestgruplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fOnclick_grd_worktestgruplist();
- }
- //저장
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSave();
- }
- //행삭제
- function btn_rowdel_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsRowdel();
- }
- ]]></Script>
- </Form>
- </FDL>
|