123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/2002/01/xforms">
- <xhtml:head>
- <xhtml:title>AWT 단어/구문 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <sentensetype>W</sentensetype>
- <keyword/>
- <sentense/>
- <awttype>C</awttype>
- </send>
- <save>
- </save>
- <main>
- <awtlist/>
- </main>
- <temp>
- <awtlist/>
- </temp>
- </root>
- </instance>
- <submission id="TRZWT00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/awtlist"/>
- <submission id="TXZWT00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <json/>
- </xhtml:head>
- <xhtml:body pageheight="700" pagewidth="930">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">AWT 단어 관리</caption>
- <group id="grd_main" style="left:0px; top:20px; width:905px; height:30px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:905px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_pKeyword" ref="/root/send/keyword" class="input_search" style="left:250px; top:5px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:10px; top:5px; width:60px; height:17px; ">유형 :</caption>
- <select1 id="radio1" ref="/root/send/sentensetype" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:75px; top:5px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>단어</label>
- <value>W</value>
- </item>
- <item>
- <label>구문</label>
- <value>S</value>
- </item>
- </choices>
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
- model.removenode("/root/main/awtlist");
- model.makeNode("/root/main/awtlist");
- model.refresh();
-
- if (model.getValue("/root/send/sentensetype") == "W") {
- grd_awtlist.valueMatrix(0, 2) = "단어";
- grd_awtlist.colHidden(3) = true;
- } else {
- grd_awtlist.valueMatrix(0, 2) = "검색어";
- grd_awtlist.colHidden(3) = false;
- }
-
- model.removenode("/root/main/awtlist");
- model.makeNode("/root/main/awtlist");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="cap_awt" class="search_name" visibility="hidden" style="left:595px; top:5px; width:82px; height:17px; ">대상그룹:</caption>
- <select1 id="rdo_awt" ref="/root/send/awttype" class="radio_search" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:680px; top:5px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인</label>
- <value>P</value>
- </item>
- <item>
- <label>부서</label>
- <value>D</value>
- </item>
- <item>
- <label>공용</label>
- <value>C</value>
- </item>
- </choices>
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
- model.removenode("/root/main/awtlist");
- model.makeNode("/root/main/awtlist");
- model.refresh();
-
- if (model.getValue("/root/send/awttype") == "C") {
- button1.disabled = true;
- button2.disabled = true;
- button3.disabled = true;
- button4.disabled = true;
- button5.disabled = true;
- } else {
- button1.disabled = false;
- button2.disabled = false;
- button3.disabled = false;
- button4.disabled = false;
- button5.disabled = false;
- }
-
- model.removenode("/root/main/awtlist");
- model.makeNode("/root/main/awtlist");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:175px; top:5px; width:86px; height:17px; ">검색어 :</caption>
- <caption id="caption2" class="search_name" style="left:355px; top:5px; width:125px; height:17px; ">구문 안의 단어 :</caption>
- <input id="input1" ref="/root/send/sentense" class="input_search" style="left:480px; top:5px; width:105px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:845px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- model.removenode("/root/main/awtlist");
- model.makeNode("/root/main/awtlist");
- model.refresh();
-
- if (!submit("TRZWT00100"))
- return;
-
- grd_awtlist.clearStatus();
-
- if (model.getValue("/root/send/sentensetype") == "W") {
- grd_awtlist.valueMatrix(0, 2) = "단어";
- grd_awtlist.colHidden(3) = true;
- } else {
- grd_awtlist.valueMatrix(0, 2) = "검색어";
- grd_awtlist.colHidden(3) = false;
- }
-
- grd_awtlist.resizeCells();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:831px; y1:2px; x2:831px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <datagrid id="grd_awtlist" nodeset="/root/main/awtlist/item" allowuserresize="true" autoresize="true" autosizemouse="true" caption="순번^단어^구문" colwidth="90, 141, 611, 100, 100, 100" dataheight="25" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:75px; width:905px; height:585px; border-color:#808080; ">
- <col ref="awtseq"/>
- <col ref="keyword" type="input"/>
- <col ref="sentense" type="input" visibility="hidden"/>
- <col ref="sentensetype" type="input" visibility="hidden"/>
- <col ref="awttype" type="input" visibility="hidden"/>
- <col ref="userid" type="input" visibility="hidden"/>
- <script ev:event="onaftersort" type="javascript">
- <![CDATA[
- grd_awtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter4" visibility="hidden" style="left:840px; top:0px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false);
- if(fileName==""){
- return;
- }
- grd_awtlist.loadExcel(fileName);
- grd_awtlist.deleteRow(1);
- ]]>
- </script>
- </button>
- <caption id="caption_cdgrup_list" class="tit_2" style="left:0px; top:60px; width:118px; height:13px; ">AWT 단어</caption>
- <button id="button1" class="btn2_letter4" visibility="hidden" style="left:770px; top:0px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var fileName = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
- if (fileName != "")
- {
- grd_awtlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:225px; top:60px; width:195px; height:15px; ">단어는 최대 2000개까지 표시됩니다.</caption>
- <button id="button2" class="btn5_letter3" style="left:730px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- grd_awtlist.addRow();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter3" style="left:785px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- grd_awtlist.addStatus(grd_awtlist.row, "delete");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:850px; top:55px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- for (var i = 1; i < grd_awtlist.rows; i++) {
- if (model.getValue("/root/send/sentensetype") == "W")
- model.setValue("/root/main/awtlist/item[" + i + "]/sentense", model.getValue("/root/main/awtlist/item[" + i + "]/keyword"));
- model.setValue("/root/main/awtlist/item[" + i + "]/awttype", model.getValue("/root/send/awttype"));
- model.setValue("/root/main/awtlist/item[" + i + "]/sentensetype", model.getValue("/root/send/sentensetype"));
- }
-
- if( messageBox("AWT 단어/구문을 저장","Q002") == 6){
- model.setValue("/root/save", grd_awtlist.getUpdateData());
- if (submit("TXZWT00100")) {
- alert("저장되었습니다.");
- btn_search.dispatch("DOMActivate");
- } else {
- alert("저장에 실패하였습니다.");
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|