<%@ 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 language="javascript" src="../resources/js/calendar/calendar.js"></script>
<script type="text/javascript">
</script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="emplTransferList" id="queryForm" onsubmit="return checkForm(this)">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="4">查询条件</td>
      </tr>
      <tr class="form_item">
        <td width="21%">工号：
          <s:textfield name="transfer.emplInfo.emplNo" title="工号必须为数字。"  cssStyle="width:100px;"/></td>
        <td width="22%"> 原部门：
          <s:textfield name="transfer.oldOrg.name" readonly="true" onClick="codeTree('emplOrgTree',gi('oldOrgId'),this)" cssStyle="width:100px;" cssClass="find_input"/>
          <s:hidden name="transfer.oldOrg.id" id="oldOrgId"/></td>
        <td width="33%">调动原因：
        	<s:textfield name="transfer.transReason" cssStyle="width:100px;"/>
        </td>
        <td width="24%"> 调动类型：
          <s:select cssStyle="width:100px;" name="transfer.transType.id"  list='#request.SysCodeFinder.find("EMPL_TRANSFER_TYPE")'   headerKey="" headerValue="" listKey="id" listValue="codeName"/></td>
      </tr>
      <tr class="form_item1">
        <td>姓名：
          <s:textfield name="transfer.emplInfo.name" cssStyle="width:100px;"/></td>
        <td>新部门：
          <s:textfield name="transfer.newOrg.name" readonly="true" onClick="codeTree('emplOrgTree',gi('newOrgId'),this)" cssStyle="width:100px;" cssClass="find_input"/>
          <s:hidden name="transfer.newOrg.id" id="newOrgId"/></td>
        <td>调动日期：
          <s:textfield name="date1" readonly="true" onClick="showCalendar('yyyy-MM-dd',this)" cssClass="date_input" cssStyle="width:85px;">
            <s:param name="value">
              <s:date name="date1" format="yyyy-MM-dd"/>
            </s:param>
          </s:textfield>
          至
          <s:textfield name="date2" readonly="true" onClick="showCalendar('yyyy-MM-dd',this)" cssClass="date_input" cssStyle="width:85px;">
            <s:param name="value">
              <s:date name="date2" format="yyyy-MM-dd"/>
            </s:param>
          </s:textfield></td>
        <td align="center"><input name="q" value=" 查 询 " onclick="query()" type="button" /></td>
      </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr class="list_title">
        <td width="3%" align="center"><input type="radio" name="array" onclick="checkedAll(this)" value="checkbox" /></td>
        <td width="5%">工号</td>
        <td width="6%">姓名</td>
        <td width="7%">调动类型</td>
        <td width="9%">调动日期</td>
        <td width="12%">新部门</td>
        <td width="8%">新职务</td>
        <td width="9%">新岗位</td>
        <td width="11%">原部门</td>
        <td width="8%">原职务</td>
        <td width="9%">原岗位</td>
        <td width="13%">调动原因</td>
      </tr>
      <s:iterator value="transferList" 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'/>">
          <td align="center"><input type="radio" name="array" value="<s:property value='id'/>" lang="sid"/></td>
          <td class="center"><s:property value="emplInfo.emplNo"/></td>
          <td class="center"><s:property value="emplInfo.name"/></td>
          <td class="center"><s:property value="transType.codeName"/></td>
          <td class="center"><s:date name="transDate" format="yyyy-MM-dd"/></td>
          <td class=""><s:property value="newOrg.fullName"/></td>
          <td class="center"><s:property value="newJob.codeName"/></td>
           <td class="center"><s:property value="newStation.codeName"/></td>
          <td class=""><s:property value="oldOrg.fullName"/></td>
          <td class="center"><s:property value="oldJob.codeName"/></td>
          <td class="center"><s:property value="oldStation.codeName"/></td>
          <td class="center"><s:property value="transReason"/></td>
        </tr>
      </s:iterator>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_page">
      <tr>
        <td><cm:pager/></td>
      </tr>
    </table>
  </s:form>
</div>
</body>
</html>