123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <excucdlist>
- <item>
- <check/>
- <cdid/>
- <cdnm/>
- </item>
- </excucdlist>
- </main>
- <send>
- <srchexcucd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <tmplcdflag>B</tmplcdflag>
- </send>
- <hidden/>
- <init>
- <degnitemlevlcd/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(submit("TRAHR05011")) {
- var vFlag = model.getValue("/root/init/degnitemlevlcd").split("^");
- if(vFlag.length > 0) {
- for(var i=1; i <= grd_excucd.rows; i++) {
- var vExcucd = grd_excucd.valueMatrix( i , grd_excucd.colRef("cdid"));
-
- for(var j=0; j < vFlag.length; j++) {
- if(vExcucd == vFlag[j]) {
- grd_excucd.valueMatrix( i , grd_excucd.colRef("check")) = "Y";
- }
- }
- }
- }
- }
- ]]>
- </script>
- <submission id="TRAHR05011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excucdlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="535" pageheight="578" guideline="1,1194;2,576;1,517;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:550px; ">
- <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색명 :</caption>
- <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_excucd" ref="/root/send/srchexcucd" class="input_search" style="left:109px; top:8px; width:316px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_sea" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAHR05011");
- model.setValue("/root/send/srchexcucd", "");
- model.refresh();
- model.setFocus("ipt_excucd");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">코드조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
- <datagrid id="grd_excucd" nodeset="/root/main/excucdlist/item" caption="선택^코드^코드명칭" colsep="^" colwidth="58, 124, 316" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:480px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="cdid"/>
- <col ref="cdnm"/>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:550px; width:518px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_excucd.row == 0 ) return;
-
- var openerid = opener.model.getValue("/root/send/windowloadinstance");
- var check = "";
- var loopcnt = 0;
- var loop = grd_excucd.rows - grd_excucd.fixedRows;
- var str_temp = "";
- var str_temp2 = "";
- var str_check = "";
-
- for( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/excucdlist/item[" + i + "]/check");
- if ( check == "Y" ) {
- str_temp += model.getValue("/root/main/excucdlist/item["+i+"]/cdid");
- str_temp2 += model.getValue("/root/main/excucdlist/item["+i+"]/cdnm");
- str_temp = str_temp + "^"
- str_temp2 = str_temp2 + "^"
- }
- loopcnt++;
- }
-
- if ( loopcnt == 0 ) {
- messageBox("코드를 선택해 주십시오.","I999");
- return "0";
- }
- /*
- switch (openerid) {
- case "SMAHA04610" : // 재검레터 대상자관리
- opener.model.setValue("/root/main/vsltlist/vsltinfo/retestitem", str_temp);
- break;
- }
- */
- opener.model.setValue("/root/main/vsltlist/vsltinfo/retestitem", str_temp);
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="button1" class="btn4_letter2" visibility="hidden" style="left:340px; top:4px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|