<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="IssueInfo2.aspx.cs" Inherits="OAWeb.NewProject.IssueInfo2" EnableViewState="true" %>

<%@ Register Src="/NewProject/ProUserControl/IssueComment.ascx" TagName="CommentList"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <style>
        .TableBorder tr td
        {
            height: 20px;
        }
    </style>
    <style>
        .FileList
        {
            border-bottom: 1px solid #E7E7E7;
            margin-left: 10px;
            margin-right: 10px;
            text-align: left;
            padding-top: 5px;
            padding-bottom: 5px;
            margin-top: 5px;
        }
        
        .FileList table
        {
            width: 80%;
        }
        
        .HoverFileList
        {
            background: #F2F8FD none repeat scroll 0 0;
        }
        
        .pubreply_fed
        {
            margin-left: 10px;
            margin-right: 10px;
            background: #F9F9F9 none repeat scroll 0 0;
            border: 1px solid #E9E9E9;
            width: 80%;
        }
        .reply
        {
            display: none;
            color: #2889A8;
            margin-right: 50px;
        }
        .reply a
        {
            color: #2889A8;
        }
        .HoverFileList .reply
        {
            display: block;
        }
        body
        {
            
        }
        .FloatDel
        {
            background: #DB4C00 url(/images/icons_p.gif) no-repeat scroll 3px -64px;
            border: 1px solid #DB4C00;
            display: none;
            height: 13px;
            line-height: 999px;
            overflow: hidden;
            position: absolute;
            right: 0;
            top: 0;
            width: 13px;
        }
        .ImgList
        {
            float: left;
            width: 20%;
            text-align: center;
            margin-right: 10px;
            position: relative;
        }
        .CurrentImgList .FloatDel
        {
            display: block;
        }
    </style>
    <script>
        function OpenEditDialog(id) {

            OpenDialog("/NewProject/IssueEdit.aspx?IssueId=" + id, "编辑任务");
            return false;
        }
        function EditUser(id) {

            OpenDialog("/NewProject/UserList.aspx?UserType=edit&IssueId=" + id, "负责人转交");
            return false;
        }
        function AddUser() {

            OpenDialog("/NewProject/UserList.aspx?UserType=Add&IssueId=<%=IssueID %>", "添加成员");
            return false;
        }
    </script>
    <table style="border-collapse: collapse; background-color: White; width: 80%; margin-top: 15px; margin-left:auto; margin-right:auto;"
        bordercolor="#c0c0c0" border="2" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table align="center" class="TableBorder" cellspacing="0" cellpadding="0" border="0"
                    style="border-collapse: collapse; width: 100%;">
                    <tr class="AlterColor">
                        <td align="left" colspan="3" bgcolor="" style="height: 25px; padding: 20px; width: 75%">
                            <table width="100%">
                                <tr>
                                    <td style="width: 80%; vertical-align: top">
                                        <div style="font-size: 30px; font-weight: bold">
                                            <asp:Label ID="lblTitle" runat="server" Text="Label"></asp:Label>
                                        </div>
                                    </td>
                                    <td style="vertical-align: top; padding-top: 6px;">
                                        <table>
                                            <tr>
                                                <td>
                                                    <div style="width: 50px; height: 15px; border: 1px solid #BBBBBB; text-align: left;">
                                                        <div id="DivProgress" runat="server" style="background-color: #a0bbe6; width: 50%;
                                                            height: 15px;">
                                                            &nbsp;
                                                        </div>
                                                    </div>
                                                </td>
                                                <td style=" padding-left:5px;">
                                                    <asp:Label ID="lblProgress" runat="server" Text="Label"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <p style="margin-top: 15px;">
                                由<asp:Label ID="lblAssignee" runat="server" Text="Label"></asp:Label>于<asp:Label
                                    ID="lblCreateDate" runat="server" Text="Label"></asp:Label>
                                <asp:Label ID="lblProjectName" runat="server" Text=""></asp:Label>
                                发起
                            </p>
                            <p  style="margin-top: 15px;">
                                <asp:Label ID="lblDescription" runat="server" Text="Label"></asp:Label></p>
                        </td>
                        <td align="left" bgcolor="" style="vertical-align: top; padding-top: 30px;">
                            <span style="font-size: 15px;">
                                <asp:LinkButton ID="LinkButton4" runat="server" OnClick="LinkButton4_Click">开始执行</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">结束</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">编辑</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton5" runat="server" Onclick="LinkButton5_Click" >删除</asp:LinkButton>&nbsp;&nbsp;
                                <a href="IssueList.aspx">返回</a>
                            </span>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 500px; vertical-align: top;">
                <div style="float: left; width: 70%;">
                    <table class="TableBorder" bordercolor="#e6e6e6" cellspacing="0" cellpadding="3"
                        border="1" style="border-collapse: collapse; width: 99%; margin: 10px;">
                        <tr>
                            <td align="right" style="width: 10%; font-weight: bold">
                                开始时间：
                            </td>
                            <td align="left" style="width: 20%">
                                <asp:Label ID="lblTimePlanBegin" runat="server" Text="Label"></asp:Label>
                            </td>
                            <td align="right" style="width: 10%; font-weight: bold">
                                完成期限：
                            </td>
                            <td align="left" style="width: 20%">
                                <asp:Label ID="lblTimePlanEnd" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 10%; font-weight: bold">
                                计划工时：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblWorkHourPlan" runat="server" Text="Label"></asp:Label>
                            </td>
                            <td align="right" style="width: 10%; font-weight: bold">
                                累计工时：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblWorkHour" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 10%; font-weight: bold">
                                负责人：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblUser" runat="server" Text=""></asp:Label>
                            </td>
                            <td align="right" style="width: 10%; font-weight: bold">
                                结束时间：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblCloseDate" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 10%; font-weight: bold">
                                优先级：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblPriority" runat="server" Text=""></asp:Label>
                            </td>
                            <td align="right" style="width: 10%; font-weight: bold">
                                状态 ：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr class="AlterColor">
                            <td align="center" colspan="4" bgcolor="#e6e6e6" style="height: 25px">
                                <b>进展&评论</b>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="4" style="vertical-align: top; padding-left: 30px; padding-right: 30px;
                                padding-bottom: 15px;">
                                <uc1:CommentList ID="CommentList" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div style="float: left; padding-left: 30px; padding-top: 10px; text-align: left;
                    width: 25%">
                    <b style="padding: 3px; font-size:15px">成 员</b>
                    <div style="  margin-bottom:10px; margin-top:10px;">
                        <table>
                            <tr>
                                <td style=" text-align:left">
                                    <img id="UserImg" runat="server" width="50" /><br />
                                    <div id="divAssignee" runat="server" style="  padding-top:5px;  width:100%; text-align:center;"></div>
                                </td>
                                <td style="padding-left: 5px;">
                                    ( 负责人 )
                                </td>
                                <td>
                                    <asp:LinkButton ID="LinkButton2" runat="server">转交</asp:LinkButton>
                                    <a  id="LinkJoin" runat="server"  href="javascript:void(0)" onclick="AddUser()" style="margin-left: 20px;">
                                        添加参与者</a><asp:HiddenField ID="HiddenField1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="float: left; width: 100%; margin-bottom: 15px; ">
                        &nbsp;<asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound"
                            OnItemCommand="Repeater2_ItemCommand">
                            <ItemTemplate>
                                <div class="ImgList">
                                    <img id="rpUserImg" runat="server" width="50" height="50" /><br />
                                    <br />
                                    <%# Eval("RealName")%>
                                    <asp:LinkButton ID="lbtnDel" CommandArgument='<%# Eval("Id") %>' CommandName="Del"
                                        runat="server" CssClass="FloatDel">删除</asp:LinkButton>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <p>
                        <div style="">
                            <b>任务日志</b></div>
                        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                            <ItemTemplate>
                                <div class="FileList" style="text-align: left; border-bottom: none;">
                                    <table>
                                        <tr>
                                            <td>
                                                <%# ObjToStr(Eval("UserName")) == "" ? "客户" : Eval("UserName")%>：<%# Eval("Content") %></td>
                                        </tr>
                                        <tr id="trFile" runat="server">
                                            <td>
                                                <a target="_blank" id="FileLink" runat="server">
                                                    </a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="">
                                                <span style="">
                                                    <%# Eval("CreateDate") %></span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </p>
                </div>
            </td>
        </tr>
    </table>
    <script>
        $(".ImgList").each(function (i) {


            $(this).mouseover(function () {
                $(this).addClass("CurrentImgList");
            });

            $(this).mouseout(function () {
                $(this).removeClass("CurrentImgList");
            });

        });
    </script>
</asp:Content>
