<%@ Page Language="c#" CodeBehind="TaskReply.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Task.TaskReply"
    Title="任务完成进度" %>

<%@ Import Namespace="SWTraining" %>
<!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 runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body >
    <form id="Form1" method="post" runat="server" style="margin: 0px; padding: 0px">
    <div class="divpanel">
        <asp:FormView ID="fvSubject" runat="server" Width="100%" CssClass="ClearCollapse">
            <ItemTemplate>
                <table cellpadding="4" cellspacing="0" class="table" style="height: 40px" width="100%">
                    <tr>
                        <td align="center" style="width: 124px; border-top-width: 0px" rowspan="3">
                            <div style="font-size: 14px; font-weight: bold">
                                <asp:Label runat="server" ID="name" ForeColor='<%# Convert.ToInt32(Eval("StatusID")) == 3 ? System.Drawing.Color.ForestGreen:System.Drawing.Color.Black%>'
                                    Text='<%#Eval("TrueName")%>'>
                                </asp:Label>
                            </div>
                        </td>
                        <td align="left" style="height: 22px; border-top-width: 0px">
                            任务名称：<%#Eval("TaskName")%>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" height="120">
                            <%#swq.Tools.HtmlEncode(Eval("TaskContent").ToString())%>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" height="22">
                            办理状态：<%#Eval("StatusName")%>
                            办理人：<%#Eval("ToTrueName")%>
                            时间：<%#Eval("DateAndTime")%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
    </div>
    <div class="divpanel">
        <asp:DataList ID="DataList1" runat="server" DataKeyField="ReplyID" Width="100%" CssClass="ClearCollapse"
            OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand"
            OnItemCommand="DataList1_ItemCommand" OnItemDataBound="DataList1_ItemDataBound"
            OnUpdateCommand="DataList1_UpdateCommand">
            <ItemTemplate>
                <table cellpadding="4" cellspacing="0" class="table" style="height: 40px" width="100%">
                    <tr>
                        <td rowspan="2" style="width: 124px; border-top-width: 0px">
                            办理人：<%#Eval("TrueName")%>
                        </td>
                        <td style="height: 20px; border-top-width: 0px">
                            结果：<%# Eval("StatusName")%>
                            <asp:LinkButton ID="lbnEdit" runat="server" Text="编辑" CommandName="edit" CausesValidation="false"></asp:LinkButton>
                            <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="false"
                                OnClientClick="<%# Rs.Messages.确定删除%>">
                            </asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td height="50">
                            <%#swq.Tools.HtmlEncode(Eval("Content").ToString())%>
                            <p align="right">
                                时间：<%#Eval("DateAndTime")%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <EditItemTemplate>
                <table cellpadding="4" cellspacing="0" class="table" style="height: 40px" width="100%">
                    <tr>
                        <th colspan="2">
                        </th>
                    </tr>
                    <tr>
                        <td rowspan="2" style="width: 124px;">
                            追踪人：<%#Eval("TrueName")%>
                        </td>
                        <td>
                            结果：<asp:DropDownList ID="ddlStatus" SelectedValue='<%#Eval("StatusID")%>' runat="server">
                                <asp:ListItem Value="0">未处理</asp:ListItem>
                                <asp:ListItem Value="1">办理中</asp:ListItem>
                                <asp:ListItem Value="2">已完成</asp:ListItem>
                            </asp:DropDownList>
                            <asp:LinkButton ID="Linkbutton1" runat="server" Text="更新" CommandName="update" CommandArgument='<%#Eval("UserID")%>'
                                CausesValidation="false">
                            </asp:LinkButton>
                            <asp:LinkButton ID="Linkbutton2" runat="server" Text="取消" CommandName="cancel" CausesValidation="false"></asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td height="50">
                            <asp:TextBox TextMode="MultiLine" Rows="5" Width="90%" ID="tBody" Text='<%#Eval("Content")%>'
                                runat="server" />
                            <p align="right">
                                时间：<%#Eval("DateAndTime")%>
                        </td>
                    </tr>
                </table>
            </EditItemTemplate>
        </asp:DataList>
    </div>
    <div class="divpanel">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    <div class="divpanel">
        <table class="table" cellspacing="0" width="85%" id="tablePost" runat="server">
            <tr>
                <th colspan="2">
                    回复办理进度
                </th>
            </tr>
            <tr>
                <td>
                    内容：
                </td>
                <td>
                    <asp:TextBox ID="tbxContent" runat="server" Width="461px" Height="78px" TextMode="MultiLine"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    结果：
                </td>
                <td>
                    <asp:DropDownList ID="ddlStatus" SelectedValue='<%#Eval("StatusID")%>' runat="server">
                        <asp:ListItem Value="1">办理中</asp:ListItem>
                        <asp:ListItem Value="2">已完成</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <label class="lab_buttom">
<asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
</label>
                </td>
            </tr>
        </table>
    </div>
    <div class="divpanel" style="text-align: center">
        <label class="lab_buttom">
<input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back()"
            value="返回" />
</label>
    </div>
    </form>
</body>
</html>
