<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContractEdit.aspx.cs" Inherits="OAWeb.hrm.employ.ContractEdit" EnableViewState="true" %>

<!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="../../App_Themes/Default/default.css" rel="stylesheet" type="text/css" />
    <script src="../../Js/Dialog/Dialog.js" type="text/javascript"></script>
    <script src="/js/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
    <script src="/js/artDialog/plugins/iframeTools.source.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
    <style>
    a 
    {
         text-decoration:none;
         color: Blue;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div style="width:700px; height:500px; overflow-y:scroll">
    <table cellspacing="0" cellpadding="3" width="100%" border="1" style="border-collapse: collapse">
        <tr>
            <td align="right" width="98%" colspan="4" bgcolor="#e6e6e6" style="height: 25px">
                <p align="center">
                    <b>合同基本信息</b>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                合同类别：
            </td>
            <td width="324" align="left" class="st12pt">
                <asp:DropDownList ID="ddlContractType" runat="server">
                    <asp:ListItem Value="1">劳动合同</asp:ListItem>
                    <asp:ListItem Value="2">劳务合同</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td width="140" align="right" class="st12pt">
                合同编号：
            </td>
            <td width="325" align="left" class="st12pt">
                <asp:Label ID="lblId" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                员工工号：&nbsp;
            </td>
            <td width="320" align="left" class="st12pt">
                <asp:Label ID="lblWorkNumber" runat="server" Text="Label"></asp:Label>
            </td>
            <td width="140" align="right" class="st12pt">
                员工姓名：
            </td>
            <td width="382" align="left" class="st12pt">
                <asp:Label ID="lblRealName" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                签订日期：
            </td>
            <td width="324" align="left" class="st12pt">
                <asp:TextBox ID="txtSignedDate" runat="server" Width="84%" MaxLength="20" onfocus="WdatePicker()"></asp:TextBox>
            </td>
            <td width="140" align="right" class="st12pt">
                合同期限：&nbsp;
            </td>
            <td width="325" align="left" class="st12pt">
                <asp:TextBox ID="txtExpireDate" runat="server" MaxLength="10" Width="93%" onfocus="WdatePicker()"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                试用期限：
            </td>
            <td width="320" align="left" class="st12pt">
                <asp:TextBox ID="txtProbationDate" runat="server" MaxLength="10" Width="93%" onfocus="WdatePicker()"></asp:TextBox>
            </td>

            <td width="140" align="right" class="st12pt">
                人事经办：
            </td>
            <td width="382" align="left" class="st12pt">
                <asp:DropDownList ID="ddlDoUserId" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                附件：
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:FileUpload ID="FileUpload1" runat="server" />
                &nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Text="上传" onclick="Button1_Click" />
                <asp:HiddenField ID="HiddenField1" runat="server" />
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                
            </td>
            <td align="left" class="st12pt" colspan="3">
                <asp:Repeater ID="Repeater1" runat="server" 
                    onitemcommand="Repeater1_ItemCommand">
                <ItemTemplate>
                <a href=<%# Eval("fileHref") %> target="_blank"><%# Eval("fileName")%> </a> &nbsp;
                <asp:LinkButton ID="lbtnDel" runat="server"  CommandName="del" CommandArgument='<%# Eval("filePath") %>'>删除 </asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                </ItemTemplate>
                </asp:Repeater>  
            </td>
        </tr>
        <tr>
            <td width="139" align="right" class="st12pt">
                合同条款：
            </td>
            <td width="320" align="left" class="st12pt" colspan="3">
                <asp:TextBox ID="txtContractContent" runat="server" Width="99%" MaxLength="20" Height="157px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" class="st12pt" colspan="4">
                &nbsp; &nbsp;<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保 存"
                    Width="81px" />&nbsp;<asp:Button ID="btnCannel" runat="server" Text="取 消" Width="75px" />
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
