123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <targetlist_lst/>
- <attfileadr/>
- </iteminfo>
- <targetinfo>
- <targetlist>
- <ntctrgtcd/>
- <ntctrgtnm/>
- </targetlist>
- </targetinfo>
- <noticeinfo>
- <noticelist>
- <useyn/>
- <genrdd/>
- <genrno/>
- <delyn/>
- <ntcflag/>
- <targetflag/>
- <ntctrgtjobkind/>
- <fromdd/>
- <todd/>
- <ntcsubject/>
- <ntccnts/>
- <attfilenm/>
- <attfileadr/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </noticelist>
- </noticeinfo>
- <cond>
- <fromdd/>
- <todd/>
- </cond>
- <selctedtarget/>
- </main>
- <send>
- <genrdd/>
- <genrno/>
- <targetflag/>
- <fromdd_t/>
- <todd_t/>
- <savedata/>
- <targetinfo/>
- <file/>
- <srchinstcd/>
- <filepath/>
- </send>
- <hidden>
- <temp/>
- </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/>
- </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 iRow = opener.javascript.getParameter("SPAHA04910_row");
-
- zsnfgetNoticeDetail(iRow);
- }
-
- ]]>
- </script>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- <submission id="TRAHA04911" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/noticeinfo"/>
- <submission id="TRAHA04912" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/targetinfo"/>
- <submission id="TRAHA04913" ref="/root/send" method="form-data-post" mediatype="multipart/form-data" resultref="/root/temp"/>
- <submission id="TXAHA04911" ref="/root/send" method="form-data-post" mediatype="multipart/form-data" resultref="/root/main/noticeinfo"/>
- <submission id="TXAHA04931" ref="/root/send" method="postt" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
- <submission id="TRAHA04917" ref="/root/send" method="form-data-post" mediatype="multipart/form-data"/>
- </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="../../../ast/healthexamboardweb/js/SPAHA04910.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="470" guideline="1,671;" 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" cols="5" cellspacing="10" 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" 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:266px; height:19px; ">
- <choices>
- <item>
- <label>[종합]공지사항</label>
- <value>A</value>
- </item>
- <item>
- <label>[]</label>
- <value>B</value>
- </item>
- <item>
- <label>[비자]공지사항</label>
- <value>C</value>
- </item>
- <item>
- <label>[종건]개발공지사항</label>
- <value>D</value>
- </item>
- <item>
- <label>[]</label>
- <value>E</value>
- </item>
- <item>
- <label>[비자]개발공지사항</label>
- <value>F</value>
- </item>
- <item>
- <label>[비자]매뉴얼</label>
- <value>1</value>
- </item>
- <item>
- <label>[비자]검사별참고사항</label>
- <value>2</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>
- </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:476px; height:19px; "/>
- <textarea id="ipt_ntccnts" ref="/root/main/iteminfo/ntccnts" class="text_essential" scroll="auto" maxlength="4000" style="left:0px; top:171px; width:567px; height:250px; "/>
- <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>
- <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>
- <upload id="upload2" nodeset="/root/send/file" validate="true" filesize="5242880" filecount="5" ext="zip" style="left:545px; top:125px; width:20px; height:23px; "/>
- <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[
- if ( messageBox("선택된 파일을 ","Q001") != 6 )
- {
- return false;
- }
- ipt_attfilenm.value ='';
- var filepath = model.getValue("/root/main/iteminfo/attfileadr");
- if(filepath == "") {
- messageBox("파일이","");
- return false
- }
- model.setValue("/root/send/filepath" , filepath);
- model.setValue("/root/send/genrdd" , model.getValue("/root/main/iteminfo/genrdd"));
- model.setValue("/root/send/genrno" , model.getValue("/root/main/iteminfo/genrno"));
-
- if(submit("TXAHA04931")) {
-
- }
- ]]>
- </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[
- var maxsize = upload2.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- //for(var i = 0 ; i < filelist.length ; i++ ) {
- var file = filelist[0];
- if(file != "") {
- //grd_addiamge.addRow(false);
- //grd_addiamge.valueMatrix(grd_addiamge.rows - 1, 0) = file;
-
- var filename = file.lastIndexOf("\\");
-
- ipt_attfilenm.value = files.substring(filename + 1);
-
- model.setValue("/root/send/file", file);
-
-
- if (!checkFileSize(upload2)){
- ipt_attfilenm.value ='';
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
-
- }
- }
- //}
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_down" navindex="6" class="btn2_letter4" style="left:583px; top:174px; width:64px; height:19px; ">
- <caption>다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // zsnfFileDown();
- if(model.getValue("/root/main/iteminfo/attfilenm") != "")
- {
- var filepath = model.getValue("/root/main/iteminfo/attfileadr");
- var filenm = model.getValue("/root/main/iteminfo/attfilenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.setValue("/root/send/filepath" , filepath);
- model.download(getActionURL("TRAHA04917")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
- ]]>
- </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>
- <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" navindex="5" class="btn2_letter2" 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;
- group5.disabled = false;
- btn_save.disabled = false;
-
- model.setValue("/root/main/iteminfo/status","u");
- ]]>
- </script>
- </button>
- <button id="btn_new" navindex="5" class="btn2_letter2" 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;
- 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" navindex="5" class="btn5_letter2" disabled="true" style="left:608px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 각 필드값을 체크한다.
- if(model.getValue("/root/main/iteminfo/ntccnts").length >= 4000){
- messageBox("최대 4000 byte 이상 입력 ", "E001");
- return;
- }
-
- // 제목 체크
- 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(model.getValue("/root/main/iteminfo/targetflag") != "A" && nodesetcount == 0)
- {
- messageBox("공지대상은 ", "I003");
- return;
- }
-
- // 공지내용 체크
- if(model.getValue("/root/main/iteminfo/ntccnts").getTrim()=="")
- {
- messageBox("공지내용 ", "I003");
- model.setFocus("ipt_ntccnts");
- return;
- }
-
- // model.setvalue("root/main/iteminfo/instcd",getUserInfo("posinstcd"));
- // model.setvalue("root/noticeinfo/noticelist/instcd",getUserInfo("posinstcd"));
- zsnfExeSave();
-
- //if (ipt_attfilenm.value != "")
- //{
-
- // if (submit("TXAHA04931")) {
- // model.removeNodeset(ipt_attfilenm.nodeset);
- // ipt_attfilenm.value = '';
- // }
- //}
-
-
- group5.disabled = true;
- btn_fileadd.visible = false;
- btn_filedel.visible = false;
- btn_down.visible = true;
-
- // var username = getUserName();
- // var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
- //
- // if (username == writer) {
- // btn_mod.disabled = false;
- // }
- btn_save.disabled = true;
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" disabled="true" style="left:605px; top:449px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- zsnfNoticeDel();
-
-
- ]]>
- </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; "/>
- </xhtml:body>
- </xhtml:html>
|