123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * Name : SPCDT01100_수치결과검사검색.xrw
- * Summary : 데이터마이닝 검사조건 추가에 따른 검색
- * Programmer : 최정환
- * Date Written : 2009.04.23
- * History : 2009.04.23
- * Remark :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>수치결과검사항목검색</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <testrsltlist/>
- </list>
- </main>
- <temp>
- <testlist>
- <status>I</status>
- <dtmnkey/>
- <seq/>
- <testcd/>
- <testnm/>
- <refh/>
- <refl/>
- <rsltunit/>
- </testlist>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRCDT01101");
- var rowCount = grd_testrsltlist.rows;
- if (rowCount == 0 || rowCount == 1) {
- messageBox("수치결과가 ","I004");
- window.close();
- }
- fCheckAuth();
- ]]>
- </script>
- <submission id="TRCDT01101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- //if (!checkAuth("r")) {
- //}
- //if (!checkAuth("x")) {
- //}
- //if (!checkAuth("p")) {
- //}
- }
-
- function fGetTestInfo() {
- // 부모창에 값을 넘겨주고 창을 닫는다.
- var count = 0;
- var check_cnt = 0;
- for (i=0; i < grd_testrsltlist.rows; i++) {
- if(grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("chk")) == "Y" ){
-
- var testcd = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("testcd"))
- var testnm = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("testnm"))
- var rsltunit = grd_testrsltlist.valueMatrix(i+1,grd_testrsltlist.colRef("rsltunit"))
-
- count = count + 1
- model.makeValue("/root/temp/testlist/status", "I"); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/dtmnkey", ""); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/seq", ""); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/testcd", testcd); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/testnm", testnm); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/refh", ""); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/refl", ""); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/testlist/rsltunit", rsltunit); // 임시노드에 선택된 항목을 넣어준다.
- model.duplicate(opener.root.main, root.temp.testlist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
- model.removenodeset("/root/temp/testlist/status"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/dtmnkey"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/seq"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/testcd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/testnm"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/refh"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/refl"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/testlist/rsltunit"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- check_cnt++;
- }
- }
- if(check_cnt < 1) {
- messageBox("수치결과검사 리스트를","C002");
- } else {
-
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="466" pageheight="473" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:450px; height:430px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:165px; height:13px; vertical-align:middle; ">수치결과검사항목</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:450px; y2:25px; "/>
- <datagrid id="grd_testrsltlist" nodeset="/root/main/list/testrsltlist" allowselection="false" caption="^검사코드^검사명^단위" colwidth="20, 130, 210, 50" extendlastcol="scroll" rowheader="select" style="left:0px; top:30px; width:450px; height:400px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
- <col class="text_center" ref="testcd"/>
- <col ref="testnm"/>
- <col class="text_center" ref="rsltunit"/>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:430px; width:450px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:335px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfo();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:394px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|