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

📄 updatehandoverjobinput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<!--
********************************************************************************************************
* 系统名称:光大花园物业管理系统
* 程序名称:UpdateHandOverJobInput.jsp
* 程序类型:jsp
* 功能简述:修改交接班记录的输入页面
* 作    者:孙文菊
* 公    司:长春中联																				
* 完成时间:2001/08/27
* 修 改 人:
* 修改内容:
* 修改日期:
********************************************************************************************************
--> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<title>修改交接班记录 </title>
<%
	String number = (String)request.getParameter("number");
	String jobdate = (String)request.getParameter("jobdate");
	String jobtime = (String)request.getParameter("jobtime");
	String jobturn = (String)request.getParameter("jobturn");
	String toolstat = (String)request.getParameter("toolstat");
	String absencestat = (String)request.getParameter("absencestat");
	String comment = (String)request.getParameter("comment");
	String preundowork = (String)request.getParameter("preundowork");
	String worknote = (String)request.getParameter("worknote");
	String undoworknote = (String)request.getParameter("undoworknote");
	String note = (String)request.getParameter("note");
	String givename = (String)request.getParameter("givename");
	String recievename = (String)request.getParameter("recievename");
	String caruse = (String)request.getParameter("caruse");

		String  tmp = "";
		int index =0;
		
		tmp = toolstat;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		toolstat=tmp;

		tmp = absencestat;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		absencestat=tmp;
	
		tmp = comment;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		comment=tmp;

		tmp = preundowork;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		preundowork=tmp;

		tmp = worknote;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		worknote=tmp;

		tmp = undoworknote;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		undoworknote=tmp;

		tmp = note;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		note=tmp;

		tmp = caruse;
		index=tmp.indexOf("<br>");
		while (index!=-1){
			tmp = tmp.substring(0,index)+"\n"+tmp.substring(index+4,tmp.length());
			index=tmp.indexOf("<br>");
		}
		index = tmp.indexOf("&nbsp");
		while (index!=-1) {
			tmp = tmp.substring(0,index) + " " + tmp.substring(index+5,tmp.length());
			index = tmp.indexOf("&nbsp");
		}
		caruse=tmp;

	String year1 = jobdate.substring(0,4);
	String month1 = jobdate.substring(5,7);
	String day1 = jobdate.substring(8,10);
	String hour1 = jobtime.substring(0,2);
	String minut1 = jobtime.substring(3,5);
	
	String conjobturn = (String)request.getParameter("conjobturn");
	String congivename = (String)request.getParameter("congivename");
	String conreceivename = (String)request.getParameter("conreceivename");
	String conjobdate = (String)request.getParameter("conjobdate");
	String concurrent = (String)request.getParameter("concurrent");
%>
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script language="javascript" src="/pmsApp/common/admin.js"></script>
<script lanuage="JavaScript">

<!--
function MM_swapImgRestore() {// v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {// v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {// v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() {// v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function valid(){
	var bool=true;
	Nvoid(form1);
	
	if (bool) {
		if (document.form1.givename.value=="") {
			alert("请输入交班组长姓名");
			document.form1.givename.focus();
			bool=false;
		}
	}
	if (bool) {
		if (document.form1.receivename.value=="") {
			alert("请输入接班组长姓名");
			document.form1.receivename.focus();
			bool=false;
		}
	}
	if (bool) {
		if (document.form1.jobturn.value=="") {
			alert("请输入交接班班次");
			document.form1.jobturn.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.preundowork.value!="")&&(document.form1.preundowork.value.length>100)) {
			alert("您输入的上班次未处理情况的描述太长了,请限制在100以内");
			document.form1.preundowork.focus();
			bool=false;
		}
	}
	
	if (bool) {
		if (document.form1.worknote.value==""){
			alert("请输入本班次工作情况");
			document.form1.worknote.focus();
			bool=false;
		}
	}
	if (bool) {
		if (document.form1.worknote.value.length>100) {
			alert("您输入的本班次工作情况的描述太长了,请限制在100以内");
			document.form1.worknote.focus();
			bool=false;
		}
	}
	if (bool) {
		if (document.form1.comment.value==""){
			alert("请输入本班次工作评价");
			document.form1.comment.focus();
			bool=false;
		}
	}
	if (bool) {
		if (document.form1.comment.value.length>100) {
			alert("您输入的本班次工作评价的描述太长了,请限制在100以内");
			document.form1.comment.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.toolstat.value!="")&&(document.form1.toolstat.value.length>100)) {
			alert("您输入的器械交接情况情况的描述太长了,请限制在100以内");
			document.form1.toolstat.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.caruse.value!="")&&(document.form1.caruse.value.length>100)) {
			alert("您输入的巡逻车使用情况的描述太长了,请限制在100以内");
			document.form1.caruse.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.absencestat.value!="")&&(document.form1.absencestat.value.length>100)) {
			alert("您输入的缺勤情况的描述太长了,请限制在100以内");
			document.form1.absencestat.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.undoworknote.value!="")&&(document.form1.undoworknote.value.length>100)) {
			alert("您输入的上班次遗留情况的描述太长了,请限制在100以内");
			document.form1.undoworknote.focus();
			bool=false;
		}
	}
	if (bool) {
		if ((document.form1.note.value!="")&&(document.form1.note.value.length>100)) {
			alert("您输入的备注太长了,请限制在100以内");
			document.form1.note.focus();
			bool=false;
		}
	}
	if (bool) {
		handleForm(form1)
	}
}

function existedData() {
	y=<%=year1%>;
	m=<%=month1%>;
	d=<%=day1%>;
	h=<%=hour1%>;
	t=<%=minut1%>;
	
	
    for(var i = 0; i < 10; i++) {
      if(document.form1.jobdateyear[i].value == y) {
        document.form1.jobdateyear[i].selected = true;
        break;
      }
    }
	for(var i = 0; i < 12; i++) {
      if(document.form1.jobdatemonth[i].value == m) {
        document.form1.jobdatemonth[i].selected = true;
        break;
      }
    }
    for(var i = 0; i < 31; i++) {
      if(document.form1.jobdateday[i].value == d)
	  {
        document.form1.jobdateday[i].selected = true;
        break;
      }
    }
    for(var i = 0; i < 24; i++) {
      if(document.form1.jobdatehour[i].value == h) {
        document.form1.jobdatehour[i].selected = true;
        break;
      }
    }
    for(var i = 0; i < 60; i++) {
      if(document.form1.jobdateminute[i].value == t) {

⌨️ 快捷键说明

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