123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>배치프로그램 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bizabbr/>
- <selectitem>1</selectitem>
- <selectcond/>
- <list>
- <batprgm>
- <bizabbr/>
- <modulenm/>
- <prgmid/>
- <prgmnm/>
- <useyn/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </batprgm>
- </list>
- <exe>
- <bizabbr/>
- <modulenm/>
- <prgmid/>
- <prgmnm/>
- <paramcnts/>
- <systemcnts/>
- </exe>
- </main>
- <send>
- <bizabbr/>
- <modulenm/>
- <prgmid/>
- <prgmnm/>
- <updtdata/>
- <offset/>
- <pagesize>200</pagesize>
- </send>
- <init>
- <bizabbr>
- </bizabbr>
- <useyn>
- <label>Y</label>
- <value>Y</value>
- </useyn>
- <useyn>
- <label>N</label>
- <value>N</value>
- </useyn>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <submission id="TRZSB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list/batprgm"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetKindCodeList(new Array("Z0001"), new Array("Z0009"), new Array("/root/init/bizabbr"), false, new Array("cdnm","cdengabbrnm"));
- fInitialize();
- model.refresh();
- ]]>
- </script>
- <submission id="TXZSB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXZSB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/exe" resultref="/root/dummy"/>
- <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/list/batprgm");
- model.resetInstanceNode("/root/main/exe");
- model.setValue("/root/main/bizabbr","");
- model.setValue("/root/main/selectitem","1");
- model.setValue("/root/main/selectcond","");
-
- // Light Grid 경우 초기화
- grd_batprgm.rebuild();
- }
-
- function fNodeCopyXmlGrid() {
- var cur_row = grd_batprgm.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/exe","/root/main/list/batprgm["+cur_row+"]");
- model.makeNode("/root/main/exe/paramcnts");
- model.makeNode("/root/main/exe/systemcnts");
- }
- }
- function fNodeCopyDelimeterGrid() {
- var cur_row = grd_batprgm.row;
- if ( cur_row > 0 ) {
- model.setValue("/root/main/exe/bizabbr",grd_batprgm.valueMatrix(cur_row,1));
- model.setValue("/root/main/exe/modulenm",grd_batprgm.valueMatrix(cur_row,2));
- model.setValue("/root/main/exe/prgmid",grd_batprgm.valueMatrix(cur_row,3));
- model.setValue("/root/main/exe/prgmnm",grd_batprgm.valueMatrix(cur_row,4));
- }
- }
- function fSubmitOnScroll() {
- if(grd_batprgm.vscroll.attribute("max") == grd_batprgm.vscroll.attribute("pos")) {
- // end of scroll
- model.setValue("/root/send/offset",grd_batprgm.rows-1); // grid의 header row는 제외
- submit("TRZSB00101");
- grd_batprgm.dispatch("onmouseup");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1243;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:13px; ">배치 프로그램 관리</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_batprgm);
- if (updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_batprgm);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- model.setValue("/root/send/updtdata",updtdata);
- if ( submit("TXZSB00101") ) {
- grd_batprgm.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/updtdata","");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <line id="line15" class="line_2" style="x1:0px; y1:734px; x2:1194px; y2:734px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:735px; x2:1194px; y2:735px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:736px; x2:1194px; y2:736px; "/>
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption21" class="search_name" style="left:16px; top:8px; width:125px; height:17px; ">업무 구분 :</caption>
- <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
- <caption id="caption59" class="search_name" style="left:275px; top:8px; width:125px; height:17px; ">조회 항목 :</caption>
- <button id="btn_select" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_batprgm);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- model.resetInstanceNode("/root/send/select");
- model.setValue("/root/send/bizabbr",model.getValue("/root/main/bizabbr"));
- model.setValue("/root/send/offset","0");
-
- var queryitem = model.getValue("/root/main/selectitem");
- if ( queryitem == "1" ) {
- model.setValue("/root/send/modulenm",model.getValue("/root/main/selectcond")+"%");
- model.resetInstanceNode("/root/send/prgmid");
- model.resetInstanceNode("/root/send/prgmnm");
- } else if ( queryitem == "2" ) {
- model.setValue("/root/send/prgmid",model.getValue("/root/main/selectcond")+"%");
- model.resetInstanceNode("/root/send/modulenm");
- model.resetInstanceNode("/root/send/prgmnm");
- } else if ( queryitem == "3" ) {
- model.setValue("/root/send/prgmnm",model.getValue("/root/main/selectcond")+"%");
- model.resetInstanceNode("/root/send/prgmid");
- model.resetInstanceNode("/root/send/modulenm");
- }
-
- model.removeNodeset("/root/main/list/batprgm");
- grd_batprgm.rebuild(); // delimeter grid 초기화.
-
- //var stime = new Date();
- submit("TRZSB00101");
- //var etime = new Date();
- //alert(etime -stime);
- ]]>
- </script>
- </button>
- <select1 id="cmb_selectitem" ref="/root/main/selectitem" class="combo_search" appearance="minimal" style="left:370px; top:8px; width:165px; height:19px; ">
- <choices>
- <item>
- <label>모듈명</label>
- <value>1</value>
- </item>
- <item>
- <label>프로그램 ID</label>
- <value>2</value>
- </item>
- <item>
- <label>프로그램 명</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_selectcond" ref="/root/main/selectcond" class="input_search" style="left:540px; top:8px; width:310px; height:19px; "/>
- <select1 id="cmb_bizcd" ref="/root/main/bizabbr" class="combo_search" appearance="minimal" style="left:110px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/bizabbr/Z0001Z0009">
- <label ref="cdengabbrnm"/>
- <value ref="cdengabbrnm"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption22" class="tit_2" style="left:5px; top:594px; width:131px; height:13px; ">배치 프로그램 실행</caption>
- <line id="line19" class="line_1" style="x1:0px; y1:609px; x2:1194px; y2:609px; "/>
- <caption id="caption23" class="cell_1" style="left:0px; top:614px; width:100px; height:23px; vertical-align:middle; ">업무 구분</caption>
- <caption id="caption34" class="cell_1" style="left:223px; top:614px; width:100px; height:23px; vertical-align:middle; ">모듈명</caption>
- <caption id="caption42" class="cell_1" style="left:793px; top:614px; width:100px; height:23px; vertical-align:middle; ">프로그램 명</caption>
- <caption id="caption47" class="cell_1" style="left:0px; top:638px; width:100px; height:47px; vertical-align:middle; ">실행 매개변수</caption>
- <caption id="caption48" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">배치 프로그램 목록</caption>
- <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <line id="line23" class="line_2" style="x1:856px; y1:221px; x2:1194px; y2:221px; "/>
- <line id="line24" class="line_3" style="x1:0px; y1:732px; x2:1194px; y2:732px; "/>
- <button id="button8" class="btn5_letter2" style="left:1151px; top:589px; width:42px; height:19px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setAlertOn();
- submit("TXZSB00102");
- ]]>
- </script>
- </button>
- <caption id="caption35" class="cell_1" style="left:513px; top:614px; width:100px; height:23px; vertical-align:middle; ">프로그램 ID</caption>
- <button id="btn_delrow" class="btn2_letter5" style="left:1117px; top:50px; width:75px; height:19px; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_batprgm,false);
- grd_batprgm.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1062px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_batprgm.addrow(false);
- var curRow = grd_batprgm.row;
- var bizAbbr;
- if (curRow > 1) { // 윗 행의 업무구분 값으로 설정
- bizAbbr = grd_batprgm.valueMatrix(curRow-1,1);
- } else { // 맨 위에 있는 행이면 조회 조건의 업무 구분값으로 설정
- bizAbbr = model.getValue("/root/main/bizabbr");
- if (bizAbbr == "") { // 디폴트는 com
- bizAbbr = "com";
- }
- }
- //grd_batprgm.isReadOnly(curRow,2) = false;
- grd_batprgm.valueMatrix(curRow,1) = bizAbbr;
- grd_batprgm.valueMatrix(curRow,5) ="Y";
- grd_batprgm.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_batprgm" nodeset="/root/main/list/batprgm" caption="업무구분^모듈명^프로그램 ID^프로그램 명^사용^최초등록자^최초등록일자^최종수정자^최종수정일자" colsep="^" colwidth="73, 177, 177, 355, 40, 80, 80, 80, 80" dataheight="23" datatype="xml" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:515px; ">
- <col ref="bizabbr" type="combo">
- <choices>
- <itemset nodeset="/root/init/bizabbr/Z0001Z0009">
- <label ref="cdengabbrnm"/>
- <value ref="cdengabbrnm"/>
- </itemset>
- </choices>
- </col>
- <col ref="modulenm" type="input" _key="true"/>
- <col ref="prgmid" type="input" _key="true"/>
- <col ref="prgmnm" type="input"/>
- <col ref="useyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/useyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd" showmask="true"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd" showmask="true"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- fNodeCopyXmlGrid();
- //fNodeCopyDelimeterGrid();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- fSubmitOnScroll();
- ]]>
- </script>
- </datagrid>
- <output id="ipt_exebizcd" ref="/root/main/exe/bizabbr" class="output_fix" appearance="input" style="left:103px; top:615px; width:117px; height:19px; "/>
- <output id="ipt_exemodulenm" ref="/root/main/exe/modulenm" class="output_fix" appearance="input" style="left:326px; top:615px; width:184px; height:19px; "/>
- <output id="ipt_exeprgmid" ref="/root/main/exe/prgmid" class="output_fix" appearance="input" style="left:616px; top:615px; width:174px; height:19px; "/>
- <output id="ipt_exeprgmnm" ref="/root/main/exe/prgmnm" class="output_fix" appearance="input" style="left:895px; top:615px; width:299px; height:19px; "/>
- <textarea id="tar_exeparamcnts" ref="/root/main/exe/paramcnts" style="left:103px; top:639px; width:1091px; height:43px; "/>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:930px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_batprgm.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_loadexcel" class="btn2_letter4" style="left:996px; top:50px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false);
- grd_batprgm.loadExcel(fileName, 1);
- // 입력 상태로 변경
- var rows = grd_batprgm.rows;
- for(var i=1;i<rows;i++) {
- grd_batprgm.addStatus(i,"insert");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:0px; top:686px; width:100px; height:47px; vertical-align:middle; ">시스템변수</caption>
- <textarea id="textarea1" ref="/root/main/exe/systemcnts" style="left:103px; top:688px; width:1091px; height:43px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|