123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <?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 xmlns="">
- <main>
- <tmplcodelist>
- <tmplcode>
- <sortno/>
- <tmplcd/>
- <tmplnm/>
- <tmplflag/>
- <tmplcdflag/>
- <tmpldata/>
- </tmplcode>
- </tmplcodelist>
- </main>
- <send>
- <req>
- <data/>
- </req>
- <tmplflag/>
- <tmplcd/>
- <tmplnm/>
- <tmplcdflag/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <filename/>
- </send>
- <init>
- <baseinfo>
- <tmplcdflag/>
- </baseinfo>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </cmb_info>
- </init>
- <hidden/>
- <temp>
- <count/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- zbcfGetCodeList( new Array("A0146"), new Array("/root/init/baseinfo/tmplcdflag"), true );
- submit("TRZBC00101");
-
- cmb_tmplcdflag.select(0);
-
- submit("TRAEA01301", false);
- if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
- caption4.visible = true;
- cmb_deptcd.visible = true;
- btn_save1.disabled = true;
- btn_upd.disabled = true;
- btn_apply.disabled = true;
- btn_save2.disabled = true;
- btn_fileopen.disabled = true;
- btn_grdadd.disabled = true;
- btn_grddel.disabled = true;
- }else{
- caption4.visible = false;
- cmb_deptcd.visible = false;
- btn_save1.disabled = false;
- btn_upd.disabled = false;
- btn_apply.disabled = false;
- btn_save2.disabled = false;
- btn_fileopen.disabled = false;
- btn_grdadd.disabled = false;
- btn_grddel.disabled = false;
- }
- model.removeNodeset("/root/main/tmplcodelist/tmplcode");
- model.removeNodeset("/root/main/tmpldata");
- model.refresh();
- ]]>
- </script>
- <submission id="TXAEB01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp/count"/>
- <submission id="TRAEB01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/tmplcodelist"/>
- <submission id="TXAEB01002" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TRAEA01301" ref="/root/send/globalinstance" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRZBC00101"/>
- </model>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fOpenRtfFileDialog() {
- var file = window.fileDialog("open","","false","","","RTF Files(*.rtf)|*.rtf");
- return file;
- }
-
- function fGetFileName(path) {
- var lastIdx = path.lastIndexOf("\\");
- if (lastIdx >= 0) {
- return path.substr(lastIdx+1);
- } else {
- return path;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:335px; top:755px; width:385px; height:25px; "/>
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">예약예문관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:20px; width:1190px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1115px; y1:25px; x2:1115px; y2:47px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:525px; top:25px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">예문명 :</caption>
- <caption id="caption3" class="search_name" style="left:339px; top:25px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">예문코드 :</caption>
- <line id="line1" style="x1:735px; y1:25px; x2:735px; y2:47px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line2" class="line_1" style="x1:3px; y1:78px; x2:327px; y2:79px; "/>
- <caption id="caption11" class="tit_2" style="left:5px; top:60px; width:100px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예문코드</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:25px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEB01001");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:272px; top:56px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_tmplcodelist, true);
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1139px; top:760px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rtfviewer.SaveRtfFile(); // 현재 내용을 파일에 저장
- rtfviewer.print();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:210px; top:56px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_tmplcodelist.addItem();
- model.setValue("/root/main/tmplcodelist/tmplcode[" + grd_tmplcodelist.row + "]/tmplcdflag",model.getValue("/root/send/tmplcdflag"));
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_tmplcdflag" ref="/root/send/tmplcdflag" class="combo_s_essential" appearance="minimal" style="left:15px; top:25px; width:165px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/tmplcdflag/A0146">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_tmplflag" ref="/root/send/tmplflag" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:195px; top:26px; width:140px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>한글</label>
- <value>H</value>
- </item>
- <item>
- <label>영문</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_tmplcd" ref="/root/send/tmplcd" class="input_search" _chartype="upper" style="left:435px; top:25px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_tmplnm" ref="/root/send/tmplnm" class="input_search" style="left:605px; top:25px; width:175px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_save1" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:275px; top:760px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(grd_tmplcodelist);
-
- if(update == ""){
- messageBox("업데이트 정보가 ", "I004");
- } else {
- model.setValue("/root/send/req/data",update);
- submit("TXAEB01001");
- }
-
- submit("TRAEB01001");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- checkKeyColumn("grd_tmplcodelist");
- ]]>
- </script>
- </button>
- <button id="btn_save2" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1013px; top:760px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (grd_tmplcodelist.row < 0) {
- messageBox("예문코드를 ","C002");
- return;
- }
-
- var str = rtfviewer.TextRtf;
-
-
- //if (str.isByteSize(32000)) {
- model.makeValue("/root/main/tmplcodelist/tmplcode[" + grd_tmplcodelist.row + "]/tmpldata", str);
- //} else {
- // messageBox("저장할 수 있는 파일크기(최대 32KByte)를 " , "E003")
- // return;
- //}
-
-
- model.copyNode("/root/send/req/data","/root/main/tmplcodelist/tmplcode[" + grd_tmplcodelist.row + "]");
-
- submit("TXAEB01002");
- model.removeNodeset("/root/send/req/data");
- model.makeNode("/root/send/req/data");
-
- submit("TRAEB01001");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1070px; top:760px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rtfviewer.Clear();
- ]]>
- </script>
- </button>
- <datagrid id="grd_tmplcodelist" nodeset="/root/main/tmplcodelist/tmplcode" caption="순번^코드^Templet명^구분^caption1" colwidth="37, 59, 152, 55, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:2px; top:82px; width:328px; height:672px; ">
- <col ref="sortno" type="input" format="#"/>
- <col ref="tmplcd" type="input" maxlength="12" _chartype="upper" _key="true"/>
- <col ref="tmplnm" type="input"/>
- <col class="gridcombo" ref="tmplflag" type="combo" style="background-image:../../../com/commonweb/images/combo_btn.gif; ">
- <choices>
- <item>
- <label>한글</label>
- <value>H</value>
- </item>
- <item>
- <label>영문</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="tmplcdflag" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- checkKeyColumn("grd_tmplcodelist");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rtfviewer.TextRtf = model.getValue("/root/main/tmplcodelist/tmplcode[" + grd_tmplcodelist.row + "]/tmpldata");
- ]]>
- </script>
- </datagrid>
- <button id="btn_apply" navindex="13" class="btn4_letter2" style="left:955px; top:760px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var filename = rtfviewer.getFileName();
- //rtfviewer.OpenRtfFile(filename);
- //rtfviewer.ReadOnly = "true";
-
- rtfviewer.Reload();
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:411px; top:757px; width:80px; height:17px; text-align:center; vertical-align:middle; ">파일명</caption>
- <input id="opt_imgnm" ref="/root/send/filename" navindex="3" class="output_search" style="left:496px; top:757px; width:215px; height:19px; "/>
- <button id="btn_fileopen" class="btn1_letter4" style="left:346px; top:757px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter4.gif; ">
- <caption>파일열기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var file = fOpenRtfFileDialog();
- if (file == "") {
- return;
- }
-
- // 선택한 파일을 RTF viewer로 보여준다.
- rtfviewer.OpenRtfFile(file);
- rtfviewer.ReadOnly = "true";
-
- model.setValue("/root/send/filename",fGetFileName(file));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_upd" navindex="13" class="btn4_letter2" style="left:895px; top:760px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rtfviewer.SaveRtfFile();
- var filename = rtfviewer.getFileName();
- rtfviewer.ModifyWithWord(filename);
- ]]>
- </script>
- </button>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" style="left:335px; top:80px; width:849px; height:670px; "/>
- <caption id="caption4" class="search_name" style="left:790px; top:25px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" appearance="minimal" style="left:885px; top:25px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|