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

📄 js.jsp

📁 用java编写的网络架构程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<script language='javascript'>

//查询按钮JS
function searchJs() {
  //if(document.forms[0].elements["PPOPUP12__ITEM_TYPE_S"].value==""||
  //   document.forms[0].elements["PPOPUP12__ITEM_CODE_S"].value=="")
  //   if(window.confirm( "该查询可能花费较长时间,是否继续?")==false) return false;
  document.forms[0].TYPE.value = "1";
  disAll();
  document.forms[0].submit();
}
//到按钮JS
function goJs() {
  document.forms[0].TYPE.value = "2";
  document.forms[0].PAGE.value = document.forms[0].GOPAGE.value;
  document.forms[0].submit();
}
//确定按钮JS
function doconfirmJs() {
  var operator = dialogArguments;
  if(document.forms[0].elements[ "RADIOBUTTON" ]==undefined) {
    alert("请先查询,并选择您要的记录");
    return;
  }
  var bselected = false;
  var ird = document.forms[0].elements[ "RADIOBUTTON" ].length;
  var rd = 1;
  if(ird==undefined) {
    bselected = true;
  }
  else {
    for(i=0;i<ird;i++){
      if(document.forms[0].elements[ "RADIOBUTTON" ][i].checked==true) {
        bselected = true;
        rd = i+1;
      }
    }
  }

  if(!bselected) {
    alert("请选择一项!");
    return;
  }

  if(operator.document.forms[0].elements[ "GET__OP" ]!=undefined)//操作
    operator.document.forms[0].elements[ "GET__OP" ].value = '1';
  if(operator.document.forms[0].elements[ "GET__INQUIRY_ID" ]!=undefined)//核价单号
    operator.document.forms[0].elements[ "GET__INQUIRY_ID" ].value = document.forms[0].elements[ "FPOPUP12__INQUIRY_ID" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__ITEM_TYPE" ]!=undefined)//代码类
    operator.document.forms[0].elements[ "GET__ITEM_TYPE" ].value = document.forms[0].elements[ "FPOPUP12__ITEM_TYPE" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__ITEM_CODE" ]!=undefined)//物料代码
    operator.document.forms[0].elements[ "GET__ITEM_CODE" ].value = document.forms[0].elements[ "FPOPUP12__ITEM_CODE" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__ITEM_NAME" ]!=undefined)//物料名称
    operator.document.forms[0].elements[ "GET__ITEM_NAME" ].value = document.forms[0].elements[ "FPOPUP12__ITEM_NAME" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__ITEM_MODEL" ]!=undefined)//型号
    operator.document.forms[0].elements[ "GET__ITEM_MODEL" ].value = document.forms[0].elements[ "FPOPUP12__ITEM_MODEL" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__ITEM_SPECS" ]!=undefined)//规格
    operator.document.forms[0].elements[ "GET__ITEM_SPECS" ].value = document.forms[0].elements[ "FPOPUP12__ITEM_SPECS" + rd ].value;
  if(operator.document.forms[0].elements[ "GET__FINAL_QUOTED_PRICE" ]!=undefined)//最终报价不含税单价
    operator.document.forms[0].elements[ "GET__FINAL_QUOTED_PRICE" ].value = document.forms[0].elements[ "FPOPUP12__FINAL_QUOTED_PRICE" + rd ].value;
  window.close();
}
//关闭按钮JS
function docloseJs() {
  var operator = dialogArguments;
  if(operator.document.forms[0].elements[ "GET__OP" ]!=undefined)//操作
    operator.document.forms[0].elements[ "GET__OP" ].value = '0';
  window.close();
}
</script>

⌨️ 快捷键说明

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