123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP00500" position="absolute 0 0 778 670" titletext="간호 게시판" oninit="SMMNP00500_oninit" onload="SMMNP00500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 4 778 55" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="등록기간 :" position="absolute 225 5 311 25" id="caption2" class="search_name"/>
- <Calendar position="absolute 315 5 400 25" id="ipt_fromdd" class="input_search" autoselect="true"/>
- <Static text="~" position="absolute 400 7 415 26" align="align:center middle;" id="caption10"/>
- <Calendar position="absolute 415 5 500 25" id="ipt_todd" class="input_search" autoselect="true"/>
- <Static text="조회구분 :" position="absolute 35 27 108 47" id="caption3" class="search_name"/>
- <Combo position="absolute 115 27 200 47" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">제목</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">내용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">U</Col>
- <Col id="datacolumn">등록자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Shape position="absolute 642 7 648 42" linetype="vertical" id="line1" class="line_4"/>
- <Button position="absolute 655 15 711 35" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
- <Combo position="absolute 115 5 200 25" id="combo2" enable="true" visible="true" innerdataset="ds_init_M0636" datacolumn="cdnm" codecolumn="cdid" onitemchanged="group2_combo2_onitemchanged"/>
- <Static text="게시구분 :" position="absolute 35 5 111 25" id="caption1" class="search_name" visible="true"/>
- <Button position="absolute 715 15 771 35" id="button1" class="btn6" text="출력" onclick="group2_button1_onclick"/>
- <Edit position="absolute 225 27 500 47" id="ipt_scrhvalue" onkeyup="group2_ipt_scrhvalue_onkeyup" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 525 778 670" id="rectangle1" type="rectangle"/>
- <Grid position="absolute 0 61 778 270" id="grd_bbs" scrollbars="fixedvert" binddataset="ds_main_bbsinfo_bbslist" oncelldblclick="grd_bbs_oncelldblclick" cellsizingtype="col" selecttype="multirow" autoenter="key" autofittype="col" extendsizetype="row" autosizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="50"/>
- <Column size="75"/>
- <Column size="330"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="64"/>
- <Column size="0"/>
- <Column size="105"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="44"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="글번호"/>
- <Cell col="2" text="게시구분"/>
- <Cell col="3" text="제목"/>
- <Cell col="4" text="확인"/>
- <Cell col="5" text="첨부"/>
- <Cell col="6" text="첨부파일명"/>
- <Cell col="7" text="첨부파일패스"/>
- <Cell col="8" text="작성자"/>
- <Cell col="9" text="작성자ID"/>
- <Cell col="10" text="등록일시"/>
- <Cell col="11" text="수정자"/>
- <Cell col="12" text="수정자아이디"/>
- <Cell col="13" text="수정일시"/>
- <Cell col="14" text="조회수"/>
- <Cell col="15" text="삭제여부"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
- <Cell col="1" displaytype="text" style="align:center;" text="bind:bbsno"/>
- <Cell col="2" displaytype="combo" style="align:center;padding:2 2 2 2;" text="bind:bbscls" combodataset="ds_init_M0636" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="3" style="align:left;" text="bind:title" wordwrap="word" autosizerow="limitmin"/>
- <Cell col="4" text="bind:cnfmyn"/>
- <Cell col="5" text="bind:attyn"/>
- <Cell col="6" text="bind:attfilenm"/>
- <Cell col="7" text="bind:attfilepath"/>
- <Cell col="8" text="bind:fstrgstrnm"/>
- <Cell col="9" text="bind:fstrgstrid"/>
- <Cell col="10" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) == true ? '' : '####/##/## ##:##'"/>
- <Cell col="11" text="bind:lastupdtrnm"/>
- <Cell col="12" text="bind:lastupdtrid"/>
- <Cell col="13" text="bind:lastupdtdt" mask="yyyy/mm/dd hh:nn"/>
- <Cell col="14" text="bind:hitcnt"/>
- <Cell col="15" text="bind:delyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 56 778 62" linetype="horizontal" id="line2" class="line_10"/>
- <Shape position="absolute 0 337 778 343" id="line20" class="line_2"/>
- <Button position="absolute 543 287 607 307" id="btn_cancel" class="btn2" taborder="5" visible="false" text="작성취소" onclick="btn_cancel_onclick"/>
- <Button position="absolute 608 287 650 307" id="btn_new" class="btn2" taborder="5" text="신규" onclick="btn_new_onclick"/>
- <Button position="absolute 651 287 693 307" id="btn_mod" class="btn2" taborder="5" text="수정" onclick="btn_mod_onclick"/>
- <Button position="absolute 694 287 736 307" id="btn_save" class="btn5" enable="false" taborder="5" text="저장" onclick="btn_save_onclick"/>
- <Button position="absolute 737 287 779 307" id="btn_del" class="btn5" enable="false" text="삭제" onclick="btn_del_onclick"/>
- <Static text="첨부" position="absolute 0 491 79 513" align="align:center middle;" id="caption12" class="cell_1"/>
- <Edit position="absolute 81 491 536 511" id="ipt_attfilenm"/>
- <Button position="absolute 585 491 627 511" id="btn_fileadd" class="btn2_letter2" visible="false" text="첨부" onclick="btn_fileadd_onclick"/>
- <Button position="absolute 630 491 672 511" id="btn_filedel" class="btn2_letter2" visible="false" text="삭제" onclick="btn_filedel_onclick"/>
- <Button position="absolute 607 491 671 511" id="btn_down" class="btn2" taborder="6" text="다운로드" onclick="btn_down_onclick"/>
- <Static text="제목" position="absolute 0 312 79 340" align="align:center middle;" id="cap_titl" class="cell_1"/>
- <Shape position="absolute 0 307 778 313" linetype="horizontal" id="line9" class="line_10"/>
- <Static text="내용" position="absolute 0 290 134 310" id="caption7" class="tit_2"/>
- <Button position="absolute 539 491 603 511" id="btn_preview" class="btn2" taborder="6" visible="false" text="미리보기" onclick="btn_preview_onclick"/>
- <Combo position="absolute 681 315 778 336" id="cmb_bbscls" enable="true" visible="true" innerdataset="@ds_init_M0636" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="게시구분" position="absolute 600 312 679 340" align="align:center middle;" id="caption5" class="cell_1" visible="true"/>
- <TextArea position="absolute 81 313 597 337" id="ipt_title" class="text_essential" style="padding:0 5 0 5;align:left middle;font:Dotum,14;"/>
- <Grid position="absolute 8 550 770 665" id="grd_reslist" binddataset="ds_main_resinfo_reslist" cellsizingtype="both" cellsizebandtype="allband" extendsizetype="row" selecttype="multirow" autoenter="key" autofittype="col" oncelldblclick="grd_reslist_oncelldblclick" autosizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="518"/>
- <Column size="70"/>
- <Column size="105"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="댓글"/>
- <Cell col="2" text="등록자"/>
- <Cell col="3" text="기록일자"/>
- <Cell col="4" text="bbsno"/>
- <Cell col="5" text="resno"/>
- <Cell col="6" text="supresno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="textarea" text="bind:resfact" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="2" text="bind:usernm"/>
- <Cell col="3" text="bind:recdd" mask="expr:utlf_isNull(recdd) == true ? '' : '####/##/## ##:##'"/>
- <Cell col="4" text="bind:bbsno"/>
- <Cell col="5" text="bind:resno"/>
- <Cell col="6" text="bind:supresno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 640 529 682 549" id="btn_addcomt" class="btn2" enable="false" text="댓글" onclick="btn_addcomt_onclick"/>
- <Button position="absolute 684 529 726 549" id="btn_addcomtsave" class="btn2" enable="false" text="저장" onclick="btn_addcomtsave_onclick"/>
- <Button position="absolute 729 529 771 549" id="btn_addcomtdel" class="btn2" text="삭제" onclick="btn_addcomtdel_onclick"/>
- <Shape id="line4" class="line_3" position="absolute 0 510 778 516"/>
- <Shape id="line3" class="line_2" position="absolute 0 487 778 493"/>
- <Static id="cap_cnts" text="내용" class="cell_1" position="absolute 0 341 79 490"/>
- <TextArea id="ipt_content" taborder="7" wordwrap="word" class="text_essential" position="absolute 81 342 778 488" style="font:Dotum,14;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_M0636" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_bbscls" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bbscls" type="STRING" size="256" sumtext="시작일자(YYYYMMDD)"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자(YYYYMMDD)"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자(YYYYMMDD)"/>
- <Column id="scrhgubun" type="STRING" size="256" sumtext="조회구분"/>
- <Column id="scrhvalue" type="STRING" size="256" sumtext="조회값"/>
- <Column id="gubn" type="STRING" size="256" sumtext="수술마취구분"/>
- <Column id="bbsno" type="STRING" size="256" sumtext="게시글번호"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bbsinfo_bbslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="게시글번호"/>
- <Column id="bbsno" type="STRING" size="256" sumtext="게시글번호"/>
- <Column id="bbscls" type="STRING" size="256" sumtext="게시판종류"/>
- <Column id="title" type="STRING" size="256" sumtext="제목"/>
- <Column id="content" type="STRING" size="256" sumtext="내용"/>
- <Column id="attyn" type="STRING" size="256" sumtext="첨부파일유무"/>
- <Column id="attfilenm" type="STRING" size="256" sumtext="첨부파일명"/>
- <Column id="attfilepath" type="STRING" size="256" sumtext="첨부파일패스"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="등록자명"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자아이디"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="수정자명"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자아이디"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일시"/>
- <Column id="hitcnt" type="STRING" size="256" sumtext="조회수"/>
- <Column id="delyn" type="STRING" size="256" sumtext="삭제유무"/>
- <Column id="cnfmyn" type="STRING" size="256" sumtext="확인유무"/>
- <Column id="gubn" type="STRING" size="256" sumtext="수술마취구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_resinfo_reslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depth" type="STRING" size="256" sumtext="게시글 계층"/>
- <Column id="bbsno" type="STRING" size="256" sumtext="게시글 부모글"/>
- <Column id="resno" type="STRING" size="256" sumtext="게시글 댓글 번호"/>
- <Column id="supresno" type="STRING" size="256" sumtext="게시글번호"/>
- <Column id="resfact" type="STRING" size="256" sumtext="게시글 내용"/>
- <Column id="usernm" type="STRING" size="256" sumtext="게시글 작성자"/>
- <Column id="recdd" type="STRING" size="256" sumtext="기록 일자."/>
- <Column id="gubn" type="STRING" size="256" sumtext="구분"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_file" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_subsend_addcomt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="그리드 상태값"/>
- <Column id="bbsno" type="STRING" size="256" sumtext="게시글 부모글"/>
- <Column id="resno" type="STRING" size="256" sumtext="게시글 댓글 번호"/>
- <Column id="supresno" type="STRING" size="256" sumtext="게시글번호"/>
- <Column id="resfact" type="STRING" size="256" sumtext="게시글 내용"/>
- <Column id="usernm" type="STRING" size="256" sumtext="게시글 작성자"/>
- <Column id="gubn" type="STRING" size="256" sumtext="수술마취구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="scrhgubun" type="STRING" size="256"/>
- <Column id="scrhvalue" type="STRING" size="256"/>
- <Column id="bbscls" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_iteminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="title" type="STRING" size="256"/>
- <Column id="bbscls" type="STRING" size="256"/>
- <Column id="content" type="STRING" size="256"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="bbsno" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="attfilepath" type="STRING" size="256" sumtext="서버상의 첨부파일경로"/>
- <Column id="gubn" type="STRING" size="256" sumtext="제목"/>
- <Column id="fileyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="코드그룹ID"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="grupdetldesc" type="STRING" size="256" sumtext="코드그룹상세설명"/>
- <Column id="supcdid" type="STRING" size="256" sumtext="상위코드ID"/>
- <Column id="sortseq" type="STRING" size="256" sumtext="상위코드ID"/>
- <Column id="valifromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="valitodd" type="STRING" size="256" sumtext="시작일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_filedown" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="attfilepath" type="STRING" size="256"/>
- <Column id="attfilecnts" type="BLOB" size="256"/>
- <Column id="filedata" type="BLOB" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item7" compid="ipt_content" propid="value" datasetid="ds_main_iteminfo" columnid="content"/>
- <BindItem id="item0" compid="group2.combo2" propid="value" datasetid="ds_cond" columnid="bbscls"/>
- <BindItem id="item1" compid="group2.combo1" propid="value" datasetid="ds_cond" columnid="scrhgubun"/>
- <BindItem id="item2" compid="group2.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
- <BindItem id="item3" compid="group2.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
- <BindItem id="item4" compid="group2.ipt_scrhvalue" propid="value" datasetid="ds_cond" columnid="scrhvalue"/>
- <BindItem id="item5" compid="ipt_title" propid="value" datasetid="ds_main_iteminfo" columnid="title"/>
- <BindItem id="item6" compid="cmb_bbscls" propid="value" datasetid="ds_main_iteminfo" columnid="bbscls"/>
- <BindItem id="item8" compid="ipt_attfilenm" propid="value" datasetid="ds_main_iteminfo" columnid="attfilenm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SMMNP00500
- * Creator : yjh
- * Make Date : 2016-02-03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-02-03 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_opanstxp::SMMNP00500.xjs"; //yjh : 커밋
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNP00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNP00500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_reslist, 0); //그리드 상태 아이콘 보여주기
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fgetBbsList();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : combo2
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 게시구분 변경시
- ****************************************************************************************/
- function group2_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fgetBbsList();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_scrhvalue
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 값 입력시
- ****************************************************************************************/
- function group2_ipt_scrhvalue_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- fgetBbsList();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_bbs
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function grd_bbs_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fgetBbsDetail(grd_bbs.currentrow);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼 클릭시
- ****************************************************************************************/
- function group2_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrtBbs();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cancel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 작성취소버튼 클릭시
- ****************************************************************************************/
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_cancel.visible = false;
- btn_new.enable = true;
- btn_mod.enable = false;
- btn_save.enable = false;
- btn_del.enable = false;
- btn_addcomt.enable = false;
- btn_addcomtsave.enable = false;
- btn_addcomtdel.enable = false;
-
- btn_fileadd.visible = false;
- btn_filedel.visible = false;
- btn_down.visible = false;
- btn_preview.visible = false;
-
- ipt_title.enable = false;
- cmb_bbscls.enable = false;
- ipt_attfilenm.enable = false;
- ds_main_iteminfo.setColumn(0, "status", "e");
- fNewBbs();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_new
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규버튼 클릭시
- ****************************************************************************************/
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_cancel.visible = true;
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_save.enable = true;
- btn_del.enable = false;
-
- btn_fileadd.visible = true;
- btn_filedel.visible = true;
- btn_down.visible = false;
- btn_preview.visible = false;
-
- ipt_title.enable = true;
- cmb_bbscls.enable = true;
- ipt_attfilenm.enable = false;
-
- fNewBbs();
-
- ds_main_iteminfo.setColumn(0, "status", "i");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_mod
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수정버튼 클릭시
- ****************************************************************************************/
- function btn_mod_onclick(obj:Button, e:ClickEventInfo)
- {
- btn_cancel.visible = true;
- btn_new.enable = false;
- btn_mod.enable = false;
- btn_save.enable = true;
- btn_del.enable = false;
-
- btn_fileadd.visible = true;
- btn_filedel.visible = true;
- btn_down.visible = false;
- btn_preview.visible = false;
-
- ipt_title.enable = true;
- cmb_bbscls.enable = true;
- ipt_attfilenm.enable = false;
-
- ds_main_iteminfo.setColumn(0, "status", "u");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- // 각 필드값을 체크한다.
- // 제목 체크
- if(utlf_isNull(ds_main_iteminfo.getColumn(0, "title").getTrim()))
- {
- sysf_messageBox("제목은 ", "I003");
- ipt_title.setFocus();
- return;
- }
- // 공지내용 체크
- if(utlf_isNull(ds_main_iteminfo.getColumn(0, "content").getTrim()))
- {
- sysf_messageBox("내용은 ", "I003");
- ipt_content.setFocus();
- return;
- }
-
- fExeSave();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- fNoticeDel();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_fileadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 첨부버튼 클릭시
- ****************************************************************************************/
- function btn_fileadd_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileAdd();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_filedel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function btn_filedel_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileDel();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_down
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 다운로드버튼 클릭시
- ****************************************************************************************/
- function btn_down_onclick(obj:Button, e:ClickEventInfo)
- {
- fFileDown();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_preview
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 미리보기버튼 클릭시
- ****************************************************************************************/
- function btn_preview_onclick(obj:Button, e:ClickEventInfo)
- {
- fFilePreview();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addcomt
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 댓글버튼 클릭시
- ****************************************************************************************/
- function btn_addcomt_onclick(obj:Button, e:ClickEventInfo)
- {
- if (grd_reslist.rowcount > 0 ){
- ds_main_resinfo_reslist.insertRow(0);
- }else if (grd_reslist.rowcount == 0){
- ds_main_resinfo_reslist.addRow();
- }
- ds_main_resinfo_reslist.setColumn(ds_main_resinfo_reslist.rowposition, "bbsno", ds_main_bbsinfo_bbslist.getColumn(ds_main_bbsinfo_bbslist.rowposition, "bbsno"));
-
- ds_main_resinfo_reslist.setColumn(ds_main_resinfo_reslist.rowposition, "gubn", ds_cond.getColumn(0, "gubn"));
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addcomtsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_addcomtsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXMNP00503";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqSetOpNrBbsAddComt";
- oParam.inds = "addcomt=ds_main_resinfo_reslist:U";
- oParam.outds = "ds_main_resinfo_reslist=reslist";
- oParam.typeStr = "status";
- oParam.async = false;
- //oParam.callback = "cf_TXMNP00503";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addcomtdel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function btn_addcomtdel_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = grd_reslist.currentrow;
- var iCol = grd_reslist.currentcol;
-
- ds_main_resinfo_reslist.deleteRow(iRow);
- }
- function grd_reslist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- obj.showEditor(true);
- }
- ]]></Script>
- </Form>
- </FDL>
|