<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Staff_Skills.aspx.cs" Inherits="TotCms.Web.Office.Staff.Staff_Skills" %>

<!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">    
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items" InsertItemPosition="FirstItem" 
        onselectedindexchanged="lvList_SelectedIndexChanged" 
        onitemdeleting="lvList_ItemDeleting" onitemediting="lvList_ItemEditing" 
        oniteminserting="lvList_ItemInserting" 
        onitemupdating="lvList_ItemUpdating" onitemcommand="lvList_ItemCommand" 
        onitemcanceling="lvList_ItemCanceling" 
      onitemdatabound="lvList_ItemDataBound" DataKeyNames="id">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>id</td>
              <td>名称</td>
              <td>获得日期</td>
              <td>审批机关</td>
              <td>证书编号</td>
              <td>操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>
        <AlternatingItemTemplate>
          <tr class="alterlines">
          <td><%# Eval("id") %></td>
          <td><%# Eval("Title")%></td>
          <td><%# Eval("FromDate")%></td>
          <td><%# Eval("FromOffice")%></td>
          <td><%# Eval("CodeNo")%></td>
          <td>
          <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
              <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                  Text="删除" OnClientClick="return confirm('确定删除吗?')" />
          </td>
          </tr>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <tr class="lines">
            <td>id</td>
            <td><asp:TextBox ID="tbTitle" runat="server" Text='<%# Eval("Title") %>'></asp:TextBox></td>
            <td><asp:TextBox ID="tbFromDate" runat="server" Text='<%# Eval("FromDate") %>'></asp:TextBox></td>
            <td><asp:TextBox ID="tbFromOffice" runat="server" Text='<%# Eval("FromOffice") %>'></asp:TextBox></td>
            <td><asp:TextBox ID="tbCodeNo" runat="server" Text='<%# Eval("CodeNo") %>'></asp:TextBox></td>
            <td>
              <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="编辑" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="取消" />
            </td>
            </tr>
        </EditItemTemplate>
        <EmptyDataTemplate>
            暂时没有数据.
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <tr class="alterlines">
            <td>插入行</td>
            <td><asp:TextBox ID="tbTitle" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="tbFromDate" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="tbFromOffice" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="tbCodeNo" runat="server"></asp:TextBox></td>
            <td>
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="添加" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="取消" />
            </td>
            </tr>
        </InsertItemTemplate>

        <ItemTemplate>
            <tr class="lines">
            <td><%# Eval("id") %></td>
            <td><%# Eval("Title")%></td>
            <td><%# Eval("FromDate")%></td>
            <td><%# Eval("FromOffice")%></td>
            <td><%# Eval("CodeNo")%></td>
            <td>
            <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="编辑" />
                    <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                        Text="删除" OnClientClick="return confirm('确定删除吗?')" />
            </td>
            </tr>
        </ItemTemplate>
        
    </asp:ListView>
    </form>
</body>
</html>
