<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Staff_Contract.aspx.cs" Inherits="TotCms.Web.Office.Staff.Staff_Contract" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic"><a href="Staff_Contract_Edit.aspx?staffid=<%=StaffId() %>" target="_parent">添加合同</a></td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        onselectedindexchanged="lvList_SelectedIndexChanged" 
        onitemcommand="lvList_ItemCommand" 
      onitemdatabound="lvList_ItemDataBound" DataKeyNames="id" >
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>标题</td>
              <td>合同类别</td>
              <td>合同状态</td>
              <td>开始日期</td>
              <td>结束日期</td>
              <td>工资</td>
              <td>年薪</td>
              <td>是否审记</td>
              <td>审记人</td>              
              <td>审记日期</td>
              <td>操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td><%# Eval("Title")%></td>
            <td><%# Eval("Class")%></td>
            <td><%# Eval("Status")%></td>
            <td><%# FormatDate(Eval("StartDate"))%></td>
            <td><%# FormatDate(Eval("EndDate"))%></td>
            <td><%# Eval("Wage")%></td>
            <td><%# Eval("Salary")%></td>
            <td><%# Eval("IsCheck")%></td>
            <td><%# Eval("CheckBy")%></td>
            <td><%# Eval("CheckDate")%></td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="editobj" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						|
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="deleteobj" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            <p align="center">没有记录,<a href="Staff_Contract_Edit.aspx?staffid=<%=StaffId() %>" target="_parent">点此添加合同</a></p>
        </EmptyDataTemplate>       
    </asp:ListView>
    </form>
</body>
</html>

