123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZSB00401" position="absolute 0 0 1221 805" titletext="배치 스케쥴관리" onload="SMZSB00401_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1195 769" id="grp_body" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout width="1195" height="744">
- <Shape position="absolute 0 173 1194 179" linetype="vertical" id="line4" class="line_2" anchor="default"/>
- <Shape position="absolute 0 149 1194 155" linetype="vertical" id="line3" class="line_2" anchor="default"/>
- <Shape position="absolute 0 125 1194 131" linetype="vertical" id="line2" class="line_2" anchor="default"/>
- <Shape position="absolute 0 101 1194 107" linetype="vertical" id="line6" class="line_2" anchor="default"/>
- <Div position="absolute 0 14 1194 49" align="align:center top;" id="group2" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line13" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="스케쥴 입력/수정" position="absolute 6 463 145 476" id="caption1" class="tit_2" anchor="left bottom"/>
- <Static text="프로그램 명" position="absolute 0 485 100 508" id="cap_bizabbrinput" class="cell_1" anchor="left bottom"/>
- <Static text="업무구분" position="absolute 435 485 499 508" id="cap_msgtypeinput" class="cell_1" anchor="left bottom"/>
- <Static text="스케쥴 명" position="absolute 0 509 100 532" id="cap_msgcnts1" class="cell_1" anchor="left bottom"/>
- <Static text="실행 스케쥴" position="absolute 0 533 100 556" id="cap_msgcnts2" class="cell_1" anchor="left bottom"/>
- <Static text="배치 파라메터" position="absolute 0 557 100 580" id="cap_msgcnts3" class="cell_1" anchor="left bottom"/>
- <Static text="모듈 명" position="absolute 598 485 698 508" id="cap_msgnoinput" class="cell_1" anchor="left bottom"/>
- <Static text="시스템 파라메터" position="absolute 0 581 100 604" id="caption19" class="cell_1" anchor="left bottom"/>
- <Static text="스케쥴 조회 목록" position="absolute 6 58 124 72" id="caption20" class="tit_2" anchor="default"/>
- <Static text="프로그램 ID" position="absolute 898 485 998 508" id="cap_msgcd" class="cell_1" anchor="left bottom"/>
- <Grid position="absolute 0 79 1194 452" id="grd_schelist" binddataset="ds_grd_schelist" anchor="all" oncellclick="grp_body_grd_schelist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="230"/>
- <Column size="125"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="210"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="230"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="프로그램 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="최종수정자"/>
- <Cell col="16" text="수정일시"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image"/>
- <Cell col="1" style="align:left;padding:0 0 0 5;" text="bind:schenm"/>
- <Cell col="2" style="align:left;padding:0 0 0 5;" text="bind:schedt"/>
- <Cell col="3" style="align:left;" text="bind:execrid"/>
- <Cell col="4" text="bind:execnode"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:useyn" combodataset="ds_init_statuslist_status" combocodecol="value" combodatacol="lavel"/>
- <Cell col="6" style="align:left;padding:0 0 0 5;" text="bind:prgmnm"/>
- <Cell col="7" text="bind:bizabbr"/>
- <Cell col="8" text="bind:modulenm"/>
- <Cell col="9" text="bind:prgmid"/>
- <Cell col="10" text="bind:batchyn"/>
- <Cell col="11" style="align:left;padding:0 0 0 5;" text="bind:prgmparam"/>
- <Cell col="12" style="align:left;padding:0 0 0 5;" text="bind:jvmparam"/>
- <Cell col="13" text="bind:fstrgstrid"/>
- <Cell col="14" text="bind:fstrgstdt"/>
- <Cell col="15" text="bind:lastupdtrid"/>
- <Cell col="16" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1070 459 1123 478" id="btn_clear" class="btn2" taborder="14" text="지우기" anchor="right bottom" onclick="grp_body_btn_clear_onclick"/>
- <Button position="absolute 1118 56 1193 75" id="btn_delete" class="btn2" text="선택행삭제" anchor="top right" onclick="grp_body_btn_delete_onclick"/>
- <Button position="absolute 1025 459 1067 478" id="btn_update" class="btn2_letter2" taborder="13" text="수정" anchor="right bottom" onclick="grp_body_btn_update_onclick"/>
- <Button position="absolute 980 459 1022 478" id="btn_insert" class="btn2_letter2" taborder="12" text="추가" anchor="right bottom" onclick="grp_body_btn_insert_onclick"/>
- <Static text="최종 수정자" position="absolute 598 605 698 628" align="align:center middle;" id="caption4" class="cell_1" anchor="left bottom"/>
- <Static text="최종 수정일시" position="absolute 898 605 998 628" align="align:center middle;" id="caption10" class="cell_1" anchor="left bottom"/>
- <Static text="최초 등록자" position="absolute 0 605 100 628" align="align:center middle;" id="caption12" class="cell_1" anchor="left bottom"/>
- <Static text="최초 등록일시" position="absolute 299 605 399 628" align="align:center middle;" id="caption13" class="cell_1" anchor="left bottom"/>
- <Button position="absolute 1052 56 1116 75" id="btn_loadexcel" class="btn2" text="엑셀입력" anchor="top right" onclick="grp_body_btn_loadexcel_onclick"/>
- <Button position="absolute 985 56 1049 75" id="btn_saveexcel" class="btn2" text="엑셀저장" anchor="top right" onclick="grp_body_btn_saveexcel_onclick"/>
- <Static text="실행 노드" position="absolute 898 509 998 532" id="caption3" class="cell_1" anchor="left bottom"/>
- <Static text="실행자" position="absolute 598 509 698 532" id="caption5" class="cell_1" anchor="left bottom"/>
- <Static text="사용여부" position="absolute 435 509 499 532" id="caption7" class="cell_1" anchor="left bottom"/>
- <Static text="실행 스케쥴은 "분 시 일 월 주" 의 5개 필드로 구성된다. 모든 경우의 수는 * 로 표시하며 하나의 필드에 여러값을 지정하려면 , 를 사용하여 나열하거나 - 를 사용하여 범위를 지정한다. 주는 0(일) ~ 6(토) 값이 사용되며, 매월 말일은 32로 표현한다. 여러 실행 스케쥴을 | 을 사용하여 한번에 기술할 수 있다. 작성예) 매일 저녁9시 5,25,45분에 실행 : 5,25,45 21 * * * , 일요일 새벽 5,6,7시에 실행 : 0 5-7 * * 0, 매월 말일 밤 11시에 실행 : 0 23 32 * * , 매일 저녁 8시 30 분과 9시에 실행 : 30 20 * * * | 0 21 * * * 배치 파라메터는 배치 프로그램에 전달되는 파라메터로 $세션명 또는 %날짜포멧 형태의 특수 표현식을 사용할 수 있다. $userid 는 세션값 중 userid를 지정하며, $systeminstcd는 시스템의 기관코드를 지정한다. 또한 %yyyyMMdd는 오늘 날짜를 지정하는데, 날짜포멧 표현에는 날수를 더하거나 뺄수 있는 연산기능을 제공하여 %yyyyMMdd+4 또는 %yyyyMMdd-7 과 같이 사용가능하다. 시스템 파라메터는 Java의 시스템 프로퍼티를 지정할 수 있는데 -Dlive.batch.세션명=세션값 형태로 필요한 세션 값을 지정할 수 있다. 예를 들어 -Dlive.batch.dutplceinstcd=$systeminstcd와 같이 지정하면 dutplceinstcd 세션값이 시스템의 기관코드 값으로 설정된다." position="absolute 0 633 1195 740" id="caption8" class="cell_1" anchor="left right bottom"/>
- <Combo position="absolute 103 486 430 505" id="cmb_prgmnm" class="combo_essential" taborder="5" innerdataset="ds_init_cmb_prgmnm" datacolumn="prgmnm" codecolumn="prgmid" anchor="left bottom" style="padding:0 0 0 3;" onitemchanged="grp_body_cmb_prgmnm_onitemchanged"/>
- <Combo position="absolute 500 486 595 505" id="cmb_bizabbr" enable="false" taborder="6" innerdataset="@ds_init_cmb_bizabbr_cond" datacolumn="cdengabbrnm" codecolumn="cdengabbrnm" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 701 486 894 505" id="ipt_modulenm" taborder="7" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 1001 486 1194 505" id="ipt_prgmid" anchor="left right bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Edit position="absolute 103 510 430 529" id="ipt_schenm" class="input_essential" taborder="8" anchor="left bottom"/>
- <Combo position="absolute 500 510 595 529" id="cmb_useyn" taborder="6" codecolumn="value" datacolumn="label" anchor="left bottom" innerdataset="@ds_item_useyn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">일반사용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">사용중지</Col>
- </Row>
- <Row>
- <Col id="codecolumn">W</Col>
- <Col id="datacolumn">관심사용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">X</Col>
- <Col id="datacolumn">중요사용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit position="absolute 701 510 894 529" id="ipt_execrid" class="input_essential" taborder="7" anchor="left bottom"/>
- <Combo position="absolute 1001 510 1194 529" id="ipt_execnode" innerdataset="ds_init_ipt_execnode" datacolumn="label" codecolumn="value" anchor="left right bottom"/>
- <Edit position="absolute 103 534 595 553" id="ipt_schedt" class="input_essential" taborder="9" anchor="left bottom"/>
- <Edit position="absolute 103 558 1194 577" id="ipt_prgmparam" class="input_default" taborder="10" anchor="left right bottom"/>
- <Edit position="absolute 103 582 1194 601" id="ipt_jvmparam" taborder="11" anchor="left right bottom"/>
- <Edit readonly="true" position="absolute 103 606 296 625" id="opt_fstrgstrid" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Edit readonly="true" position="absolute 701 607 894 626" id="opt_lastupdtrid" anchor="left bottom" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;"/>
- <Button position="absolute 1128 459 1192 478" id="btn_viewlog" class="btn2" taborder="14" text="로그보기" anchor="right bottom" onclick="grp_body_btn_viewlog_onclick"/>
- <Static text="* 스케줄 입력시 가급적 기존에 등록된 스케줄시간과 겹치지 않도록 하며, 21시50분 ~ 22시는 피하도록한다." position="absolute 600 535 1181 555" id="caption9" anchor="left right bottom"/>
- <Div id="grp_sea" taborder="15" position="absolute 0 0 1195 43" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="업무 구분 :" class="search_name" position="absolute 16 16 96 33" anchor="default"/>
- <Combo id="cmb_bizabbr_cond" taborder="1" innerdataset="ds_init_cmb_bizabbr_cond" codecolumn="cdengabbrnm" datacolumn="cdengabbrnm" class="combo_s_essential" position="absolute 96 14 251 33" anchor="default"/>
- <Static id="caption22" text="검색 명 :" class="search_name" position="absolute 296 16 360 33" anchor="default"/>
- <Edit id="ipt_searchnm_cond" taborder="2" class="input_search" position="absolute 364 14 564 33" anchor="default"/>
- <Static id="caption11" text="사용 수준 :" class="search_name" position="absolute 605 16 682 33" anchor="default"/>
- <Combo id="combo1" taborder="3" innerdataset="ds_init_combo1" codecolumn="value" datacolumn="label" class="combo_s" position="absolute 687 14 797 33" anchor="default"/>
- <Button id="btn_save" taborder="4" text="저장" class="btn3" position="absolute 1059 11 1115 33" anchor="top right" onclick="grp_top_btn_save_onclick"/>
- <Button id="btn_init" taborder="5" text="초기화" onclick="grp_top_btn_init_onclick" class="btn3" position="absolute 1118 11 1186 33" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" onclick="grp_body_group2_btn_search_onclick" class="btn1" position="absolute 1000 11 1056 33" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Calendar id="opt_fstrgstdt" taborder="16" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 401 607 594 626" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 5;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left bottom"/>
- <Calendar id="opt_lastupdtdt" taborder="17" dateformat="yyyy-MM-dd HH:mm:ss" editformat="yyyy-MM-dd HH:mm:ss" class="NoCalIcon" position="absolute 1001 607 1194 626" style="popupbackground:URL('theme://images/bg_calPopup.png') stretch 10,60;padding:0 0 0 5;background:URL('theme://images/bg_edit_R.png') stretch 5,5;align:left middle;" readonly="true" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="배치 스케쥴 관리" onclick="group1_caption6_onclick" class="tit_1" position="absolute 0 0 169 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_bizabbr_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdengabbrnm" type="STRING"/>
- <Column id="cdengabbrnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">전체</Col>
- </Row>
- <Row>
- <Col id="label">일반사용</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">사용중비</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grd_schelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="schenm" type="STRING"/>
- <Column id="schedt" type="STRING"/>
- <Column id="execrid" type="STRING"/>
- <Column id="execnode" type="STRING"/>
- <Column id="useyn" type="STRING"/>
- <Column id="prgmnm" type="STRING"/>
- <Column id="bizabbr" type="STRING"/>
- <Column id="modulenm" type="STRING"/>
- <Column id="prgmid" type="STRING"/>
- <Column id="batchyn" type="STRING"/>
- <Column id="prgmparam" type="STRING"/>
- <Column id="jvmparam" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="lastupdtrid" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_prgmnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="fvalue" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_bizabbr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdengabbrnm" type="STRING"/>
- <Column id="cdengabbrnm" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_ipt_execnode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">node 1</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">node 2</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bizabbr" type="STRING" size="256"/>
- <Column id="searchnm" type="STRING" size="256"/>
- <Column id="schelist" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="pagesize" type="STRING" size="256"/>
- <Column id="offset" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="servicenm" type="STRING" size="256"/>
- <Column id="bizabbr" type="STRING" size="256"/>
- <Column id="modulenm" type="STRING" size="256"/>
- <Column id="prgmid" type="STRING" size="256"/>
- <Column id="schenm" type="STRING" size="256"/>
- <Column id="execrid" type="STRING" size="256"/>
- <Column id="execnode" type="STRING" size="256"/>
- <Column id="schedt" type="STRING" size="256"/>
- <Column id="prgmparam" type="STRING" size="256"/>
- <Column id="jvmparam" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="batchyn" type="STRING" size="256"/>
- <Column id="prgmnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lavel" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lavel">일반</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="lavel">중지</Col>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="lavel">관심</Col>
- <Col id="value">W</Col>
- </Row>
- <Row>
- <Col id="lavel">중요</Col>
- <Col id="value">X</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_item_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">일반사용</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">사용중지</Col>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="label">관심사용</Col>
- <Col id="value">W</Col>
- </Row>
- <Row>
- <Col id="label">중요사용</Col>
- <Col id="value">X</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_schelist" 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="rowno" type="INT" size="256" sumtext="그리드 열번호"/>
- <Column id="schenm" type="STRING" size="256" sumtext="스케쥴명"/>
- <Column id="modulenm" type="STRING" size="256" sumtext="모듈명"/>
- <Column id="prgmid" type="STRING" size="256" sumtext="프로그램ID"/>
- <Column id="schedt" type="STRING" size="256" sumtext="스케쥴시간"/>
- <Column id="execrid" type="STRING" size="256" sumtext="실행자"/>
- <Column id="execnode" type="STRING" size="256" sumtext="실행노드"/>
- <Column id="prgmparam" type="STRING" size="256" sumtext="프로그램파라메터"/>
- <Column id="jvmparam" type="STRING" size="256" sumtext="시스템파라메터"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_stat_type" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_search_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_schename" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="schenm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item3" compid="grp_body.cmb_prgmnm" propid="value" datasetid="ds_item" columnid="prgmid"/>
- <BindItem id="item4" compid="grp_body.ipt_schenm" propid="value" datasetid="ds_item" columnid="schenm"/>
- <BindItem id="item5" compid="grp_body.ipt_schedt" propid="value" datasetid="ds_item" columnid="schedt"/>
- <BindItem id="item6" compid="grp_body.cmb_bizabbr" propid="value" datasetid="ds_item" columnid="bizabbr"/>
- <BindItem id="item7" compid="grp_body.cmb_useyn" propid="value" datasetid="ds_item" columnid="useyn"/>
- <BindItem id="item8" compid="grp_body.ipt_modulenm" propid="value" datasetid="ds_item" columnid="modulenm"/>
- <BindItem id="item9" compid="grp_body.ipt_execrid" propid="value" datasetid="ds_item" columnid="execrid"/>
- <BindItem id="item10" compid="grp_body.ipt_prgmid" propid="value" datasetid="ds_item" columnid="prgmid"/>
- <BindItem id="item11" compid="grp_body.ipt_execnode" propid="value" datasetid="ds_item" columnid="execnode"/>
- <BindItem id="item12" compid="grp_body.ipt_prgmparam" propid="value" datasetid="ds_item" columnid="prgmparam"/>
- <BindItem id="item13" compid="grp_body.ipt_jvmparam" propid="value" datasetid="ds_item" columnid="jvmparam"/>
- <BindItem id="item14" compid="grp_body.opt_fstrgstrid" propid="value" datasetid="ds_item" columnid="fstrgstrid"/>
- <BindItem id="item16" compid="grp_body.opt_lastupdtrid" propid="value" datasetid="ds_item" columnid="lastupdtrid"/>
- <BindItem id="item0" compid="grp_body.grp_sea.cmb_bizabbr_cond" propid="value" datasetid="ds_send" columnid="bizabbr"/>
- <BindItem id="item1" compid="grp_body.grp_sea.ipt_searchnm_cond" propid="value" datasetid="ds_send" columnid="searchnm"/>
- <BindItem id="item2" compid="grp_body.grp_sea.combo1" propid="value" datasetid="ds_send" columnid="useyn"/>
- <BindItem id="item20" compid="grp_body.opt_fstrgstdt" propid="value" datasetid="ds_item" columnid="fstrgstdt"/>
- <BindItem id="item15" compid="grp_body.opt_lastupdtdt" propid="value" datasetid="ds_item" columnid="lastupdtdt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-11-18
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-11-18 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //==============================================================================================
- // Lib Include
- //-----------------------------------------------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
-
- /************************************************************************************************
- ******************************** Form Event ****************************************************
- ************************************************************************************************/
- function SMZSB00401_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- var arrParam = new Array();
- arrParam = [{bizId:"Z0001", cdGrpId:"Z0009", dsNm:"ds_init_cmb_bizabbr_cond"}];
- appf_getKindCodeList( arrParam, false, "");
-
- ds_send.addRow();
- ds_send.setColumn(0, "pagesize", 200);
- ds_send.setColumn(0, "offset", 0);
-
- grdf_setRowTypeIcon(grp_body.grd_schelist, 0); //grid 상태 아이콘
-
- tranf_submit({
- id: "TRZSB00201"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchProgramList"
- , inds : "req=ds_send"
- , outds: "ds_init_cmb_prgmnm=batprgm"
- , async: false
- , callback : "cbf_TRZSB00201"
- });
-
- fCheckAuth();
- fInitialize();
- }
- function cbf_TRZSB00201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fCheckAuth() {
- }
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- fEnableInsertButton();
- ds_grd_schelist.clearData();
- ds_send.reset();
- ds_item.reset();
- ds_init_cmb_bizabbr_cond.reset();
- ds_init_combo1.reset();
- grp_body.grp_sea.ipt_searchnm_cond.text = "";
- }
- function fEnableInsertButton()
- {
- grp_body.btn_insert.enable = true;
- grp_body.btn_update.enable = false;
- }
- function grp_body_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist);
- var searchStatus = ds_search_status.getColumn(0, "status");
- if (updtdata.rowcount > 0 && searchStatus != 1) {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- ds_search_status.setColumn(0, "status", 0);
-
- tranf_submit({
- id: "TRZSB00401"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqGetBatchScheduleList"
- , inds : "req=ds_send"
- , outds: "ds_grd_schelist=schelist"
- , async: true
- , callback : "cbf_TRZSB00401"
- });
-
- ds_item.reset();
- }
- function cbf_TRZSB00401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fEnableUpdateButton()
- {
- grp_body.btn_insert.enable = false;
- grp_body.btn_update.enable = true;
- }
- function grp_body_cmb_prgmnm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var iRow = ds_init_cmb_prgmnm.rowcount;
- var rowpos = 0;
-
- for(var i = 0; i < iRow; i++){
- if(grp_body.cmb_prgmnm.value == ds_init_cmb_prgmnm.getColumn(i, "prgmid")){
- rowpos = i;
- break;
- }
- }
- ds_item.setColumn(0, "bizabbr", ds_init_cmb_prgmnm.getColumn(i, "bizabbr"));
- ds_item.setColumn(0, "modulenm", ds_init_cmb_prgmnm.getColumn(i, "modulenm"));
- ds_item.setColumn(0, "prgmid", ds_init_cmb_prgmnm.getColumn(i, "prgmid"));
- ds_item.setColumn(0, "prgmnm", ds_init_cmb_prgmnm.getColumn(i, "prgmnm"));
- }
- function grp_body_btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grp_body.grd_schelist, true);
- ds_stat_type.setColumn(0, "status", "delete");
- }
- function grp_body_btn_loadexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- // 타이틀 제외한 2열부터 입력
- grdf_ImportExcel("ds_grd_schelist", 2, grp_body.grd_schelist);
- }
- function grp_body_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grp_body.grd_schelist, "배치스케쥴관리" , "배치스케쥴관리");
- }
- function grp_top_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist);
- if (updtdata.rowcount > 0) {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- }
- function grp_body_grd_schelist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cur_row= grp_body.grd_schelist.currentrow;
- if ( cur_row >= 0 ) {
- fEnableUpdateButton();
- ds_item.copyRow(0, ds_grd_schelist, cur_row);
- }
- }
- function grp_body_btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fessentialcheck()) return;
-
- var prgmid = grp_body.ipt_prgmid.text;
- var nRowNum = ds_grd_schelist.insertRow(0);
- ds_grd_schelist.setColumn(nRowNum, "prgmnm", ds_item.getColumn(0, "prgmnm"));
- ds_grd_schelist.setColumn(nRowNum, "prgmid", prgmid);
- ds_grd_schelist.setColumn(nRowNum, "bizabbr", grp_body.cmb_bizabbr.value);
- ds_grd_schelist.setColumn(nRowNum, "modulenm", grp_body.ipt_modulenm.value);
- ds_grd_schelist.setColumn(nRowNum, "schenm", grp_body.ipt_schenm.value);
- ds_grd_schelist.setColumn(nRowNum, "useyn", grp_body.cmb_useyn.value);
- ds_grd_schelist.setColumn(nRowNum, "execnode", grp_body.ipt_execnode.value);
- ds_grd_schelist.setColumn(nRowNum, "schedt", grp_body.ipt_schedt.value);
- ds_grd_schelist.setColumn(nRowNum, "execrid", grp_body.ipt_execrid.value);
- ds_grd_schelist.setColumn(nRowNum, "prgmparam", grp_body.ipt_prgmparam.value);
- ds_grd_schelist.setColumn(nRowNum, "jvmparam", grp_body.ipt_jvmparam.value);
- ds_stat_type.setColumn(0, "status", "insert");
-
- fDisableInsertButton();
- }
- function grp_body_btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- fEnableInsertButton();
- ds_item.reset();
- }
- // 시스템코드, 메시지종료, 메시지 번호가 입력되면 이들을 조합하여 메시지코드를 설정한다.
- function fEnableInsertButton()
- {
- grp_body.btn_insert.enable = true;
- grp_body.btn_update.enable = false;
- }
- function fDisableInsertButton()
- {
- grp_body.btn_insert.enable = false;
- grp_body.btn_update.enable = true;
- }
- function grp_body_btn_update_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fessentialcheck()) return;
-
- var cur_row = grp_body.grd_schelist.currentrow;
-
- if (cur_row >= 0) {
- // 그리드에 추가
- ds_grd_schelist.setColumn(cur_row, "useyn", grp_body.cmb_useyn.value);
- ds_grd_schelist.setColumn(cur_row, "execrid", ds_item.getColumn(0,"execrid"));
- ds_grd_schelist.setColumn(cur_row, "execnode", ds_item.getColumn(0,"execnode"));
- ds_grd_schelist.setColumn(cur_row, "schedt", ds_item.getColumn(0,"schedt"));
- ds_grd_schelist.setColumn(cur_row, "prgmparam", ds_item.getColumn(0,"prgmparam"));
- ds_grd_schelist.setColumn(cur_row, "jvmparam", ds_item.getColumn(0,"jvmparam"));
- ds_grd_schelist.setColumn(cur_row, "prgmnm", ds_item.getColumn(0, "prgmnm"));
- ds_grd_schelist.setColumn(cur_row, "prgmid", ds_item.getColumn(0, "prgmid"));
- ds_grd_schelist.setColumn(cur_row, "modulenm", ds_item.getColumn(0, "modulenm"));
- ds_stat_type.setColumn(0, "status", "update");
- }
- }
- function grp_top_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var status = ds_stat_type.getColumn(0, "status");
- var updtdata = grdf_getGridUpdateData(grp_body.grd_schelist, status);
-
- if (updtdata == "") {
- sysf_messageBox("변경된 데이터가", "I004");
- return;
- }
-
- if(status == "update"){
- status = "u";
- }else if(status == "delete"){
- status = "d";
- }else if(status == "insert"){
- status = "i";
- }
-
- var oDsUpdate = grdf_getGridUpdateData(grp_body.grd_schelist, status);
- grdf_setStatusColumn(oDsUpdate,"status");
- ds_send_schelist.copyData(oDsUpdate, true);
-
- tranf_submit({
- id: "TXZSB00401"
- , service: "batchinfoapp.BatchInfo"
- , method: "reqExeSaveBatchSchedule"
- , inds : "req=ds_send_schelist"
- , outds: "null"
- , async: false
- , callback : "cbf_TXZSB00401"
- });
- }
- function cbf_TXZSB00401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_search_status.setColumn(0, "status", 1);
- grp_body.grp_sea.btn_search.click();
- ds_send_schelist.clearData();
- }
- function fessentialcheck()
- {
- if(utlf_isNull(grp_body.cmb_prgmnm.value)){
- sysf_messageBox("프로그램명은", "I003");
- return true;
- }
- if(utlf_isNull(grp_body.ipt_schenm.value)){
- sysf_messageBox("스케쥴명은", "I003");
- return true;
- }
- if(utlf_isNull(grp_body.ipt_execrid.value)){
- sysf_messageBox("실행자는", "I003");
- return true;
- }
- if(utlf_isNull(grp_body.ipt_schedt.value)){
- sysf_messageBox("실행 스케쥴은", "I003");
- return true;
- }
- }
- function grp_body_btn_viewlog_onclick(obj:Button, e:ClickEventInfo)
- {
- // 파라미터 설정 참고
- // frmf_setParameter("SPZSB00301_PARM_reqno", "");
- var oArg = new Object();
-
- if(ds_item.getColumn(0, "execrid") == null){
- oArg.execrid = sysf_getUserId();
- }else{
- oArg.execrid = ds_item.getColumn(0, "execrid");
- }
-
- // 화면 호출
- frmf_open("SPZSB00301", "SPZSB00301", oArg, null, null, null, null, null, null, null, null, null, "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|