123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <levllist>
- <chk/>
- <levlcd/>
- <levlnm/>
- </levllist>
- </main>
- <send>
- <deptflag/>
- <eqmtcd/>
- <testcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <levlcd/>
- <levlnm/>
- <levlcd2/>
- </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]); //사용자부서코드
- model.setValue("/root/send/testcd" , condarray[3]); //검사코드 코드▩코드▩코드▩코드▩코드▩ 체외에서 선택한 검사항목에 대한 레벨만 보여야 된다고 함-_-
-
- submit("TRLQP00113");
- }
- }
-
- grd_levlList.fixedcellcheckbox(0,0) = true;
- ]]>
- </script>
- <submission id="TRLQP00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/levllist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeCancel() {
- window.close();
- }
-
- function fExeOut(){
-
- if (event.keyCode == "27") {
- fExeCancel();
- }
- }
-
- //확인
- function fAccept(){
-
- var levlnm = ""; //레벨명
- var levlcd = ""; //레벨코드
- var levlcd2 = ""; //레벨코드2(조회때 사용)
-
- for (i = 1; i < grd_levlList.rows; i++){
- if(model.getValue("/root/main/levllist[" + i + "]/chk" )== "1"){ //선택된 항목만 가져가기 위해..
- if (levlnm == ""){ //레벨명이 아직 비어있다면 그대로 값 저장
- levlnm = model.getValue("/root/main/levllist[" + i + "]/levlnm");
- levlcd = model.getValue("/root/main/levllist[" + i + "]/levlcd");
- levlcd2 = model.getValue("/root/main/levllist[" + i + "]/levlcd");
- }else { //검사명이 하나라도 추가 되어 있다면 ▦나 , 추가해서~
- levlnm = levlnm + ", " + model.getValue("/root/main/levllist[" + i + "]/levlnm"); //검사항목에 표시~
- levlcd = levlcd + "▦" + model.getValue("/root/main/levllist[" + i + "]/levlcd"); //요거는 여기저기서 씀.. 컬럼삭제, 생성, 그리고 서버단에서도 씀
- levlcd2 = levlcd2 + "', '" + model.getValue("/root/main/levllist[" + i + "]/levlcd"); //요거는 sql에서 levlcd in ()할라고..
- }
- }
- }
- model.setValue("/root/hidden/ref/levlcd", levlcd); //저장된 값을 보내주기 위해 노드에 저장
- model.setValue("/root/hidden/ref/levlnm", levlnm);
- model.setValue("/root/hidden/ref/levlcd2", levlcd2);
-
- model.copyNode(opener.root.hidden.ref.levllist, root.hidden.ref); //메인으로 보내준다~~
- //opener.model.refresh();
-
- fExeCancel(); //종료
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="270" pageheight="620" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:250px; 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:250px; y2:26px; "/>
- <line id="line2" class="line_3" style="x1:250px; y1:570px; x2:250px; y2:570px; "/>
- <datagrid id="grd_levlList" nodeset="/root/main/levllist" caption="^레벨코드^레벨명" colsep="^" colwidth="30, 70, 150" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:250px; height:540px; ">
- <col checkvalue="1,0" ref="chk" type="checkbox"/>
- <col ref="levlcd"/>
- <col ref="levlnm"/>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:570px; width:250px; 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:185px; 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:128px; 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[
- fExeOut();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|