<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="cm" uri="/commons-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>员工扩展信息配置</title>
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
<script language="javascript" src="../code/vm/ExtCodeJs.htm"></script>
<script type="text/javascript">
function closeWindow(){
	location.reload();
}
function addObj(type,name){
  	iframeWindow("<s:url namespace='/employe' action='emplInfoLinkOperate'/>?oper=add&type="+type+"&emplInfo.id=<s:property value='emplInfo.id'/>",500,450,name,closeWindow);
}

function editObj(type,typePreprity,id,name){
  	iframeWindow("<s:url namespace='/employe' action='emplInfoLinkOperate'/>?oper=edit&init=true&type="+type+"&"+typePreprity+".id="+id,500,450,name,closeWindow);
}

function deleteObj(type,typePreprity,id,name){
	msgConfirm("您确认要删除该记录吗？",function(){
		iframeWindow("<s:url namespace='/employe' action='emplInfoLinkDelete'/>?emplInfo.id=<s:property value='emplInfo.id'/>&type="+type+"&"+typePreprity+".id="+id,400,200,name,closeWindow);
	});
}

</script>
</head>

<body style="background-color:#FFF;">
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr>
        <td colspan="7" class="big_title"><div style="float:left;padding-top:2px;">工作经历</div>
          <div class="sub_add" title="添加工作经历" onclick="addObj('EmplWorkHistory','添加工作经历')">添加</div></td>
      </tr>
      <s:if test="workHistoryList!=null && workHistoryList.size()>0">
        <tr class="sub_list_title center">
          <td width="8%">开始日期</td>
          <td width="9%">结束日期</td>
          <td width="13%">单位名称</td>
          <td width="8%">职位</td>
          <td width="21%">工作描述</td>
          <td width="34%">离职原因</td>
          <td width="7%">操作</td>
        </tr>
        <s:iterator value="workHistoryList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:date name="beginDate" format="yyyy-MM-dd" /></td>
            <td><s:date name="endDate" format="yyyy-MM-dd" /></td>
            <td><s:property value="company"/></td>
            <td><s:property value="job"/></td>
            <td><s:property value="descr"/></td>
            <td><s:property value="leaveCause"/></td>
            <td class="center"><img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplWorkHistory','workHistory',<s:property value='id'/>,'删除工作经历')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplWorkHistory','workHistory',<s:property value='id'/>,'修改工作经历')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr>
        <td colspan="8" class="big_title"><div style="float:left;padding-top:2px;">教育背景</div>
          <div class="sub_add" title="添加教育背景" onclick="addObj('EmplEducation','添加教育背景')">添加</div></td>
      </tr>
      <s:if test="educationList!=null && educationList.size()>0">
        <tr class="sub_list_title center">
          <td width="9%">开始日期</td>
          <td width="10%">结束日期</td>
          <td width="17%">学校名称</td>
          <td width="18%">专业</td>
          <td width="10%">所获学位</td>
          <td width="27%">备注</td>
          <td width="9%">操作</td>
        </tr>
        <s:iterator value="educationList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:date name="beginDate" format="yyyy-MM-dd" /></td>
            <td><s:date name="endDate" format="yyyy-MM-dd" /></td>
            <td><s:property value="school"/></td>
            <td><s:property value="major"/></td>
            <td><s:property value="degree"/></td>
            <td><s:property value="descr"/></td>
            <td class="center">
             <s:if test="attach!=null&&attach.id!=null&&attach.id!=''">
            	<a title="<s:property value='attach.name'/>" href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='attach.id'/>" target="_blank"><img src="../resources/style/images/attach.gif" border="0" width="16" height="16" /></a>
                &nbsp;
            </s:if>
            <img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplEducation','education',<s:property value='id'/>,'删除教育背景')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplEducation','education',<s:property value='id'/>,'修改教育背景')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr>
        <td colspan="9" class="big_title"><div style="float:left;padding-top:2px;">培训经历</div>
          <div class="sub_add" title="添加培训经历" onclick="addObj('EmplTrain','添加培训经历')">添加</div></td>
      </tr>
      <s:if test="trainList!=null && trainList.size()>0">
        <tr class="sub_list_title center">
          <td width="9%">开始日期</td>
          <td width="10%">结束日期</td>
          <td width="13%">课程名称</td>
          <td width="12%">培训机构</td>
          <td width="10%">培训地点</td>
          <td width="13%">所获证书</td>
          <td width="24%">备注</td>
          <td width="9%">操作</td>
        </tr>
        <s:iterator value="trainList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:date name="beginDate" format="yyyy-MM-dd" /></td>
            <td><s:date name="endDate" format="yyyy-MM-dd" /></td>
            <td><s:property value="title"/></td>
            <td><s:property value="organ"/></td>
            <td><s:property value="address"/></td>
            <td><s:property value="getCert"/></td>
            <td><s:property value="descr"/></td>
            <td class="center">
             <s:if test="attach!=null&&attach.id!=null&&attach.id!=''">
            	<a title="<s:property value='attach.name'/>" href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='attach.id'/>" target="_blank"><img src="../resources/style/images/attach.gif" border="0" width="16" height="16" /></a>
                &nbsp;
            </s:if>
            <img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplTrain','train',<s:property value='id'/>,'删除培训经历')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplTrain','train',<s:property value='id'/>,'修改培训经历')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr>
        <td colspan="6" class="big_title"><div style="float:left;padding-top:2px;">社会关系</div>
          <div class="sub_add" title="添加社会关系" onclick="addObj('EmplRelation','添加社会关系')">添加</div></td>
      </tr>
      <s:if test="relationList!=null && relationList.size()>0">
        <tr class="sub_list_title center">
          <td width="14%">姓名</td>
          <td width="15%">关系</td>
          <td width="23%">工作单位</td>
          <td width="15%">职务</td>
          <td width="26%">联系方式</td>
          <td width="7%">操作</td>
        </tr>
        <s:iterator value="relationList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:property value="name"/></td>
            <td><s:property value="relation"/></td>
            <td><s:property value="company"/></td>
            <td><s:property value="job"/></td>
            <td><s:property value="contact"/></td>
            <td class="center"><img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplRelation','relation',<s:property value='id'/>,'删除社会关系')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplRelation','relation',<s:property value='id'/>,'修改社会关系')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr>
        <td colspan="8" class="big_title"><div style="float:left;padding-top:2px;">执业证照</div>
          <div class="sub_add" title="添加执业证照" onclick="addObj('EmplQualification','添加执业证照')">添加</div></td>
      </tr>
      <s:if test="qualiList!=null && qualiList.size()>0">
        <tr class="sub_list_title center">
          <td width="16%">证照名称</td>
          <td width="15%">证照编号</td>
          <td width="13%">证照类型</td>
          <td width="14%">取证日期</td>
          <td width="13%">有效日期</td>
          <td width="20%">备注</td>
          <td width="9%">操作</td>
        </tr>
        <s:iterator value="qualiList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:property value="name"/></td>
            <td><s:property value="qualiNo"/></td>
            <td><s:property value="qualiType"/></td>
            <td><s:date name="getDate" format="yyyy-MM-dd" /></td>
            <td><s:date name="availDate" format="yyyy-MM-dd" /></td>
            <td><s:property value="descr"/></td>
            <td class="center">
             <s:if test="attach!=null&&attach.id!=null&&attach.id!=''">
            	<a title="<s:property value='attach.name'/>" href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='attach.id'/>" target="_blank"><img src="../resources/style/images/attach.gif" border="0" width="16" height="16" /></a>
                &nbsp;
            </s:if>
            <img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplQualification','quali',<s:property value='id'/>,'删除执业证照')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplQualification','quali',<s:property value='id'/>,'修改执业证照')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
  <s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr>
        <td colspan="3" class="big_title"><div style="float:left;padding-top:2px;">员工简历</div>
          <div class="sub_add" title="添加员工简历" onclick="addObj('EmplResume','添加员工简历')">添加</div></td>
      </tr>
      <s:if test="resumeList!=null && resumeList.size()>0">
        <tr class="sub_list_title center">
          <td width="91%">简历描述</td>
          <td width="9%">操作</td>
        </tr>
        <s:iterator value="resumeList" status="st">
          <s:set name="row_cls" value=""/>
          <s:if test="#st.Even">
            <s:set name="row_cls" value="%{'row_a'}"/>
          </s:if>
          <tr class="list_data <s:property value='#row_cls'/> center">
            <td><s:property value="descr"/></td>
            <td class="center">
             <s:if test="attach!=null&&attach.id!=null&&attach.id!=''">
            	<a title="<s:property value='attach.name'/>" href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='attach.id'/>" target="_blank"><img src="../resources/style/images/attach.gif" border="0" width="16" height="16" /></a>
                &nbsp;
            </s:if>
            <img src="../resources/style/images/delete.gif" width="16" height="16" title="删除" onclick="deleteObj('EmplResume','resume',<s:property value='id'/>,'删除员工简历')" class="pointer" /> &nbsp; <img src="../resources/style/images/edit.gif" width="16" height="16" title="修改" class="pointer" onclick="editObj('EmplResume','resume',<s:property value='id'/>,'修改员工简历')"/></td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
  </s:form>
</div>
</body>
</html>