<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddTask.ascx.cs" Inherits="uc_case_Pall" %>
<%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
<link href="D:\david\web\web\Contract\ms_design-pk_dgasp_cn/./system_dntb/skin/xp/toolbar.css"
    rel="stylesheet" type="text/css" />
<link href="d:\david\web\web\Contract\ms_design-pk_dgasp_cn/./system_dntb/skin/xp/toolbar.css"
    rel="stylesheet" type="text/css" />
<link href="D:\david\web\web\Contract\ms_design-pk_dgasp_cn/./system_dntb/skin/xp/toolbar.css"
    rel="stylesheet" type="text/css" />
<link href="D:\david\web\web\Contract\ms_design-pk_dgasp_cn/./system_dntb/skin/xp/toolbar.css"
    rel="stylesheet" type="text/css" />
<link href="D:\david\web\web\Contract\ms_design-pk_dgasp_cn/./system_dntb/skin/xp/toolbar.css"
    rel="stylesheet" type="text/css" />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Panel ID="AddTaksSelectCategoryPanel" runat="server" Height="50px" Width="100%">
    <asp:DataList ID="AddTaksDataList1" runat="server" OnItemDataBound="AddTaksDataList1_ItemDataBound"
        RepeatColumns="3">
        <ItemTemplate>
            <asp:LinkButton ID="LinkButton2" runat="server" Font-Bold="True" Font-Size="Medium"
                Text='<%# Bind("Category") %>'></asp:LinkButton>&nbsp;
            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>' Visible="False"></asp:Label>
            <asp:DataList ID="AddTaksDataList2" runat="server" RepeatColumns="3">
                <ItemTemplate>
                    &nbsp;<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# Link(Eval("Category").ToString(),Eval("id").ToString()) %>'
                        Text='<%# Bind("Category") %>'></asp:HyperLink>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("id") %>' Visible="False"></asp:Label>/
                </ItemTemplate>
            </asp:DataList><br />
        </ItemTemplate>
    </asp:DataList></asp:Panel>
<asp:Panel ID="ADDTaksPanel1" runat="server" Height="50px" Width="100%">
<table border="0" cellpadding="2" cellspacing="0" style="height: 28px;" width="100%">
  <tr>
      <td align="right" colspan="1" style="width: 70px; height: 2px">
          主题</td>
    <td colspan="4">
        <asp:TextBox ID="AddTaksSubject" runat="server" Width="309px" CssClass="TaskAddInput"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="AddTaksSubject"
            ErrorMessage="请输入主题"></asp:RequiredFieldValidator></td>
  </tr>
    <tr style="color: #000000">
        <td align="right" colspan="1" style="width: 70px; height: 16px">
            类别</td>
        <td align="left" colspan="4" style="width: 252px; height: 16px">
            <asp:Label ID="AddTaksCategory" runat="server" Text="Label"></asp:Label>
            <asp:Label ID="AddTaksCategoryID" runat="server" Text="0" Visible="False"></asp:Label></td>
    </tr>
    <tr>
        <td align="right" colspan="1" style="width: 70px; height: 16px" valign="baseline">
            附件</td>
        <td align="left" colspan="4" style="height: 16px" valign="top">
            <asp:Panel ID="UploadFilePanel" runat="server" Height="30px" Width="100%">
                <asp:FileUpload ID="TaksFileUpload1" runat="server" CssClass="TaskAddInput" />
                <asp:LinkButton ID="UploadFileKey" runat="server" CausesValidation="False" OnClick="UploadFileKey_Click" Width="100px" CssClass="TaskAddButton01">文件上传</asp:LinkButton>
                &nbsp;
                <asp:Label ID="UploadMaxFileText" runat="server" Text="Label" ForeColor="Gray"></asp:Label></asp:Panel>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="UploadTaksAccMessage" runat="server" Visible="False"></asp:Label>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCreated="GridView1_RowCreated" OnRowDeleting="GridView1_RowDeleting" PageSize="2">
                        <Columns>
                            <asp:BoundField DataField="id">
                                <ItemStyle Width="30px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="filename">
                                <ItemStyle Width="100px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="文件">
                                <ItemTemplate>
                                    &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# FilePath(Eval("filename").ToString()) %>'
                                        Target="_blank" Text='<%# Bind("filename") %>'></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="300px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="filesize" HeaderText="字节数">
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FileAtt" HeaderText="文件类型">
                                <ItemStyle HorizontalAlign="Center" Width="64px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:CommandField ShowDeleteButton="True" />
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="1" style="width: 70px; height: 16px">
            金额</td>
        <td align="left" colspan="4" style="width: 252px; height: 16px">
            <asp:TextBox ID="TaksMoney" runat="server" Width="83px" CssClass="TaskAddInput"></asp:TextBox>元
            <asp:Label ID="TaksMinMoneyText" runat="server" ForeColor="Gray"></asp:Label>
            <asp:Label ID="MoneyMessage" runat="server" ForeColor="Red"></asp:Label>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TaksMoney"
                ErrorMessage="只限数字" ValidationExpression="[0-9]+(.[0-9]{2})?$"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TaksMoney"
                ErrorMessage="请输入金额"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td align="right" colspan="1" style="width: 70px; height: 16px" valign="baseline">
            结束日期</td>
        <td align="left" colspan="4" style="width: 252px; height: 16px" valign="top">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <asp:LinkButton ID="TAKSEDT" runat="server" OnClick="TAKSEDT_Click"
                        Width="200px" CausesValidation="False" CssClass="TaskAddButton">选择日期</asp:LinkButton>
                    <asp:Label ID="TaksEDTMessage" runat="server"></asp:Label>
                    <asp:Calendar ID="TAKSEDTCalendar1" runat="server" FirstDayOfWeek="Sunday" Height="106px"
                        OnSelectionChanged="TAKSEDTCalendar1_SelectionChanged" Visible="False" Width="368px">
                        <TodayDayStyle BackColor="#E0E0E0" Font-Bold="True" Font-Italic="True" Font-Size="Large"
                            Font-Strikeout="False" Font-Underline="False" ForeColor="#004000" />
                        <SelectorStyle BackColor="Silver" Font-Bold="True" ForeColor="Maroon" />
                        <WeekendDayStyle Font-Bold="True" ForeColor="#C00000" />
                    </asp:Calendar>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="TAKSEDT" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="TAKSEDTCalendar1" EventName="SelectionChanged" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="1" style="width: 70px; height: 16px" valign="baseline">
            描述<br />
            把任务的要求及规划详细说明</td>
        <td colspan="4" style="width: 252px; height: 16px" align="left">
            &nbsp;<dntb:webeditor id="Content" runat="server" skin="skin/xp/" width="90%" systemFolder="./system_dntb/" MenuConfig="guest.config"></dntb:webeditor>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="1" style="width: 70px; height: 16px">
        </td>
        <td align="left" colspan="4" style="width: 252px; height: 16px">
            &nbsp; &nbsp; &nbsp;
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click1" Width="149px" CssClass="TaskAddButton01">确定提交</asp:LinkButton>
            &nbsp;
        </td>
    </tr>
</table>
</asp:Panel>
<asp:Panel ID="AddTaksPanel2" runat="server" Height="50px" HorizontalAlign="Center"
    Visible="False" Width="100%">
    <br />
    <br />
    <asp:Image ID="Image1" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/task/OK.gif" />
    任务上传成功，经审核后即可发布．<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/default.aspx">返回首页</asp:HyperLink><br />
    <br />
</asp:Panel><asp:Panel ID="AddTaksPanel3" runat="server" Height="50px" HorizontalAlign="Center"
    Visible="False" Width="100%">
    <br />
    <br />
    <asp:Image ID="Image2" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/task/err.gif" />
    &nbsp; 对不起，请先登录．<asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/default.aspx">返回首页</asp:HyperLink>&nbsp;<br />
    <br />
</asp:Panel>
