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

📄 shebei.js

📁 基于java的jsp开发的在线考试系统 基于java的jsp开发的在线考试系统
💻 JS
字号:
/**************************************************

JS文件名称 : shebei.js
事件处理   : onClick
函数名称   : Add
参数名称   :
     SE_ID : 设备系统代码
       Add : 新建标志
   SE_Type : 设备类型

函数功能   :
调用pageshow(),参数如下:
         n : 0
  nextpage : SE040102_Detail.jsp
   command : SE040101_AddCmd.java
canexecute : true

**************************************************/

function Add(SE_Type) {

	if (SE_Type.selectedIndex.text == "所有类型") {

		alert ("请选择要新建的设备类型!");

	}

	else {

		var DevType = SE_Type.
		switch(SE_Type.options[SE_Type.selectedIndex].text) {

			case ("锅炉") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("压力容器") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("压力管道") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("医用氧仓") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("罐车") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("大型游乐设施") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("客运索道") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("厂内机动车辆") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("电梯") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;
			case ("起重机械") : alert (SE_Type.options[SE_Type.selectedIndex].text); break;

		}

	}

}


/**************************************************

JS文件名称 : shebei.js
事件处理   : onClick
函数名称   : Add
参数名称   :
     SE_ID : 设备系统代码
       Add : 新建标志
   SE_Type : 设备类型

函数功能   :
调用pageshow(),参数如下:
         n : 0
  nextpage : SE040102_Detail.jsp
   command : SE040101_AddCmd.java
canexecute : true

**************************************************/

function Edit(EditFlag, SE_Type) {

	alert(AddFlag);
	alert(SE_Type.options[SE_Type.selectedIndex].text);

}


/**************************************************

JS文件名称 : shebei.js
事件处理   : onClick
函数名称   : ViewSheBei
参数名称   : SE_ID
函数功能   :
调用pageshow(),参数如下:
         n : 0
  nextpage : SE040102_Detail.jsp
   command : SE040101_EditCmd.java
canexecute : true

**************************************************/

function ViewSheBei (SE_ID) {

	var nextpage = "SE040102_Detail.jsp?SE_ID=" + SE_ID;
	pageshow (0, nextpage, "SE040101_EditCmd.java", true);

}


/**************************************************

JS文件名称 : shebei.js
事件处理   : 无
函数名称   : pageshow
参数名称   :
         n : 提交表单编号
  nextpage : 转向的页面
   command : 调用的JavaBean
canexecute : 是否调用JavaBean

函数功能   : 获取当前页面的表单信息,执行后台JavaBean,
            并转向下一个页面

**************************************************/

function pageshow(n, nextpage, command, canexecute) {

	document.forms[n].nextpage.value = nextpage;
	document.forms[n].command.value = command;
	document.forms[n].canexecute.value = canexecute;
	document.forms[n].action = "/SEWeb/se/controller"
	document.forms[n].submit();

}


function nextpage(n,nextpage,command,canexecute){
	var now = document.all.item("CurPage").value;
	var all = document.all.item("allpage").value;
	if(now!=null&&all!=null){
		var next=parseInt(now);
		if(!isNaN(next)){
		    if(!isNaN(parseInt(all))){
				if(next+1>parseInt(all)){
					next=parseInt(all);
				}else{
					next+=1;
				}
				document.all.item("CurPage").value=next;
				pageshow(n,nextpage,command,canexecute);
			}
		}
	}
}

function test() {

	alert("This is a test!");

}

⌨️ 快捷键说明

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