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

📄 employeeamend.jsp

📁 这是一个法律事务所系统源码
💻 JSP
字号:
<%--
模块名称:行政管理
模块功能:人员修改
版    本:V1.0
著 作 人:蔡静
著作日期:2001-10-25
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
  Security auth = new Security();
  String employeeid = (String)session.getAttribute("employee_id");
  if(employeeid == null || employeeid.equals(""))
  {
    response.sendRedirect(response.encodeRedirectURL("../index.htm"));
  }
  String modelid = "Off033";
  int authflag = auth.popedom(employeeid, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {
%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%
  }
%>
<%
  String employee_id = request.getParameter("employee_id");
  String employee_name, sex, birth, dept_id, title, duty;
  String education, expert, career_time, join_time, resume, achievement;
  String remark, speciality, case_range, tel = "", diploma = "";
  String sql = "select employee_name, sex, birth, dept_id, title,";
  sql = sql + "duty, education, expert, career_time, join_time, resume,";
  sql = sql + "achievement, remark, speciality, case_range,";   
  sql = sql + "tel, diploma ";
  sql = sql + " from t_employee where employee_id = '" + employee_id + "'";
  ResultSet rs = db.executeQuery(sql);
  if (rs.next()) {
    employee_name = rs.getString("employee_name");
    sex = rs.getString("sex");
    birth = rs.getString("birth");
    dept_id = rs.getString("dept_id");
    title = rs.getString("title");
    duty = rs.getString("duty");
    education = rs.getString("education");
    expert = rs.getString("expert");
    career_time = rs.getString("career_time");
    join_time = rs.getString("join_time");
    resume = rs.getString("resume");
    achievement = rs.getString("achievement");
    remark = rs.getString("remark");
    speciality = rs.getString("speciality");
    case_range = rs.getString("case_range");  
    tel = rs.getString("tel");                
    if(tel == null) tel = "";
    diploma = rs.getString("diploma");
    if(diploma == null) diploma = "";
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>人员修改</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>
<script language="javascript">
  function checkForm() {
    if (document.form1.employee_id.value=="") {
      alert("请输入员工编号!");
      document.form1.employee_id.focus();
      return false;
    }
    if (document.form1.employee_name.value=="") {
      alert("请输入员工姓名!");
      document.form1.employee_name.focus();
      return false;
    }
    return true;
  }
</script>
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr> 
    <td>
    <a href="Employee.jsp"><img src="../images/all.gif" height="22" border="0" alt="显示所有内容"></a>
    <a href="EmployeeAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0" style="cursor:hand" ></a> 
      <img src="../images/delete.gif" alt="删除选中的内容" style="cursor:hand" width="79" height="22"></td>
    <td width="108" height="30" align="center"> <img src="../images/back.gif" width="50" height="22" onClick="window.history.back()" style="cursor:hand" alt="返回"></td>
  </tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<form name="form1" method="post" action="EmployeeAmendRun.jsp">
<table width="98%" align="center" border="0" cellspacing="1" cellpadding="0" class="table_bg">
  <tr>
    <td height="24" width="19%"  align="right" class="title_bg"> 员工编号:</td>
    <td height="24" width="32%" class="tr_bg1">
      <input name="employee_id" size="8" class="input" value=<%=employee_id%> readOnly>  
      <font color="#FF0000">*</font>
    </td>
    <td height="24" width="17%"  align="right" class="title_bg"> 姓名:</td>
    <td height="24" width="32%" class="tr_bg1">
      <input name="employee_name" size="12" class="input" value=<%=employee_name%>>    
      <font color="#FF0000">*</font>
    </td>
  </tr>
  <tr>
    <td align="right"  height="28" width="19%" class="title_bg"> 性别:</td>
    <td height="28" width="32%" class="tr_bg1">
      <select class="select" name="sex" size=1>
      <%
        if (sex.equals("1")) {
      %>
        <option selected value=1>男</option>
        <option value=0>女</option>
      <%} else {%>
        <option value=1>男</option>
        <option selected value=0>女</option>
      <%}%>
      </select>
    </td>
    <td align="right"  height="28" width="17%" class="title_bg"> 出生年月:</td>
    <td height=28 width=32% class="tr_bg1">
      <input type="text" name="birth" maxlength="10" size="10" value=
      <%
        if ((birth == null) || (birth.equals("")))
          out.print("\"\"");
        else
          out.print(birth);
      %>
      class="input"  readOnly>
      <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(birth);return false" width="16" height="16">
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 联系方式:</td>
    <td height=28 width=32% class="tr_bg1">
      <input name="tel" size=12 class="input" value=<%=tel%>>
    </td>
    <td align="right"  height="28" width="17%" class="title_bg"> 所属部门:</td>
    <td height=28 width=32% class="tr_bg1">
      <select class="select" name="dept_id" size=1>
      <%
        String dept_id1, dept_name1;
        ResultSet rs1 = db.executeQuery("select dept_id, dept_name from t_dept where dept_id <> 'root' order by dept_id");
        while (rs1.next()) {
          dept_id1 = rs1.getString("dept_id");
          dept_name1 = rs1.getString("dept_name");
          if (dept_id1.equals(dept_id)) {
      %>
        <option value=<%=dept_id1%> selected><%=dept_name1%></option>
      <% } else { %>
        <option value=<%=dept_id1%>><%=dept_name1%></option>
      <%
         }
       }
      %>
      </select>
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 职称:</td>
    <td height=28 width=32% class="tr_bg1">
      <input name="title" size="12" class="input" value=
      <%
        if (title != null)
          out.print(title);
        else
          out.print("\"\"");
      %>
      >
    </td>
    <td align=right  height=28 width=17% class="title_bg"> 职务:</td>
    <td  height=28 width=32% class="tr_bg1" >
      <input name="duty" size="12" class="input" value=
      <%
        if (duty != null)
          out.print(duty);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 学历:</td>
    <td height=28 width=32% class="tr_bg1">
      <select class="select" name="education" size=1>
        <option value=1 <%if (education.equals("1")) out.print("selected");%>>小学</option>
        <option value=2 <%if (education.equals("2")) out.print("selected");%>>初中</option>
        <option value=3 <%if (education.equals("3")) out.print("selected");%>>高中</option>
        <option value=4 <%if (education.equals("4")) out.print("selected");%>>中专</option>
        <option value=5 <%if (education.equals("5")) out.print("selected");%>>大专</option>
        <option value=6 <%if (education.equals("6")) out.print("selected");%>>本科</option>
        <option value=7 <%if (education.equals("7")) out.print("selected");%>>硕士</option>
        <option value=8 <%if (education.equals("8")) out.print("selected");%>>博士</option>
      </select>
    </td>
    <td align=right  height=28 width=17% class="title_bg"> 专业方向:</td>
    <td  height=28 width=32% class="tr_bg1" >
      <input name="expert" size="12" class="input" value=
      <%
        if (expert != null)
          out.print(expert);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 毕业学校:</td>
    <td colspan=3 height=28 class="tr_bg1">
      <input name="diploma" size="55" class="input" value=<%=diploma%>>
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 从业时间:</td>
    <td height=28 width=32% class="tr_bg1">
      <input type="text" name="career_time" maxlength="10" size="10" value=
      <%
        if ((career_time == null) || (career_time.equals("")))
          out.print("\"\"");
        else
          out.print(career_time);
      %>
       class="input"  readOnly>
      <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(career_time);return false" width="16" height="16">
    </td>
    <td align=right  height=28 width=17% class="title_bg"> 入所时间:
    </td>
    <td  height=28 width=32% class="tr_bg1" >
      <input type="text" name="join_time" maxlength="10" size="10" value=
      <%
        if ((join_time == null) || (join_time.equals("")))
          out.print("\"\"");
        else
          out.print(join_time);
      %>
       class="input"  readOnly>
      <img src="../images/datetime.gif" border="0" align="absmiddle"
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(join_time);return false" width="16" height="16">
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg">个人简历:</td>
    <td colspan=4 height=28 class="tr_bg1">
      <input name="resume" size="33" class="input" value=
      <%
        if (resume != null)
          out.print(resume);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 主要业绩:</td>
    <td colspan=4 height=28 class="tr_bg1">
      <input name="achievement" size="33" class="input" value=
      <%
        if (achievement != null)
          out.print(achievement);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
  <tr>
    <td align=right  height=56 class="title_bg" width="19%"> 备注:</td>
    <td colspan=4 height=56 class="tr_bg1">
      <textarea rows="5" name="remark" cols="55" class="input">
      <%
        if (remark != null)
          out.print(remark);
      %>
      </textarea>
    </td>
  </tr>
  <tr>
    <td align=left  height=28 class="title_bg" colspan="5"> 律师员工资料
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 律师专长:</td>
    <td colspan=4 height=28 class="tr_bg1">
      <input name="speciality" size=57 class="input" value=
      <%
        if (speciality != null)
          out.print(speciality);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 办案范围:</td>
    <td colspan=4 height=28 class="tr_bg1">
      <input name="case_range" size=57 class="input" value=
      <%
        if (case_range != null)
          out.print(case_range);
        else
          out.print("\"\"");
      %>
      >
    </td>
  </tr>
</table>
<br>

<div align="center">
  <input type="submit" value="保存修改" name="save" class="button" onclick="window.close()" style="width: 72; height: 26">
</div>
</form>
</body>

</html>
<%}%>

⌨️ 快捷键说明

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