<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DateTimeType.ascx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.FieldControl.DateTimeType" %>
<div class="DivWordBreak">
  <table>
    <tr>
      <td>
        <asp:RadioButton ID="Rad1" GroupName="UpdateTime" Checked="true" Text="<%$ Res : Controls_FieldControl_DateTimeType_Rad1, 保持为原来的时间 %>" runat="server" />
      </td>
      <td>
        <%=FieldValue%>
      </td>
    </tr>
    <tr>
      <td>
        <asp:RadioButton ID="Rad2" GroupName="UpdateTime" Text="<%$ Res : Controls_FieldControl_DateTimeType_Rad2, 自定义 %>" runat="server" />
      </td>
      <td onclick="ChangeChecked<%= Rad2.ClientID %>()">
        <pe:DatePicker ID="PickDate" runat="server"></pe:DatePicker><pe:RequiredFieldValidator ID="ReqPickDate" runat="server" SetFocusOnError="true" ControlToValidate="PickDate" Display="Dynamic" ErrorMessage="<%$ Res : Controls_FieldControl_DateTimeType_ReqPickDate, 日期不能为空 %>" Visible="false"></pe:RequiredFieldValidator>
        <span style="color: Green">
          <%= Description %>
        </span>
      </td>
    </tr>
  </table>

  <script type="text/javascript">
    function ChangeChecked<%= Rad2.ClientID %>() {
      document.getElementById('<%= Rad2.ClientID %>').checked = true;
    }
  </script>

  <asp:HiddenField ID="HdnUpdateTime" runat="server" />
</div>
