123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>공지사항 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <iteminfo>
- <status/>
- <genrdd/>
- <genrno/>
- <delyn/>
- <ntcflag/>
- <targetflag/>
- <ntctrgtjobkind/>
- <fromdd/>
- <todd/>
- <ntcsubject/>
- <ntccnts/>
- <attfilenm/>
- <attfilepath/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <targetlist_lst/>
- <bottomflag/>
- <bottomcolor/>
- <bottomsize/>
- </iteminfo>
- <existnoticeinfo/>
- <targetinfo>
- <targetlist>
- <ntctrgtcd/>
- <ntctrgtnm/>
- </targetlist>
- </targetinfo>
- <noticeinfo>
- <noticelist>
- <useyn/>
- <genrdd/>
- <genrno/>
- <delyn/>
- <ntcflag/>
- <targetflag/>
- <ntctrgtjobkind/>
- <fromdd/>
- <todd/>
- <ntcsubject/>
- <ntccnts/>
- <attfilenm/>
- <attfilepath/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </noticelist>
- <result>
- <genrdd/>
- <genrno/>
- </result>
- </noticeinfo>
- <noticeinfo_temp/>
- <cond>
- <fromdd/>
- <todd/>
- </cond>
- <selctedtarget/>
- <exceptinfo>
- <targetlist>
- <ntctrgtcd/>
- <ntctrgtnm/>
- </targetlist>
- </exceptinfo>
- </main>
- <send>
- <genrdd/>
- <genrno/>
- <targetflag/>
- <fromdd_t/>
- <todd_t/>
- <savedata/>
- <targetinfo/>
- <exceptinfo/>
- <file/>
- <offset>0</offset>
- <pagesize>17</pagesize>
- </send>
- <senddetail>
- <genrdd_t/>
- <genrno_t/>
- <offset/>
- <pagesize/>
- </senddetail>
- <hidden>
- <cmb_targetflag>
- <item>
- <lbl>전체</lbl>
- <val>A</val>
- </item>
- <item>
- <lbl>개인</lbl>
- <val>P</val>
- </item>
- <item>
- <lbl>근무지부서</lbl>
- <val>D</val>
- </item>
- <item>
- <lbl>근무지기관</lbl>
- <val>I</val>
- </item>
- <item>
- <lbl>직종</lbl>
- <val>K</val>
- </item>
- <item>
- <lbl>하단공지</lbl>
- <val>B</val>
- </item>
- </cmb_targetflag>
- <cmb_targetflag_2>
- <item>
- <lbl>전체</lbl>
- <val>A</val>
- </item>
- <item>
- <lbl>개인</lbl>
- <val>P</val>
- </item>
- <item>
- <lbl>근무지부서</lbl>
- <val>D</val>
- </item>
- <item>
- <lbl>근무지기관</lbl>
- <val>I</val>
- </item>
- <item>
- <lbl>직종</lbl>
- <val>K</val>
- </item>
- </cmb_targetflag_2>
- <cmb_ntcflag>
- <item>
- <lbl>일반</lbl>
- <val>N</val>
- </item>
- <item>
- <lbl>긴급</lbl>
- <val>Y</val>
- </item>
- <item>
- <lbl>하단_깜빡임</lbl>
- <val>L</val>
- </item>
- </cmb_ntcflag>
- <cmb_ntcflag_2>
- <item>
- <lbl>일반</lbl>
- <val>N</val>
- </item>
- <item>
- <lbl>긴급</lbl>
- <val>Y</val>
- </item>
- </cmb_ntcflag_2>
- </hidden>
- <init>
- <comcd>
- <R0061>
- <cdid>-</cdid>
- <cdnm>
- <![CDATA[전체]]>
- </cdnm>
- </R0061>
- <R0007>
- <cdid>-</cdid>
- <cdnm>
- <![CDATA[전체]]>
- </cdnm>
- </R0007>
- </comcd>
- <msrght>
- <mouserght>
- <label>삭제</label>
- <func>zsnfDeleteTarget</func>
- </mouserght>
- </msrght>
- </init>
- <temp>
- <targetinfo/>
- <exceptinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 공통코드 가져옴
- zbcfGetCodeList( new Array("R0061", "Z0007"),
- new Array("/root/init/comcd", "/root/init/comcd"),
- true,
- new Array("cdnm", "cdnm"),
- new Array("asc", "asc")
- );
-
- fInitialize() ;
-
- btn_mod.disabled = true;
- if (checkOpener()) {
- // 공지 클릭해서 넘어왔는지 확인
- var genrdd = opener.javascript.getParameter("SPZSN00100_genrdd");
- var genrno = opener.javascript.getParameter("SPZSN00100_genrno");
-
- if(!isNull(genrdd)){
- zsnfgetNoticeDetail(genrdd, genrno);
- }
- }
-
- // 이관작업 위하여..
- if( getUserId() == "DEV106")
- {
- btn_mig.visible = true;
- btn_create.visible = true;
- }
-
-
- //lpad('txt', 8, '0'); // 00000txt
- function lpad(str, num, chr) {
-
- if (! str || ! chr || str.length >= num) {
- return str;
- }
-
- var max = num - str.length;
-
- for (var i = 0; i < max; i++) {
- str = chr + str;
- }
-
- return str;
- }
- ]]>
- </script>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- <submission id="TRZSN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/noticeinfo/noticelist"/>
- <submission id="TRZSN00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/targetinfo"/>
- <submission id="TRZSN00103" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRZSN00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/existnoticeinfo"/>
- <submission id="TXZSN00101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/noticeinfo"/>
- <submission id="TXZSN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/noticeinfo"/>
- <submission id="TRZSN00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exceptinfo"/>
- <submission id="TRZSN00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddetail" add="bottom" resultref="/root/main/noticeinfo_temp/noticelist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.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"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/noticeinfoweb/js/SPZSN00100.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="850" guideline="1,625;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="cap_cnts" class="cell_1" style="left:0px; top:196px; width:79px; height:250px; vertical-align:middle; ">내용</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:100px; width:79px; height:70px; vertical-align:middle; ">공지대상</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:173px; width:79px; height:20px; vertical-align:middle; ">첨부</caption>
- <group id="group5" disabled="true" scroll="autohscroll" style="left:80px; top:25px; width:570px; height:425px; ">
- <select id="list_ntctrgtnm" ref="/root/main/selctedtarget" overflow="scroll" scroll="vertical" appearance="compact" cellspacing="10" cols="5" itemwidth="104" style="left:1px; top:75px; width:540px; height:70px; text-align:left; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/main/targetinfo/targetlist">
- <label ref="ntctrgtnm"/>
- <value ref="ntctrgtcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- // delete 키
- if(event.keyCode == 46)
- {
- zsnfDeleteTarget();
- }
- ]]>
- </script>
- <hint>
- <![CDATA[대상을 선택하고 delete 키를 누르면 삭제할 수 있습니다.]]>
- </hint>
- </select>
- <input id="ipt_ntcsubject" ref="/root/main/iteminfo/ntcsubject" class="input_essential" imemode="hangul" maxlength="300" style="left:1px; top:7px; width:567px; height:20px; "/>
- <caption id="caption13" style="left:107px; top:30px; width:15px; height:20px; ">~</caption>
- <caption id="caption8" class="cell_1" style="left:230px; top:29px; width:65px; height:20px; vertical-align:middle; ">공지구분</caption>
- <select1 id="cmb_ntcflag" ref="/root/main/iteminfo/ntcflag" appearance="minimal" style="left:301px; top:30px; width:119px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/cmb_ntcflag/item">
- <label ref="lbl"/>
- <value ref="val"/>
- </itemset>
- <!--<item>
- <label>일반</label>
- <value>N</value>
- </item>
- <item>
- <label>긴급</label>
- <value>Y</value>
- </item>
- <item>
- <label>하단_깜박임</label>
- <value>L</value>
- </item>-->
- </choices>
- </select1>
- <select1 id="cmb_targetflag" ref="/root/main/iteminfo/targetflag" appearance="minimal" style="left:1px; top:53px; width:134px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>개인</label>
- <value>P</value>
- </item>
- <item>
- <label>근무지부서</label>
- <value>D</value>
- </item>
- <item>
- <label>근무지기관</label>
- <value>I</value>
- </item>
- <item>
- <label>직종</label>
- <value>K</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //fSchToUserPart();
- // 메인노드 초기화
- model.removeNode("/root/main/targetinfo");
- model.makeNode("/root/main/targetinfo");
-
- zsnfOpenTargetPopup();
-
- // var trgtcmd = cmb_trgtcmd.value
- // if (trgtcmd != 0) {
- // btn_open.disabled = false;
- // }
- //
- //
- ]]>
- </script>
- </select1>
- <input id="ipt_attfilenm" ref="/root/main/iteminfo/attfilenm" maxlength="100" style="left:1px; top:149px; width:430px; height:19px; "/>
- <button id="btn_open" class="icon_search" disabled="true" style="left:547px; top:78px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsnfOpenTargetPopup();
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/file/filename" ext="zip" filecount="5" filesize="10485760" validate="true" style="left:548px; top:125px; width:15px; height:15px; "/>
- <button id="btn_filedel" class="btn2_letter2" visibility="hidden" style="left:525px; top:149px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsnfFileDel();
- ]]>
- </script>
- </button>
- <button id="btn_fileadd" class="btn2_letter2" visibility="hidden" style="left:480px; top:149px; width:42px; height:19px; ">
- <caption>첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsnfFileAdd();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/iteminfo/fromdd" class="input_essential" inputtype="date" format="yyyy-mm-dd" mask="exclude" style="left:1px; top:30px; width:99px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/iteminfo/todd" class="input_essential" inputtype="date" format="yyyy-mm-dd" mask="exclude" style="left:125px; top:30px; width:99px; height:19px; "/>
- <select1 id="cmb_ntctrgtjobkind" ref="/root/main/iteminfo/ntctrgtjobkind" visibility="hidden" appearance="minimal" style="left:207px; top:53px; width:167px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcd/R0061">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_trgtjobkind" class="cell_1" visibility="hidden" style="left:141px; top:52px; width:60px; height:20px; vertical-align:middle; ">대상직종</caption>
- </group>
- <button id="btn_down" class="btn2_letter4" navindex="6" style="left:583px; top:174px; width:64px; height:19px; ">
- <caption>다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsnfFileDown();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:0px; top:54px; width:79px; height:20px; vertical-align:middle; ">적용기간</caption>
- <caption id="cap_titl" class="cell_1" style="left:0px; top:31px; width:79px; height:20px; vertical-align:middle; ">제목</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:25px; x2:650px; y2:25px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:10px; width:134px; height:13px; ">공지사항</caption>
- <datagrid id="grd_notice" nodeset="/root/main/noticeinfo/noticelist" scroll="vertical" autoresize="true" caption="발생일자^발생번호^긴급여부^공지대상구분^공지대상직종^시작일자^종료일자^제목^내용^첨부^첨부파일명^작성자^작성자ID^게시일시^조회수^하단" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 352, 0, 35, 0, 80, 65, 0, 48, 30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:495px; width:648px; height:325px; ">
- <col ref="genrdd" style="text-align:center; "/>
- <col ref="genrno" style="text-align:center; "/>
- <col ref="ntcflag"/>
- <col ref="targetflag"/>
- <col ref="ntctrgtjobkind"/>
- <col ref="fromdd" format="yyyy/mm/dd hh:nn:ss"/>
- <col ref="todd" format="yyyy/mm/dd hh:nn:ss"/>
- <col ref="ntcsubject"/>
- <col ref="ntccnts"/>
- <col ref="attyn"/>
- <col ref="attfilenm"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt" format="yyyy/mm/dd hh:nn:ss"/>
- <col ref="hitcount" style="text-align:center; "/>
- <col ref="bottomflag" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- var genrdd = model.getValue("/root/main/noticeinfo/noticelist[" + grd_notice.row + "]/genrdd");
- var genrno = model.getValue("/root/main/noticeinfo/noticelist[" + grd_notice.row + "]/genrno");
-
- zsnfgetNoticeDetail(genrdd, genrno);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- fSubmitOnScroll();
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:0px; top:475px; width:141px; height:13px; text-align:left; ">공지사항 리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:490px; x2:648px; y2:490px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:52px; x2:650px; y2:52px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:75px; x2:650px; y2:75px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:171px; x2:650px; y2:171px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:194px; x2:650px; y2:194px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:447px; x2:650px; y2:447px; "/>
- <button id="btn_mod" class="btn2_letter2" navindex="5" style="left:564px; top:5px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_fileadd.visible = true;
- btn_filedel.visible = true;
- btn_down.visible = false;
- btn_preview.visible = false;
- group5.disabled = false;
- btn_save.disabled = false;
-
- group1.disabled = false;
- var dutplcecd = getUserInfo("dutplcecd");
- if( dutplcecd == "3310000000" || dutplcecd == "3310200000" ){
- chk_bottom.disabled = false;
- } else {
- chk_bottom.disabled = true;
- }
-
- model.setValue("/root/main/iteminfo/status","u");
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn2_letter2" navindex="5" style="left:520px; top:5px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- btn_fileadd.visible = true;
- btn_filedel.visible = true;
- btn_down.visible = false;
- btn_preview.visible = false;
- group5.disabled = false;
- //list_ntctrgtnm.disabled = true;
- ipt_attfilenm.disabled = true;
- btn_mod.disabled = true;
- btn_save.disabled = false;
-
- zsnfNewNotice();
-
- model.makeValue("/root/main/iteminfo/status",'i');
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" disabled="true" navindex="5" style="left:608px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 각 필드값을 체크한다.
-
- // 제목 체크
- if(model.getValue("/root/main/iteminfo/ntcsubject").getTrim()=="")
- {
- messageBox("제목은 ", "I003");
- model.setFocus("ipt_ntcsubject");
- return;
- }
-
- // 적용기간체크
- if(model.getValue("/root/main/iteminfo/fromdd").getTrim()=="")
- {
- messageBox("적용시작일자는 ", "I003");
- model.setFocus("ipt_from");
- return;
- }
-
- // 적용기간체크
- if(model.getValue("/root/main/iteminfo/todd").getTrim()=="")
- {
- messageBox("적용종료일자는 ", "I003");
- model.setFocus("ipt_todd");
- return;
- }
-
- // 공지대상체크 (전체가 아니고 공지대상이 없을때만)
- var nodesetcount = getNodesetCount("/root/main/targetinfo/targetlist");
-
- if(nodesetcount == 0)
- {
- if(model.getValue("/root/main/iteminfo/targetflag") == "A" ){
- } else {
- messageBox("공지대상은 ", "I003");
- return;
- }
- }
-
- // 공지내용 체크
- if(model.getValue("/root/main/iteminfo/ntccnts").getTrim()=="")
- {
- messageBox("공지내용 ", "I003");
- model.setFocus("ipt_ntccnts");
- return;
- }
-
- zsnfExeSave();
- group5.disabled = true;
- btn_fileadd.visible = false;
- btn_filedel.visible = false;
- btn_down.visible = true;
-
- if (zsnfCheckFileExt())
- btn_preview.visible = true;
- else
- btn_preview.visible = false;
-
- btn_cancel.visible = false;
-
- // var username = getUserName();
- // var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
- //
- // if (username == writer) {
- // btn_mod.disabled = false;
- // }
- btn_save.disabled = true;
-
- // 하단 공지사항 일때 전체 직원에게 메시지 전달하여 하단공지 재조회하도록 함 by 김지훈
- if( model.getValue("/root/main/iteminfo/bottomflag") == "Y"){
-
-
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
- viewerObj.window.javascript.fMsgsvrBottomNotify();
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" disabled="true" style="left:606px; top:451px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- zsnfNoticeDel();
-
- var viewerObj = getViewer("sysMessage");
- if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
- viewerObj.window.javascript.fMsgsvrBottomNotify();
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption9" class="cell_1" style="left:0px; top:77px; width:79px; height:20px; vertical-align:middle; ">대상구분</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:98px; x2:650px; y2:98px; "/>
- <button id="button1" class="btn2_letter2" navindex="5" style="left:520px; top:5px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- btn_fileadd.visible = true;
- btn_filedel.visible = true;
- btn_down.visible = false;
- btn_preview.visible = false;
- btn_cancel.visible = true;
- group5.disabled = false;
- //ipt_ntccnts.attribute("editable") = true;
-
- group1.disabled = false;
- chk_bottom.disabled = false;
-
- //list_ntctrgtnm.disabled = true;
- ipt_attfilenm.disabled = true;
- btn_mod.disabled = true;
- btn_save.disabled = false;
-
- zsnfNewNotice();
-
- model.makeValue("/root/main/iteminfo/status",'i');
- model.setValue("/root/main/iteminfo/bottomflag", '');
- model.setValue("/root/main/iteminfo/bottomcolor", 'black');
- model.setValue("/root/main/iteminfo/bottomsize", '9pt');
-
- //콤보박스 내용추가(by 김지훈)
- var dutplcecd = getUserInfo("dutplcecd");
- if( dutplcecd == "3310000000" || dutplcecd == "3310200000" ){ //진료행정과에서 사용하도록 수정(by 김지훈 2014.10.16)
- changeCombo("add");
- } else {
- changeCombo("");
- cpt_bottom.visible = false;
- chk_bottom.visible = false;
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_mig" class="btn2_letter2" navindex="5" visibility="hidden" style="left:360px; top:5px; width:42px; height:19px; ">
- <caption>이관</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- zsnfExeMig();
- ]]>
- </script>
- </button>
- <button id="btn_create" class="btn2_letter2" navindex="5" visibility="hidden" style="left:305px; top:5px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var i;
- var cnts;
- model.removeNodeset("/root/send/targetinfo");
-
- for (i=1; i<252; i++)
- {
- cnts = "status▦genrdd▦genrno▦delyn▦ntcflag▦targetflag▦ntctrgtjobkind▦fromdd▦todd▦ntcsubject▦ntccnts▦attyn▦attfilenm▦attfilepath▦fstrgstrid▦fstrgstrnm▦fstrgstdt▦lastupdtrid▦lastupdtrnm▦lastupdtdt▩i▦20090203▦1▦N▦N▦A▦-▦20090203▦20090305▦테스트"+i+"▦내용"+i+"▦N▦▦▦COM▦COM사용자▦20090203091119827▦COM▦COM▦20090203091119827▩";
-
- model.setValue("/root/send/savedata",cnts);
- submit("TXZSN00101");
- }
- ]]>
- </script>
- </button>
- <textarea id="ipt_ntccnts" ref="/root/main/iteminfo/ntccnts" class="text_essential" scroll="auto" maxlength="4000" style="left:81px; top:196px; width:567px; height:250px; "/>
- <button id="btn_preview" class="btn2_letter4" navindex="6" visibility="hidden" style="left:515px; top:174px; width:64px; height:19px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsnfFilePreview();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn2_letter4" navindex="5" visibility="hidden" style="left:454px; top:5px; width:64px; height:19px; ">
- <caption>작성취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group5.disabled = true;
- btn_fileadd.visible = false;
- btn_filedel.visible = false;
- btn_down.visible = true;
- //btn_preview.visible = true;
- btn_cancel.visible = false;
- btn_save.disabled = true;
-
- group1.disabled = true;
- chk_bottom.disabled = true;
- // 첨부파일 초기화
- model.resetInstanceNode("/root/send/file");
-
- changeCombo("add");
-
- cpt_bottom.visible = true;
- chk_bottom.visible = true;
- ]]>
- </script>
- </button>
- <caption id="cpt_bottom" class="cell_1" style="left:0px; top:449px; width:79px; height:20px; vertical-align:middle; ">하단공지</caption>
- <select id="chk_bottom" ref="/root/main/iteminfo/bottomflag" overflow="visible" appearance="full" style="left:81px; top:452px; width:96px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>하단공지여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <group id="group1" style="left:180px; top:450px; width:425px; height:20px; ">
- <caption id="cpt_sample" class="output_message_b" style="left:252px; top:0px; width:172px; height:19px; background-color:#99ccff; ">예시 ABC abc 123</caption>
- <select1 id="cmb_bottomsize" ref="/root/main/iteminfo/bottomsize" appearance="minimal" style="left:190px; top:0px; width:59px; height:19px; ">
- <choices>
- <item>
- <label>8pt</label>
- <value>8pt</value>
- </item>
- <item>
- <label>9pt</label>
- <value>9pt</value>
- </item>
- <item>
- <label>10pt</label>
- <value>10pt</value>
- </item>
- <item>
- <label>11pt</label>
- <value>11pt</value>
- </item>
- <item>
- <label>12pt</label>
- <value>12pt</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeSample();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="cell_1" style="left:2px; top:0px; width:49px; height:20px; vertical-align:middle; ">글자색</caption>
- <caption id="caption4" class="cell_1" style="left:130px; top:0px; width:59px; height:20px; vertical-align:middle; ">글자크기</caption>
- <select1 id="cmb_bottomcolor" ref="/root/main/iteminfo/bottomcolor" appearance="minimal" style="left:53px; top:0px; width:74px; height:19px; ">
- <choices>
- <item>
- <label>검정</label>
- <value>black</value>
- </item>
- <item>
- <label>노랑</label>
- <value>yellow</value>
- </item>
- <item>
- <label>파랑</label>
- <value>blue</value>
- </item>
- <item>
- <label>빨강</label>
- <value>red</value>
- </item>
- <item>
- <label>녹색</label>
- <value>green</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeSample();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_except" class="btn2_letter4" navindex="6" style="left:5px; top:145px; width:64px; height:19px; ">
- <caption>제외대상</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SPZSN00400");
- // model.removeNode("/root/main/exceptinfo");
- // model.makeNode("/root/main/exceptinfo");
-
- zsnfOpenExceptPopup();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|