SPMMO05000_공지사항조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>공지사항 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <noticeinfo>
  11. <noticelist>
  12. <delivetitl/>
  13. <attfilenm/>
  14. <updtrid/>
  15. <genrdd/>
  16. <genrno/>
  17. <fromdd/>
  18. <todd/>
  19. <deliveflag/>
  20. <delivecnts/>
  21. <trgtint/>
  22. <histstat/>
  23. <trgtcmd/>
  24. <attyn/>
  25. <trgtnm/>
  26. <fstrgstdt/>
  27. <useyn/>
  28. </noticelist>
  29. </noticeinfo>
  30. <listinfo>
  31. <listinfo>
  32. <attfilenm/>
  33. <trgtint/>
  34. <trgtcmd/>
  35. <deliveflag/>
  36. <todd/>
  37. <fromdd/>
  38. <delivetitl/>
  39. <status/>
  40. <genrno/>
  41. <genrdd/>
  42. <updtrid/>
  43. <delivecnts/>
  44. <trgtnm/>
  45. <orddrid/>
  46. <orddeptcd/>
  47. <fileyn/>
  48. </listinfo>
  49. </listinfo>
  50. <choideptinfo>
  51. <choideptlist>
  52. <deptcd/>
  53. <deptnm/>
  54. </choideptlist>
  55. <getrows/>
  56. </choideptinfo>
  57. <choiuserinfo>
  58. <choiuserlist>
  59. <userid/>
  60. <usernm/>
  61. </choiuserlist>
  62. <getrows/>
  63. </choiuserinfo>
  64. <delivetrgt>
  65. <delivetrgt>
  66. <delivetrgt>
  67. <trgtint/>
  68. <trgtcount/>
  69. <genrdd/>
  70. <genrno/>
  71. <trgtnm/>
  72. <trgt/>
  73. </delivetrgt>
  74. </delivetrgt>
  75. <delivedepttrgt>
  76. <delivedepttrgt>
  77. <trgtint/>
  78. <trgtcount/>
  79. <genrdd/>
  80. <genrno/>
  81. </delivedepttrgt>
  82. </delivedepttrgt>
  83. <delivedrtrgt>
  84. <delivedrtrgt>
  85. <trgtint/>
  86. <trgtcount/>
  87. <genrdd/>
  88. <genrno/>
  89. </delivedrtrgt>
  90. </delivedrtrgt>
  91. </delivetrgt>
  92. <cond>
  93. <orddd/>
  94. <orddeptcd/>
  95. <orddrid/>
  96. </cond>
  97. <choideptinfo>
  98. <choideptlist>
  99. <deptcd/>
  100. <deptnm/>
  101. </choideptlist>
  102. <getrows/>
  103. </choideptinfo>
  104. <choiuserinfo>
  105. <choiuserlist>
  106. <userid/>
  107. <usernm/>
  108. </choiuserlist>
  109. <getrows/>
  110. </choiuserinfo>
  111. </main>
  112. <send>
  113. <reqdata/>
  114. <savedata/>
  115. <file>
  116. <filename/>
  117. <genrdd/>
  118. <genrno/>
  119. <orddeptcd/>
  120. </file>
  121. <save2data/>
  122. </send>
  123. <hidden/>
  124. <init/>
  125. <temp/>
  126. </root>
  127. </instance>
  128. <script type="javascript" ev:event="xforms-ready">
  129. <![CDATA[
  130. fInitialize_SMMMO05000() ;
  131. btn_mod.disabled = true;
  132. var openflag = opener.javascript.getParameter("SPMMO05000_openflag");
  133. var iRow = opener.javascript.getParameter("SPMMO05000_row");
  134. if (openflag== "P") {
  135. model.copyNode("/root/main/listinfo/listinfo", "/root/main/noticeinfo/noticelist["+ iRow + "]");
  136. var username = getUserName();
  137. var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
  138. model.makeValue("/root/temp/username", username);
  139. model.makeValue("/root/temp/writer", writer);
  140. if (username == writer) {
  141. btn_mod.disabled = false;
  142. }
  143. model.refresh();
  144. }
  145. ]]>
  146. </script>
  147. <submission id="TRMMO04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/noticeinfo"/>
  148. <submission id="TRMMO04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/delivetrgt"/>
  149. <submission id="TRMMO04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/delivetrgt"/>
  150. <submission id="TRMMB08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" add="bottom" resultref="/root/main/choideptinfo"/>
  151. <submission id="TRMMB08203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" add="bottom" resultref="/root/main/choideptinfo"/>
  152. <submission id="TRMMO04904" mediatype="multipart/form-data" method="form-data-post" resultref="/root/send/filelist"/>
  153. <submission id="TXMMO04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/noticeinfo"/>
  154. <submission id="TXMMO04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/noticeinfo"/>
  155. <submission id="TXMMO04903" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/file" resultref="/root/main/noticeinfo"/>
  156. </model>
  157. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  159. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  161. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  162. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO05000.js"/>
  163. </xhtml:head>
  164. <xhtml:body pagewidth="670" pageheight="800" guideline="1,670;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  165. <caption id="cap_cnts" class="cell_1" style="left:0px; top:123px; width:79px; height:250px; vertical-align:middle; ">내용</caption>
  166. <caption id="caption11" class="cell_1" style="left:0px; top:77px; width:79px; height:20px; vertical-align:middle; ">대상</caption>
  167. <caption id="caption12" class="cell_1" style="left:0px; top:100px; width:79px; height:20px; vertical-align:middle; ">첨부</caption>
  168. <group id="group5" scroll="autohscroll" style="left:80px; top:25px; width:570px; height:350px; ">
  169. <input id="ipt_titl" ref="/root/main/listinfo/listinfo/delivetitl" class="input_essential" maxlength="300" style="left:1px; top:7px; width:567px; height:20px; "/>
  170. <input id="ipt_fromdd" ref="/root/main/listinfo/listinfo/fromdd" format="yyyy-mm-dd" appearance="input" style="left:0px; top:30px; width:130px; height:20; "/>
  171. <input id="ipt_todd" ref="/root/main/listinfo/listinfo/todd" format="yyyy-mm-dd" appearance="input" style="left:150px; top:30px; width:125px; height:20; "/>
  172. <caption id="caption13" style="left:132px; top:30px; width:15px; height:20px; ">~</caption>
  173. <caption id="caption8" class="cell_1" style="left:280px; top:29px; width:79px; height:20px; vertical-align:middle; ">구분</caption>
  174. <select1 id="cmb_flag" ref="/root/main/listinfo/listinfo/deliveflag" appearance="minimal" style="left:363px; top:30px; width:205px; height:20; ">
  175. <choices>
  176. <item>
  177. <label>일반</label>
  178. <value>0</value>
  179. </item>
  180. <item>
  181. <label>긴급</label>
  182. <value>1</value>
  183. </item>
  184. </choices>
  185. </select1>
  186. <select1 id="cmb_trgtcmd" ref="/root/main/listinfo/listinfo/trgtcmd" appearance="minimal" style="left:1px; top:53; width:100px; height:20px; ">
  187. <choices>
  188. <item>
  189. <label>전체</label>
  190. <value>0</value>
  191. </item>
  192. <item>
  193. <label>개인</label>
  194. <value>1</value>
  195. </item>
  196. <item>
  197. <label>부서</label>
  198. <value>2</value>
  199. </item>
  200. </choices>
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. var trgtcmd = cmb_trgtcmd.value
  204. if (trgtcmd != 0) {
  205. btn_open.disabled = false;
  206. }
  207. fSchToUserPart();
  208. ]]>
  209. </script>
  210. </select1>
  211. <input id="ipt_trgtnm" ref="/root/main/listinfo/listinfo/trgtnm" style="left:103px; top:53px; width:442px; height:19px; "/>
  212. <input id="ipt_att" ref="/root/main/listinfo/listinfo/attfilenm" maxlength="100" style="left:1px; top:76px; width:476px; height:19px; "/>
  213. <textarea id="ipt_cnts" ref="/root/main/listinfo/listinfo/delivecnts" scroll="auto" maxlength="4000" style="left:0px; top:99; width:567px; height:250px; "/>
  214. <button id="btn_open" class="icon_search" disabled="true" style="left:547px; top:55px; width:16px; height:16px; ">
  215. <caption/>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fSchToUserPart();
  219. ]]>
  220. </script>
  221. </button>
  222. <upload id="upload1" nodeset="/root/send/file/filename" ext="zip" filecount="5" filesize="1048576" validate="true" style="left:461px; top:75px; width:15px; height:15px; "/>
  223. <button id="btn_filedel" class="btn2_letter2" visibility="hidden" style="left:525px; top:75px; width:42px; height:19px; ">
  224. <caption>삭제</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fFileDel();
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="btn_fileadd" class="btn2_letter2" visibility="hidden" style="left:480px; top:75px; width:40px; height:19px; ">
  232. <caption>첨부</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fFileAdd();
  236. ]]>
  237. </script>
  238. </button>
  239. </group>
  240. <button id="btn_down" class="btn2_letter4" navindex="6" style="left:583px; top:100px; width:64px; height:19px; ">
  241. <caption>다운로드</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fFileDown();
  245. ]]>
  246. </script>
  247. </button>
  248. <caption id="caption5" class="cell_1" style="left:0px; top:54px; width:79px; height:20px; vertical-align:middle; ">적응기간</caption>
  249. <caption id="cap_titl" class="cell_1" style="left:0px; top:31px; width:79px; height:20px; vertical-align:middle; ">제목</caption>
  250. <line id="line9" class="line_1" style="x1:0px; y1:25px; x2:650px; y2:25px; "/>
  251. <caption id="caption7" class="tit_2" style="left:0px; top:10px; width:134px; height:13px; ">공지사항</caption>
  252. <datagrid id="grd_notice" nodeset="/root/main/noticeinfo/noticelist" scroll="vertical" autoresize="true" caption="제목^첨부^작성자^작성자ID^발생일자^발생번호^시작일자^종료일자^전달구분^전달사항내용^전달대상명^이력상태^전달대상^첨부제목^대상이름^선택^게시일시" colsep="^" colwidth="390, 40, 80, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:415px; width:648px; height:354px; ">
  253. <col ref="delivetitl"/>
  254. <col ref="attyn" style="text-align:center; "/>
  255. <col ref="updtrid" style="text-align:center; "/>
  256. <col ref="genrdd" format="yyyy-mm-dd"/>
  257. <col ref="genrno"/>
  258. <col ref="fromdd"/>
  259. <col ref="todd"/>
  260. <col ref="deliveflag"/>
  261. <col ref="delivecnts"/>
  262. <col ref="trgtint"/>
  263. <col ref="histstat"/>
  264. <col ref="trgtcmd"/>
  265. <col ref="attfilenm"/>
  266. <col ref="trgtnm"/>
  267. <col ref="useyn" type="checkbox"/>
  268. <col ref="fstrgstdt" format="yyyy/mm/dd hh:nn:ss"/>
  269. <script type="javascript" ev:event="ondblclick">
  270. <![CDATA[
  271. if (isDataCell() == true) {
  272. fNoticeDetlReq();
  273. }
  274. group5.disabled = false;
  275. btn_fileadd.visible = false;
  276. btn_filedel.visible = false;
  277. btn_down.visible = true;
  278. var username = getUserName();
  279. var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
  280. if (username == writer) {
  281. btn_mod.disabled = false;
  282. }
  283. btn_save.disabled = true;
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <caption id="caption2" class="tit_2" style="left:0px; top:395px; width:141px; height:13px; text-align:left; ">공지사항 리스트</caption>
  288. <line id="line2" class="line_1" style="x1:0px; y1:410px; x2:648px; y2:410px; "/>
  289. <line id="line20" class="line_2" style="x1:0px; y1:51px; x2:650px; y2:51px; "/>
  290. <line id="line1" class="line_2" style="x1:0px; y1:75px; x2:650px; y2:75px; "/>
  291. <line id="line3" class="line_2" style="x1:0px; y1:98px; x2:650px; y2:98px; "/>
  292. <line id="line4" class="line_2" style="x1:0px; y1:121px; x2:650px; y2:121px; "/>
  293. <line id="line5" class="line_2" style="x1:0px; y1:374px; x2:650px; y2:374px; "/>
  294. <button id="btn_mod" class="btn2_letter2" navindex="5" style="left:564px; top:5px; width:42px; height:19px; ">
  295. <caption>수정</caption>
  296. <script type="javascript" ev:event="onclick">
  297. <![CDATA[
  298. btn_fileadd.visible = true;
  299. btn_filedel.visible = true;
  300. btn_down.visible = false;
  301. group5.disabled = false;
  302. btn_save.disabled = false;
  303. model.makeValue("/root/main/listinfo/listinfo/status","u");
  304. ]]>
  305. </script>
  306. </button>
  307. <button id="btn_new" class="btn2_letter2" navindex="5" style="left:520px; top:5px; width:42px; height:19px; ">
  308. <caption>신규</caption>
  309. <script type="javascript" ev:event="onclick">
  310. <![CDATA[
  311. btn_fileadd.visible = true;
  312. btn_filedel.visible = true;
  313. btn_down.visible = false;
  314. group5.disabled = false;
  315. ipt_trgtnm.disabled = true;
  316. ipt_att.disabled = true;
  317. btn_mod.disabled = true;
  318. btn_save.disabled = false;
  319. fNewNotice();
  320. model.makeValue("/root/main/listinfo/listinfo/status",'i');
  321. ]]>
  322. </script>
  323. </button>
  324. <button id="btn_save" class="btn5_letter2" disabled="true" navindex="5" style="left:608px; top:5px; width:42px; height:19px; ">
  325. <caption>저장</caption>
  326. <script type="javascript" ev:event="DOMActivate">
  327. <![CDATA[
  328. model.copyNode("/root/temp", "/root/main/listinfo/listinfo");
  329. if (isRequiredControls("ipt_titl","ipt_cnts" ) == false) {
  330. return;
  331. }else {
  332. fExeSvae();
  333. }
  334. group5.disabled = true;
  335. btn_fileadd.visible = false;
  336. btn_filedel.visible = false;
  337. btn_down.visible = true;
  338. var username = getUserName();
  339. var writer = model.getValue("/root/main/listinfo/listinfo/updtrid");
  340. if (username == writer) {
  341. btn_mod.disabled = false;
  342. }
  343. btn_save.disabled = true;
  344. model.copyNode("/root/main/listinfo/listinfo","/root/temp")
  345. model.refresh();
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="button1" class="btn5_letter2" style="left:605px; top:377px; width:42px; height:19px; ">
  350. <caption>삭제</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. fNoticeDel();
  354. ]]>
  355. </script>
  356. </button>
  357. </xhtml:body>
  358. </xhtml:html>