123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SSZSN00100" position="absolute 0 0 797 387" titletext="Untitle" oninit="SSZSN00100_oninit">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="1" position="absolute 0 0 797 36" class="div_SA2"/>
- <Button position="absolute 715 8 771 28" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
- <Shape position="absolute 696 6 702 29" linetype="vertical" id="line1" class="line_4"/>
- <Calendar position="absolute 95 8 180 28" id="ipt_fromdd" class="input_search" mask="yyyy-mm-dd" autoselect="true"/>
- <Static text="게시일시" position="absolute 16 8 87 28" id="caption21" class="search_name"/>
- <Calendar position="absolute 215 9 300 28" id="ipt_todd" class="input_search" mask="yyyy-mm-dd" autoselect="true"/>
- <Static text="~" position="absolute 190 9 210 29" id="caption1"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="453"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="135"/>
- <Column size="48"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </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="내용"/>
- <Cell col="10" text="첨부"/>
- <Cell col="11" text="첨부파일명"/>
- <Cell col="12" text="작성자ID"/>
- <Cell col="13" text="작성자"/>
- <Cell col="14" text="게시일시"/>
- <Cell col="15" text="조회수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:genrdd"/>
- <Cell col="2" text="bind:genrno"/>
- <Cell col="3" text="bind:ntcflag"/>
- <Cell col="4" text="bind:targetflag"/>
- <Cell col="5" text="bind:ntctrgtjobkind"/>
- <Cell col="6" text="bind:fromdd" mask="yyyy/mm/dd hh:nn:ss"/>
- <Cell col="7" text="bind:todd" mask="yyyy/mm/dd hh:nn:ss"/>
- <Cell col="8" style="align:left;color:EXPR((activenoti == 'Y') ? ((ntcflag == 'Y') ? "red" : "") : "gray");color2:EXPR((activenoti == 'Y') ? ((ntcflag == 'Y') ? "red" : "") : "gray");" text="bind:ntcsubject"/>
- <Cell col="9" style="color:EXPR((activenoti == 'Y') ? "" : "lightgrey");color2:EXPR((activenoti == 'Y') ? "" : "lightgrey");" text="bind:ntccnts"/>
- <Cell col="10" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:attyn"/>
- <Cell col="11" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:attfilenm"/>
- <Cell col="12" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:fstrgstrid"/>
- <Cell col="13" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:fstrgstrnm"/>
- <Cell col="14" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:fstrgstdt" mask="####/##/## ##:##:##"/>
- <Cell col="15" style="color:EXPR((activenoti == 'Y') ? "" : "gray");color2:EXPR((activenoti == 'Y') ? "" : "gray");" text="bind:hitcount"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="공지사항 리스트" position="absolute 0 45 141 65" align="align:left middle;" id="caption2" class="tit_2"/>
- <Button position="absolute 711 42 797 62" id="btn_opennotice" class="btn2" text="공지사항조회" onclick="btn_opennotice_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_notice" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="genrdd" type="STRING" size="255"/>
- <Column id="genrno" type="BIGDECIMAL" size="255"/>
- <Column id="delyn" type="STRING" size="255"/>
- <Column id="ntcflag" type="STRING" size="255"/>
- <Column id="targetflag" type="STRING" size="255"/>
- <Column id="ntctrgtjobkind" type="STRING" size="255"/>
- <Column id="fromdd" type="STRING" size="255"/>
- <Column id="todd" type="STRING" size="255"/>
- <Column id="ntcsubject" type="STRING" size="255"/>
- <Column id="ntccnts" type="STRING" size="255"/>
- <Column id="attyn" type="STRING" size="255"/>
- <Column id="attfilenm" type="STRING" size="255"/>
- <Column id="attfilepath" type="STRING" size="255"/>
- <Column id="bottomflag" type="STRING" size="255"/>
- <Column id="bottomcolor" type="STRING" size="255"/>
- <Column id="bottomsize" type="STRING" size="255"/>
- <Column id="hitcount" type="BIGDECIMAL" size="255"/>
- <Column id="fstrgstrid" type="STRING" size="255"/>
- <Column id="fstrgstrnm" type="STRING" size="255"/>
- <Column id="fstrgstdt" type="STRING" size="255"/>
- <Column id="lastupdtrid" type="STRING" size="255"/>
- <Column id="lastupdtdt" type="STRING" size="255"/>
- <Column id="activenoti" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_notice_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="genrdd" type="STRING" size="255"/>
- <Column id="genrno" type="BIGDECIMAL" size="255"/>
- <Column id="delyn" type="STRING" size="255"/>
- <Column id="ntcflag" type="STRING" size="255"/>
- <Column id="targetflag" type="STRING" size="255"/>
- <Column id="ntctrgtjobkind" type="STRING" size="255"/>
- <Column id="fromdd" type="STRING" size="255"/>
- <Column id="todd" type="STRING" size="255"/>
- <Column id="ntcsubject" type="STRING" size="255"/>
- <Column id="ntccnts" type="STRING" size="255"/>
- <Column id="attyn" type="STRING" size="255"/>
- <Column id="attfilenm" type="STRING" size="255"/>
- <Column id="attfilepath" type="STRING" size="255"/>
- <Column id="bottomflag" type="STRING" size="255"/>
- <Column id="bottomcolor" type="STRING" size="255"/>
- <Column id="bottomsize" type="STRING" size="255"/>
- <Column id="hitcount" type="BIGDECIMAL" size="255"/>
- <Column id="fstrgstrid" type="STRING" size="255"/>
- <Column id="fstrgstrnm" type="STRING" size="255"/>
- <Column id="fstrgstdt" type="STRING" size="255"/>
- <Column id="lastupdtrid" type="STRING" size="255"/>
- <Column id="lastupdtdt" type="STRING" size="255"/>
- <Column id="activenoti" type="STRING" size="255"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-31
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-31 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- function SSZSN00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- zsnfInitialize();
- }
- /**
- * @desc : 공지사항 화면 초기화
- * @
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function zsnfInitialize(){
- //btn_search.disabled = !checkAuth("R") ;
-
- //조회조건 초기화
- ipt_fromdd.value = "";
- ipt_todd.value = "";
- zsnGetNoticeList();
-
- }
- /**
- * @desc : 공지사항 목록 조회하여 보여줌
- * @
- * @param :
- * @return :
- * @author :
- * @---------------------------------------------------
- */
- function zsnGetNoticeList(){
- // 공지 리스트를 조회
- // 앵커 적용으로 인해 grd_notice.position.height 만으로는 계산이 안된다
- // 전체 영역에서 그리드 영역 height 계산하는 방법으로 함
- var height = this.parent.position.height - this.position.top - grd_notice.position.top;
- var pagesize = parseInt(height / 24);
- if(pagesize < 0) pagesize = 21;
-
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "fromdd_t", val: ipt_fromdd.value}
- , {col: "todd_t", val: ipt_todd.value}
- , {col: "offset", val: 0}
- , {col: "pagesize", val: pagesize}]);
-
- ds_grd_notice.clearData();
-
- var oParam = {};
- oParam.id = "TRZSN00101";
- oParam.service = "noticeinfoapp.noticeinfo";
- oParam.method = "reqGetNoticeList";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_grd_notice_temp=noticelist";
- oParam.async = true;
- oParam.callback = "cf_TRZSN00101";
- tranf_submit(oParam);
- }
- function cf_TRZSN00101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_grd_notice.appendData(ds_grd_notice_temp);
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- zsnGetNoticeList();
- }
- function grd_notice_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var genrdd = ds_grd_notice.getColumn(e.row, "genrdd");
- var genrno = ds_grd_notice.getColumn(e.row, "genrno");
-
- frmf_setParameter("SPZSN00100_genrdd", genrdd);
- frmf_setParameter("SPZSN00100_genrno", genrno);
- frmf_setParameter("SPZSN00100_refresh", "N");
- frmf_modal("SPZSN00100", "SPZSN00100", null, null, null, null, null, null, null, null, null, null, "M");
- // model.setValue("/root/send/offset", "0");
- var refresh = frmf_getParameter("SPZSN00100_refresh");
- if(!utlf_isNull(refresh) && refresh == "Y")
- zsnGetNoticeList();
- }
- function btn_opennotice_onclick(obj:Button, e:ClickEventInfo)
- {
- zmsfOpenNoticePopup();
- // model.setValue("/root/send/offset", "0");
- var refresh = frmf_getParameter("SPZSN00100_refresh");
- if(!utlf_isNull(refresh) && refresh == "Y")
- zsnGetNoticeList();
- }
- function zmsfOpenNoticePopup()
- {
- // setParameter("SPZSN00100_row", ""); // 파라미터 초기화
- // modal("SPZSN00100","","300","100","SPZSN00100", null, null);
- frmf_setParameter("SPZSN00100_row", "");
-
- return frmf_modal("SPZSN00100", "SPZSN00100", null, null, null, 300, 100, null, null, null, null, null, "M");
- }
- function grd_notice_onvtracklast(obj:Grid, e:ScrollEventInfo)
- {
- in_ds_search.setColumn(0, "offset", ds_grd_notice.rowcount);
- in_ds_search.setColumn(0, "pagesize", 6);
-
- var oParam = {};
- oParam.id = "TRZSN00101";
- oParam.service = "noticeinfoapp.noticeinfo";
- oParam.method = "reqGetNoticeList";
- oParam.inds = "req=in_ds_search";
- oParam.outds = "ds_grd_notice_temp=noticelist";
- oParam.async = true;
- oParam.progress = false;
- oParam.callback = "cf_TRZSN00101";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|