SSZSN00100_공지사항목록조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSZSN00100" position="absolute 0 0 797 387" titletext="Untitle" oninit="SSZSN00100_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="1" position="absolute 0 0 797 36" class="div_SA2"/>
  8. <Button position="absolute 715 8 771 28" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
  9. <Shape position="absolute 696 6 702 29" linetype="vertical" id="line1" class="line_4"/>
  10. <Calendar position="absolute 95 8 180 28" id="ipt_fromdd" class="input_search" mask="yyyy-mm-dd" autoselect="true"/>
  11. <Static text="게시일시" position="absolute 16 8 87 28" id="caption21" class="search_name"/>
  12. <Calendar position="absolute 215 9 300 28" id="ipt_todd" class="input_search" mask="yyyy-mm-dd" autoselect="true"/>
  13. <Static text="~" position="absolute 190 9 210 29" id="caption1"/>
  14. <Grid position="absolute 0 65 797 387" id="grd_notice" scrollbars="autoboth" binddataset="ds_grd_notice" oncelldblclick="grd_notice_oncelldblclick" anchor="all" autofittype="col" onvtracklast="grd_notice_onvtracklast">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="20"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="453"/>
  27. <Column size="0"/>
  28. <Column size="50"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="80"/>
  32. <Column size="135"/>
  33. <Column size="48"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="발생일자"/>
  42. <Cell col="2" text="발생번호"/>
  43. <Cell col="3" text="긴급여부"/>
  44. <Cell col="4" text="공지대상구분"/>
  45. <Cell col="5" text="공지대상직종"/>
  46. <Cell col="6" text="시작일자"/>
  47. <Cell col="7" text="종료일자"/>
  48. <Cell col="8" text="제목"/>
  49. <Cell col="9" text="내용"/>
  50. <Cell col="10" text="첨부"/>
  51. <Cell col="11" text="첨부파일명"/>
  52. <Cell col="12" text="작성자ID"/>
  53. <Cell col="13" text="작성자"/>
  54. <Cell col="14" text="게시일시"/>
  55. <Cell col="15" text="조회수"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell celltype="head" text="expr:currow + 1"/>
  59. <Cell col="1" text="bind:genrdd"/>
  60. <Cell col="2" text="bind:genrno"/>
  61. <Cell col="3" text="bind:ntcflag"/>
  62. <Cell col="4" text="bind:targetflag"/>
  63. <Cell col="5" text="bind:ntctrgtjobkind"/>
  64. <Cell col="6" text="bind:fromdd" mask="yyyy/mm/dd hh:nn:ss"/>
  65. <Cell col="7" text="bind:todd" mask="yyyy/mm/dd hh:nn:ss"/>
  66. <Cell col="8" style="align:left;color:EXPR((activenoti == 'Y') ? ((ntcflag == 'Y') ? &quot;red&quot; : &quot;&quot;) : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? ((ntcflag == 'Y') ? &quot;red&quot; : &quot;&quot;) : &quot;gray&quot;);" text="bind:ntcsubject"/>
  67. <Cell col="9" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;lightgrey&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;lightgrey&quot;);" text="bind:ntccnts"/>
  68. <Cell col="10" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:attyn"/>
  69. <Cell col="11" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:attfilenm"/>
  70. <Cell col="12" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:fstrgstrid"/>
  71. <Cell col="13" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:fstrgstrnm"/>
  72. <Cell col="14" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:fstrgstdt" mask="####/##/## ##:##:##"/>
  73. <Cell col="15" style="color:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);color2:EXPR((activenoti == 'Y') ? &quot;&quot; : &quot;gray&quot;);" text="bind:hitcount"/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. <Static text="공지사항 리스트" position="absolute 0 45 141 65" align="align:left middle;" id="caption2" class="tit_2"/>
  79. <Button position="absolute 711 42 797 62" id="btn_opennotice" class="btn2" text="공지사항조회" onclick="btn_opennotice_onclick"/>
  80. </Layout>
  81. </Layouts>
  82. <Objects>
  83. <Dataset id="ds_grd_notice" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  84. <ColumnInfo>
  85. <Column id="genrdd" type="STRING" size="255"/>
  86. <Column id="genrno" type="BIGDECIMAL" size="255"/>
  87. <Column id="delyn" type="STRING" size="255"/>
  88. <Column id="ntcflag" type="STRING" size="255"/>
  89. <Column id="targetflag" type="STRING" size="255"/>
  90. <Column id="ntctrgtjobkind" type="STRING" size="255"/>
  91. <Column id="fromdd" type="STRING" size="255"/>
  92. <Column id="todd" type="STRING" size="255"/>
  93. <Column id="ntcsubject" type="STRING" size="255"/>
  94. <Column id="ntccnts" type="STRING" size="255"/>
  95. <Column id="attyn" type="STRING" size="255"/>
  96. <Column id="attfilenm" type="STRING" size="255"/>
  97. <Column id="attfilepath" type="STRING" size="255"/>
  98. <Column id="bottomflag" type="STRING" size="255"/>
  99. <Column id="bottomcolor" type="STRING" size="255"/>
  100. <Column id="bottomsize" type="STRING" size="255"/>
  101. <Column id="hitcount" type="BIGDECIMAL" size="255"/>
  102. <Column id="fstrgstrid" type="STRING" size="255"/>
  103. <Column id="fstrgstrnm" type="STRING" size="255"/>
  104. <Column id="fstrgstdt" type="STRING" size="255"/>
  105. <Column id="lastupdtrid" type="STRING" size="255"/>
  106. <Column id="lastupdtdt" type="STRING" size="255"/>
  107. <Column id="activenoti" type="STRING" size="255"/>
  108. </ColumnInfo>
  109. </Dataset>
  110. <Dataset id="ds_grd_notice_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="genrdd" type="STRING" size="255"/>
  113. <Column id="genrno" type="BIGDECIMAL" size="255"/>
  114. <Column id="delyn" type="STRING" size="255"/>
  115. <Column id="ntcflag" type="STRING" size="255"/>
  116. <Column id="targetflag" type="STRING" size="255"/>
  117. <Column id="ntctrgtjobkind" type="STRING" size="255"/>
  118. <Column id="fromdd" type="STRING" size="255"/>
  119. <Column id="todd" type="STRING" size="255"/>
  120. <Column id="ntcsubject" type="STRING" size="255"/>
  121. <Column id="ntccnts" type="STRING" size="255"/>
  122. <Column id="attyn" type="STRING" size="255"/>
  123. <Column id="attfilenm" type="STRING" size="255"/>
  124. <Column id="attfilepath" type="STRING" size="255"/>
  125. <Column id="bottomflag" type="STRING" size="255"/>
  126. <Column id="bottomcolor" type="STRING" size="255"/>
  127. <Column id="bottomsize" type="STRING" size="255"/>
  128. <Column id="hitcount" type="BIGDECIMAL" size="255"/>
  129. <Column id="fstrgstrid" type="STRING" size="255"/>
  130. <Column id="fstrgstrnm" type="STRING" size="255"/>
  131. <Column id="fstrgstdt" type="STRING" size="255"/>
  132. <Column id="lastupdtrid" type="STRING" size="255"/>
  133. <Column id="lastupdtdt" type="STRING" size="255"/>
  134. <Column id="activenoti" type="STRING" size="255"/>
  135. </ColumnInfo>
  136. </Dataset>
  137. </Objects>
  138. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  139. * System Name :
  140. * Job Name :
  141. * Creator :
  142. * Make Date : 2014-10-31
  143. * Description :
  144. *---------------------------------------------------------------------------------------
  145. * Modify Date Modifier Modify Description
  146. *---------------------------------------------------------------------------------------
  147. * 2014-10-31 Live Converter TF->XP
  148. *
  149. *---------------------------------------------------------------------------------------
  150. ****************************************************************************************/
  151. include "com_commonxp::comm_main.xjs"
  152. function SSZSN00100_oninit(obj:Form, e:InitEventInfo)
  153. {
  154. frmf_initForm(obj);
  155. zsnfInitialize();
  156. }
  157. /**
  158. * @desc : 공지사항 화면 초기화
  159. * @
  160. * @param :
  161. * @return :
  162. * @author :
  163. * @---------------------------------------------------
  164. */
  165. function zsnfInitialize(){
  166. //btn_search.disabled = !checkAuth("R") ;
  167. //조회조건 초기화
  168. ipt_fromdd.value = "";
  169. ipt_todd.value = "";
  170. zsnGetNoticeList();
  171. }
  172. /**
  173. * @desc : 공지사항 목록 조회하여 보여줌
  174. * @
  175. * @param :
  176. * @return :
  177. * @author :
  178. * @---------------------------------------------------
  179. */
  180. function zsnGetNoticeList(){
  181. // 공지 리스트를 조회
  182. // 앵커 적용으로 인해 grd_notice.position.height 만으로는 계산이 안된다
  183. // 전체 영역에서 그리드 영역 height 계산하는 방법으로 함
  184. var height = this.parent.position.height - this.position.top - grd_notice.position.top;
  185. var pagesize = parseInt(height / 24);
  186. if(pagesize < 0) pagesize = 21;
  187. var sInDsName = dsf_createDsRow("in_ds_search"
  188. , [{col: "fromdd_t", val: ipt_fromdd.value}
  189. , {col: "todd_t", val: ipt_todd.value}
  190. , {col: "offset", val: 0}
  191. , {col: "pagesize", val: pagesize}]);
  192. ds_grd_notice.clearData();
  193. var oParam = {};
  194. oParam.id = "TRZSN00101";
  195. oParam.service = "noticeinfoapp.noticeinfo";
  196. oParam.method = "reqGetNoticeList";
  197. oParam.inds = "req="+sInDsName;
  198. oParam.outds = "ds_grd_notice_temp=noticelist";
  199. oParam.async = true;
  200. oParam.callback = "cf_TRZSN00101";
  201. tranf_submit(oParam);
  202. }
  203. function cf_TRZSN00101(sSvcId, nErrorCode, sErrorMsg) {
  204. if(nErrorCode < 0) return;
  205. ds_grd_notice.appendData(ds_grd_notice_temp);
  206. }
  207. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  208. {
  209. zsnGetNoticeList();
  210. }
  211. function grd_notice_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  212. {
  213. var genrdd = ds_grd_notice.getColumn(e.row, "genrdd");
  214. var genrno = ds_grd_notice.getColumn(e.row, "genrno");
  215. frmf_setParameter("SPZSN00100_genrdd", genrdd);
  216. frmf_setParameter("SPZSN00100_genrno", genrno);
  217. frmf_setParameter("SPZSN00100_refresh", "N");
  218. frmf_modal("SPZSN00100", "SPZSN00100", null, null, null, null, null, null, null, null, null, null, "M");
  219. // model.setValue("/root/send/offset", "0");
  220. var refresh = frmf_getParameter("SPZSN00100_refresh");
  221. if(!utlf_isNull(refresh) && refresh == "Y")
  222. zsnGetNoticeList();
  223. }
  224. function btn_opennotice_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. zmsfOpenNoticePopup();
  227. // model.setValue("/root/send/offset", "0");
  228. var refresh = frmf_getParameter("SPZSN00100_refresh");
  229. if(!utlf_isNull(refresh) && refresh == "Y")
  230. zsnGetNoticeList();
  231. }
  232. function zmsfOpenNoticePopup()
  233. {
  234. // setParameter("SPZSN00100_row", ""); // 파라미터 초기화
  235. // modal("SPZSN00100","","300","100","SPZSN00100", null, null);
  236. frmf_setParameter("SPZSN00100_row", "");
  237. return frmf_modal("SPZSN00100", "SPZSN00100", null, null, null, 300, 100, null, null, null, null, null, "M");
  238. }
  239. function grd_notice_onvtracklast(obj:Grid, e:ScrollEventInfo)
  240. {
  241. in_ds_search.setColumn(0, "offset", ds_grd_notice.rowcount);
  242. in_ds_search.setColumn(0, "pagesize", 6);
  243. var oParam = {};
  244. oParam.id = "TRZSN00101";
  245. oParam.service = "noticeinfoapp.noticeinfo";
  246. oParam.method = "reqGetNoticeList";
  247. oParam.inds = "req=in_ds_search";
  248. oParam.outds = "ds_grd_notice_temp=noticelist";
  249. oParam.async = true;
  250. oParam.progress = false;
  251. oParam.callback = "cf_TRZSN00101";
  252. tranf_submit(oParam);
  253. }
  254. ]]></Script>
  255. </Form>
  256. </FDL>