123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <loginfo>
- <logmsg/>
- <lines/>
- <currentpage/>
- </loginfo>
- </main>
- <send>
- <offset/>
- <pagesize/>
- <prgmexecno/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- fGetLogInfo();
- model.refresh();
- ]]>
- </script>
- <bind id="prcsstat" ref="/root/main/list/batlog/prcsstat" readonly="true()"/>
- <submission id="TRZSB00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/loginfo/logmsg"/>
- <submission id="TRZSB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/loginfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.resetInstanceNode("/root/main/loginfo");
- model.makeValue("/root/send/pagesize","30");
- model.makeValue("/root/send/offset",0);
- }
- // 배치 로그 메시지의 페이지 단위 조회를 수행한다.
- function fGetLogMessage() {
- if (model.getValue("/root/send/prgmexecno") == "") {
- return;
- }
- var pagesize = model.getValue("/root/send/pagesize");
- var curpage = model.getValue("/root/main/loginfo/currentpage");
- model.makeValue("/root/send/offset",(curpage-1)*pagesize);
-
- submit("TRZSB00204");
- }
- function fGetLogInfo() {
- if (model.getValue("/root/send/prgmexecno") == "") {
- return;
- }
- if (submit("TRZSB00203")) {
- var lines = model.getValue("/root/main/loginfo/lines");
- var pagesize = model.getValue("/root/send/pagesize");
- // page combo 설정
- var pages = Math.floor((lines/pagesize)+1);
- if (lines%pagesize == 0) {
- pages = pages -1;
- }
- for(var i=0;i<pages;i++) {
- model.makeNode("/root/main/loginfo/pages["+(i+1)+"]");
- model.makeValue("/root/main/loginfo/pages["+(i+1)+"]/label",(i+1)+"/"+pages);
- model.makeValue("/root/main/loginfo/pages["+(i+1)+"]/value",i+1);
- }
- model.makeValue("/root/main/loginfo/currentpage",1);
- model.makeValue("/root/send/offset",0);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="600" guideline="1,966;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:0px; top:0px; width:780px; height:600px; ">
- <caption id="caption48" class="tit_2" style="left:5px; top:10px; width:149px; height:14px; ">배치 로그 상세 메시지</caption>
- <line id="line20" class="line_1" style="x1:0px; y1:25px; x2:780px; y2:25px; "/>
- <button id="button1" class="btn4_letter2" disabled="false" style="left:722px; top:575px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:407px; top:550px; width:60px; height:20px; ">총라인수 :</caption>
- <button id="btn_prev" class="icon_left" style="left:612px; top:550px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pages = cmb_page.length;
- //alert(pages);
- //alert(cmb_page.value);
- if (cmb_page.value > 1) {
- model.makeValue("/root/main/loginfo/currentpage",parseInt(cmb_page.value)-1);
- fGetLogMessage();
- cmb_page.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_right" style="left:752px; top:550px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pages = cmb_page.length;
- //alert(pages);
- //alert(cmb_page.value);
- if (cmb_page.value< pages) {
- model.makeValue("/root/main/loginfo/currentpage",1+parseInt(cmb_page.value));
- fGetLogMessage();
- cmb_page.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="cap_lines" ref="/root/main/loginfo/lines" style="left:472px; top:550px; width:135px; height:20px; "/>
- <textarea id="tar_logmsg" ref="/root/main/loginfo/logmsg" style="left:0px; top:31px; width:780px; height:514px; "/>
- <select1 id="cmb_page" ref="/root/main/loginfo/currentpage" appearance="minimal" style="left:640px; top:550px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/loginfo/pages">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetLogMessage();
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|