123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPCDT01100" position="absolute 0 0 457 448" titletext="수치결과검사항목검색" oninit="SPCDT01100_oninit" onload="SPCDT01100_onload">
- <Layouts>
- <Layout>
- <Static id="caption2" text="수치결과검사항목" class="tit_2" position="absolute 0 0 165 21"/>
- <Shape id="line2" class="line_10" position="absolute 0 16 450 22"/>
- <Grid id="grd_testrsltlist" taborder="1" binddataset="ds_main_list_testrsltlist" useinputpanel="false" position="absolute 0 21 450 421" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="19"/>
- <Column size="20"/>
- <Column size="130"/>
- <Column size="210"/>
- <Column size="50"/>
- </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="단위"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:ds_main_list_testrsltlist.rowposition == currow ? '▶' : ''"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
- <Cell col="2" class="text_center" text="bind:testcd"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:testnm"/>
- <Cell col="4" class="text_center" text="bind:rsltunit"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_cancel" taborder="2" text="취소" class="btn4" position="absolute 394 422 450 444" onclick="btn_cancel_onclick"/>
- <Button id="btn_confirm" taborder="3" text="확인" class="btn4" position="absolute 335 422 391 444" onclick="btn_confirm_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_list_testrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_testrsltlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
- <Column id="rsltunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="chk" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_testlist" 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 : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SPCDT01100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPCDT01100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_testrsltlist);
-
- var oParam = {};
- oParam.id = "TRCDT01101";
- oParam.service = "dtmnmngtapp.DtmnTrgt";
- oParam.method = "reqGetTestRsltList";
- oParam.inds = "";
- oParam.outds = "ds_main_list_testrsltlist=testrsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCDT01101";
- tranf_submit(oParam);
-
- var rowCount = ds_main_list_testrsltlist.rowcount;
- if (rowCount < 1)
- {
- sysf_messageBox("수치결과가 ","I004");
- this.close();
- }
- }
- function ds_main_list_testrsltlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTestInfo();
- }
- function fGetTestInfo()
- {
- // 부모창에 값을 넘겨주고 창을 닫는다.
- var count = 0;
- var check_cnt = 0;
- for (var i = 0; i < ds_main_list_testrsltlist.rowcount; i++)
- {
- if(ds_main_list_testrsltlist.getColumn(i, "chk") == "Y")
- {
- var testcd = ds_main_list_testrsltlist.getColumn(i, "testcd");
- var testnm = ds_main_list_testrsltlist.getColumn(i, "testnm");
- var rsltunit = ds_main_list_testrsltlist.getColumn(i, "rsltunit");
-
- dsf_makeValue(ds_temp_testlist, "status", "string", "I"); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "dtmnkey", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "seq", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "testcd", "string", testcd); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "testnm", "string", testnm); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "refh", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "refl", "string", ""); // 임시노드에 선택된 항목을 넣어준다.
- dsf_makeValue(ds_temp_testlist, "rsltunit", "string", rsltunit); // 임시노드에 선택된 항목을 넣어준다.
- opener.ds_main_testlist.copyRow(opener.ds_main_testlist.addRow(), ds_temp_testlist, 0);
- check_cnt++;
- }
- }
- if(check_cnt < 1)
- {
- sysf_messageBox("수치결과검사 리스트를","C002");
- }
- else
- {
- this.close();
- }
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|