📄 employee_create_basic_info.jsp
字号:
if (form1.dutyId.selectedIndex < 0)
{
alert("\你必须选择职务!");
form1.dutyId.focus();
return false;
}
form1.action= "/mainctrl/intranet/hr/add_basic_info?doAddDuty=1&submitByRoleSetting=1";
form1.submit();
}
function change(select)
{
form1.action="/mainctrl/intranet/hr/add_basic_info?doChange=1&submitByRoleSetting=1?empId=<%=emp_id%>";
form1.submit();
}
function checkIfValidForDel(ob,division,dutyName)
{
if( ob.value.charAt(0)=="N" && ob.checked == true )
{
alert("该员工在"+division+"担任了两个或两个以上职位,您当前选中想要删除的"+dutyName+"职位是该员工在"+division+"担任的主要职位,您必须给该员工在"+division+"部门另指定一个主要职位然后再选择删除.");
return false;
}
else
{
return false;
}
}
function submitDel()
{
if(form1.delId == null)
{
alert("目前没有数据可供删除!");
return false;
}
if(!isChecked(form1.delId))
{
alert("您没有选择要删除的项!");
return false;
}
for(var i=0;i<document.form1.delId.length;i++)
{
if (document.form1.delId[i].checked)
{
if( document.form1.delId[i].value.charAt(0)=="N" )
{
alert("根据职位设定的原则,您必须保证每一个员工在其任职的每一个部门有而且仅有一个主要职位,\n如果该员工在一个部门担任了两个或两个以上的职位(其中会有一个而且仅有一个为主要职位),当您试图去删除其在某部门担任的主要职务时,\n请您先将该员工在该部门担任的主要职务标记更换到他在该部门担任的另一个职务上以后再选中删除.");
return false;
}
}
}
if ( confirm("你确认要删除您选中的项吗?") )
{
form1.action= "/mainctrl/intranet/hr/add_basic_info?doDel=1&submitByRoleSetting=1";
form1.submit();
}
else return false;
}
function domodifyMainDuty( ob, dutyId,divisionId,empId)
{
if(ob.value == "Y")
{
//alert("Y"+dutyId);
return false;
}
if(ob.value == "N")
{
ob.checked = false;
form1.action = "/mainctrl/intranet/hr/add_basic_info?doModifyMainDuty=1&dutyId="+dutyId+"&empId="+empId+"&divisionId="+divisionId+"&submitByRoleSetting=1";
form1.submit();
}
return false;
}
</script>
<DIV align=center>
<form name="form1" method="post" >
<TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
<TBODY>
<jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
<TR>
<TD colSpan=3 align="center">
<br>
<table width="600" border="1" cellspacing="1" bordercolor="#666666">
<tr>
<td bgcolor="#fafafa">
<table class=title cellspacing=1 width="600" border=0>
<tr>
<td bgcolor="#666666" colspan="3"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>><a href="/mainctrl/intranet/hr/search_result"><font color="#FFFFFF">员工信息库</font></a>>>新增员工基本信息</font></td>
</tr>
<tr>
<td bgcolor="#fafafa" colspan="3" height=30>
<input type="button" value="基本信息" name="B32" class=text>
<%
if ( memberInfoBean.getId() > 0 && doNew == false )
{
%>
<input type="button" value="个人信息" onClick="location='/mainctrl/intranet/hr/add_personal_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
<input type="button" value="学历信息" onClick="location='/mainctrl/intranet/hr/add_degree_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
<input type="button" value="履历信息" onClick="location='/mainctrl/intranet/hr/add_resume_info?emp_id=<%= memberInfoBean.getId() %>'" name="B32" class=text>
<%
}
%>
</td>
</tr>
<%
if ( doNew == true )
{
System.out.println("\n\n^^^^doNew status.");
%>
<tr>
<td bgcolor="#e0e0e0" width="21%"><font class=strong> 姓名:</font></td>
<td bgcolor="#e0e0e0" colspan="2" width="79%">
<input type="text" name="name" class=text size="20" value=<%= memberInfoBean.getName() %> >*
</td>
</tr>
<!-- <tr>
<td bgcolor="#fafafa" width="21%"><font class=strong> 员工编号:</font></td>
<td bgcolor="#fafafa" colspan="2" width="79%"> <%= memberInfoBean.getId() %></td>
</tr>
-->
<tr bgcolor="#fafafa">
<td width="21%"><font class=strong> 性别:</font></td>
<td colspan="2" width="79%"><b>
<select style="WIDTH:65px" size="1" name="sex" >
<option value=0 <% if (memberInfoBean.getSex() == 0) out.print("selected"); %>>男</option>
<option value=1 <% if (memberInfoBean.getSex() == 1) out.print("selected"); %>>女</option>
</select>
</b></td>
</tr>
<tr>
<td bgcolor="#e0e0e0" width="21%" ><font class=strong> 登录口令:</font></td>
<td bgcolor="#e0e0e0" colspan="2" width="79%">
<input type="password" name="pwd" class=text value ="<%=memberInfoBean.getPwd()%>" size="20" maxlength="20">*
</td>
</tr>
<tr>
<td bgcolor="#fafafa" width="21%" ><font class=strong> 确认口令:</font></td>
<td bgcolor="#fafafa" colspan="2" width="79%">
<input type="password" name="checkpwd" class=text value = "<%=memberInfoBean.getPwd()%>" size="20" maxlength="20">*
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="21%"><font class=strong> 用户名:</font></td>
<td colspan="2" width="79%" bgcolor="#e0e0e0"> <b>
<input type="text" name="userName" class=text size="20" value="<%= memberInfoBean.getUserName() %>"></b>*
</td>
</tr>
<tr>
<td bgcolor="#fafafa" width="21%"><font class=strong> E_mail:</font></td>
<td bgcolor="#fafafa" colspan="2" width="79%">
<input type="text" name="email" class=text size="20" value="<%= memberInfoBean.getEmail() %>">*
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="21%"><font class=strong> 电话号码:</font></td>
<td colspan="2" width="79%">
<input type="text" name="phone" class=text size="20" value="<%= memberInfoBean.getPhone() %>">
</td>
</tr>
<tr>
<td bgcolor="#fafafa" width="21%"><font class=strong> 传真号码:</font></td>
<td bgcolor="#fafafa" colspan="2" width="79%">
<input type="text" name="fax" class=text size="20" value="<%= memberInfoBean.getFax() %>">
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="21%"><font class=strong> 手/呼机号码:</font></td>
<td colspan="2" width="79%">
<input type="text" name="mobile" class=text size="20" value=<%= memberInfoBean.getMobile() %>>
</td>
</tr>
<tr>
<td bgcolor="#fafafa" width="21%"><font class=strong> 上级:</font></td>
<td bgcolor="#fafafa" colspan="2" width="79%">
<select size="1" name="managerId" >
<option value="-1" >--无--</option>
<%
Iterator iter3 = collAllP.iterator();
while ( iter3.hasNext() )
{
MemberSearchBean ms = (MemberSearchBean)iter3.next();
%>
<option value=<%= ms.getId() %> <% if ( ms.getId() == memberInfoBean.getManagerId() ) out.print("selected");%>><%= ms.getName() %></option>
<%
}
%>
</select><!--*-->
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="21%"><font class=strong> 助理:</font></td>
<td colspan="2" width="79%">
<select size="1" name="assistantId" >
<option value="-1" >--无--</option>
<%
Iterator iter4 = collAllP.iterator();
while ( iter4.hasNext() )
{
MemberSearchBean ms = (MemberSearchBean)iter4.next();
%>
<option value=<%= ms.getId() %> <% if ( ms.getId() == memberInfoBean.getAssistantId() ) out.print("selected");%>><%= ms.getName() %></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="21%" bgcolor="#fafafa"><b><font class = strong > 职称</font></b></td>
<td width="79%" bgcolor="#fafafa"><input type="text" name="title" class=text size="20" value="<%= memberInfoBean.getTitle() %>"></td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="21%"><font class=strong> 备注:</font></td>
<td colspan="2" width="79%">
<textarea name="note" rows="6" cols="36" ><%= memberInfoBean.getNote() %></textarea>
</td>
</tr><!-- start role seting-->
<tr>
<td colspan = 3>
<table class=title cellspacing=1 width="600" border=0>
<%
if ( pageColl.size() > 0 )
{
%>
<tr bgcolor="#fafafa">
<td colspan="6" height="30">
<input type="button" value="删除" name="B22" onClick="submitDel()" class=text>
</td>
</tr>
<%
}
%> <tr>
<td width="40" align="center"><font class=strong>选择</font></td>
<td width="140" align="center"><font class=strong>设定时间</font></td>
<td width="140" align="center"><font class=strong>部门</font></td>
<td width="140" align="center"><font class=strong>主管</font></td>
<td width="140" align="center"> <font class=strong>职务</font></td>
<td width="10" align="center"> <font class=strong>主</font></td>
</tr>
<%
String bgcolor = null;
int color_i = 0;
Iterator iter = pageColl.iterator();
%>
<input type = hidden name = "ifAddedDuty" value = "<%=iter.hasNext()?"Yes":"No"%>">
<%
while ( iter.hasNext() )
{
MemberDutyInfo mdi = (MemberDutyInfo)iter.next();
color_i++;
if( color_i%2==0 )
{
bgcolor = "#e0e0e0";
}
else
{
bgcolor = "#fafafa";
}
%>
<tr bgcolor="<%= bgcolor %>">
<td width="40" align="center"><font class=strongw>
<input type="checkbox" name="delId" value="<%= hrProxyBean.isValidForDel(mdi.getDutyId(),emp_id)?"Y":"N"%><%= mdi.getDutyId() %>" onclick = "checkIfValidForDel(this,'<%= mdi.getDivisionName() %>','<%= mdi.getDutyName() %>')">
</font></td>
<td width="140" align="center"><%= MyDateFormat.myDate(mdi.getAssignDate()) %></td>
<td align="center" width="140"><%= mdi.getDivisionName() %></td>
<td width="140" align="center"><%= mdi.getManagerName() %></td>
<td width="140" align="center"><%= mdi.getDutyName() %></td>
<td width="10" align="center"><input type="radio" name="radio<%=mdi.getDutyId()%>" value="<%=mdi.getIsMainDuty()?"Y":"N"%>" <% if( mdi.getIsMainDuty() == true ) out.print("checked");%> onclick = "domodifyMainDuty(this,'<%= mdi.getDutyId() %>','<%=mdi.getDivisionId()%>','<%=emp_id%>')" ></td>
</tr>
<%
}
%>
</table>
<table class=title cellspacing=1 width="600" border=0>
<tr>
<td bgcolor="#fafafa" width="21%"><font class=strong> 部门:</font></td>
<td bgcolor="#fafafa" width="79%">
<!--部门列表开始-->
<select name="divisionId" class=choice onChange=change(this)>
<option value="-1">------------请选择部门------------</option>
<org:DivisionList>
<vnex:items select='<%= deIdTemp+"" %>' >
<option value=<org:DivisionAttribute attribute="id"/> <org:DivisionAttribute attribute="isSelected"/> >
<org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/></option>
</vnex:items>
</org:DivisionList>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -