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


<!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" type="text/javascript">
       KindEditor.ready(function (K) {
           K.create('#txtPInfo,#txtPUserInfo');
       });
    </script>
    <script language="javascript" type="text/javascript">
        function opJsTreeUser(txt, txtValue) {
            var para = "/admin/basic/usertreeselect.aspx?para=2&list=" + $("#" + txtValue).val() + "&PostID=&DeptID=";
            CareffArtOpen4(para, '人员选择', 300, 650, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];


            });
        }

        function jscheckAll() {
            var sValue = $("#drpPlanState").val();
            if (sValue == "1") {
                //return window.confirm("当您提交计划状态为[提交审核]状态，您将无法修改和调整审核状态，是否要继续吗？");

                var info = "";
                info = "当您提交计划状态为[提交审核]状态，您将无法修改和调整审核状态，是否要继续吗？";

                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;

            }






            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" onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">计划编号<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtPlanID" runat="server" ToolTip="计划编号" Text="" CssClass="1"></asp:TextBox></td>
                                <td class="tablisttitle">计划名称<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtPlanName" runat="server" ToolTip="计划名称" Text="" CssClass="1"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">计划状态<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpPlanState" ToolTip="计划状态">
                                        <asp:ListItem Value="PlanState" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">计划类型</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpPlanType" ToolTip="计划类型">
                                        <asp:ListItem Value="PlanType" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">计划部门</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtDeptID" runat="server" ToolTip="计划部门" Text=""
                                        Enabled="False"></asp:TextBox></td>
                                <td class="tablisttitle">计划人员</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserID" runat="server" ToolTip="计划人员" Text=""
                                        Enabled="False"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">计划信息</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtPInfo" runat="server" ToolTip="计划信息" Text="" Width="100%" TextMode="MultiLine" Height="200px"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">附件地址</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtPAddr" runat="server" ToolTip="附件地址" Text=""></asp:TextBox><a href="#" onclick="SkyOpen('txtPAddr');">[选择]</a><a href="#" onclick="SkyView('txtPAddr');">[查看]</a></td>
                                <td class="tablisttitle">时间段</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpDateID" ToolTip="时间段"></asp:DropDownList></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">完成情况</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtPUserInfo" runat="server" ToolTip="个人说明" Text="" Width="100%" TextMode="MultiLine" Height="200px" ></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">审核人员<span class="fStar">*</span></td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtPSHUser" runat="server" ToolTip="审核人员" Text="" CssClass="1" Width="80%"></asp:TextBox>
                                    <div style="display: none">
                                        <asp:TextBox ID="txtPSHUserID" runat="server" ToolTip="审核人员" Text=""></asp:TextBox></div>


                                    <a href="javascript:opJsTreeUser('txtPSHUser','txtPSHUserID');">[选择]</a></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>
        </div>
    </form>
</body>
</html>
