⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 js.jsp

📁 用java编写的网络架构程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<script language='javascript'>
//查询按钮JS
function searchJs() {
  document.forms[0].TYPE.value = '1';
  searchJsValue();
}
//到按钮JS
function goJs() {
  if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
  document.forms[0].TYPE.value = '2';
  pageSubmit();
}
//发票详情JS
function detailJs1( index ) {
  var val = document.forms[0].elements[ "FCWFP01__INVOICE_ID_HIDDEN" + index ].value;
  var amt=document.forms[0].elements[ "FCWFP01__INVOICE_AMT"+index ].value;
  if (amt >= 0){
    location.href = "PCWFP02?WINDOW=open&PCWFP02__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
  }else{
    location.href = "PCWFP06?WINDOW=open&PCWFP06__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
  }
}
//发票明细JS
function detailJs2( index ) {
  var val = document.forms[0].elements[ "FCWFP01__INVOICE_ID_HIDDEN" + index ].value;
  var vpurpose =document.forms[0].elements[ "FCWFP01__FEE_PURPOSE" + index ].value;
  var amt=document.forms[0].elements[ "FCWFP01__INVOICE_AMT"+index ].value;

  if(vpurpose=="货款"){
    if (amt >= 0){
      location.href = "PCWFP03?WINDOW=open&PCWFP03__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
    }else{
      location.href = "PCWFP07?WINDOW=open&PCWFP07__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
    }
    }else if(vpurpose=="预付款"||vpurpose=="尾款"){
      //无明细
       }else if(vpurpose=="关税"){
        location.href = "PCWFP05?WINDOW=open&PCWFP05__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
      }else{
        location.href = "PCWFP04?WINDOW=open&PCWFP04__INVOICE_ID_S=" + val + "&TYPE=1&PAGE=1";
        }
}

function turnred(){
 //金额为负数时,显示成红色
  for (var i = 1; i <= 15; i++) {
       if(document.forms[0].elements[ "FCWFP01__INVOICE_AMT"+i ]!=undefined){
       var val=document.forms[0].elements[ "FCWFP01__INVOICE_AMT"+i ].value;

  	if (val < 0) {
     	   document.forms[0].elements[ "FCWFP01__INVOICE_AMT"+i ].style.color = 'FF0000';
          document.forms[0].elements[ "FCWFP01__TAX_AMT"+i ].style.color = 'FF0000';
          document.forms[0].elements[ "FCWFP01__INVOICE_AMT_TOT"+i ].style.color = 'FF0000';
       }
       }
  }

  }
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -