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

📄 js.jsp

📁 用java编写的网络架构程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<script language='javascript'>
//查询按钮JS
function searchJs() {
  document.forms[0].TYPE.value = '1';
  //屏蔽所有按钮,只有在提交按钮中使用,弹出窗口的按钮不要使用屏蔽功能
  disAll();
  searchJsValue();
}
//到按钮JS
function goJs() {
  if(forwardCheck( "OPERATETYPE","Q","查询" )==false)return false;
  document.forms[0].TYPE.value = '2';
  pageSubmit();
}
//新增按钮JS
function insertJs() {
  if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
  if( validateForm( document.forms[0] ) == false )return false;
  /*
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYXS" ], "质量异议项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYBL" ], "质量异议比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYZJBL" ], "质量异议资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__YQJHXS" ], "延期交货项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__YQJHZJBL" ], "延期交货资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__BJSFZJBL" ], "报价水分资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__FWPPXS" ], "服务评判项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__FWPPBL" ], "服务评判比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__XJHFXS" ], "询价回复项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__XJHFBL" ], "询价回复比例")==false) return false;
  //if((isNull(document.forms[0].elements[ "FGYXX07__SL" ], "数量")==false)||(isInt( document.forms[0].elements[ "FGYXX07__SL" ], "数量")==false))return false;
  */
  document.forms[0].TYPE.value = '3';
  pageSubmit();
}
//修改按钮JS
function updateJs() {
  if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
  if( validateForm( document.forms[0] ) == false )return false;
  /*
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYXS" ], "质量异议项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYBL" ], "质量异议比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__ZLYYZJBL" ], "质量异议资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__YQJHXS" ], "延期交货项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__YQJHZJBL" ], "延期交货资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__BJSFZJBL" ], "报价水分资金比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__FWPPXS" ], "服务评判项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__FWPPBL" ], "服务评判比例")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__XJHFXS" ], "询价回复项数")==false) return false;
  if(isInt(document.forms[0].elements[ "FGYGL03OP__XJHFBL" ], "询价回复比例")==false) return false;

  //if(isNull(document.forms[0].elements[ "FGYXX07__RYZL" ], "人员种类")==false) return false;
  //if((isNull(document.forms[0].elements[ "FGYXX07__SL" ], "数量")==false)||(isInt( document.forms[0].elements[ "FGYXX07__SL" ], "数量")==false))return false;
  */
  if(checkKey(document.forms[0].elements[ "FGYGL03OP__RQ" ],document.forms[0].elements[ "FGYGL03OP__RQ_HIDDEN" ], "日期")==false) return false;
  if(checkKey(document.forms[0].elements[ "FGYGL03OP__WLFL" ],document.forms[0].elements[ "FGYGL03OP__WLFL_HIDDEN" ], "物料分类")==false) return false;

  if(window.confirm("确定要修改吗?")==false)return false;
  document.forms[0].TYPE.value = '4';
  pageSubmit();
}
//删除按钮JS
function deleteJs() {
  if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
   // if(isNull(document.forms[0].elements[ "FGYGL03OP__RQ" ], "日期")==false) return false;
  if(checkKey(document.forms[0].elements[ "FGYGL03OP__RQ" ],document.forms[0].elements[ "FGYGL03OP__RQ_HIDDEN" ], "日期")==false) return false;
  if(checkKey(document.forms[0].elements[ "FGYGL03OP__WLFL" ],document.forms[0].elements[ "FGYGL03OP__WLFL_HIDDEN" ], "物料分类")==false) return false;
  if(window.confirm("确定要删除吗?")==false)return false;
  document.forms[0].TYPE.value = '5';
  pageSubmit();
}
function autoInput(PAGE_RQ,PAGE_WLFL) {
  //alert(PAGE_RQ);
  document.forms[0].elements[ "FGYGL03OP__RQ_HIDDEN" ].value=PAGE_RQ;
  document.forms[0].elements[ "FGYGL03OP__WLFL_HIDDEN" ].value=PAGE_WLFL;
  document.forms[0].TYPE.value = '6';

  pageSubmit();
}
</script>

⌨️ 快捷键说明

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