123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLQP00111.xrw
- * 설 명 : QC장비별검사항목 조회
- * 설 계 자 : PHIS - 승현씨
- * 작 성 자 : PHIS - 승현씨
- * 작 성 일 : 2008.07.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <eqmttestlist>
- <chk/>
- <eqmtcd/>
- <eqmtnm/>
- <testcd/>
- <testnm/>
- </eqmttestlist>
- </main>
- <send>
- <eqmtcd/>
- <deptflag/>
- <eqmtcd2/>
- <getflag/>
- <divgrupcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <testnm/>
- <testcd/>
- <testcd2/>
- <testnm2/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/send/eqmtcd", condarray[1]);
- model.setValue("/root/send/deptflag", condarray[2]);
-
- if(condarray.length != "3"){ //장비상관관계 조회시에는 장비코드가 두개 넘어옴 length = 4
- grd_eqmtTestList.colHidden(1) = true;
- grd_eqmtTestList.colHidden(2) = true;
- model.setValue("/root/send/eqmtcd2", condarray[3]);
- model.setValue("/root/send/getflag", "Dual");
- }else{
- model.setValue("/root/send/getflag", "Single");
- }
- fGetTestList(); //장비별 검사항목 조회
-
- }
- }
-
- grd_eqmtTestList.fixedcellcheckbox(0,0) = true;
- ]]>
- </script>
- <submission id="TRLQP00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmttestlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //닫기
- function fExeCancel() {
- window.close();
- }
-
- //확인
- function fAccept(){
-
- var testnm = ""; //검사명 ,로 구분(검사항목조회에 보이는놈)
- var testnm2 = ""; //검사명 ▦로 구분(그리드 셋팅때 사용)
- var testcd = ""; //검사코드
- var testcd2 = ""; //검사코드2(조회때 사용)
-
- for (i = 1; i < grd_eqmtTestList.rows; i++){
- if(model.getValue("/root/main/eqmttestlist[" + i + "]/chk" )== "1"){ //선택된 항목만 가져가기 위해..
- if (testnm == ""){ //검사명이 아직 비어있다면 그대로 값 저장
- testnm = testnm + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm");
- testnm2 = testnm2 + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm");
- testcd = testcd + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd");
- testcd2 = testcd2 + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd");
- }else { //검사명이 하나라도 추가 되어 있다면 ▦나 , 추가해서~
- testnm = testnm + ", " + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm"); //검사항목에 표시~
- testnm2 = testnm2 + "▦" + model.getValue("/root/main/eqmttestlist[" + i + "]/testnm"); //검사항목에 표시~
- testcd = testcd + "▦" + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd"); //요거는 여기저기서 씀.. 컬럼삭제, 생성, 그리고 서버단에서도 씀
- testcd2 = testcd2 + "', '" + model.getValue("/root/main/eqmttestlist[" + i + "]/testcd"); //요거는 sql에서 testcd in ()할라고..
- }
- }
- }
- model.setValue("/root/hidden/ref/testcd" , testcd); //저장된 값을 보내주기 위해 노드에 저장
- model.setValue("/root/hidden/ref/testcd2" , testcd2); //저장된 값을 보내주기 위해 노드에 저장
- model.setValue("/root/hidden/ref/testnm" , testnm);
- model.setValue("/root/hidden/ref/testnm2" , testnm2);
- //alert(model.getValue("/root/send/divgrupcd"));
- model.copyNode(opener.root.hidden.ref.testlist, root.hidden.ref); //메인으로 보내준다~~
- //opener.model.refresh();
-
- fExeCancel(); //종료
- }
-
- //장비별 검사항목 조회
- function fGetTestList(){
- //alert(model.getValue("/root/send/divgrupcd"));
- submit("TRLQP00115"); //ref : eqmtcd, deptflag
- }
-
- //esc키 누르면 종료~~~
- function fKeyEvent(){
- if(event.keyCode == "27"){
- fExeCancel();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="550" pageheight="620" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:530px; height:570px; ">
- <caption id="caption5" class="tit_2" style="left:5px; top:11px; width:150px; height:14px; ">장비별 검사항목 조회</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:26px; x2:530px; y2:26px; "/>
- <line id="line2" class="line_3" style="x1:530px; y1:570px; x2:530px; y2:570px; "/>
- <datagrid id="grd_eqmtTestList" nodeset="/root/main/eqmttestlist" caption="^그룹코드^사용부서^검사코드^검사명" colsep="^" colwidth="30, 70, 130, 80, 220" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:530px; height:540px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="eqmtcd"/>
- <col ref="eqmtnm"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:570px; width:530px; height:30px; ">
- <line id="line11" class="line_6" style="x1:0px; y1:30px; x2:0px; y2:30px; "/>
- <button id="btn_can" class="btn4_letter2" style="left:465px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCancel();
- ]]>
- </script>
- </button>
- <button id="btn_accept" class="btn4_letter2" style="left:405px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAccept();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|