SPZSN00600_직원공유게시판.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSN00600" classname="SPZSN00500_직원공유게시판" inheritanceid="" position="absolute 0 0 1024 784" titletext="직원공유게시판" oninit="SPZSN00600_oninit" onload="SPZSN00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div_search" position="absolute 0 24 1024 78" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" text="조회" position="absolute 955 18 1008 38" class="btn1" onclick="div_search_btn_search_onclick" anchor="top right" taborder="4"/>
  11. <CheckBox id="chk_tempsave" text="임시저장 포함" position="absolute 839 18 939 38" anchor="top right" visible="false" taborder="3"/>
  12. <Static id="Static00" text="제목 :" position="absolute 14 19 66 39" class="search_name"/>
  13. <Edit id="edit_title" position="absolute 71 18 299 38" onkeydown="div_search_edit_title_onkeydown" taborder="1" autoselect="true"/>
  14. <Static id="Static01" text="게시자 :" class="search_name" position="absolute 666 19 726 39"/>
  15. <Edit id="edt_usernm" position="absolute 731 18 807 38" onkeydown="div_search_edit_title_onkeydown" taborder="2" autoselect="true"/>
  16. <Static id="Static02" text="내용 :" class="search_name" position="absolute 318 19 370 39"/>
  17. <Edit id="edit_contents" taborder="5" onkeydown="div_search_edit_title_onkeydown" position="absolute 375 18 627 38" autoselect="true"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Shape id="Shape00" position="absolute 0 104 1024 108" class="line_10" anchor="left top right"/>
  22. <Grid id="grd_noticelist" useinputpanel="false" position="absolute 0 108 1024 784" binddataset="ds_noticelist" autofittype="col" anchor="all" oncelldblclick="grd_noticelist_oncelldblclick">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="30"/>
  27. <Column size="30"/>
  28. <Column size="40"/>
  29. <Column size="424"/>
  30. <Column size="60"/>
  31. <Column size="40"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell text="읽음" taborder="undefined"/>
  41. <Cell col="1" text="첨부" taborder="undefined"/>
  42. <Cell col="2" displaytype="normal" text="번호"/>
  43. <Cell col="3" displaytype="normal" text="제목"/>
  44. <Cell col="4" displaytype="normal" text="게시자"/>
  45. <Cell col="5" displaytype="normal" text="조회"/>
  46. <Cell col="6" displaytype="normal" text="게시일"/>
  47. <Cell col="7" displaytype="normal" text="종료일"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell style="color:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);color2:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);selectcolor:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);" text="bind:readyn"/>
  51. <Cell col="1" displaytype="normal" text="bind:attachyn"/>
  52. <Cell col="2" displaytype="normal" text="bind:seqno"/>
  53. <Cell col="3" displaytype="text" style="padding:0 8 0 8;color:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);color2:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);selectcolor:EXPR((readyn == &quot;N&quot;) ? &quot;blue&quot; : &quot;&quot;);" text="bind:title"/>
  54. <Cell col="4" displaytype="normal" text="bind:usernm"/>
  55. <Cell col="5" displaytype="normal" text="bind:hitcount"/>
  56. <Cell col="6" displaytype="normal" text="bind:fromdd"/>
  57. <Cell col="7" displaytype="normal" style="color:EXPR(histstat == 'N' ? &quot;red&quot; : &quot;&quot;);color2:EXPR(histstat == 'N' ? &quot;red&quot; : &quot;&quot;);" text="bind:todd"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Button id="btn_write" text="글쓰기" position="absolute 971 83 1024 103" class="btn5" onclick="btn_write_onclick" anchor="top right" visible="false"/>
  63. <Static id="stt_title" position="absolute 0 0 190 25" class="tit_1"/>
  64. </Layout>
  65. </Layouts>
  66. <Objects>
  67. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="title" type="STRING" size="256"/>
  70. <Column id="usernm" type="STRING" size="256"/>
  71. <Column id="contents" type="STRING" size="256"/>
  72. <Column id="boardtype" type="STRING" size="256"/>
  73. <Column id="chktempsave" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row/>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_noticelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="genrno" type="BIGDECIMAL" size="255"/>
  82. <Column id="seqno" type="BIGDECIMAL" size="255"/>
  83. <Column id="boardtype" type="STRING" size="255"/>
  84. <Column id="userid" type="STRING" size="255"/>
  85. <Column id="usernm" type="STRING" size="255"/>
  86. <Column id="fromdd" type="STRING" size="255"/>
  87. <Column id="todd" type="STRING" size="255"/>
  88. <Column id="histstat" type="STRING" size="255"/>
  89. <Column id="title" type="STRING" size="255"/>
  90. <Column id="attachyn" type="STRING" size="255"/>
  91. <Column id="readyn" type="STRING" size="256"/>
  92. <Column id="hitcount" type="BIGDECIMAL" size="255"/>
  93. </ColumnInfo>
  94. <Rows/>
  95. </Dataset>
  96. <Dataset id="ds_boardtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  97. <ColumnInfo>
  98. <Column id="label" type="STRING" size="256"/>
  99. <Column id="value" type="STRING" size="256"/>
  100. <Column id="titleYn" type="STRING" size="256"/>
  101. <Column id="title" type="STRING" size="256"/>
  102. <Column id="popuptitle" type="STRING" size="256"/>
  103. <Column id="instcd" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="label">공지사항</Col>
  108. <Col id="value">C1</Col>
  109. <Col id="titleYn">N</Col>
  110. <Col id="instcd"/>
  111. <Col id="popuptitle">직원공유</Col>
  112. <Col id="title">직원공유게시판</Col>
  113. </Row>
  114. <Row>
  115. <Col id="value">C2</Col>
  116. <Col id="label">지침게시물</Col>
  117. <Col id="titleYn">N</Col>
  118. <Col id="popuptitle">직원공유</Col>
  119. <Col id="title">직원공유게시판</Col>
  120. </Row>
  121. <Row>
  122. <Col id="value">Q1</Col>
  123. <Col id="label">질향상활동</Col>
  124. <Col id="titleYn">N</Col>
  125. <Col id="popuptitle">직원공유</Col>
  126. <Col id="title">직원공유게시판</Col>
  127. </Row>
  128. <Row>
  129. <Col id="value">Q2</Col>
  130. <Col id="label">지표관리활동</Col>
  131. <Col id="titleYn">N</Col>
  132. <Col id="popuptitle">직원공유</Col>
  133. <Col id="title">직원공유게시판</Col>
  134. </Row>
  135. <Row>
  136. <Col id="value">Q3</Col>
  137. <Col id="label">표준진료지침활동</Col>
  138. <Col id="titleYn">N</Col>
  139. <Col id="popuptitle">직원공유</Col>
  140. <Col id="title">직원공유게시판</Col>
  141. </Row>
  142. <Row>
  143. <Col id="label">교육자료</Col>
  144. <Col id="value">Q4</Col>
  145. <Col id="titleYn">N</Col>
  146. <Col id="popuptitle">직원공유</Col>
  147. <Col id="title">직원공유게시판</Col>
  148. </Row>
  149. <Row>
  150. <Col id="label">주의경보및정보제공</Col>
  151. <Col id="value">P1</Col>
  152. <Col id="titleYn">N</Col>
  153. <Col id="popuptitle">직원공유</Col>
  154. <Col id="title">직원공유게시판</Col>
  155. </Row>
  156. <Row>
  157. <Col id="value">P2</Col>
  158. <Col id="label">환자안전관리활동(KNUH)</Col>
  159. <Col id="titleYn">N</Col>
  160. <Col id="instcd">031</Col>
  161. <Col id="popuptitle">직원공유</Col>
  162. <Col id="title">직원공유게시판</Col>
  163. </Row>
  164. <Row>
  165. <Col id="label">환자안전관리활동(KNUCH)</Col>
  166. <Col id="value">P2</Col>
  167. <Col id="titleYn">N</Col>
  168. <Col id="instcd">032</Col>
  169. <Col id="popuptitle">직원공유</Col>
  170. <Col id="title">직원공유게시판</Col>
  171. </Row>
  172. <Row>
  173. <Col id="value">P3</Col>
  174. <Col id="label">환자안전교육</Col>
  175. <Col id="titleYn">N</Col>
  176. <Col id="popuptitle">직원공유</Col>
  177. <Col id="title">직원공유게시판</Col>
  178. </Row>
  179. <Row>
  180. <Col id="value">I1</Col>
  181. <Col id="label">감염관리활동</Col>
  182. <Col id="titleYn">N</Col>
  183. <Col id="popuptitle">직원공유</Col>
  184. <Col id="title">직원공유게시판</Col>
  185. </Row>
  186. <Row>
  187. <Col id="label">감염관리매뉴얼</Col>
  188. <Col id="value">I2</Col>
  189. <Col id="titleYn">N</Col>
  190. <Col id="popuptitle">직원공유</Col>
  191. <Col id="title">직원공유게시판</Col>
  192. <Col id="instcd">031</Col>
  193. </Row>
  194. <Row>
  195. <Col id="label">감염관리지침</Col>
  196. <Col id="value">I2</Col>
  197. <Col id="titleYn">N</Col>
  198. <Col id="title">직원공유게시판</Col>
  199. <Col id="popuptitle">직원공유</Col>
  200. <Col id="instcd">032</Col>
  201. </Row>
  202. <Row>
  203. <Col id="value">I3</Col>
  204. <Col id="label">교육자료</Col>
  205. <Col id="titleYn">N</Col>
  206. <Col id="popuptitle">직원공유</Col>
  207. <Col id="title">직원공유게시판</Col>
  208. </Row>
  209. <Row>
  210. <Col id="value">I4</Col>
  211. <Col id="label">지침게시물</Col>
  212. <Col id="titleYn">N</Col>
  213. <Col id="popuptitle">직원공유</Col>
  214. <Col id="title">직원공유게시판</Col>
  215. </Row>
  216. <Row>
  217. <Col id="value">I5</Col>
  218. <Col id="label">국내외감염병동향</Col>
  219. <Col id="titleYn">N</Col>
  220. <Col id="popuptitle">직원공유</Col>
  221. <Col id="title">직원공유게시판</Col>
  222. </Row>
  223. <Row>
  224. <Col id="label">환자∙보호자 교육자료</Col>
  225. <Col id="value">I6</Col>
  226. <Col id="titleYn">N</Col>
  227. <Col id="title">직원공유게시판</Col>
  228. <Col id="popuptitle">직원공유</Col>
  229. <Col id="instcd">032</Col>
  230. </Row>
  231. <Row>
  232. <Col id="value">S1</Col>
  233. <Col id="label">직원안전활동</Col>
  234. <Col id="titleYn">N</Col>
  235. <Col id="popuptitle">직원공유</Col>
  236. <Col id="title">직원공유게시판</Col>
  237. </Row>
  238. <Row>
  239. <Col id="value">M1</Col>
  240. <Col id="label">공지사항</Col>
  241. <Col id="titleYn">Y</Col>
  242. <Col id="popuptitle">만족도조사</Col>
  243. <Col id="title">공지사항</Col>
  244. </Row>
  245. <Row>
  246. <Col id="value">M2</Col>
  247. <Col id="label">만족도조사 보고서</Col>
  248. <Col id="titleYn">Y</Col>
  249. <Col id="popuptitle">만족도조사</Col>
  250. <Col id="title">만족도조사 보고서</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. </Objects>
  255. <Bind>
  256. <BindItem id="item0" compid="div_search.edit_title" propid="value" datasetid="ds_send" columnid="title"/>
  257. <BindItem id="item1" compid="div_search.edt_usernm" propid="value" datasetid="ds_send" columnid="usernm"/>
  258. <BindItem id="item2" compid="div_search.edit_contents" propid="value" datasetid="ds_send" columnid="contents"/>
  259. </Bind>
  260. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  261. var MENUPARAM;
  262. function SPZSN00600_oninit(obj:Form, e:InitEventInfo)
  263. {
  264. frmf_initForm(obj, false);
  265. }
  266. function SPZSN00600_onload(obj:Form, e:LoadEventInfo)
  267. {
  268. MENUPARAM = frmf_getMenuParam();
  269. fSetTitle(obj, MENUPARAM);
  270. var sMenuGubun = "";
  271. if(!utlf_isNull(MENUPARAM)) {
  272. sMenuGubun = MENUPARAM.substring(0, 1);
  273. }
  274. // 의료질관리과, 감염관리과, 근로복지과, 의료정보과만 글 게시및 수정 가능
  275. var dutplcecd = sysf_getUserInfo("dutplcecd");
  276. var userid = sysf_getUserId();
  277. if(dutplcecd == "4071100000" || dutplcecd == "4071200000" || dutplcecd == "4071201000" || dutplcecd == "3320100000" || dutplcecd == "3350000000" || // 의료질관리과
  278. dutplcecd == "4130100000" || dutplcecd == "4130116000" || // 의료정보과
  279. userid == "13278" || userid == "18451") { // 총무팀 안전관리자
  280. div_search.chk_tempsave.visible = true;
  281. btn_write.visible = true;
  282. } else if((dutplcecd == "3110300000") && sMenuGubun == "I") { // 감염관리팀
  283. div_search.chk_tempsave.visible = true;
  284. btn_write.visible = true;
  285. } else if(dutplcecd == "4020326000" && sMenuGubun == "S") { // 근로복지과
  286. div_search.chk_tempsave.visible = true;
  287. btn_write.visible = true;
  288. } else {
  289. div_search.chk_tempsave.visible = false;
  290. btn_write.visible = false;
  291. }
  292. div_search.btn_search.click();
  293. }
  294. function fSetTitle(obj, menuparam) {
  295. var instcd = sysf_getUserInfo("dutplceinstcd");
  296. ds_boardtype.filter("(utlf_isNull(instcd) || instcd == " + instcd + ") && value == '" + menuparam + "'");
  297. var titleYn = ds_boardtype.getColumn(0, "titleYn");
  298. var title = ds_boardtype.getColumn(0, "title");
  299. var boardnm = ds_boardtype.getColumn(0, "label");
  300. if(titleYn == "Y") frmf_initTitle(obj, title);
  301. stt_title.text = boardnm;
  302. // 타이틀 영역 설정
  303. var font = stt_title.currentstyle.font;
  304. var fontStyle = font.toString().split(',');
  305. var bold = false;
  306. if(fontStyle.length > 2 && fontStyle[2] == "bold") bold = true;
  307. var objFont = utlf_getObjFont(fontStyle[1], fontStyle[0], bold); // 실제 폰트의 너비
  308. var textSize = utlf_getTextSize(stt_title.text, objFont);
  309. stt_title.position.width = stt_title.currentstyle.padding.left + stt_title.currentstyle.padding.right + textSize.cx + 12;
  310. }
  311. function btn_write_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. fOpenDetailPopup(-1);
  314. }
  315. function fOpenDetailPopup(sGenrno) {
  316. var oPopup = frmf_findPopup("SPZSN00601");
  317. if(utlf_isNull(oPopup)){
  318. var objParam = new Object();
  319. objParam.plgv_genrno = sGenrno;
  320. objParam.plgv_boardtype = MENUPARAM;
  321. frmf_open("SPZSN00601", "SPZSN00601", objParam, null, null, null, null, null, null, "resize=false", null, null, "M");
  322. } else {
  323. oPopup.setFocus();
  324. oPopup.fInit(MENUPARAM, sGenrno);
  325. }
  326. }
  327. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. ds_send.setColumn(0, "boardtype", MENUPARAM);
  330. ds_send.setColumn(0, "chktempsave", div_search.chk_tempsave.value ? "Y" : "N");
  331. var oParam = {};
  332. oParam.id = "SPZSN00600";
  333. oParam.service = "noticeinfoapp.noticeinfo";
  334. oParam.method = "reqGetStaffShareNoticeList";
  335. oParam.inds = "req=ds_send";
  336. oParam.outds = "ds_noticelist=noticelist";
  337. oParam.async = true;
  338. tranf_submit(oParam);
  339. }
  340. function grd_noticelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  341. {
  342. if(e.row < 0 || e.col < 0) return;
  343. fOpenDetailPopup(ds_noticelist.getColumn(e.row, "genrno"));
  344. }
  345. function div_search_edit_title_onkeydown(obj:Edit, e:KeyEventInfo)
  346. {
  347. if(e.keycode == 13) {
  348. obj.updateToDataset();
  349. obj.parent.btn_search.click();
  350. }
  351. }
  352. function fRefresh() {
  353. div_search.btn_search.click();
  354. }
  355. ]]></Script>
  356. </Form>
  357. </FDL>