123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLQP00300" position="absolute 0 0 535 588" titletext="장비별 검사항목 조회" oninit="SPLQP00300_oninit" onload="SPLQP00300_onload">
- <Layouts>
- <Layout>
- <Static id="caption5" text="장비별 검사항목 조회" class="tit_2" position="absolute 0 0 150 22"/>
- <Shape id="line8" class="line_10" position="absolute 0 16 530 22" anchor="left top right"/>
- <Shape id="line2" linetype="vertical" class="line_3" position="absolute 530 561 530 561"/>
- <Grid id="grd_eqmtTestList" taborder="1" binddataset="ds_main_eqmtTestList" useinputpanel="false" cellsizingtype="col" position="absolute 0 21 530 561" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="70"/>
- <Column size="130"/>
- <Column size="80"/>
- <Column size="220"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="그룹코드"/>
- <Cell col="2" text="사용부서"/>
- <Cell col="3" text="검사코드"/>
- <Cell col="4" text="검사명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" style="align:left middle;" text="bind:eqmtcd"/>
- <Cell col="2" style="align:left middle;" text="bind:eqmtnm"/>
- <Cell col="3" style="align:left middle;" text="bind:testcd"/>
- <Cell col="4" style="align:left middle;" text="bind:testnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_accept" taborder="2" text="확인" class="btn4" position="absolute 416 562 472 584" anchor="right bottom" onclick="btn_accept_onclick"/>
- <Button id="btn_can" taborder="3" text="닫기" class="btn4" position="absolute 474 562 530 584" anchor="right bottom" onclick="btn_can_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_eqmtTestList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="eqmtcd" type="STRING"/>
- <Column id="eqmtnm" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" 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="eqmtcd" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="eqmtcd2" type="STRING" size="256"/>
- <Column id="getflag" type="STRING" size="256"/>
- <Column id="divgrupcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="eqmtcd"/>
- <Col id="deptflag"/>
- <Col id="eqmtcd2"/>
- <Col id="getflag"/>
- <Col id="divgrupcd"/>
- </Row>
- </Rows>
- </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="testnm" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="testcd2" type="STRING" size="256"/>
- <Column id="testnm2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="testnm"/>
- <Col id="testcd"/>
- <Col id="testcd2"/>
- <Col id="testnm2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SPLQP00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPLQP00300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_eqmtTestList);
-
- if (frmf_checkOpener())
- {
- var param = opener.frmf_getParameter("opener_parameter_id");
-
- ds_send.setColumn(0, "divgrupcd", arg_divgrupcd);
-
- if(!utlf_isNull(param))
- {
- condarray = String(param).split("▦");
-
- ds_send.setColumn(0, "eqmtcd", condarray[1]);
- ds_send.setColumn(0, "deptflag", condarray[2]);
-
- if(condarray.length != "3")
- {
- grd_eqmtTestList.setFormatColProperty(1, "size", 0);
- grd_eqmtTestList.setFormatColProperty(2, "size", 0);
-
- ds_send.setColumn(0, "eqmtcd2", condarray[3]);
- ds_send.setColumn(0, "getflag", "Dual");
- }
- else
- {
- ds_send.setColumn(0, "getflag", "Single");
- }
- fGetTestList();
- }
- }
- }
- function fGetTestList()
- {
- var oParam = {};
- oParam.id = "TRLQP00115";
- oParam.service = "grademngtprintapp.QCRsltReference";
- oParam.method = "reqGetTestList3";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_main_eqmtTestList=eqmttestlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLQP00115";
- tranf_submit(oParam);
- }
- function btn_accept_onclick(obj:Button, e:ClickEventInfo)
- {
- fAccept();
- }
- function btn_can_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeCancel();
- }
- function fAccept()
- {
- var testnm = ""; //검사명 ,로 구분(검사항목조회에 보이는놈)
- var testnm2 = ""; //검사명 ▦로 구분(그리드 셋팅때 사용)
- var testcd = ""; //검사코드
- var testcd2 = ""; //검사코드2(조회때 사용)
-
- for(var i = 0; i < ds_main_eqmtTestList.rowcount; i++)
- {
- if(ds_main_eqmtTestList.getColumn(i, "chk") == "1")
- {
- if (utlf_isNull(testnm))
- {
- testnm = testnm + ds_main_eqmtTestList.getColumn(i, "testnm");
- testnm2 = testnm2 + ds_main_eqmtTestList.getColumn(i, "testnm");
- testcd = testcd + ds_main_eqmtTestList.getColumn(i, "testcd");
- testcd2 = testcd2 + ds_main_eqmtTestList.getColumn(i, "testcd");
- }
- else
- {
- testnm = testnm + ", " + ds_main_eqmtTestList.getColumn(i, "testnm");
- testnm2 = testnm2 + "▦" + ds_main_eqmtTestList.getColumn(i, "testnm");
- testcd = testcd + "▦" + ds_main_eqmtTestList.getColumn(i, "testcd");
- testcd2 = testcd2 + "', '" + ds_main_eqmtTestList.getColumn(i, "testcd");
- }
- }
- }
-
- ds_hidden_ref.setColumn(0, "testcd", testcd);
- ds_hidden_ref.setColumn(0, "testcd2", testcd2);
- ds_hidden_ref.setColumn(0, "testnm", testnm);
- ds_hidden_ref.setColumn(0, "testnm2", testnm2);
-
- opener.ds_hidden_ref_testlist.copyData(ds_hidden_ref);
-
- fExeCancel();
- }
- function fExeCancel()
- {
- this.close();
- }]]></Script>
- </Form>
- </FDL>
|