SPZSN00100_공지사항조회.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>공지사항 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <iteminfo>
  11. <status/>
  12. <genrdd/>
  13. <genrno/>
  14. <delyn/>
  15. <ntcflag/>
  16. <targetflag/>
  17. <ntctrgtjobkind/>
  18. <fromdd/>
  19. <todd/>
  20. <ntcsubject/>
  21. <ntccnts/>
  22. <attfilenm/>
  23. <attfilepath/>
  24. <fstrgstrid/>
  25. <fstrgstdt/>
  26. <lastupdtrid/>
  27. <lastupdtdt/>
  28. <targetlist_lst/>
  29. <bottomflag/>
  30. <bottomcolor/>
  31. <bottomsize/>
  32. </iteminfo>
  33. <existnoticeinfo/>
  34. <targetinfo>
  35. <targetlist>
  36. <ntctrgtcd/>
  37. <ntctrgtnm/>
  38. </targetlist>
  39. </targetinfo>
  40. <noticeinfo>
  41. <noticelist>
  42. <useyn/>
  43. <genrdd/>
  44. <genrno/>
  45. <delyn/>
  46. <ntcflag/>
  47. <targetflag/>
  48. <ntctrgtjobkind/>
  49. <fromdd/>
  50. <todd/>
  51. <ntcsubject/>
  52. <ntccnts/>
  53. <attfilenm/>
  54. <attfilepath/>
  55. <fstrgstrid/>
  56. <fstrgstdt/>
  57. <lastupdtrid/>
  58. <lastupdtdt/>
  59. </noticelist>
  60. <result>
  61. <genrdd/>
  62. <genrno/>
  63. </result>
  64. </noticeinfo>
  65. <noticeinfo_temp/>
  66. <cond>
  67. <fromdd/>
  68. <todd/>
  69. </cond>
  70. <selctedtarget/>
  71. <exceptinfo>
  72. <targetlist>
  73. <ntctrgtcd/>
  74. <ntctrgtnm/>
  75. </targetlist>
  76. </exceptinfo>
  77. </main>
  78. <send>
  79. <genrdd/>
  80. <genrno/>
  81. <targetflag/>
  82. <fromdd_t/>
  83. <todd_t/>
  84. <savedata/>
  85. <targetinfo/>
  86. <exceptinfo/>
  87. <file/>
  88. <offset>0</offset>
  89. <pagesize>17</pagesize>
  90. </send>
  91. <senddetail>
  92. <genrdd_t/>
  93. <genrno_t/>
  94. <offset/>
  95. <pagesize/>
  96. </senddetail>
  97. <hidden>
  98. <cmb_targetflag>
  99. <item>
  100. <lbl>전체</lbl>
  101. <val>A</val>
  102. </item>
  103. <item>
  104. <lbl>개인</lbl>
  105. <val>P</val>
  106. </item>
  107. <item>
  108. <lbl>근무지부서</lbl>
  109. <val>D</val>
  110. </item>
  111. <item>
  112. <lbl>근무지기관</lbl>
  113. <val>I</val>
  114. </item>
  115. <item>
  116. <lbl>직종</lbl>
  117. <val>K</val>
  118. </item>
  119. <item>
  120. <lbl>하단공지</lbl>
  121. <val>B</val>
  122. </item>
  123. </cmb_targetflag>
  124. <cmb_targetflag_2>
  125. <item>
  126. <lbl>전체</lbl>
  127. <val>A</val>
  128. </item>
  129. <item>
  130. <lbl>개인</lbl>
  131. <val>P</val>
  132. </item>
  133. <item>
  134. <lbl>근무지부서</lbl>
  135. <val>D</val>
  136. </item>
  137. <item>
  138. <lbl>근무지기관</lbl>
  139. <val>I</val>
  140. </item>
  141. <item>
  142. <lbl>직종</lbl>
  143. <val>K</val>
  144. </item>
  145. </cmb_targetflag_2>
  146. <cmb_ntcflag>
  147. <item>
  148. <lbl>일반</lbl>
  149. <val>N</val>
  150. </item>
  151. <item>
  152. <lbl>긴급</lbl>
  153. <val>Y</val>
  154. </item>
  155. <item>
  156. <lbl>하단_깜빡임</lbl>
  157. <val>L</val>
  158. </item>
  159. </cmb_ntcflag>
  160. <cmb_ntcflag_2>
  161. <item>
  162. <lbl>일반</lbl>
  163. <val>N</val>
  164. </item>
  165. <item>
  166. <lbl>긴급</lbl>
  167. <val>Y</val>
  168. </item>
  169. </cmb_ntcflag_2>
  170. </hidden>
  171. <init>
  172. <comcd>
  173. <R0061>
  174. <cdid>-</cdid>
  175. <cdnm>
  176. <![CDATA[전체]]>
  177. </cdnm>
  178. </R0061>
  179. <R0007>
  180. <cdid>-</cdid>
  181. <cdnm>
  182. <![CDATA[전체]]>
  183. </cdnm>
  184. </R0007>
  185. </comcd>
  186. <msrght>
  187. <mouserght>
  188. <label>삭제</label>
  189. <func>zsnfDeleteTarget</func>
  190. </mouserght>
  191. </msrght>
  192. </init>
  193. <temp>
  194. <targetinfo/>
  195. <exceptinfo/>
  196. </temp>
  197. </root>
  198. </instance>
  199. <script type="javascript" ev:event="xforms-ready">
  200. <![CDATA[
  201. // 공통코드 가져옴
  202. zbcfGetCodeList( new Array("R0061", "Z0007"),
  203. new Array("/root/init/comcd", "/root/init/comcd"),
  204. true,
  205. new Array("cdnm", "cdnm"),
  206. new Array("asc", "asc")
  207. );
  208. fInitialize() ;
  209. btn_mod.disabled = true;
  210. if (checkOpener()) {
  211. // 공지 클릭해서 넘어왔는지 확인
  212. var genrdd = opener.javascript.getParameter("SPZSN00100_genrdd");
  213. var genrno = opener.javascript.getParameter("SPZSN00100_genrno");
  214. if(!isNull(genrdd)){
  215. zsnfgetNoticeDetail(genrdd, genrno);
  216. }
  217. }
  218. // 이관작업 위하여..
  219. if( getUserId() == "DEV106")
  220. {
  221. btn_mig.visible = true;
  222. btn_create.visible = true;
  223. }
  224. //lpad('txt', 8, '0'); // 00000txt
  225. function lpad(str, num, chr) {
  226. if (! str || ! chr || str.length >= num) {
  227. return str;
  228. }
  229. var max = num - str.length;
  230. for (var i = 0; i < max; i++) {
  231. str = chr + str;
  232. }
  233. return str;
  234. }
  235. ]]>
  236. </script>
  237. <submission id="TRZBC00101" method="post" replace="instance"/>
  238. <submission id="TRZSN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/noticeinfo/noticelist"/>
  239. <submission id="TRZSN00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/targetinfo"/>
  240. <submission id="TRZSN00103" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/temp"/>
  241. <submission id="TRZSN00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/existnoticeinfo"/>
  242. <submission id="TXZSN00101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/noticeinfo"/>
  243. <submission id="TXZSN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/noticeinfo"/>
  244. <submission id="TRZSN00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exceptinfo"/>
  245. <submission id="TRZSN00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddetail" add="bottom" resultref="/root/main/noticeinfo_temp/noticelist"/>
  246. </model>
  247. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  249. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  250. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  251. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  252. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  253. <script type="javascript" src="../../../com/noticeinfoweb/js/SPZSN00100.js"/>
  254. </xhtml:head>
  255. <xhtml:body pagewidth="670" pageheight="850" guideline="1,625;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  256. <caption id="cap_cnts" class="cell_1" style="left:0px; top:196px; width:79px; height:250px; vertical-align:middle; ">내용</caption>
  257. <caption id="caption11" class="cell_1" style="left:0px; top:100px; width:79px; height:70px; vertical-align:middle; ">공지대상</caption>
  258. <caption id="caption12" class="cell_1" style="left:0px; top:173px; width:79px; height:20px; vertical-align:middle; ">첨부</caption>
  259. <group id="group5" disabled="true" scroll="autohscroll" style="left:80px; top:25px; width:570px; height:425px; ">
  260. <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; ">
  261. <choices>
  262. <itemset nodeset="/root/main/targetinfo/targetlist">
  263. <label ref="ntctrgtnm"/>
  264. <value ref="ntctrgtcd"/>
  265. </itemset>
  266. </choices>
  267. <script type="javascript" ev:event="onkeydown">
  268. <![CDATA[
  269. // delete 키
  270. if(event.keyCode == 46)
  271. {
  272. zsnfDeleteTarget();
  273. }
  274. ]]>
  275. </script>
  276. <hint>
  277. <![CDATA[대상을 선택하고 delete 키를 누르면 삭제할 수 있습니다.]]>
  278. </hint>
  279. </select>
  280. <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; "/>
  281. <caption id="caption13" style="left:107px; top:30px; width:15px; height:20px; ">~</caption>
  282. <caption id="caption8" class="cell_1" style="left:230px; top:29px; width:65px; height:20px; vertical-align:middle; ">공지구분</caption>
  283. <select1 id="cmb_ntcflag" ref="/root/main/iteminfo/ntcflag" appearance="minimal" style="left:301px; top:30px; width:119px; height:19px; ">
  284. <choices>
  285. <itemset nodeset="/root/hidden/cmb_ntcflag/item">
  286. <label ref="lbl"/>
  287. <value ref="val"/>
  288. </itemset>
  289. <!--<item>
  290. <label>일반</label>
  291. <value>N</value>
  292. </item>
  293. <item>
  294. <label>긴급</label>
  295. <value>Y</value>
  296. </item>
  297. <item>
  298. <label>하단_깜박임</label>
  299. <value>L</value>
  300. </item>-->
  301. </choices>
  302. </select1>
  303. <select1 id="cmb_targetflag" ref="/root/main/iteminfo/targetflag" appearance="minimal" style="left:1px; top:53px; width:134px; height:19px; ">
  304. <choices>
  305. <item>
  306. <label>전체</label>
  307. <value>A</value>
  308. </item>
  309. <item>
  310. <label>개인</label>
  311. <value>P</value>
  312. </item>
  313. <item>
  314. <label>근무지부서</label>
  315. <value>D</value>
  316. </item>
  317. <item>
  318. <label>근무지기관</label>
  319. <value>I</value>
  320. </item>
  321. <item>
  322. <label>직종</label>
  323. <value>K</value>
  324. </item>
  325. </choices>
  326. <script type="javascript" ev:event="xforms-value-changed">
  327. <![CDATA[
  328. //fSchToUserPart();
  329. // 메인노드 초기화
  330. model.removeNode("/root/main/targetinfo");
  331. model.makeNode("/root/main/targetinfo");
  332. zsnfOpenTargetPopup();
  333. // var trgtcmd = cmb_trgtcmd.value
  334. // if (trgtcmd != 0) {
  335. // btn_open.disabled = false;
  336. // }
  337. //
  338. //
  339. ]]>
  340. </script>
  341. </select1>
  342. <input id="ipt_attfilenm" ref="/root/main/iteminfo/attfilenm" maxlength="100" style="left:1px; top:149px; width:430px; height:19px; "/>
  343. <button id="btn_open" class="icon_search" disabled="true" style="left:547px; top:78px; width:16px; height:16px; ">
  344. <caption/>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. zsnfOpenTargetPopup();
  348. ]]>
  349. </script>
  350. </button>
  351. <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; "/>
  352. <button id="btn_filedel" class="btn2_letter2" visibility="hidden" style="left:525px; top:149px; width:42px; height:19px; ">
  353. <caption>삭제</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. zsnfFileDel();
  357. ]]>
  358. </script>
  359. </button>
  360. <button id="btn_fileadd" class="btn2_letter2" visibility="hidden" style="left:480px; top:149px; width:42px; height:19px; ">
  361. <caption>첨부</caption>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. zsnfFileAdd();
  365. ]]>
  366. </script>
  367. </button>
  368. <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; "/>
  369. <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; "/>
  370. <select1 id="cmb_ntctrgtjobkind" ref="/root/main/iteminfo/ntctrgtjobkind" visibility="hidden" appearance="minimal" style="left:207px; top:53px; width:167px; height:19px; ">
  371. <choices>
  372. <itemset nodeset="/root/init/comcd/R0061">
  373. <label ref="cdnm"/>
  374. <value ref="cdid"/>
  375. </itemset>
  376. </choices>
  377. </select1>
  378. <caption id="cap_trgtjobkind" class="cell_1" visibility="hidden" style="left:141px; top:52px; width:60px; height:20px; vertical-align:middle; ">대상직종</caption>
  379. </group>
  380. <button id="btn_down" class="btn2_letter4" navindex="6" style="left:583px; top:174px; width:64px; height:19px; ">
  381. <caption>다운로드</caption>
  382. <script type="javascript" ev:event="DOMActivate">
  383. <![CDATA[
  384. zsnfFileDown();
  385. ]]>
  386. </script>
  387. </button>
  388. <caption id="caption5" class="cell_1" style="left:0px; top:54px; width:79px; height:20px; vertical-align:middle; ">적용기간</caption>
  389. <caption id="cap_titl" class="cell_1" style="left:0px; top:31px; width:79px; height:20px; vertical-align:middle; ">제목</caption>
  390. <line id="line9" class="line_1" style="x1:0px; y1:25px; x2:650px; y2:25px; "/>
  391. <caption id="caption7" class="tit_2" style="left:0px; top:10px; width:134px; height:13px; ">공지사항</caption>
  392. <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; ">
  393. <col ref="genrdd" style="text-align:center; "/>
  394. <col ref="genrno" style="text-align:center; "/>
  395. <col ref="ntcflag"/>
  396. <col ref="targetflag"/>
  397. <col ref="ntctrgtjobkind"/>
  398. <col ref="fromdd" format="yyyy/mm/dd hh:nn:ss"/>
  399. <col ref="todd" format="yyyy/mm/dd hh:nn:ss"/>
  400. <col ref="ntcsubject"/>
  401. <col ref="ntccnts"/>
  402. <col ref="attyn"/>
  403. <col ref="attfilenm"/>
  404. <col ref="fstrgstrnm"/>
  405. <col ref="fstrgstrid"/>
  406. <col ref="fstrgstdt" format="yyyy/mm/dd hh:nn:ss"/>
  407. <col ref="hitcount" style="text-align:center; "/>
  408. <col ref="bottomflag" style="text-align:center; "/>
  409. <script type="javascript" ev:event="ondblclick">
  410. <![CDATA[
  411. if (isDataCell() == true) {
  412. var genrdd = model.getValue("/root/main/noticeinfo/noticelist[" + grd_notice.row + "]/genrdd");
  413. var genrno = model.getValue("/root/main/noticeinfo/noticelist[" + grd_notice.row + "]/genrno");
  414. zsnfgetNoticeDetail(genrdd, genrno);
  415. }
  416. ]]>
  417. </script>
  418. <script type="javascript" ev:event="onscroll">
  419. <![CDATA[
  420. fSubmitOnScroll();
  421. ]]>
  422. </script>
  423. </datagrid>
  424. <caption id="caption2" class="tit_2" style="left:0px; top:475px; width:141px; height:13px; text-align:left; ">공지사항 리스트</caption>
  425. <line id="line2" class="line_1" style="x1:0px; y1:490px; x2:648px; y2:490px; "/>
  426. <line id="line20" class="line_2" style="x1:0px; y1:52px; x2:650px; y2:52px; "/>
  427. <line id="line1" class="line_2" style="x1:0px; y1:75px; x2:650px; y2:75px; "/>
  428. <line id="line3" class="line_2" style="x1:0px; y1:171px; x2:650px; y2:171px; "/>
  429. <line id="line4" class="line_2" style="x1:0px; y1:194px; x2:650px; y2:194px; "/>
  430. <line id="line5" class="line_2" style="x1:0px; y1:447px; x2:650px; y2:447px; "/>
  431. <button id="btn_mod" class="btn2_letter2" navindex="5" style="left:564px; top:5px; width:42px; height:19px; ">
  432. <caption>수정</caption>
  433. <script type="javascript" ev:event="onclick">
  434. <![CDATA[
  435. btn_fileadd.visible = true;
  436. btn_filedel.visible = true;
  437. btn_down.visible = false;
  438. btn_preview.visible = false;
  439. group5.disabled = false;
  440. btn_save.disabled = false;
  441. group1.disabled = false;
  442. var dutplcecd = getUserInfo("dutplcecd");
  443. if( dutplcecd == "3310000000" || dutplcecd == "3310200000" ){
  444. chk_bottom.disabled = false;
  445. } else {
  446. chk_bottom.disabled = true;
  447. }
  448. model.setValue("/root/main/iteminfo/status","u");
  449. ]]>
  450. </script>
  451. </button>
  452. <button id="btn_new" class="btn2_letter2" navindex="5" style="left:520px; top:5px; width:42px; height:19px; ">
  453. <caption>신규</caption>
  454. <script type="javascript" ev:event="onclick">
  455. <![CDATA[
  456. btn_fileadd.visible = true;
  457. btn_filedel.visible = true;
  458. btn_down.visible = false;
  459. btn_preview.visible = false;
  460. group5.disabled = false;
  461. //list_ntctrgtnm.disabled = true;
  462. ipt_attfilenm.disabled = true;
  463. btn_mod.disabled = true;
  464. btn_save.disabled = false;
  465. zsnfNewNotice();
  466. model.makeValue("/root/main/iteminfo/status",'i');
  467. ]]>
  468. </script>
  469. </button>
  470. <button id="btn_save" class="btn5_letter2" disabled="true" navindex="5" style="left:608px; top:5px; width:42px; height:19px; ">
  471. <caption>저장</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. // 각 필드값을 체크한다.
  475. // 제목 체크
  476. if(model.getValue("/root/main/iteminfo/ntcsubject").getTrim()=="")
  477. {
  478. messageBox("제목은 ", "I003");
  479. model.setFocus("ipt_ntcsubject");
  480. return;
  481. }
  482. // 적용기간체크
  483. if(model.getValue("/root/main/iteminfo/fromdd").getTrim()=="")
  484. {
  485. messageBox("적용시작일자는 ", "I003");
  486. model.setFocus("ipt_from");
  487. return;
  488. }
  489. // 적용기간체크
  490. if(model.getValue("/root/main/iteminfo/todd").getTrim()=="")
  491. {
  492. messageBox("적용종료일자는 ", "I003");
  493. model.setFocus("ipt_todd");
  494. return;
  495. }
  496. // 공지대상체크 (전체가 아니고 공지대상이 없을때만)
  497. var nodesetcount = getNodesetCount("/root/main/targetinfo/targetlist");
  498. if(nodesetcount == 0)
  499. {
  500. if(model.getValue("/root/main/iteminfo/targetflag") == "A" ){
  501. } else {
  502. messageBox("공지대상은 ", "I003");
  503. return;
  504. }
  505. }
  506. // 공지내용 체크
  507. if(model.getValue("/root/main/iteminfo/ntccnts").getTrim()=="")
  508. {
  509. messageBox("공지내용 ", "I003");
  510. model.setFocus("ipt_ntccnts");
  511. return;
  512. }
  513. zsnfExeSave();
  514. group5.disabled = true;
  515. btn_fileadd.visible = false;
  516. btn_filedel.visible = false;
  517. btn_down.visible = true;
  518. if (zsnfCheckFileExt())
  519. btn_preview.visible = true;
  520. else
  521. btn_preview.visible = false;
  522. btn_cancel.visible = false;
  523. // var username = getUserName();
  524. // var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
  525. //
  526. // if (username == writer) {
  527. // btn_mod.disabled = false;
  528. // }
  529. btn_save.disabled = true;
  530. // 하단 공지사항 일때 전체 직원에게 메시지 전달하여 하단공지 재조회하도록 함 by 김지훈
  531. if( model.getValue("/root/main/iteminfo/bottomflag") == "Y"){
  532. var viewerObj = getViewer("sysMessage");
  533. if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
  534. viewerObj.window.javascript.fMsgsvrBottomNotify();
  535. }
  536. }
  537. ]]>
  538. </script>
  539. </button>
  540. <button id="btn_del" class="btn5_letter2" disabled="true" style="left:606px; top:451px; width:42px; height:19px; ">
  541. <caption>삭제</caption>
  542. <script type="javascript" ev:event="DOMActivate">
  543. <![CDATA[
  544. zsnfNoticeDel();
  545. var viewerObj = getViewer("sysMessage");
  546. if (viewerObj != null && viewerObj.window.javascript.fConnectMsgsvr != undefined) {
  547. viewerObj.window.javascript.fMsgsvrBottomNotify();
  548. }
  549. ]]>
  550. </script>
  551. </button>
  552. <caption id="caption9" class="cell_1" style="left:0px; top:77px; width:79px; height:20px; vertical-align:middle; ">대상구분</caption>
  553. <line id="line7" class="line_2" style="x1:0px; y1:98px; x2:650px; y2:98px; "/>
  554. <button id="button1" class="btn2_letter2" navindex="5" style="left:520px; top:5px; width:42px; height:19px; ">
  555. <caption>신규</caption>
  556. <script type="javascript" ev:event="onclick">
  557. <![CDATA[
  558. btn_fileadd.visible = true;
  559. btn_filedel.visible = true;
  560. btn_down.visible = false;
  561. btn_preview.visible = false;
  562. btn_cancel.visible = true;
  563. group5.disabled = false;
  564. //ipt_ntccnts.attribute("editable") = true;
  565. group1.disabled = false;
  566. chk_bottom.disabled = false;
  567. //list_ntctrgtnm.disabled = true;
  568. ipt_attfilenm.disabled = true;
  569. btn_mod.disabled = true;
  570. btn_save.disabled = false;
  571. zsnfNewNotice();
  572. model.makeValue("/root/main/iteminfo/status",'i');
  573. model.setValue("/root/main/iteminfo/bottomflag", '');
  574. model.setValue("/root/main/iteminfo/bottomcolor", 'black');
  575. model.setValue("/root/main/iteminfo/bottomsize", '9pt');
  576. //콤보박스 내용추가(by 김지훈)
  577. var dutplcecd = getUserInfo("dutplcecd");
  578. if( dutplcecd == "3310000000" || dutplcecd == "3310200000" ){ //진료행정과에서 사용하도록 수정(by 김지훈 2014.10.16)
  579. changeCombo("add");
  580. } else {
  581. changeCombo("");
  582. cpt_bottom.visible = false;
  583. chk_bottom.visible = false;
  584. }
  585. model.refresh();
  586. ]]>
  587. </script>
  588. </button>
  589. <button id="btn_mig" class="btn2_letter2" navindex="5" visibility="hidden" style="left:360px; top:5px; width:42px; height:19px; ">
  590. <caption>이관</caption>
  591. <script type="javascript" ev:event="onclick">
  592. <![CDATA[
  593. zsnfExeMig();
  594. ]]>
  595. </script>
  596. </button>
  597. <button id="btn_create" class="btn2_letter2" navindex="5" visibility="hidden" style="left:305px; top:5px; width:42px; height:19px; ">
  598. <caption>생성</caption>
  599. <script type="javascript" ev:event="onclick">
  600. <![CDATA[
  601. var i;
  602. var cnts;
  603. model.removeNodeset("/root/send/targetinfo");
  604. for (i=1; i<252; i++)
  605. {
  606. 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▩";
  607. model.setValue("/root/send/savedata",cnts);
  608. submit("TXZSN00101");
  609. }
  610. ]]>
  611. </script>
  612. </button>
  613. <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; "/>
  614. <button id="btn_preview" class="btn2_letter4" navindex="6" visibility="hidden" style="left:515px; top:174px; width:64px; height:19px; ">
  615. <caption>미리보기</caption>
  616. <script type="javascript" ev:event="DOMActivate">
  617. <![CDATA[
  618. zsnfFilePreview();
  619. ]]>
  620. </script>
  621. </button>
  622. <button id="btn_cancel" class="btn2_letter4" navindex="5" visibility="hidden" style="left:454px; top:5px; width:64px; height:19px; ">
  623. <caption>작성취소</caption>
  624. <script type="javascript" ev:event="onclick">
  625. <![CDATA[
  626. group5.disabled = true;
  627. btn_fileadd.visible = false;
  628. btn_filedel.visible = false;
  629. btn_down.visible = true;
  630. //btn_preview.visible = true;
  631. btn_cancel.visible = false;
  632. btn_save.disabled = true;
  633. group1.disabled = true;
  634. chk_bottom.disabled = true;
  635. // 첨부파일 초기화
  636. model.resetInstanceNode("/root/send/file");
  637. changeCombo("add");
  638. cpt_bottom.visible = true;
  639. chk_bottom.visible = true;
  640. ]]>
  641. </script>
  642. </button>
  643. <caption id="cpt_bottom" class="cell_1" style="left:0px; top:449px; width:79px; height:20px; vertical-align:middle; ">하단공지</caption>
  644. <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; ">
  645. <choices>
  646. <item>
  647. <label>하단공지여부</label>
  648. <value>Y</value>
  649. </item>
  650. </choices>
  651. </select>
  652. <group id="group1" style="left:180px; top:450px; width:425px; height:20px; ">
  653. <caption id="cpt_sample" class="output_message_b" style="left:252px; top:0px; width:172px; height:19px; background-color:#99ccff; ">예시 ABC abc 123</caption>
  654. <select1 id="cmb_bottomsize" ref="/root/main/iteminfo/bottomsize" appearance="minimal" style="left:190px; top:0px; width:59px; height:19px; ">
  655. <choices>
  656. <item>
  657. <label>8pt</label>
  658. <value>8pt</value>
  659. </item>
  660. <item>
  661. <label>9pt</label>
  662. <value>9pt</value>
  663. </item>
  664. <item>
  665. <label>10pt</label>
  666. <value>10pt</value>
  667. </item>
  668. <item>
  669. <label>11pt</label>
  670. <value>11pt</value>
  671. </item>
  672. <item>
  673. <label>12pt</label>
  674. <value>12pt</value>
  675. </item>
  676. </choices>
  677. <script type="javascript" ev:event="xforms-value-changed">
  678. <![CDATA[
  679. fChangeSample();
  680. ]]>
  681. </script>
  682. </select1>
  683. <caption id="caption3" class="cell_1" style="left:2px; top:0px; width:49px; height:20px; vertical-align:middle; ">글자색</caption>
  684. <caption id="caption4" class="cell_1" style="left:130px; top:0px; width:59px; height:20px; vertical-align:middle; ">글자크기</caption>
  685. <select1 id="cmb_bottomcolor" ref="/root/main/iteminfo/bottomcolor" appearance="minimal" style="left:53px; top:0px; width:74px; height:19px; ">
  686. <choices>
  687. <item>
  688. <label>검정</label>
  689. <value>black</value>
  690. </item>
  691. <item>
  692. <label>노랑</label>
  693. <value>yellow</value>
  694. </item>
  695. <item>
  696. <label>파랑</label>
  697. <value>blue</value>
  698. </item>
  699. <item>
  700. <label>빨강</label>
  701. <value>red</value>
  702. </item>
  703. <item>
  704. <label>녹색</label>
  705. <value>green</value>
  706. </item>
  707. </choices>
  708. <script type="javascript" ev:event="xforms-value-changed">
  709. <![CDATA[
  710. fChangeSample();
  711. ]]>
  712. </script>
  713. </select1>
  714. </group>
  715. <button id="btn_except" class="btn2_letter4" navindex="6" style="left:5px; top:145px; width:64px; height:19px; ">
  716. <caption>제외대상</caption>
  717. <script type="javascript" ev:event="DOMActivate">
  718. <![CDATA[
  719. //modal("SPZSN00400");
  720. // model.removeNode("/root/main/exceptinfo");
  721. // model.makeNode("/root/main/exceptinfo");
  722. zsnfOpenExceptPopup();
  723. ]]>
  724. </script>
  725. </button>
  726. </xhtml:body>
  727. </xhtml:html>