锘??xml version="1.0" encoding="utf-8" standalone="yes"?>超碰免费在线,国产精品99久久久久久久女警 ,91久久久久久久http://www.aygfsteel.com/shl18/archive/2008/03/04/183765.html嫻鋒氮嫻鋒氮Tue, 04 Mar 2008 10:36:00 GMThttp://www.aygfsteel.com/shl18/archive/2008/03/04/183765.htmlhttp://www.aygfsteel.com/shl18/comments/183765.htmlhttp://www.aygfsteel.com/shl18/archive/2008/03/04/183765.html#Feedback0http://www.aygfsteel.com/shl18/comments/commentRss/183765.htmlhttp://www.aygfsteel.com/shl18/services/trackbacks/183765.html<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/common/inc_bns.jsp"%>


<%
String orgGuid = (String)request.getParameter("orgGuid");
%>
<html>
 <head>
  <script language="javascript" src="<%=mainWeb%>/script/util/xmlutil.js"></script>
  <script language="javascript" src="<%=mainWeb%>/script/util/stringutil.js"></script>
  <script language="javascript" src="<%=mainWeb%>/script/ajax/ajax.js"></script>
 </head>
 <body topmargin="18">
   <table class="data_tb" align="center" width="90%">
    <tr height="25">
     <td class="data_tb_td" width="30%">浠誨姟鍚嶇О&nbsp;<font color="red">*</font></td>
     <td ><input style="width:65%" id="jobName" name="jobName"></td>
    </tr>
    <tr>
     <td class="data_tb_td">spring bean</td>
     <td><input style="width:65%" id="springBean" name="springBean"></td>
    </tr>
    <tr>
     <td class="data_tb_td">鏂規(guī)硶鍚?lt;/td>
     <td><input style="width:65%" id="methodName" name="methodName" onkeyup="showMethod()" onblur=selMethod($('javaMethod').value)></td>
    </tr>
    <tr>
     <td class="data_tb_td">鏂規(guī)硶鎻忚堪</td>
     <td><select style="width:65%" id="javaMethod" name="javaMethod" onblur=selMethod($('javaMethod').value)></select></td>
    </tr>
    <tr>
     <td class="data_tb_td">浠誨姟鎻忚堪</td>
     <td><textarea rows="4" id="jobRemark" name="jobRemark" style="width:90%" ></textarea></td>
    </tr>
    <tr id="paramTR" style="display:none">
     <td colspan="2">
      <div class="splitDiv">
        <div class="tip">
        <img src="<%=skinImage%>/main/arrow.gif">鍙傛暟瀹氫箟</div>
         <table width="100%" border="0" class="data_tb" id="tbParam" cellspacing="0" cellpadding="0">
          <tr height="25">
           <td class="list_table_head" width="40%" >鍙傛暟鍚嶇О</td>
           <td class="list_table_head" width="60%">鍙傛暟鎻忚堪</td>
          </tr>
          <!--鐢ㄦ潵澶嶅埗鐨勭┖琛?寮濮?->
          <tr height="25" style="display:none">
           <td align="center"><input type='text' style="width:70%" name="paramName" class="txtInput"/></td>
           <td align="center"><input type='text' style="width:80%" name="paramRemark" class="txtInput"/></td>
          </tr>
         </table>
        </div>
        <!-- 蹇嵎閿厤緗?緇撴潫 -->
        </tr>
       </table>
      </div>
     </td>
    </tr>
   </table>
   <div class="buttonDiv" style="margin-top:18px;">
    <input type="button" class="button" name="save" value="淇?nbsp; 瀛? onclick="doSave()">
    &nbsp;<input type="button" class="button" value="鍙?nbsp; 娑? onclick="window.close();">
   </div>
 </body>
</html>
<script>
var orgGuid = '<%=orgGuid%>';

function doSave(){
 if (trim($('jobName').value) != '') {
  var reqUrl = webPath + '/JobMngAction.do?method=saveNewJob';
  if(checkKeysRowData() != true) {
   return;
  }else {
   var param = getData();
   sendRequestMore(reqUrl,param,"doJobSave()");
   document.all.save.disabled = true;
   }
 } else {
  alert("璇瘋緭鍏ヤ換鍔″悕縐?);
  return;
 }
}

//鏂板鍥炶皟
function doJobSave(){
 if(xml_request.responseText != ''){
  var retScript = parseXmlbyXMLHttpRequest(xml_request,"resultInfo");
  popAlert(retScript,function(){
   window.close();
  });
 }
}

//浠ML鏍煎紡緇勭粐寰呬繚瀛樼殑鏁版嵁
function getData(){
 return (getJobData() + getParamData());
}

//鑾峰彇緋葷粺鏍峰紡鍩烘湰閰嶇疆淇℃伅
function getJobData(){
 var xml = '<Jobs>';
  xml += '<job><jobName>' + document.all.jobName.value + '</jobName>';
  xml += '<springBean>' + document.all.springBean.value + '</springBean>';
  xml += '<methodName>' + document.all.methodName.value + '</methodName>';
  xml += '<javaMethod>' + document.all.javaMethod.value + '</javaMethod>';
  xml += '<jobRemark>' + trim(document.all.jobRemark.value) + '</jobRemark>';
  xml += '<orgGuid>' + orgGuid + '</orgGuid>';
  xml += '</job>';
 xml += '</Jobs>';
 return xml;
}

//鑾峰彇褰曞叆鍙傛暟淇℃伅
function getParamData(){
 var rows = document.getElementById('tbParam').rows;
 var xml = '<Params>';
 for(var k = 2,len = rows.length; k < len; k++){
  xml += '<param><name>' + trim(rows[k].cells[0].firstChild.value) + '</name>';
  xml += '<remark>' + trim(rows[k].cells[1].firstChild.value) + '</remark>';
  xml += '</param>';
 }
 xml += '</Params>';
 return xml;
}

//鑾峰彇鏂規(guī)硶鎻忚堪
function showMethod(){
 if (checkLength($('springBean').value)>0 && checkLength($('methodName').value)>0){
  var url = "<%=mainWeb%>/JobMngAction.do?method=getMethod&springBean="+$('springBean').value+"&methodName="+$('methodName').value;
  sendRequest(url,"showJobDetail()");
 }else  {
  return;
 }
}
//灞曠ず鏂規(guī)硶鎻忚堪,鍚屾椂灞曠ず瀵瑰簲鎵闇瑕佺殑鏂規(guī)硶鍙傛暟鐨勪釜鏁?br /> function showJobDetail(){
 if(http_request.responseText!=""){
  $('javaMethod').outerHTML = http_request.responseText;
  var hadoption = $('javaMethod').outerHTML.split("OPTION");
  if (hadoption.length > 1) {
   var textValue = $('javaMethod').options[$('javaMethod').selectedIndex].innerText;
   var leftpoint = textValue.indexOf("(");
   var rightpoint = textValue.lastIndexOf(")");
   var newtextValue = textValue.substr( parseInt(leftpoint),parseInt(rightpoint) );
   document.all.save.disabled = false;
   if (newtextValue != null && newtextValue != 'null' && newtextValue.length>0) {
    var params = newtextValue.split("String");
    if (params.length-1 > 0) {
     /*鍙栧緱褰撳墠琛?/
     var tab = document.getElementById('tbParam');
     var lc = tab.rows.length;
     if (lc > 2){
      for (var i=lc;i>2;i--) {
       /*鎵ц鍒犻櫎*/
       tab.rows[i-1].removeNode(true);
      }
      $('paramTR').style.display="";
     }
     
     for (var num=0;num<params.length-1;num++) {
      /*鍙栧緱琛ㄥ唴瀹圭涓琛?/
      var rows = document.getElementById('tbParam').rows;
      var firstTR = tab.rows[1];
        /*鍏嬮殕絎竴琛屽唴瀹?/
        var newTR = firstTR.cloneNode(true);
        /*灝嗗厠闅嗙殑涓琛岃拷鍔犲埌褰撳墠DOM瀵硅薄鐨勬渶鍚?/
        tab.firstChild.appendChild(newTR);
        /*灝嗗厠闅嗙殑涓琛屾樉紺哄嚭鏉?/
        newTR.style.display = "";
     }
     $('paramTR').style.display="";
    }else {
     $('paramTR').style.display="none";
    }
   }
  }else  {
   document.all.save.disabled = true;
   return;
  }
 }else  {
  return;
 }
}


//鍝嶅簲鏂規(guī)硶鎻忚堪涓嬫媺鐭塊夋嫨錛屽彉鎹㈡柟娉曞悕縐?br /> function selMethod(value){
 var index = value.indexOf("(");
 $('methodName').value=value.substring(0,index);
 $('javaMethod').value=value;
 selectShowJobDetail();
}

//閫夋嫨鏂規(guī)硶鎻忚堪鍚庨夋嫨鍒扮殑鏂規(guī)硶
function selectShowJobDetail() {
 if(http_request.responseText!=""){
  var textValue = document.all.javaMethod.value;
  var hadoption = $('javaMethod').outerHTML.split("OPTION");
  if (hadoption.length > 1) {
   var leftpoint = textValue.indexOf("(");
   var rightpoint = textValue.lastIndexOf(")");
   var newtextValue = textValue.substr( parseInt(leftpoint),parseInt(rightpoint) );
   document.all.save.disabled = false;
   if (newtextValue != null && newtextValue != 'null' && newtextValue.length > 0) {
    var params = newtextValue.split("String");
    if (params.length-1 > 0) {
     /*鍙栧緱褰撳墠琛?/
     var tab = document.getElementById('tbParam');
     var lc = tab.rows.length;
     if (lc > 2){
      for (var i=lc;i>2;i--) {
       /*鎵ц鍒犻櫎*/
       tab.rows[i-1].removeNode(true);
      }
      $('paramTR').style.display="";
     }
     
     for (var num=0;num<params.length-1;num++) {
      /*鍙栧緱琛ㄥ唴瀹圭涓琛?/
      var rows = document.getElementById('tbParam').rows;
      var firstTR = tab.rows[1];
        /*鍏嬮殕絎竴琛屽唴瀹?/
        var newTR = firstTR.cloneNode(true);
        /*灝嗗厠闅嗙殑涓琛岃拷鍔犲埌褰撳墠DOM瀵硅薄鐨勬渶鍚?/
        tab.firstChild.appendChild(newTR);
        /*灝嗗厠闅嗙殑涓琛屾樉紺哄嚭鏉?/
        newTR.style.display = "";
     }
     $('paramTR').style.display="";
    }else {
     $('paramTR').style.display="none";
    }
   }
  }else  {
   document.all.save.disabled = true;
   return;
  }
 }else  {
  return;
 }
}

 

function doAddNewTD(obj){
   /*鍙栧緱褰撳墠琛?/
   var tab = obj.parentElement.parentElement.parentElement;
   /*鍙栧緱琛ㄥ唴瀹圭涓琛?/
   var firstTR = tab.rows[1];
   var rows = document.getElementById('tbParam').rows;
   /*鍏嬮殕絎竴琛屽唴瀹?/
   var newTR = firstTR.cloneNode(true);
   /*灝嗗厠闅嗙殑涓琛屾樉紺哄嚭鏉?/
   newTR.style.display = "";
   /*灝嗗厠闅嗙殑涓琛岃拷鍔犲埌褰撳墠DOM瀵硅薄鐨勬渶鍚?/
   tab.appendChild(newTR);
}

/*浠庤〃鏍間腑縐誨嚭涓琛?/
function doRemoveTD(obj){
   /*鍙栧緱褰撳墠琛?/
   var curRow = obj.parentElement.parentElement;
   /*鍙栧緱褰撳墠鎿嶄綔琛?/
   var tab = curRow.parentElement;
   /*鍙湁澶т簬涓よ鐨勬椂鍊欐墠鍑嗕簣鍒犻櫎*/
   if (tab.rows.length > 3){
 /*鎵ц鍒犻櫎*/
 tab.deleteRow(curRow.rowIndex);
   }
}

//媯楠屼換鍔″綍鍏ョ殑鏁版嵁鏄惁鍚堟硶
function checkJobData() {
 var jobName = document.all.jobName.value;
 var springBean = document.all.springBean.value;
 var methodName = document.all.methodName.value;
 var javaMethod = document.all.javaMethod.value;
 var jobRemark = document.all.jobRemark.value;
 if (checkLength(jobName)>50) {
  alert("浠誨姟鍚嶇О榪囬暱!");
  return false;
 }
 if (trim(jobName) == '' ) {
  alert("浠誨姟鍚嶇О涓嶈兘涓虹┖!");
  return false;
 }
 if (checkLength(springBean)>30) {
  alert("spring Bean鍚嶇О榪囬暱!");
  return false;
 }
 if (trim(springBean) == '' ) {
  alert("spring Bean鍚嶇О涓嶈兘涓虹┖!");
  return false;
 }
 if (checkLength(methodName)>30) {
  alert("鏂規(guī)硶鍚嶈繃闀?");
  return false;
 }
 if (trim(methodName) == '' ) {
  alert("鏂規(guī)硶鍚嶄笉鑳戒負(fù)絀?");
  return false;
 }
 if (checkLength(javaMethod)>250) {
  alert("鏂規(guī)硶鎻忚堪榪囬暱!");
  return false;
 }
 if (trim(javaMethod) == '' ) {
  alert("鏂規(guī)硶鎻忚堪涓嶈兘涓虹┖!");
  return false;
 }
 if (checkLength(jobRemark)>250) {
  alert("浠誨姟鎻忚堪榪囬暱!");
  return false;
 }
 return true;
}


//媯楠岃鍐呭綍鍏ョ殑鍙傛暟鍚﹀悎娉?br /> function checkKeysRowData(){
 var rows = document.getElementById('tbParam').rows;
 checkJobData();
 for(var i=2,len = rows.length;i<len;i++) {
  var strvalueName = rows[i].cells[0].firstChild.value;
  var strvalueRemark = rows[i].cells[1].firstChild.value;
  if (trim(strvalueName) == "" || trim(strvalueRemark) == "") {
   alert("鍙傛暟涓嶈兘涓虹┖");
   return false;
  }
  if (checkLength(strvalueName)>50) {
   alert("絎?+i+"琛屽弬鏁板悕縐板お闀?");
   return false;
  }
  if (checkLength(strvalueRemark)>100) {
   alert("絎?+i+"琛屽弬鏁版弿榪板お闀?");
   return false;
  }
 }
 return true;
}
</script>



嫻鋒氮 2008-03-04 18:36 鍙戣〃璇勮
]]>
涓氬姟鏃ュ織棣栭〉http://www.aygfsteel.com/shl18/archive/2008/03/04/183764.html嫻鋒氮嫻鋒氮Tue, 04 Mar 2008 10:27:00 GMThttp://www.aygfsteel.com/shl18/archive/2008/03/04/183764.htmlhttp://www.aygfsteel.com/shl18/comments/183764.htmlhttp://www.aygfsteel.com/shl18/archive/2008/03/04/183764.html#Feedback0http://www.aygfsteel.com/shl18/comments/commentRss/183764.htmlhttp://www.aygfsteel.com/shl18/services/trackbacks/183764.html<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/common/inc_bns.jsp"%>
<%@ page import="com.jiuqi.common.PageControl"%>
<%@ page import="com.jiuqi.ccp.common.DicMap" %>
<%@ page import="com.jiuqi.ccp.formbean.form.CcpMscMonitorExtForm"%>

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
PageControl pageCtrl = (PageControl) request.getAttribute(Constants.PAGE_CONTROL);
String orgGuid = (String)request.getAttribute("orgGuid");
String opResult = (String)request.getAttribute("opResult");
String beginTime = (String)request.getAttribute("beginTime");
String endTime = (String)request.getAttribute("endTime");
String inputUserTitle = (String)request.getAttribute("inputUserTitle");
%>
<html>
<head>
 <script language="javascript" src="<%=mainWeb%>/script/table/table.js"></script>
 <script language="javascript" src="<%=mainWeb%>/script/ajax/ajax.js"></script>
<style>
.txtInput{
 width:140px;
}
</style>
</head>
<body >
 <!-- 鏌ヨ鏉′歡 begin -->
 <html:form action="/BusLogAction.do" method="post">
 <input type="hidden" name="method" value="queryBusLog">
 <input type="hidden" name="orgGuid" value="<%=orgGuid%>">
 <html:hidden property="pageNum" value="" />
 <html:hidden property="pageSize" value="" />
  <table border="0" cellspacing="0" cellpadding="0" class="data_tb" width="100%">
   <tr height="25px">
    <td class="data_tb_td" width="20%">寮濮嬫椂闂?lt;/td>
    <td width="30%"><input type="text" class="txtInput" name="beginTime" ></td>
    <td class="data_tb_td" width="15%">緇撴潫鏃墮棿</td>
    <td width="30%"><input type="text" class="txtInput" name="endTime" ></td>
   </tr>
   <tr height="25px">
    <td class="data_tb_td">鐢ㄦ埛濮撳悕</td>
     <td><input type="text" class="txtInput" name="inputUserTitle" ></td>
    <td class="data_tb_td">鎿嶄綔緇撴灉</td>
    <td>
        <select style="width:155px" name="opResult" onchange="doQuerySelect(this.value)">
        <option value="00">00 | 鍏ㄩ儴</option>
          <%=DicMap.getInstance().getSelectOptionHtml("DIC_OPRESULT","")%>
          </select>
    </td>
   </tr>
   <tr height="25px">
       <td colspan="4" align="right"><input type="button" class="button" name="btnQuery" id="btnQuery" value="榪?婊? onclick="doQuery();"/></td>
      </tr>
  </table>
 </html:form>
 
 <div class="splitDiv" id="dataDiv" name="dataDiv" align="center">
  <div class="tip" align="left"><img src="<%=skinImage%>/main/arrow.gif">涓氬姟鏃ュ織鍒楄〃</div>
  <table width="100%" border="0" name="dataTB" id="dataTB" >
     <tr height="25px">
    <td width="5%" id="chse" datatype="CNPY" ><a href="#" onclick="javascript:sel()">閫夋嫨</a></td>
    <td width="5%">搴忓彿</td>
    <td width="6%">鐢ㄦ埛鍚?lt;/td>
    <td width="10%">濮撳悕</td>
    <td width="12%">鎵灞炴満鏋?lt;/td>
    <td width="12%">鎿嶄綔鏃墮棿</td>
    <td width="25%">涓氬姟鎻忚堪</td>
    <td width="7%">鎿嶄綔緇撴灉</td>
    <td width="8%">IP鍦板潃</td>
   </tr>
   <logic:present name="busLogList">
     <logic:iterate id="itbusLogList" name="busLogList" scope="request" type="com.jiuqi.ccp.formbean.form.CcpMscMonitorExtForm" indexId="index">     
         <tr height="25px">
            <td align="center"><input type="checkbox" name="cbMetadata" value='<bean:write name="itbusLogList" property="cmmGuid" />' class="checkbox"/></td>
          <td align="center" cmmGuid='<bean:write name="itbusLogList" property="cmmGuid" />'><%=(pageCtrl.getPageNum()-1)*pageCtrl.getPageSize()+ index.intValue() + 1%></td>
        <td align="center"><bean:write name="itbusLogList" property="userName" /></td>
        <td align="center"><a href="#" onclick="msgbox('<%=mainWeb%>/BusLogAction.do?method=getUserInfo&orgGuid=<%=orgGuid%>&userGuid=<bean:write name="itbusLogList" property="userGuid" />&userTitle=<bean:write name="itbusLogList" property="userTitle" />','鐢ㄦ埛淇℃伅涓庢棩蹇楄褰?,700,500);"><bean:write name="itbusLogList" property="userTitle" /></a></td>
        <td align="center"><bean:write name="itbusLogList" property="orgTitle" /></td>
        <td align="center"><bean:write name="itbusLogList" property="opTime" /></td>
        <td align="center"><bean:write name="itbusLogList" property="businessDesc" /></td>
        <td align="center">
         <logic:equal name="itbusLogList" property="opResult" value="03" >
        <a href="#" onclick="msgbox('<%=mainWeb%>/BusLogAction.do?method=viewException&cmmGuid=<bean:write name="itbusLogList" property="cmmGuid" />','鏌ョ湅寮傚父淇℃伅',500,380);">
        <font style="font-size: 13px;" color="red"><bean:write name="itbusLogList" property="opResultValue" /></font></a>
       </logic:equal>
       <logic:equal name="itbusLogList" property="opResult" value="02" >
        <font style="font-size: 13px" color="orange">
        <bean:write name="itbusLogList" property="opResultValue" />
        </font>
       </logic:equal>
       <logic:equal name="itbusLogList" property="opResult" value="01" >
        <font style="font-size: 13px" color="green">
        <bean:write name="itbusLogList" property="opResultValue" />
        </font>
       </logic:equal>
        </td>
        <td align="center"><bean:write name="itbusLogList" property="loginIp" /></td>
           </tr>
        </logic:iterate>
      </logic:present>
   </table>
  </div>
  <!--寮曞叆鍒嗛〉鎺т歡寮濮?->
  <%@ include file="/common/pagectrl.jsp" %>
  
  <!--寮曞叆鍒嗛〉鎺т歡緇撴潫-->
</body>
</html>
<script> 
var tcApply = new table(dataTB);
applyTB(tcApply, dataDiv);
var cmmGuid = "";
var orgGuid = '<%=orgGuid%>';

if ('<%=opResult%>' != null && '<%=opResult%>' != '' && '<%=opResult%>' != 'null') {
 document.all.opResult.value = '<%=opResult%>';
}else  {
 document.all.opResult.value = '00';
}

if ('<%=beginTime%>' != null && '<%=beginTime%>' != '' && '<%=beginTime%>' != 'null') {
 document.all.beginTime.value = '<%=beginTime%>';
}else {
 document.all.beginTime.value = "";
}

if ('<%=endTime%>' != null && '<%=endTime%>' != '' && '<%=endTime%>' != 'null') {
 document.all.endTime.value = '<%=endTime%>';
}else {
 document.all.endTime.value = "";
}

if ('<%=inputUserTitle%>' != 'null' ) {
 document.all.inputUserTitle.value = '<%=inputUserTitle%>';
}else {
 document.all.inputUserTitle.value = "";
}

function doSelectRow(rowObj){
 if(rowObj != null && rowObj != ""){
  cmmGuid = rowObj.cells[1].getAttribute('cmmGuid');
 }
}

//鍒嗛〉
 function gotoPage(pagenum){
    var orgGuid = "";
 orgGuid = '<%=orgGuid%>';
 if (orgGuid != null && orgGuid != "" && orgGuid != 'null') {
  document.location.href="<%=mainWeb%>/BusLogAction.do?method=queryBusLog&pageNum="+pagenum+"&pageSize="+document.all.goPageSize.value+"&orgGuid="+orgGuid;
  }
 }

//鎵ц涓氬姟鏃ュ織鏌ヨ
function doQuery() {
 var orgGuid = "";
 orgGuid = '<%=orgGuid%>';
 if (orgGuid != null && orgGuid != "" && orgGuid != 'null') {
  ccpMscMonitorForm.submit();
 }
}

//閫夋嫨鏉′歡鎵ц涓氬姟鏃ュ織鏌ヨ
function doQuerySelect(obj) {
 var orgGuid = "";
 orgGuid = '<%=orgGuid%>';
 if (orgGuid != null && orgGuid != "" && orgGuid != 'null') {
  ccpMscMonitorForm.submit();
 }
}

//鍒犻櫎涓氬姟鏃ュ織,緇勭粐鍙傛暟,鎵ц鍒犻櫎鎿嶄綔
function delmscmonitor() {
 if(typeof(document.all.cbMetadata)=="undefined"){
      alert("褰撳墠娌℃湁璁板綍錛?);
      return;
    }
 window.setTimeout("countsel()",1000);
 window.setTimeout("doRemove()",1000);
}

var logGuidString = "";
function countsel() {
    if(typeof(document.all.cbMetadata.length)!="undefined"){
     for(var i=0;i<document.all.cbMetadata.length;i++){
       if(document.all.cbMetadata[i].checked) {
          logGuidString += dataTB.rows[i+1].cells[1].getAttribute("cmmGuid") + "~";
         }
     }
    }else{
  return;
    }
}

//鎵ц鍒犻櫎涓氬姟鏃ュ織鎿嶄綔
function doRemove(){
 if(cmmGuid==""||cmmGuid==undefined){
  popAlert("璇烽夋嫨璁板綍錛?);
  return;
 }
 var removeConfirm = function (){
  sendRequest('<%=mainWeb%>/BusLogAction.do?method=removeBusLog&logGuidString='+logGuidString,"fDealDel()");
 }
 popConfirm("紜畾鍒犻櫎涓氬姟鏃ュ織錛?,removeConfirm);
}
 
//澶勭悊鍒犻櫎鍥炶皟
function fDealDel(){
 if(http_request.responseText != ''){
  var temp = http_request.responseText.split('|');
  if(temp[0] == 'true')
  popAlert(temp[1]);
  document.location.href="<%=mainWeb%>/BusLogAction.do?method=queryBusLog&orgGuid=<%=orgGuid%>";
 }
}


//鏍規(guī)嵁鏉′歡瀵煎嚭涓氬姟鏃ュ織
function doExport() {
 showDiv();
}

function showDiv() {
 var obj=document.createElement("div");
 obj.style.border="solid 1px;"
 obj.innerHTML = '<div id="select" align="right" style="margin-top:4px"><table width="20%" height="15%"  border="0" cellpadding="1" cellspacing="1"><tr><td width="10%" class="data_tb_td"><input type="radio" value="01" id="choice" name="choice" checked />褰撳墠鎵鏈夋煡璇㈢粨鏋?lt;/td></tr><tr><td width="10%" class="data_tb_td"><input type="radio" value="02" id="choice" name="choice" />鎵鏈変笟鍔℃棩蹇楄褰?lt;/td></tr><tr><td width="10%" class="data_tb_td"><input type="button" class="button" name="btnExport" id="btnExport" value="瀵箋鍑? onclick="daoChu();"/><input type="button" class="button" name="btnExportClose" id="btnExportClose" value="鍏熾闂? onclick="closeWindow();"/></td></tr></table></div>';
 obj.style.position="absolute";
 obj.style.right="0px";
 obj.style.top="0px";

 document.all.opResult.style.display="none";
 document.body.appendChild(obj);

}

function daoChu(){
 var exportConfirm = function (){
  if(document.all.choice[0].checked) {
   sendRequest('<%=mainWeb%>/BusLogAction.do?method=exportBusLog&orgGuid='+document.all.orgGuid.value+'&beginTime='+document.all.beginTime.value+'&endTime='+document.all.endTime.value+'&inputUserTitle='+document.all.inputUserTitle.value+'&opResult='+document.all.opResult.value+"&select="+document.all.choice[0].value,"fDealExport()");
  }else if (document.all.choice[1].checked) {
   sendRequest('<%=mainWeb%>/BusLogAction.do?method=exportBusLog&orgGuid='+document.all.orgGuid.value+'&beginTime='+document.all.beginTime.value+'&endTime='+document.all.endTime.value+'&inputUserTitle='+document.all.inputUserTitle.value+'&opResult='+document.all.opResult.value+"&select="+document.all.choice[1].value,"fDealExport()");
  }
  closeWindow();
 }
 popConfirm("紜畾瀵煎嚭涓氬姟鏃ュ織錛?,exportConfirm);
}

//鍒犻櫎鏄劇ず鐨勫鍑洪夋嫨妗?br /> function closeWindow() {
 var obj=document.getElementById("select");
 obj.removeNode(true);
 document.all.opResult.style.display="";
}

//澶勭悊瀵煎嚭涓氬姟鏃ュ織鍥炶皟
function fDealExport(){
 if(http_request.responseText != ''){
  var temp = http_request.responseText.split('|');
   if(temp[0] == 'true')
   popAlert(temp[1]);
 }
}

</script>



嫻鋒氮 2008-03-04 18:27 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 泰兴市| 云霄县| 丰原市| 乐清市| 策勒县| 竹北市| 保靖县| 长子县| 沁阳市| 福清市| 洛隆县| 乌什县| 罗源县| 长子县| 克东县| 金华市| 仙游县| 南汇区| 锦州市| 河东区| 二手房| 余庆县| 南靖县| 南郑县| 三都| 噶尔县| 辽阳市| 平塘县| 无为县| 巴青县| 阿城市| 繁峙县| 永顺县| 丹巴县| 苗栗县| 大名县| 北宁市| 通榆县| 桐城市| 闽侯县| 平定县|