<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="taskfinishmanage.aspx.cs" Inherits="Us.Web.admin.task.taskfinishmanage" %>



<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>完成任务管理</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
     <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" src="/admin/My97DatePicker/WdatePicker.js" type="text/jscript"></script>
    <script language="javascript" src="/editor/xheditor.js" type="text/javascript"></script>
    <script type="text/javascript" src="/editor/xheditor_lang/zh-cn.js"></script>

    

    <script language="javascript" type="text/javascript">
        function opJsTreeUser(txt, txtValue) {
            var para = "/admin/basic/usertreeselect.aspx?para=2&list=" + $("#" + txtValue).val() + "&PostID=&DeptID=";
            UsOpenDialogTree(para, txt, txtValue);
        }

        function jscheckAll() {

            var sInfo = "您确实要提交工作反馈日志吗？提交后不可以修改！";
            var sFInfo = $("#txtFInfo").val();
            //alert(sFInfo);
            if (sFInfo == "") {
                art.dialog.alert("请输入您要发布工作反馈日志的内容后才可以提交！");
            }
            else {

                var sValue = $("#drpTaskState0").val();
                if (sValue == "6") {
                    //return window.confirm("当您提交计划状态为[提交审核]状态，您将无法修改和调整审核状态，是否要继续吗？");
                    sInfo += "请注意，修改工作任务状态为已经完成后，无法在修改任务状态！";
                }


                var info = sInfo;

                if (art.dialog.data("retdata") == 1) {
                    art.dialog.data("retdata", 0);//重置
                    return true;
                }
                art.dialog.confirm(info, function () {
                    art.dialog.data("retdata", 1);
                    document.getElementById("btnSubmit").click();
                });
            }
            return false;
        }



        function u1(obj) {
            if (obj == "") {
                return false;
            }
            var reg = new RegExp("^[+-]?[0-9]*$");

            if (!reg.test(obj)) {
                //alert("请输入数字!");
                return false;
            }
            else {
                return true;
            }

        }
    </script>

</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
        
        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        任务管理
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        任务管理
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist">
                            <tr class="tablisttr">
                                <td class="tablisttitle">任务编号</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtTaskID" runat="server" CssClass="1"  ToolTip="任务编号" Text=""></asp:TextBox></td>
                                <td class="tablisttitle">任务标题<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtTaskName" runat="server"  ToolTip="任务标题" Text="" ReadOnly="true"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">任务分类</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpTaskType" ToolTip="任务分类" Enabled="false">
                                        <asp:ListItem Value="TaskType" Text="code"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">要求完成时间</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtTDate4" runat="server" ToolTip="要求完成时间" Text="" ReadOnly="true"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">任务状态<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpTaskState" ToolTip="任务状态" Enabled="false">
                                        <asp:ListItem Value="TaskState" Text="code"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">任务类型</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpTParentID" ToolTip="任务类型" Enabled="false">
                                        <asp:ListItem Value="TParentID" Text="code"></asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">任务部门</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtDeptID" runat="server" ToolTip="计划部门" Text=""
                                        ReadOnly="true"></asp:TextBox></td>
                                <td class="tablisttitle">发布人员</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserID" runat="server" ToolTip="计划人员" Text=""
                                        ReadOnly="true"></asp:TextBox></td>
                            </tr>


                            <tr class="tablisttr">
                                <td class="tablisttitle">任务要求</td>
                                <td class="tabmanagertr" colspan="3">
                                    <div style="min-height: 50px; max-height: 100px; width: 100%; max-width:800px; overflow: auto">
                                        <asp:Label runat="server" ID="labTaskInfo"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">任务附件</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtTAddr" runat="server" ToolTip="任务附件" Text="" Width="80%"></asp:TextBox>
                                    <a href="#" onclick="SkyView('txtTAddr');">[查看]</a></td>

                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">任务责任人<span class="fStar">*</span></td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtReceiveUserName" runat="server" ToolTip="任务责任人" Text="" CssClass="1" Width="80%"></asp:TextBox>
                                    <div style="display: none">
                                        <asp:TextBox ID="txtReceiveUserID" runat="server" ToolTip="任务责任人" Text=""></asp:TextBox></div>


                                </td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">任务接收</td>
                                <td class="tabmanagertr" colspan="3" style="padding: 3px;">

                                    <div style="max-height: 56px; width: 100%; overflow: auto;">

                                        <asp:Repeater runat="server" ID="rptInfo">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="Table2">
                                            </HeaderTemplate>
                                            <ItemTemplate>

                                                <tr class="tablisttr">
                                                    <td nowrap="nowrap" align="left" class="tabmanagertr">
                                                        <span class="fontred" style="width: 80px; /*display: inline-block; */ text-align: left;"><%#Eval("UserName")%></span> 于
                    <%#UsToolsDateFormat(Eval("RDate"))%> <span class="fontblue"><%#Eval("TaskReceiveStateName")%></span>任务，接收说明：<%#Eval("RInfo")%></td>
                                                </tr>

                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </div>
                                </td>
                            </tr>





                            <tr class="tablisttr">
                                <td class="tablisttitle">任务日志</td>
                                <td class="tabmanagertr" colspan="3" style="padding: 3px;">

                                    <div style="min-height: 56px; max-height: 112px; width: 100%; overflow: auto;">

                                        <asp:Repeater runat="server" ID="rptInfo1" OnItemCommand="rptInfo1_ItemCommand">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="Table2">
                                            </HeaderTemplate>
                                            <ItemTemplate>

                                                <tr class="tablisttr">
                                                    <td nowrap="nowrap" align="left" class="tabmanagertr">
                                                        <span class="fontred" style="width: 80px; /*display: inline-block; */ text-align: left;"><%#Eval("UserName")%></span> 于
                    <%#UsToolsDateFormat(Eval("CreateDate"))%> <span class="fontblue"><%#Eval("TaskStateName")%></span>

                                                        <span style="display: <%#Eval("TaskState").ToString()==""?"":"none"%>">反馈说明：</span><%#Eval("FInfo")%>

                                                        <a href="<%#Eval("FAddr")%>" target="_blank" title="<%#Eval("FAddr")%>"><%# Eval("FAddr").ToString() == ""?"":"附件"%></a>

                                                        <span style="display: <%# UserIsAdministrator()==true?"":"none"%>">
                                                            <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%#Eval("ID")%>' CommandName="delete" OnClientClick="return window.confirm('您确实要删除此任务日志吗？');">[删除]</asp:LinkButton>
                                                        </span>
                                                    </td>
                                                </tr>

                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>

                                    </div>
                                </td>
                            </tr>

                        </table>

                        <div style="height: 10px;"></div>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="tablePF" runat="server">
                            <tr class="tablisttr">
                                <td colspan="2" class="tablisttitle">评分列表</td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">评分列表</td>
                                <td class="tabmanagertr">
                                    <div style="max-height: 112px; width: 100%; overflow: auto;">
                                        <asp:Repeater runat="server" ID="rptInfo2">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="rptInfo2">
                                            </HeaderTemplate>
                                            <ItemTemplate>

                                                <tr class="tablisttr">
                                                    <td nowrap="nowrap" align="left" class="tabmanagertr">
                                                        <span class="fontred" style="width: 60px; display: inline-block; text-align: right;"><%#Eval("UserName")%></span>：
                  
                     评分等级：<asp:DropDownList ID="drpTaskScoreGrade" runat="server" Width="100px">
                         <asp:ListItem Text="A" Value="A"></asp:ListItem>
                         <asp:ListItem Text="B" Value="B"></asp:ListItem>
                         <asp:ListItem Text="C" Value="C"></asp:ListItem>
                         <asp:ListItem Text="D" Value="D"></asp:ListItem>

                     </asp:DropDownList>
                                                        评分值：  
                                                        <asp:TextBox ID="txtScore" runat="server" Width="100px" Text='<%#Eval("Score")%>' ToolTip="jscheck" MaxLength="4"></asp:TextBox>
                                                        评分说明：<asp:TextBox ID="txtSInfo" runat="server" Width="200px" Text='<%#Eval("SInfo")%>' MaxLength="500"></asp:TextBox>

                                                        <div style="display: none;">
                                                            <asp:TextBox ID="txtUserID" runat="server" Text='<%#Eval("UserID")%>' ToolTip='<%#Eval("TaskScoreGrade")%>' Width="100px"></asp:TextBox>
                                                        </div>
                                                    </td>
                                                </tr>

                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </div>
                                </td>

                            </tr>







                        </table>
                        <div style="height: 10px;"></div>

                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="Table3">
                            <tr class="tablisttr">
                                <td colspan="2" class="tablisttitle">反馈说明<span class="fStar">*</span></td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">反馈说明</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFInfo" runat="server" ToolTip="发布日志" TextMode="MultiLine" Text="" Width="80%" Height="50px"></asp:TextBox></td>

                            </tr>


                            <tr class="tablisttr">
                                <td class="tablisttitle">上传附件</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFAddr" runat="server" ToolTip="上传附件" Text="" Width="80%"></asp:TextBox>
                                    <a href="#" onclick="SkyOpen('txtFAddr');">[选择]</a><a href="#" onclick="SkyView('txtFAddr');">[查看]</a><a href="#" onclick="SkyDelete('txtFAddr');">[清空]</a></td>

                            </tr>





                            <tr class="tablisttr">
                                <td class="tablisttitle">任务状态</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpTaskState0" ToolTip="任务状态" Enabled="false">
                                        <asp:ListItem Value="TaskState" Text="code"></asp:ListItem>
                                    </asp:DropDownList>
                                    <span class="fontred">不调整状态则不选择</span>


                                </td>

                            </tr>





                        </table>
                        <div class="divSave">
                            <asp:Button ID="btnSubmit" runat="server" Text="保存(S)"
                                CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                            <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>







    </form>
</body>
</html>
