123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLLF10100" position="absolute 0 0 668 282" titletext="검사시행부서코드관리" oninit="SPLLF10100_oninit" onload="SPLLF10100_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="통합계코드목록" class="tit_2" position="absolute 2 3 114 19"/>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 17 665 30"/>
- <Grid id="grd_sect" taborder="1" binddataset="ds_main_sect" useinputpanel="false" position="absolute 0 25 665 255" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="32"/>
- <Column size="20"/>
- <Column size="85"/>
- <Column size="100"/>
- <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"/>
- <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 celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:sectcd"/>
- <Cell col="3" displaytype="normal" edittype="none" text="bind:sectnm"/>
- <Cell col="4" displaytype="normal" edittype="none" text="bind:sectscrnnm"/>
- <Cell col="5" displaytype="normal" edittype="none" text="bind:sectabbrnm"/>
- <Cell col="6" displaytype="normal" edittype="none" text="bind:sectprntnm"/>
- <Cell col="7" displaytype="normal" edittype="none" text="bind:sectlblnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="2" text="추가" class="btn4" position="absolute 551 257 607 279" onclick="button1_onclick"/>
- <Button id="btn_cfm" taborder="3" text="닫기" class="btn4" position="absolute 610 257 666 279" onclick="btn_cfm_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_sect" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="sectcd" type="STRING"/>
- <Column id="sectnm" type="STRING"/>
- <Column id="sectscrnnm" type="STRING"/>
- <Column id="sectabbrnm" type="STRING"/>
- <Column id="sectprntnm" type="STRING"/>
- <Column id="sectlblnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" 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="sectcd" type="STRING" size="256"/>
- <Column id="sectdata" type="STRING" size="256"/>
- <Column id="tsectdata" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="codeflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refgbn">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_addlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="addstring" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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";
- function SPLLF10100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPLLF10100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_sect);
-
- // 초기정보 조회
- ds_send.setColumn(0, "codeflag", "0000|");
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_LB0000=0000";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
- //fSetInit();
- fGetSectTsect();
- }
- // 초기화 버튼
- function fSetInit()
- {
- this.reload();
- }
- // 계리스트 조회
- function fGetSectTsect()
- {
- //grd_sect.rebuildstyle();
-
- ds_send.setColumn(0, "refgbn", ds_hidden_ref.getColumn(0, "refgbn"));
- ds_send.setColumn(0, "deptflag", ds_init_LB0000.getColumn(0, "nm"));
-
- // 계 리스트 조회
- var oParam = {};
- oParam.id = "TRLLF00101";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUnitySectList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_main_sect=getUnitySectList";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF00101";
- tranf_submit(oParam)
-
- }
- //추가
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRow();
- }
- function fAddRow()
- {
- var AddRowString = "";
-
- //for(i = 1 ; i < grd_sect.rows ; i++ )
- for(i = 0; i < ds_main_sect.rowcount; i++)
- {
- //if(model.getValue("/root/main/sectlist["+i+"]/chk") == "true")
- if(ds_main_sect.getColumn(i, "chk") == "1")
- {
- AddRowString = AddRowString + ds_main_sect.getColumn(i, "sectcd") + "▦" //model.getValue("/root/main/sectlist["+i+"]/sectcd") + "▦"
- + ds_main_sect.getColumn(i, "sectnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectnm") + "▦"
- + ds_main_sect.getColumn(i, "sectscrnnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectscrnnm") + "▦"
- + ds_main_sect.getColumn(i, "sectabbrnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectabbrnm") + "▦"
- + ds_main_sect.getColumn(i, "sectprntnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectprntnm") + "▦"
- + ds_main_sect.getColumn(i, "sectlblnm") + "▩" ; //+ model.getValue("/root/main/sectlist["+i+"]/sectlblnm") + "▩" ;
-
- }
- }
-
- var strXML = ds_main_sect.saveXML("ds_main_sect","u");
- opener.ds_grid_grd_addlist.loadXML(strXML);
- this.close();
- }
- //닫기
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|