SPPMO02100_원무게시판.xfdl 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMO02100" position="absolute 0 0 800 742" titletext="원무 게시판" onload="SPPMO02100_onload" scrollbars="none" ontimer="SPPMO02100_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 5 775 18" anchor="default" positiontype="position">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Div id="group2" position="absolute 12 11 788 78" style="align:center top;" anchor="left top right" positiontype="position" class="div_SA">
  13. <Layouts>
  14. <Layout>
  15. <Static id="caption2" class="search_name" position="absolute 8 9 82 29" anchor="default" text="등록기간" positiontype="position"/>
  16. <Calendar id="ipt_fromdd" class="input_search" position="absolute 81 9 171 29" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null"/>
  17. <Static id="caption10" position="absolute 171 9 186 29" style="align:center middle;" anchor="default" text="~" positiontype="position"/>
  18. <Calendar id="ipt_todd" class="input_search" position="absolute 187 9 277 29" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null"/>
  19. <Static id="caption3" class="search_name" position="absolute 8 35 82 55" anchor="default" text="조회구분" positiontype="position"/>
  20. <Combo id="combo1" position="absolute 81 35 181 55" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_combo1_onitemchanged">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn" size="256"/>
  24. <Column id="datacolumn" size="256"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">T</Col>
  29. <Col id="datacolumn">제목</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">C</Col>
  33. <Col id="datacolumn">내용</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">U</Col>
  37. <Col id="datacolumn">등록자</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Combo>
  42. <Edit id="input1" position="absolute 184 35 474 55" anchor="default" positiontype="position" imemode="hangul" onkeydown="group2_input1_onkeydown"/>
  43. <Shape id="line1" class="line_4" position="absolute 645 7 645 42" anchor="default" linetype="vertical" positiontype="position"/>
  44. <Button id="btn_search" class="btn1" position="absolute 648 18 704 38" anchor="top right" text="조회" positiontype="position" onclick="btn_search_onclick"/>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Grid id="grd_bbs" position="absolute 12 84 788 423" anchor="left top right" positiontype="position" onkeydown="grd_bbs_onkeydown" binddataset="ds_grid_grd_bbs" scrollbars="autoboth" ondbclick="grd_bbs_ondbclick" oncelldblclick="grd_bbs_oncelldblclick" onmousemove="grd_bbs_onmousemove" autosizingtype="row" extendsizetype="row" autofittype="col" cellclickbound="cell" cellsizingtype="row" selecttype="multirow" autoenter="key">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="25"/>
  53. <Column size="45"/>
  54. <Column size="40"/>
  55. <Column size="398"/>
  56. <Column size="30"/>
  57. <Column size="30"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="64"/>
  61. <Column size="0"/>
  62. <Column size="105"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="44"/>
  67. <Column size="0"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="22" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell displaytype="checkbox" edittype="checkbox"/>
  75. <Cell col="1" text="글번호"/>
  76. <Cell col="2" text="공지"/>
  77. <Cell col="3" text="제목"/>
  78. <Cell col="4" text="확인"/>
  79. <Cell col="5" text="첨부"/>
  80. <Cell col="6" text="첨부파일명"/>
  81. <Cell col="7" text="첨부파일패스"/>
  82. <Cell col="8" text="작성자"/>
  83. <Cell col="9" text="작성자ID"/>
  84. <Cell col="10" text="등록일시"/>
  85. <Cell col="11" text="수정자"/>
  86. <Cell col="12" text="수정자아이디"/>
  87. <Cell col="13" text="수정일시"/>
  88. <Cell col="14" text="조회수"/>
  89. <Cell col="15" text="삭제여부"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
  93. <Cell col="1" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:bbsno"/>
  94. <Cell col="2" displaytype="normal" edittype="none" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:noticeyn"/>
  95. <Cell col="3" style="align:left;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:title" wordwrap="char" autosizerow="limitmin"/>
  96. <Cell col="4" style="font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:cnfmyn"/>
  97. <Cell col="5" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:attyn"/>
  98. <Cell col="6" text="bind:attfilenm"/>
  99. <Cell col="7" text="bind:attfilepath"/>
  100. <Cell col="8" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:fstrgstrnm"/>
  101. <Cell col="9" text="bind:fstrgstrid"/>
  102. <Cell col="10" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:fstrgstdt" mask="####-##-## ##:##"/>
  103. <Cell col="11" text="bind:lastupdtrnm"/>
  104. <Cell col="12" text="bind:lastupdtrid"/>
  105. <Cell col="13" text="bind:lastupdtdt" mask="yyyy/mm/dd hh:nn"/>
  106. <Cell col="14" style="align:center middle;font:EXPR(noticeyn == 'Y' ? 'arial,9,bold' : '');" text="bind:hitcnt"/>
  107. <Cell col="15" text="bind:delyn"/>
  108. <Cell col="16"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. <Shape id="line2" class="line_1" position="absolute 0 76 778 76" anchor="default" positiontype="position" linetype="horizontal"/>
  114. <Button id="btn_cancel" class="btn2" taborder="5" visible="false" position="absolute 532 431 600 451" anchor="top right" positiontype="position" text="작성취소" onclick="btn_cancel_onclick"/>
  115. <Button id="btn_new" class="btn2" taborder="5" position="absolute 603 431 647 451" anchor="top right" positiontype="position" text="신규" onclick="btn_new_onclick"/>
  116. <Button id="btn_mod" class="btn2" taborder="5" position="absolute 650 431 694 451" anchor="top right" positiontype="position" text="수정" onclick="btn_mod_onclick"/>
  117. <Button id="btn_save" class="btn5" enable="true" taborder="5" position="absolute 697 431 741 451" anchor="top right" positiontype="position" text="저장" onclick="btn_save_onclick"/>
  118. <Button id="btn_del" class="btn5" enable="true" position="absolute 744 431 788 451" anchor="top right" positiontype="position" text="삭제" onlbuttonup="btn_del_onlbuttonup" onclick="btn_del_onclick"/>
  119. <Static id="caption7" class="tit_2" position="absolute 12 434 88 454" anchor="left top" positiontype="position" text="내용"/>
  120. <Button id="button1" taborder="8" text="출력" onlbuttonup="button1_onlbuttonup" class="btn6" position="absolute 724 29 784 49" positiontype="position" onclick="button1_onclick" anchor="top right"/>
  121. <Shape id="line9" class="line_1" position="absolute 0 497 778 497" linetype="horizontal" positiontype="position"/>
  122. <Static id="Static11" class="sta_DA_box" position="absolute 12 454 788 730" anchor="all"/>
  123. <Shape id="line20" class="line_2" position="absolute 14 523 687 523" linetype="horizontal" positiontype="position"/>
  124. <Static id="cap_titl" text="제목" class="cell_1" position="absolute 13 455 92 479" positiontype="position"/>
  125. <Static id="cap_cnts" text="내용" class="cell_1" position="absolute 13 480 92 704" positiontype="position" anchor="left top bottom"/>
  126. <Static id="caption12" text="첨부" class="cell_1" position="absolute 13 705 92 729" positiontype="position" anchor="left bottom"/>
  127. <Edit id="ipt_attfilenm" taborder="9" position="absolute 95 707 642 727" imemode="hangul" maxlength="100" positiontype="position" anchor="left right bottom"/>
  128. <TextArea id="ipt_content" taborder="10" class="text_essential" position="absolute 95 482 784 702" imemode="hangul" maxlength="4000" positiontype="position" oneditclick="ipt_content_oneditclick" anchor="all" style="font:Dotum,14;" scrollbars="autovert" wordwrap="word"/>
  129. <Button id="btn_fileadd" taborder="14" text="첨부" onlbuttonup="btn_fileadd_onlbuttonup" class="btn2" visible="false" position="absolute 645 707 689 727" positiontype="position" onclick="btn_fileadd_onclick" anchor="right bottom"/>
  130. <Button id="btn_filedel" taborder="15" text="삭제" onlbuttonup="btn_filedel_onlbuttonup" class="btn2" visible="false" position="absolute 692 707 736 727" positiontype="position" onclick="btn_filedel_onclick" anchor="right bottom"/>
  131. <Button id="btn_down" taborder="16" text="다운로드" onlbuttonup="btn_down_onlbuttonup" class="btn2" position="absolute 717 707 785 727" positiontype="position" onclick="btn_down_onclick" anchor="right bottom"/>
  132. <Button id="btn_preview" taborder="13" text="미리보기" onlbuttonup="btn_preview_onlbuttonup" class="btn2" visible="false" position="absolute 646 707 714 727" positiontype="position" onclick="btn_preview_onclick" anchor="right bottom"/>
  133. <Edit id="ipt_title" taborder="17" position="absolute 95 457 784 477" class="text_essential" anchor="left top right" style="font:Dotum,14;"/>
  134. <CheckBox id="chk_notice" taborder="18" text="공지여부" position="absolute 444 432 520 451" truevalue="Y" falsevalue="N" onclick="chk_notice_onclick"/>
  135. </Layout>
  136. </Layouts>
  137. <Objects>
  138. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="scrhvalue" type="STRING" size="256"/>
  141. <Column id="scrhgubun" type="STRING" size="256"/>
  142. <Column id="fromdd" type="STRING" size="256"/>
  143. <Column id="todd" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row/>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_data_iteminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="status" type="STRING" size="256"/>
  152. <Column id="bbscls" type="STRING" size="256"/>
  153. <Column id="title" type="STRING" size="256"/>
  154. <Column id="content" type="STRING" size="256"/>
  155. <Column id="attfilenm" type="STRING" size="256"/>
  156. <Column id="attfiledata" type="BLOB" size="256"/>
  157. <Column id="fileyn" type="STRING" size="256"/>
  158. <Column id="filesize" type="STRING" size="256"/>
  159. <Column id="filetype" type="STRING" size="256"/>
  160. <Column id="fstrgstrid" type="STRING" size="256"/>
  161. <Column id="bbsno" type="STRING" size="256"/>
  162. <Column id="attfilepath" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row/>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_grid_grd_bbs" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="chkyn" type="STRING"/>
  171. <Column id="bbsno" type="STRING"/>
  172. <Column id="bbscls" type="STRING"/>
  173. <Column id="title" type="STRING"/>
  174. <Column id="content" type="STRING"/>
  175. <Column id="attyn" type="STRING"/>
  176. <Column id="attfilenm" type="STRING"/>
  177. <Column id="attfilepath" type="STRING"/>
  178. <Column id="fstrgstrnm" type="STRING"/>
  179. <Column id="fstrgstrid" type="STRING"/>
  180. <Column id="fstrgstdt" type="STRING"/>
  181. <Column id="lastupdtrnm" type="STRING"/>
  182. <Column id="lastupdtrid" type="STRING"/>
  183. <Column id="lastupdtdt" type="STRING"/>
  184. <Column id="hitcnt" type="STRING"/>
  185. <Column id="delyn" type="STRING"/>
  186. <Column id="cnfmyn" type="STRING" size="256"/>
  187. <Column id="noticeyn" type="STRING" size="256"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_notice" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="bbsno" type="STRING" size="256"/>
  193. <Column id="noticeyn" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row/>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_initN_077">
  200. <ColumnInfo>
  201. <Column id="cdgrupid" type="STRING" size="255"/>
  202. <Column id="cdid" type="STRING" size="255"/>
  203. <Column id="cdnm" type="STRING" size="255"/>
  204. <Column id="grupdetldesc" type="STRING" size="255"/>
  205. <Column id="supcdid" type="STRING" size="255"/>
  206. <Column id="valifromdd" type="STRING" size="255"/>
  207. <Column id="valitodd" type="STRING" size="255"/>
  208. <Column id="fstrgstrid" type="STRING" size="255"/>
  209. <Column id="fstrgstdt" type="STRING" size="255"/>
  210. <Column id="lastupdtrid" type="STRING" size="255"/>
  211. <Column id="lastupdtdt" type="STRING" size="255"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_initN_172">
  215. <ColumnInfo>
  216. <Column id="cdgrupid" type="STRING" size="255"/>
  217. <Column id="cdid" type="STRING" size="255"/>
  218. <Column id="cdnm" type="STRING" size="255"/>
  219. <Column id="grupdetldesc" type="STRING" size="255"/>
  220. <Column id="supcdid" type="STRING" size="255"/>
  221. <Column id="valifromdd" type="STRING" size="255"/>
  222. <Column id="valitodd" type="STRING" size="255"/>
  223. <Column id="fstrgstrid" type="STRING" size="255"/>
  224. <Column id="fstrgstdt" type="STRING" size="255"/>
  225. <Column id="lastupdtrid" type="STRING" size="255"/>
  226. <Column id="lastupdtdt" type="STRING" size="255"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_initN_177">
  230. <ColumnInfo>
  231. <Column id="cdgrupid" type="STRING" size="255"/>
  232. <Column id="cdid" type="STRING" size="255"/>
  233. <Column id="cdnm" type="STRING" size="255"/>
  234. <Column id="grupdetldesc" type="STRING" size="255"/>
  235. <Column id="supcdid" type="STRING" size="255"/>
  236. <Column id="valifromdd" type="STRING" size="255"/>
  237. <Column id="valitodd" type="STRING" size="255"/>
  238. <Column id="fstrgstrid" type="STRING" size="255"/>
  239. <Column id="fstrgstdt" type="STRING" size="255"/>
  240. <Column id="lastupdtrid" type="STRING" size="255"/>
  241. <Column id="lastupdtdt" type="STRING" size="255"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. <Dataset id="ds_initN_M01">
  245. <ColumnInfo>
  246. <Column id="cdgrupid" type="STRING" size="255"/>
  247. <Column id="cdid" type="STRING" size="255"/>
  248. <Column id="cdnm" type="STRING" size="255"/>
  249. <Column id="grupdetldesc" type="STRING" size="255"/>
  250. <Column id="supcdid" type="STRING" size="255"/>
  251. <Column id="valifromdd" type="STRING" size="255"/>
  252. <Column id="valitodd" type="STRING" size="255"/>
  253. <Column id="fstrgstrid" type="STRING" size="255"/>
  254. <Column id="fstrgstdt" type="STRING" size="255"/>
  255. <Column id="lastupdtrid" type="STRING" size="255"/>
  256. <Column id="lastupdtdt" type="STRING" size="255"/>
  257. </ColumnInfo>
  258. </Dataset>
  259. <Dataset id="ds_M0624">
  260. <ColumnInfo>
  261. <Column id="cdsid" type="STRING" size="255"/>
  262. <Column id="cdgrupid" type="STRING" size="255"/>
  263. <Column id="cdid" type="STRING" size="255"/>
  264. <Column id="cdnm" type="STRING" size="255"/>
  265. <Column id="detldesc" type="STRING" size="255"/>
  266. <Column id="dispseq" type="BIGDECIMAL" size="255"/>
  267. <Column id="cdval" type="STRING" size="255"/>
  268. <Column id="minval" type="STRING" size="255"/>
  269. <Column id="maxval" type="STRING" size="255"/>
  270. <Column id="minopercd" type="STRING" size="255"/>
  271. <Column id="maxopercd" type="STRING" size="255"/>
  272. <Column id="cdengabbrnm" type="STRING" size="255"/>
  273. <Column id="valifromdd" type="STRING" size="255"/>
  274. <Column id="valitodd" type="STRING" size="255"/>
  275. <Column id="fstrgstrid" type="STRING" size="255"/>
  276. <Column id="fstrgstdt" type="STRING" size="255"/>
  277. <Column id="lastupdtrid" type="STRING" size="255"/>
  278. <Column id="lastupdtdt" type="STRING" size="255"/>
  279. </ColumnInfo>
  280. </Dataset>
  281. <Dataset id="ds_data_iteminfo00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  282. <ColumnInfo>
  283. <Column id="status" type="STRING" size="256"/>
  284. <Column id="bbscls" type="STRING" size="256"/>
  285. <Column id="title" type="STRING" size="256"/>
  286. <Column id="content" type="STRING" size="256"/>
  287. <Column id="attfilenm" type="STRING" size="256"/>
  288. <Column id="attfiledata" type="BLOB" size="256"/>
  289. <Column id="fileyn" type="STRING" size="256"/>
  290. <Column id="filesize" type="STRING" size="256"/>
  291. <Column id="filetype" type="STRING" size="256"/>
  292. <Column id="fstrgstrid" type="STRING" size="256"/>
  293. <Column id="bbsno" type="STRING" size="256"/>
  294. <Column id="attfilepath" type="STRING" size="256"/>
  295. </ColumnInfo>
  296. <Rows>
  297. <Row/>
  298. </Rows>
  299. </Dataset>
  300. <Dataset id="ds_data_filedown" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="attfilepath" type="STRING" size="256"/>
  303. <Column id="attfilecnts" type="BLOB" size="256"/>
  304. </ColumnInfo>
  305. </Dataset>
  306. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  307. </Objects>
  308. <Bind>
  309. <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  310. <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
  311. <BindItem id="item3" compid="group2.combo1" propid="value" datasetid="ds_cond" columnid="scrhgubun"/>
  312. <BindItem id="item4" compid="group2.input1" propid="value" datasetid="ds_cond" columnid="scrhvalue"/>
  313. <BindItem id="item7" compid="ipt_content" propid="value" datasetid="ds_data_iteminfo" columnid="content"/>
  314. <BindItem id="item8" compid="ipt_attfilenm" propid="value" datasetid="ds_data_iteminfo" columnid="attfilenm"/>
  315. <BindItem id="item5" compid="ipt_title" propid="value" datasetid="ds_data_iteminfo" columnid="title"/>
  316. </Bind>
  317. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  318. * System Name : KU2.0
  319. * Job Name :
  320. * File Name : SPPMO02100_원무게시판.xfdl
  321. * Creator :
  322. *
  323. * Description :
  324. *---------------------------------------------------------------------------------------
  325. * Modify Date Modifier Modify Description
  326. *---------------------------------------------------------------------------------------
  327. *
  328. *---------------------------------------------------------------------------------------
  329. ****************************************************************************************/
  330. //=======================================================================================
  331. // xjs Include
  332. //---------------------------------------------------------------------------------------
  333. include "com_commonxp::comm_main.xjs";
  334. include "pam_pamcomnxp::PAM.xjs";
  335. include "pam_pamcomnxp::PAM001.xjs";
  336. //=======================================================================================
  337. // Function
  338. //---------------------------------------------------------------------------------------
  339. var userid;
  340. var authuser;
  341. function SPPMO02100_onload(obj:Form, e:LoadEventInfo)
  342. {
  343. frmf_initForm(obj);
  344. fInitialize();
  345. }
  346. //게시판 화면 초기화
  347. function fInitialize(){
  348. //조회된 조건 초기화
  349. ipt_title.value = "";
  350. ipt_content.value = "";
  351. ipt_attfilenm.value = "";
  352. //조회날짜 세팅
  353. var fromdd = ((utlf_getCurrentDate().toDate()).getAddDate(-30)).getDateFormat();
  354. var todd = utlf_getCurrentDate();
  355. //공통코드 조회(P0131 : 원무게시판 권한자)
  356. var arrParam = [{dsNm: "ds_codelist", cdGrpId: "P0131"}]
  357. pamfGetCodeList(arrParam, "false");
  358. //조회기본 세팅
  359. ds_cond.setColumn(0,"fromdd",fromdd);
  360. ds_cond.setColumn(0,"todd",todd);
  361. ds_cond.setColumn(0,"scrhgubun","T");
  362. ds_cond.setColumn(0,"scrhvalue","");
  363. group2.combo1.index = 0;
  364. grdf_initGrid(grd_bbs);
  365. // 게시판 리스트를 조회
  366. this.setTimer(0, 1);
  367. }
  368. //조회
  369. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  370. {
  371. fgetBbsList();
  372. }
  373. //게시판 조회
  374. function fgetBbsList(){
  375. //조회시에 수정및 삭제를 할수 없음
  376. userid = sysf_getUserId();
  377. authuser = ds_codelist.lookup("cdid", userid , "cdid");
  378. if(utlf_isNull(authuser)){
  379. btn_new.enable = false;
  380. }
  381. else{
  382. btn_new.enable = true;
  383. }
  384. btn_mod.enable = false;
  385. btn_cancel.visible = false;
  386. btn_save.enable = false;
  387. btn_del.enable = false;
  388. btn_fileadd.visible = false;
  389. btn_filedel.visible = false;
  390. btn_down.visible = false;
  391. btn_preview.visible = false;
  392. ipt_title.enable = false;
  393. ipt_content.enable = false;
  394. ipt_attfilenm.enable = false;
  395. ds_data_iteminfo.setColumn(0,"status","e");
  396. // 조회 조건을 셋팅 한다.
  397. var fromdd = ds_cond.getColumn(0,"fromdd");
  398. var todd = ds_cond.getColumn(0,"todd");
  399. var scrhgubun = ds_cond.getColumn(0,"scrhgubun");
  400. var scrhvalue = ds_cond.getColumn(0,"scrhvalue");
  401. dsf_createDsRow("ds_send", [{col: "fromdd", val:fromdd }
  402. ,{col: "todd", val:todd }
  403. ,{col: "scrhgubun", val:scrhgubun }
  404. ,{col: "scrhvalue", val:scrhvalue }]);
  405. var oParam = {};
  406. oParam.id = "TRMMO09000";
  407. oParam.service = "pamcomnapp.PamComn";
  408. oParam.method = "reqGetBbsList";
  409. oParam.inds = "req=ds_send";
  410. oParam.outds = "ds_grid_grd_bbs=bbslist";
  411. oParam.async = false;
  412. //oParam.callback = "cf_TRMNO09001";
  413. tranf_submit(oParam);
  414. }
  415. function SPPMO02100_ontimer(obj:Form, e:TimerEventInfo)
  416. {
  417. if( e.timerid == 0 ){
  418. this.killTimer(0);
  419. fgetBbsList();
  420. }
  421. }
  422. //출력
  423. function button1_onclick(obj:Button, e:ClickEventInfo)
  424. {
  425. fPrtBbs();
  426. }
  427. //게시판 상세조회 (조회모드)
  428. function fgetBbsDetail(row){
  429. // 행번호가 없다면 바로 리턴 (버튼클릭하여 공지차을 띄운경우)
  430. if (utlf_isNull(row)) return;
  431. // 이미 신규작성되거나 수정된 게시판이 존재하면 메시지 창 띄우면서 리턴
  432. var status = ds_data_iteminfo.getColumn(0,"status");
  433. if (status == "i" || status == "u"){
  434. sysf_messageBox("작성한 글이 저장되지 않았습니다. 저장버튼이나 작성취소 버튼을 눌러주세요.", "I999");
  435. return;
  436. }
  437. // 해당 게시글을 뿌려줌
  438. //model.copyNode("/root/main/iteminfo", "/root/main/bbsinfo/bbslist["+ row + "]");
  439. var title = ds_grid_grd_bbs.getColumn(row,"title");
  440. var content = ds_grid_grd_bbs.getColumn(row,"content");
  441. var bbsno = ds_grid_grd_bbs.getColumn(row,"bbsno");
  442. var attfilenm = ds_grid_grd_bbs.getColumn(row,"attfilenm");
  443. var fstrgstrid= ds_grid_grd_bbs.getColumn(row,"fstrgstrid");
  444. ds_data_iteminfo.setColumn(0,"title",title);
  445. ds_data_iteminfo.setColumn(0,"content",content);
  446. ds_data_iteminfo.setColumn(0,"bbsno",bbsno);
  447. ds_data_iteminfo.setColumn(0,"attfilenm",attfilenm);
  448. ds_data_iteminfo.setColumn(0,"fstrgstrid",fstrgstrid);
  449. chk_notice.value = ds_grid_grd_bbs.getColumn(row, "noticeyn");
  450. //2017.09.25첨부파일 데이터 수정시 오류 수정
  451. if (!utlf_isNull(ds_grid_grd_bbs.getColumn(row,"attfilepath"))){
  452. ds_data_iteminfo.setColumn(0,"attfilepath",ds_grid_grd_bbs.getColumn(row,"attfilepath"));
  453. }
  454. if (utlf_isNull(bbsno)){
  455. return;
  456. }
  457. dsf_createDsRow("ds_send", [{col: "bbsno", val:bbsno }]);
  458. var oParam = {};
  459. oParam.id = "TXMPO02101";
  460. oParam.service = "pamcomnapp.PamComn";
  461. oParam.method = "reqSetBbsHitCnt";
  462. oParam.inds = "req=ds_send";
  463. oParam.outds = "";
  464. oParam.async = false;
  465. //oParam.callback = "cf_TXMNO09002";
  466. tranf_submit(oParam);
  467. ds_grid_grd_bbs.setColumn(row, "cnfmyn", "Y");
  468. // 사용자정보를 가지고와서 글작성자가 아니면 수정/삭제할수 없도록 함
  469. /*var userid = sysf_getUserId();
  470. var writerid = fstrgstrid;
  471. var authuser = ds_codelist.lookup("cdid", userid , "cdid");
  472. if (userid == writerid) {
  473. btn_mod.enable = true;
  474. btn_del.enable = true;
  475. ipt_content.readonly = false;
  476. }else{
  477. alert(authuser);
  478. if(utlf_isNull(authuser))
  479. {
  480. btn_mod.enable = false;
  481. btn_del.enable = false;
  482. ipt_content.readonly = true;
  483. }
  484. else
  485. {
  486. btn_mod.enable = false;
  487. btn_del.enable = false;
  488. ipt_content.readonly = false;
  489. }
  490. }*/
  491. //원무게시판 권한자만 신규/수정/삭제 가능
  492. if(utlf_isNull(authuser)){
  493. btn_mod.enable = false;
  494. btn_del.enable = false;
  495. }
  496. else{
  497. btn_mod.enable = true;
  498. btn_del.enable = true;
  499. }
  500. // 각종 컨트롤 보여주기 설정
  501. ipt_title.enable = true;
  502. ipt_content.enable = true;
  503. //확인후 변환
  504. //ipt_content.attribute("editable") = false;
  505. btn_fileadd.visible = false;
  506. btn_filedel.visible = false;
  507. btn_down.visible = true;
  508. if (fCheckFileExt())
  509. btn_preview.visible = true;
  510. else
  511. btn_preview.visible = false;
  512. }
  513. //파일 다운로드 버튼 클릭시 이벤트
  514. function fFileDown() {
  515. //파일명를 받아옴
  516. //var getfilenm = model.getValue("/root/main/iteminfo/attfilenm");
  517. var getfilenm = ds_data_iteminfo.getColumn(0,"attfilenm");
  518. //파일명이 있는 경우 다운로드
  519. if(!utlf_isNull(getfilenm)){
  520. //파일명을 받아옴
  521. var filenm = getfilenm;
  522. //파일명의 확장자만 받아옴
  523. var fileext = filenm.lastIndexOf(".");
  524. var ext = filenm.substring(fileext +1);
  525. //파일을 다운로드 하기 위해 저장할 창을 띄움
  526. //var filesave = window.fileDialog("save","|",false,filenm,ext,"All Files(*.*)|*.*");
  527. //키값을 받아옴
  528. //var bbsno = model.getValue("/root/main/iteminfo/bbsno")
  529. var bbsno = ds_data_iteminfo.getColumn(0,"bbsno");
  530. dsf_createDsRow("ds_temp", [{col: "bbsno", val:bbsno }]);
  531. sysf_setErrorMsg(false); //자바단에서 에러발생시 1.0은 오류리턴을 안해서...
  532. var oParam = {};
  533. oParam.id = "TRMMO02101";
  534. oParam.service = "pamcomnapp.PamComn";
  535. oParam.method = "reqExeFileDownLoad";
  536. oParam.inds = "req=ds_temp";
  537. oParam.outds = "ds_data_filedown=filelist";
  538. oParam.async = false;
  539. //oParam.callback = "cf_TRMNO09002";
  540. tranf_submit(oParam);
  541. sysf_setErrorMsg(true);
  542. var fd = new FileDialog;
  543. var sFileName = ds_data_iteminfo.getColumn(0,"attfilenm");
  544. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", sFileName); // 단일 파일 선택
  545. if (objVFile != null) {
  546. dsf_readFileFromDs(objVFile.fullpath, ds_data_filedown, 0, "attfilecnts"); // 파일저장
  547. }
  548. }
  549. }
  550. //파일 미리보기 버튼 클릭시 이벤트
  551. function fFilePreview() {
  552. var folder;
  553. // fso // (20140206) 사용하지 않는 변수 주석처리함
  554. var temp_path = "C:\\temp";
  555. //FSO = new ActiveXObject("Scripting.FileSystemObject");
  556. FSO = inff_fileSystemObject();
  557. // 객체 생성 실패하면 리턴
  558. if (FSO == null){
  559. return;
  560. }
  561. // 시스템 드라이브가 없다면..
  562. if (FSO.DriveExists("C") == false){
  563. return;
  564. }
  565. // 임시디렉토리가 없으면 생성
  566. if (FSO.FolderExists(temp_path) == false){
  567. folder = FSO.CreateFolder(temp_path);
  568. }
  569. //파일명를 받아옴
  570. //var getfilenm = model.getValue("/root/main/iteminfo/attfilenm");
  571. var getfilenm = ds_data_iteminfo.getColumn(0,"attfilenm");
  572. //파일명이 있는 경우 다운로드
  573. if(utlf_isNull(getfilenm)){
  574. return;
  575. }
  576. //파일명을 받아옴
  577. //var filenm = model.getValue("/root/main/iteminfo/attfilenm");
  578. var sFileName = getfilenm;
  579. //키값을 받아옴
  580. //var bbsno = model.getValue("/root/main/iteminfo/bbsno");
  581. var bbsno = ds_data_iteminfo.getColumn(0,"bbsno");
  582. dsf_createDsRow("ds_temp", [{col: "bbsno", val:bbsno }]);
  583. sysf_setErrorMsg(false); //자바단에서 에러발생시 1.0은 오류리턴을 안해서...
  584. var oParam = {};
  585. oParam.id = "TRMMO02101";
  586. oParam.service = "pamcomnapp.PamComn";
  587. oParam.method = "reqExeFileDownLoad";
  588. oParam.inds = "req=ds_temp";
  589. oParam.outds = "ds_data_filedown=filelist";
  590. oParam.async = false;
  591. //oParam.callback = "cf_TRMNO09002";
  592. tranf_submit(oParam);
  593. sysf_setErrorMsg(true);
  594. dsf_readFileFromDs(temp_path+"\\"+sFileName, ds_data_filedown, 0, "attfilecnts"); // 파일저장
  595. //window.exec(temp_path+"\\"+filenm, "");
  596. //jhjhjhjhjh
  597. var objExtCommon = new ExtCommon();
  598. var rtn = objExtCommon.executeProcess(temp_path+"\\"+sFileName,"","");
  599. }
  600. //파일첨부버튼 클릭시 이벤트
  601. function fFileAdd() {
  602. var fd = new FileDialog;
  603. var maxsize = 10485760;
  604. var name = ds_data_iteminfo.getColumn(0,"attfilenm");
  605. var filename = "";
  606. var filesize = "";
  607. var filetype = "";
  608. if(!utlf_isNull(name) || name == "-"){
  609. var fileupdata = sysf_messageBox(name + " 파일 수정을" , "S001");
  610. if(fileupdata == '6'){
  611. ipt_attfilenm.value = "";
  612. var objVFileList = fd.open("FileOpen", FileDialog.SINGLELOAD);
  613. name = objVFileList;
  614. var file = dsf_writeFileToDs(name,ds_data_iteminfo,0, "attfiledata");
  615. filename = file.filename;
  616. filesize = file.filesize;
  617. filetype = file.filetype;
  618. ds_data_iteminfo.setColumn(0,"attfilenm",filename);
  619. ds_data_iteminfo.setColumn(0,"filesize",filesize);
  620. ds_data_iteminfo.setColumn(0,"filetype",filetype);
  621. if(filesize > maxsize){
  622. ipt_attfilenm.value = "";
  623. sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  624. ds_data_iteminfo.setColumn(0,"attfiledata","");
  625. }
  626. ds_data_iteminfo.setColumn(0,"fileyn","Y");
  627. }else{
  628. sysf_messageBox(name + " 파일 수정을 하지", "E007");
  629. ds_data_iteminfo.setColumn(0,"fileyn","N");
  630. }
  631. }else{
  632. var objVFileList = fd.open("FileOpen", FileDialog.SINGLELOAD);
  633. name = objVFileList;
  634. var file = dsf_writeFileToDs(name,ds_data_iteminfo,0, "attfiledata");
  635. filename = file.filename;
  636. filesize = file.filesize;
  637. filetype = file.filetype;
  638. ds_data_iteminfo.setColumn(0,"attfilenm",filename);
  639. ds_data_iteminfo.setColumn(0,"filesize",filesize);
  640. ds_data_iteminfo.setColumn(0,"filetype",filetype);
  641. if(filesize > maxsize){
  642. ipt_attfilenm.value = "";
  643. sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  644. ds_data_iteminfo.setColumn(0,"attfiledata","");
  645. }
  646. ds_data_iteminfo.setColumn(0,"fileyn","Y");
  647. }
  648. }
  649. //삭제시 발생하는 이벤트
  650. function fFileDel() {
  651. //var name = model.getValue("/root/main/iteminfo/attfilenm");
  652. var name = ds_data_iteminfo.getColumn(0,"attfilenm");
  653. if(!utlf_isNull(name)){
  654. var fileupdata = sysf_messageBox(name + " 파일 삭제를" , "S001");
  655. if(fileupdata == '6'){
  656. //파일 삭제
  657. //ipt_attfilenm.value = "";
  658. ds_data_iteminfo.setColumn(0,"attfilenm","");
  659. ds_data_iteminfo.setColumn(0,"attfiledata","");
  660. ds_data_iteminfo.setColumn(0,"filesize","");
  661. ds_data_iteminfo.setColumn(0,"filetype","");
  662. //model.resetInstanceNode("/root/send/file");
  663. }
  664. }
  665. //model.refresh();
  666. }
  667. //게시판 내용 삭제
  668. function fNoticeDel() {
  669. var bbsno = ds_data_iteminfo.getColumn(0,"bbsno");
  670. if(utlf_isNull(bbsno)){
  671. return;
  672. }
  673. //권한자가 아니면 삭제할 수 없도록 함
  674. if(!utlf_isNull(authuser)){
  675. ds_data_iteminfo.setColumn(0,"status","d");
  676. fExeSave(); // 저장
  677. } else {
  678. sysf_messageBox("권한자만 삭제 ","I006");
  679. }
  680. }
  681. //게시판 신규 /수정 후 저장
  682. function fExeSave(){
  683. var status = ds_data_iteminfo.getColumn(0,"status");
  684. var title = ds_data_iteminfo.getColumn(0,"title");
  685. var content = ds_data_iteminfo.getColumn(0,"content");
  686. var attfilenm = ds_data_iteminfo.getColumn(0,"attfilenm");
  687. var bbsno = ds_data_iteminfo.getColumn(0,"bbsno");
  688. var attfilepath = ds_data_iteminfo.getColumn(0,"attfilepath");
  689. var filenm = ds_data_iteminfo.getColumn(0,"attfilenm");
  690. var filedata = ds_data_iteminfo.getColumn(0,"attfiledata");
  691. var filesize = ds_data_iteminfo.getColumn(0,"filesize");
  692. var filetype = ds_data_iteminfo.getColumn(0,"filetype");
  693. // 게시판 마스터
  694. // 서브밋한다.
  695. var ds_temp = dsf_createDsRow("ds_temp", [{col: "status", val:status }
  696. ,{col: "title", val:title }
  697. ,{col: "content", val:content }
  698. ,{col: "attfilenm", val:attfilenm }
  699. ,{col: "bbsno", val:bbsno }
  700. ,{col: "attfilepath", val:attfilepath }
  701. ]);
  702. var ds_temp1 = dsf_createDsRow("ds_temp1", [{col: "filenm", val:filenm }
  703. ,{col: "filedata", val:filedata , type:"BLOB"}
  704. ,{col: "filesize", val:filesize }
  705. ,{col: "filetype", val:filetype }
  706. ]);
  707. tranf_submit({
  708. id: "TXMMO02100"
  709. , service: "pamcomnapp.PamComn"
  710. , method: "reqExeSaveBbs"
  711. , inds: "req="+ds_temp+" file="+ds_temp1
  712. //, outds: "ds_grid_grd_druginfo=druginfolist"
  713. , async: false
  714. , callback: "cbk_TXMMO02100"
  715. });
  716. ds_data_iteminfo.setColumn(0,"title","");
  717. ds_data_iteminfo.setColumn(0,"content","");
  718. ds_data_iteminfo.setColumn(0,"attfilenm","");
  719. chk_notice.enable = true;
  720. }
  721. function cbk_TXMMO02100(sScvId, nErrorCode, sErrorMsg){
  722. var status = ds_data_iteminfo.getColumn(0,"status");
  723. if(nErrorCode == 0){//성공하였을때
  724. if (status == "i"){
  725. sysf_messageBox("새 게시글이 작성이", "I001");
  726. }else if (status == "u"){
  727. sysf_messageBox("게시글이 수정이", "I001");
  728. }else{
  729. sysf_messageBox("게시글이 삭제", "I001");
  730. }
  731. fgetBbsList(); // 재조회
  732. }else{
  733. sysf_messageBox(sErrorMsg, "E");
  734. // 저장시 에러난 경우 목록을 재로딩함
  735. if (status == "i"){
  736. sysf_messageBox("새 게시글 작성에", "E009");
  737. }else if (status == "u"){
  738. sysf_messageBox("새 게시글 수정에", "E009");
  739. }else{
  740. sysf_messageBox("새 게시글 삭제에", "E009");
  741. }
  742. }
  743. }
  744. function fCheckFileExt() {
  745. retvalue = false;
  746. //var filename = model.getValue("/root/main/iteminfo/attfilenm");
  747. var filename = ds_data_iteminfo.getColumn(0,"attfilenm");
  748. var IMG_FORMAT = "\\.(bmp|gif|jpg|jpeg|png|doc|xls|cvs|txt|ppt|hwp|pptx|pdf|xlsx)$";
  749. if( (new RegExp(IMG_FORMAT, "i")).test(filename)){
  750. retvalue = true;
  751. }else{
  752. retvalue = false;
  753. }
  754. return retvalue;
  755. }
  756. function fNewBbs() {
  757. //초기화
  758. //제목, 첨부, 내용에 data 제거
  759. ipt_title.value = "";
  760. ipt_content.value = "";
  761. ipt_attfilenm.value = "";
  762. // 첨부파일 초기화
  763. //model.resetInstanceNode("/root/send/file");
  764. //model.refresh();
  765. ds_data_iteminfo.setColumn(0,"attfilepath","");
  766. }
  767. function fPrtBbs() {
  768. //model.makeNode("/root/temp/bbsinfo/bbslist");
  769. //copyNodesetType("/root/temp/bbsinfo/bbslist", grd_bbs.nodeset+ "[chkyn='Y']");
  770. //exeReportPreview("RPMNO09000", "XMLSTR");
  771. var fromdd = ds_cond.getColumn(0,"fromdd");
  772. var todd = ds_cond.getColumn(0,"todd");
  773. var objParam = new Object();
  774. objParam.fromdd = fromdd;
  775. objParam.todd = todd;
  776. ds_grid_grd_bbs.filter("chkyn=='1'");
  777. objParam.xml_data_XML1 = rptf_getXMLString(ds_grid_grd_bbs, "root/temp/bbsinfo/bbslist");
  778. ds_grid_grd_bbs.filter("");
  779. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  780. rptf_exeReportPreview30(["RPPMO02100"],[objParam], option);
  781. }
  782. function grd_bbs_ondbclick(obj:Grid, e:MouseEventInfo)
  783. {
  784. if (isDataCell() == true) {
  785. fgetBbsDetail(grd_bbs.row);
  786. }
  787. }
  788. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  789. {
  790. btn_cancel.visible = false;
  791. btn_new.enable = true;
  792. btn_mod.enable = false;
  793. btn_save.enable = false;
  794. btn_del.enable = false;
  795. btn_fileadd.visible = false;
  796. btn_filedel.visible = false;
  797. btn_down.visible = false;
  798. btn_preview.visible = false;
  799. ipt_title.enable = false;
  800. ipt_content.enable = false;
  801. ipt_attfilenm.enable = false;
  802. chk_notice.enable = true;
  803. //model.makeValue("/root/main/iteminfo/status",'e');
  804. ds_data_iteminfo.setColumn(0,"status","e");
  805. fNewBbs();
  806. }
  807. function btn_new_onclick(obj:Button, e:ClickEventInfo)
  808. {
  809. btn_cancel.visible = true;
  810. //btn_new.disabled = true;
  811. btn_new.enable = false;
  812. //btn_mod.disabled = true;
  813. btn_mod.enable = false;
  814. //btn_save.disabled = false;
  815. btn_save.enable = true
  816. //btn_del.disabled = true;
  817. btn_del.enable = false;
  818. btn_fileadd.visible = true;
  819. btn_filedel.visible = true;
  820. btn_down.visible = false;
  821. btn_preview.visible = false;
  822. //ipt_title.disabled = false;
  823. ipt_title.enable = true;
  824. ipt_attfilenm.disabled = true;
  825. ipt_attfilenm.enable = false;
  826. ipt_content.enable = true;
  827. //ipt_content.readonly = false;
  828. chk_notice.enable = false;
  829. fNewBbs();
  830. //model.makeValue("/root/main/iteminfo/status",'i');
  831. ds_data_iteminfo.setColumn(0,"status","i");
  832. }
  833. function btn_mod_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. //btn_new.disabled = true;
  836. btn_new.enable = false;
  837. //btn_mod.disabled = true;
  838. btn_mod.enable = false;
  839. btn_cancel.visible = true;
  840. //btn_save.disabled = false;
  841. btn_save.enable = true;
  842. //btn_del.disabled = true;
  843. btn_del.enable = false;
  844. btn_fileadd.visible = true;
  845. btn_filedel.visible = true;
  846. btn_down.visible = false;
  847. btn_preview.visible = false;
  848. //ipt_title.disabled = false;
  849. ipt_title.enable = true;
  850. //ipt_attfilenm.disabled = true;
  851. ipt_attfilenm.enable = false;
  852. chk_notice.enable = false;
  853. //model.makeValue("/root/main/iteminfo/status","u");
  854. ds_data_iteminfo.setColumn(0,"status","u");
  855. }
  856. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  857. {
  858. // 각 필드값을 체크한다.
  859. // 제목 체크
  860. if(utlf_isNull(ds_data_iteminfo.getColumn(0,"title"))){
  861. sysf_messageBox("제목은 ", "I003");
  862. //model.setFocus("ipt_title");
  863. ipt_title.setFocus();
  864. return;
  865. }
  866. // 공지내용 체크
  867. if(utlf_isNull(ds_data_iteminfo.getColumn(0,"content"))){
  868. sysf_messageBox("내용은 ", "I003");
  869. ipt_content.setFocus();
  870. //model.setFocus("ipt_content");
  871. return;
  872. }
  873. fExeSave();
  874. }
  875. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  876. {
  877. fNoticeDel();
  878. }
  879. function btn_fileadd_onclick(obj:Button, e:ClickEventInfo)
  880. {
  881. fFileAdd();
  882. }
  883. function btn_filedel_onclick(obj:Button, e:ClickEventInfo)
  884. {
  885. fFileDel();
  886. }
  887. function btn_down_onclick(obj:Button, e:ClickEventInfo)
  888. {
  889. fFileDown();
  890. }
  891. function btn_preview_onclick(obj:Button, e:ClickEventInfo)
  892. {
  893. fFilePreview();
  894. }
  895. function group2_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  896. {
  897. if(e.keycode == "13"){
  898. obj.updateToDataset();
  899. group2.btn_search.setFocus();
  900. fgetBbsList();
  901. }
  902. }
  903. function grd_bbs_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  904. {
  905. fgetBbsDetail(e.row);
  906. }
  907. function ipt_content_oneditclick(obj:TextArea, e:EditClickEventInfo)
  908. {
  909. }
  910. function Button00_onclick(obj:Button, e:ClickEventInfo)
  911. {
  912. this.close();
  913. }
  914. function grd_bbs_onmousemove(obj:Grid, e:GridMouseEventInfo)
  915. {
  916. //lf_setToolTip(obj, e);
  917. }
  918. function chk_notice_onclick(obj:CheckBox, e:ClickEventInfo)
  919. {
  920. ds_notice.clearData();
  921. ds_notice.addRow();
  922. ds_notice.setColumn(0, "bbsno", ds_data_iteminfo.getColumn(0, "bbsno"));
  923. ds_notice.setColumn(0, "noticeyn", chk_notice.value);
  924. var oParam = {};
  925. oParam.id = "TXMPO02102";
  926. oParam.service = "pamcomnapp.PamComn";
  927. oParam.method = "reqSetBbsNotice";
  928. oParam.inds = "req=ds_notice";
  929. oParam.outds = "";
  930. oParam.async = false;
  931. //oParam.callback = "cf_TXMNO09002";
  932. tranf_submit(oParam);
  933. fgetBbsList();
  934. ds_data_iteminfo.clearData();
  935. ds_data_iteminfo.addRow();
  936. ds_data_iteminfo.setColumn(0,"status","e");
  937. chk_notice.value = "";
  938. }
  939. ]]></Script>
  940. </Form>
  941. </FDL>