📄 js.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<script language='javascript'>
/*
//调用对话框Js
function doload() {
window.showModalDialog("/app/POPUP/popframe.jsp?PAGE_ID=PPOPUP01",window,"dialogwidth:1024;dialgheight:500;status:no");
document.forms[0].FGYXX03__KHYH.value = document.forms[0].GET_ITEM_CODE_TYPE.value;
document.forms[0].FGYXX03__YHZH.value = document.forms[0].GET_ITEM_CODE.value;
}
*/
function NodeClick(itemType,itemCode,zt){
disAll();
document.all("loadimg").style.visibility="visible";
location.href = "index.jsp?TYPE=1&PAGE=1&PPOPUP01__ITEM_NAME_S=&PPOPUP01__ITEM_MODEL_S=&PPOPUP01__ITEM_SPECS_S=&PPOPUP01__ITEM_CODE_TYPE_S="+itemType+"&PPOPUP01__ITEM_CODE_S=" + itemCode;
}
//查询按钮JS
function searchJs() {
if(document.forms[0].elements["PPOPUP01__ITEM_CODE_TYPE_S"].value==""||
document.forms[0].elements["PPOPUP01__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__ITEM_CODE_TYPE" ]!=undefined)//代码类
operator.document.forms[0].elements[ "GET__ITEM_CODE_TYPE" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_CODE_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[ "FPOPUP01__ITEM_CODE" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_CHN_NAME" ]!=undefined)//物料中文名称
operator.document.forms[0].elements[ "GET__ITEM_CHN_NAME" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_CHN_NAME" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_ENG_NAME" ]!=undefined)//物料英文名称
operator.document.forms[0].elements[ "GET__ITEM_ENG_NAME" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_ENG_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[ "FPOPUP01__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[ "FPOPUP01__ITEM_SPECS" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_MATERIAL" ]!=undefined)//材质
operator.document.forms[0].elements[ "GET__ITEM_MATERIAL" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_MATERIAL" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_UNIT" ]!=undefined)//计量单位
operator.document.forms[0].elements[ "GET__ITEM_UNIT" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_UNIT" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_WEIGHT" ]!=undefined)//重量
operator.document.forms[0].elements[ "GET__ITEM_WEIGHT" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_WEIGHT" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_WEIGHT_UNIT" ]!=undefined)//重量单位
operator.document.forms[0].elements[ "GET__ITEM_WEIGHT_UNIT" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_WEIGHT_UNIT" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_GROUP" ]!=undefined)//物料分类
operator.document.forms[0].elements[ "GET__ITEM_GROUP" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_GROUP" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ITEM_DRAWING" ]!=undefined)//图号
operator.document.forms[0].elements[ "GET__ITEM_DRAWING" ].value = document.forms[0].elements[ "FPOPUP01__ITEM_DRAWING" + rd ].value;
if(operator.document.forms[0].elements[ "GET__IS_SUPPRESSE" ]!=undefined)//是否禁止采购
operator.document.forms[0].elements[ "GET__IS_SUPPRESSE" ].value = document.forms[0].elements[ "FPOPUP01__IS_SUPPRESSED" + rd ].value;
if(operator.document.forms[0].elements[ "GET__IS_INSURANCE" ]!=undefined)//是否保险品
operator.document.forms[0].elements[ "GET__IS_INSURANCE" ].value = document.forms[0].elements[ "FPOPUP01__IS_INSURANCE" + rd ].value;
if(operator.document.forms[0].elements[ "GET__DEPT" ]!=undefined)//归口管理部门
operator.document.forms[0].elements[ "GET__DEPT" ].value = document.forms[0].elements[ "FPOPUP01__DEPT" + rd ].value;
if(operator.document.forms[0].elements[ "GET__BUY_CYC" ]!=undefined)//采购周期
operator.document.forms[0].elements[ "GET__BUY_CYC" ].value = document.forms[0].elements[ "FPOPUP01__BUY_CYC" + rd ].value;
if(operator.document.forms[0].elements[ "GET__SIMU_PRICE" ]!=undefined)//模拟单价
operator.document.forms[0].elements[ "GET__SIMU_PRICE" ].value = document.forms[0].elements[ "FPOPUP01__SIMU_PRICE" + rd ].value;
if(operator.document.forms[0].elements[ "GET__STOCK_QTY" ]!=undefined)//库存量
operator.document.forms[0].elements[ "GET__STOCK_QTY" ].value = document.forms[0].elements[ "FPOPUP01__STOCK_QTY" + rd ].value;
if(operator.document.forms[0].elements[ "GET__BOOKED_QTY" ]!=undefined)//预约量
operator.document.forms[0].elements[ "GET__BOOKED_QTY" ].value = document.forms[0].elements[ "FPOPUP01__BOOKED_QTY" + rd ].value;
if(operator.document.forms[0].elements[ "GET__ONWAY_QTY" ]!=undefined)//在途量
operator.document.forms[0].elements[ "GET__ONWAY_QTY" ].value = document.forms[0].elements[ "FPOPUP01__ONWAY_QTY" + rd ].value;
if(operator.document.forms[0].elements[ "GET__COST_TYPE" ]!=undefined)//成本类别
operator.document.forms[0].elements[ "GET__COST_TYPE" ].value = document.forms[0].elements[ "FPOPUP01__COST_TYPE" + 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 + -