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

📄 editdept.vm

📁 负责公文的传输及一些处理功能
💻 VM
字号:
<html>
<head>
<title>编辑部门信息</title>
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/csslib/style.css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
function init(){
     var exception = thisForm.exception.value;
     if(exception != ""){
       alert(exception);
     }
	 thisForm.unitName.focus();
}
function submit_onclick(){
  if (check()){
    thisForm.submit();
  }
}
function check(){
  if (trim(thisForm.unitName.value) == ""){
    alert("请填写部门名称!");
    thisForm.unitName.focus();
    return false;
  }
  if (thisForm.memo.value.length>180){
     alert("备注信息的长度超过了180个字符!");
     thisForm.memo.focus();
     return false ;
  }
  return true;
}
function doReturn(){
  history.back();
}
</script>
</head>
<body scroll=no onload="init()">
<form action="$request.getContextPath()/deptAction.do" method="post" name="thisForm">
<input type=hidden name=method value="saveDept">
<input type=hidden name=userUnitId value="$!userinfo.getUnit().getUnitId()">
<input type=hidden name=unitId value="$!dept.getUnitId()">
<input type=hidden name=fatherId value="$!userinfo.getUnit().getUnitId()">
<input type=hidden name=allFatherId value="$!userinfo.getUnit().getAllFatherId(),$!userinfo.getUnit().getUnitId()">
<input type=hidden name=unitCode value="$!dept.getUnitId()">
<input type=hidden name=unitType value="1">
<input type=hidden name=exception value="$!exception">
<br>
<table width=80% border=0 align="center" cellpadding="0" cellspacing="0">
  <tr><td><img src="$request.getContextPath()/image/p_you.jpg" width="67" height="57"></td></tr>
</table>
<p>
<hr width="80%" size="1" color=black>
</p>
<table width="60%" border="0"  align="center" cellpadding="0" cellspacing="0">
<tr>
  <td align=right><font color="#FF0000">*</font>&nbsp;部门名称&nbsp;&nbsp;</td>
  <td>
    <input type="text" name="unitName" maxlength="16" value="$!dept.getUnitName()" onkeypress="return handleEnter(this, event)" size=25>
  </td>
</tr>
<tr>
  <td align=right>部门电话&nbsp;&nbsp;</td>
  <td nowrap colspan=3>
    <input type="text" name="telephone" maxlength="15" value="$!dept.getTelephone()" onkeypress="return handleEnter(this, event)" size=25>
  </td>
</tr>
<tr>
  <td align=right>EMAIL&nbsp;&nbsp;</td>
  <td nowrap colspan=3>
    <input type="text" name="unitEmail" maxlength="30" value="$!dept.getUnitEmail()" onkeypress="return handleEnter(this, event)" size=25>
  </td>
</tr>
<tr>
  <td align=right>备注信息&nbsp;&nbsp;</td>
  <td>
    <textarea name="memo" maxlength="100" style="width:210;height:50" onkeypress="return handleEnter(this, event)">$!dept.getMemo()</textarea>
  </td>
</tr>
<tr height=8><td>&nbsp;</td></tr>
<tr>
  <td colspan="4" align="center">
    <input type=button  onclick="submit_onclick()"  value="确 定" >
    &nbsp;&nbsp;
    <input type=button  onclick="doReturn()"   value="取 消">
  </td>
</tr>
</table>
<br>
<p>
<hr width="80%" size="1" color=black>
</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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