123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLR90500" position="absolute 0 0 328 342" titletext="Abnormal Result" oninit="SMLLR90500_oninit" onload="SMLLR90500_onload">
- <Layouts>
- <Layout>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 26 325 32" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="datagrid3" taborder="1" binddataset="ds_TestInfo" useinputpanel="false" position="absolute 0 31 325 309" autofittype="col" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="34"/>
- <Column size="81"/>
- <Column size="163"/>
- </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="검사항목명"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" text="bind:testcd"/>
- <Cell col="3" displaytype="text" text="bind:tclsscrnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" text="Abnormal Result" class="tit_2" position="absolute 0 10 133 28"/>
- <Button id="button1" taborder="2" text="선택" class="btn4" position="absolute 210 314 266 336" onclick="button1_onclick"/>
- <Button id="button2" taborder="3" text="닫기" class="btn4" position="absolute 269 314 325 336" onclick="button2_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_TestInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="tclsscrnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_abnormalresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="abnormallist" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </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 SMLLR90500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLLR90500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(datagrid3);
- try
- {
- ds_TestInfo.copyData(arg_ds_abnormal);
- var testcd = vtestcd;
- }catch(e){};
- ds_TestInfo.addColumn("chk","string");
- ds_TestInfo.filterstr = "testcd2== '" + testcd + "'";
- }
- //선택
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fAbResult();
- }
- //선택
- function fAbResult()
- {
- var cnt = ds_TestInfo.rowcount;
- dsf_copyColInfo(ds_hidden_abnormalresult,ds_TestInfo);
- var abTF = false;
-
- for(var i = 0; i < cnt; i++)
- {
-
- if(ds_TestInfo.getColumn(i, "chk") == 1)
- {
- ds_hidden_abnormalresult.copyRow(ds_hidden_abnormalresult.addRow(),ds_TestInfo,i);
-
- abTF = true;
- }
- }
-
- if(abTF)
- {
- opener.ds_copy_abnormallist.copyData(ds_hidden_abnormalresult);
- this.close();
- }
- else
- {
- sysf_messageBox("검사항목을","C002","") ;
- return;
- }
- }
- //닫기
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|