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



<!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('#txtEvalInfo');
       });
    </script>

    <script language="javascript" type="text/javascript">
        function opJsTree(txt, txtValue) {
            var EAppType = $("#" + "drpEAppType").val();
            var para = "/admin/basic/userposttreeselect.aspx?para=" + EAppType + "&list=" + $("#" + txtValue).val();
            CareffArtOpen4(para, '岗位选择', 300, 500, 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 CareffModalDialogEVL1() {
            var s1, s2;
            s1 = "R";
            s2 = $id("txtEValue").value;
            var arg, url, res;
            //组装URL
            url = "/admin/advanced/evaluationdetailedit.aspx" + "?ShowType=" + s1 + "&DefaultValue=" + escape(s2);
          

            CareffArtOpen4(url, '指标分值', 700, 320, function (path) {
                //alert(path);
                $id("txtEValue").value = path;

            });

            return false;
        }



        function CareffModalDialogPost1() {
            var EPPowerState = $("#" + "drpEPPowerState").val();
            if (EPPowerState == "0") {
                CareffModalDialogPost();
            }
            else {
                alert("必须启用岗位分值后，此功能才能生效！");
            }
        }

        



        $(document).ready(function () {
            $("#drpEAppType").change(function () {
                //$(this).css("background-color", "#FFFFCC");
                //alert($("#drpEAppType").val());

                $("#txtPostName").val("");
                $("#txtPostID").val("");
            });
        });


        function CareffModalDialogPost() {
            var s1, s2;
            s1 = $("#txtEvalID").val();
            var arg, url, res;

            //组装URL
            url = "/admin/advanced/evaluationpostdetaillist.aspx" + "?EvalID=" + s1;
           

            CareffArtOpen4(url, '岗位分值权重', 800, 500, function (path) {
                //alert(path);
                //$("#txtEValue").val(path);
                $id("txtEPPowerInfo").value = path;
                $id("txtEPPowerInfo").title = path;

            });



            //res = ModalDialog(url, para);
            //if (res != "") {
            //    $id("txtEPPowerInfo").value = res;
            //    $id("txtEPPowerInfo").title = res;
            //}
            return false;
        }


        function CareffCopyPost()
        {
            var s1, s2;
            s1 = '<% =sIDW %>';
            if(s1=="")
            {
                alert("新建的指标需要先保存后，才能进行岗位指标复制！");
                return false;
            }
            var arg, url, res;

            //组装URL
            url = "/admin/advanced/evaluationpostdetailcopy.aspx" + "?id=" + s1;
            CareffArtOpenB3(url);
            return false;
        }

    </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="txtEvalID" runat="server" ToolTip="指标编号" Text="" CssClass="1"></asp:TextBox></td>
                                <td class="tablisttitle">考核内容<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEvalName" runat="server" ToolTip="考核内容" Text="" CssClass="1"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">显示类型</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpEType" ToolTip="显示类型">
                                        <asp:ListItem Value="EType" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">默认数据</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEValue" runat="server" ToolTip="默认数据" Text="10" CssClass="1" Style="width: 120px;"></asp:TextBox>
                                    <input type="button" name="btnEdit" value="编辑" onclick="return CareffModalDialogEVL1();" id="btnEdit" class="SkyButtonFocus" />
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">显示顺序<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtShowID" runat="server" ToolTip="显示顺序" Text="0" CssClass="2"></asp:TextBox></td>
                                <td class="tablisttitle">指标权重<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEPower" runat="server" ToolTip="指标权重" Text="100" CssClass="17"></asp:TextBox>%(对权重的缩放)</td>
                            </tr>
                            <tr class="tablisttr" style="display:none;" >
                                <td class="tablisttitle">启用岗位分值</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpEPPowerState" ToolTip="启用岗位分值">
                                        <asp:ListItem Value="CodeState" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>(按岗位缩放分值)</td>
                                <td class="tablisttitle">岗位分值权重</td>
                                <td class="tabmanagertr">
                                    <div style=" display:none">
                                    <asp:TextBox ID="txtEPPowerInfo" runat="server" ToolTip="岗位分值权重备注" Text="" Style="width: 120px;"></asp:TextBox>
                                    </div>
                                    <input type="button" name="btnEdit" value="编辑" onclick="return CareffModalDialogPost1();" id="btnEdit1" class="SkyButtonFocus" />(按岗位缩放权重)


                                   
                                    <a   href="javascript:void(0);" onclick="return CareffCopyPost();">[岗位分值复制]</a>


                                </td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">权重<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEMaxValue" runat="server" ToolTip="权重" Text="10" CssClass="17"></asp:TextBox>(相当于指标的分值)</td>
                                <td class="tablisttitle">最小分值<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEMinValue" runat="server" ToolTip="最小分值" Text="0" CssClass="17" ></asp:TextBox >  <%--CssClass="2"--%></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">指标大类<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpBigID" ToolTip="指标大类"
                                        AutoPostBack="True" OnSelectedIndexChanged="drpBigID_SelectedIndexChanged">
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">指标小类<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpSmallID" ToolTip="指标小类">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">指标类型<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpEIType" ToolTip="指标类型">
                                        <asp:ListItem Value="EIType" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>(自评功能专用)</td>
                                <td class="tablisttitle">满分分值</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtEIMax" runat="server" ToolTip="满分分值" Text="100"></asp:TextBox>(自评功能专用)</td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">指标状态</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpEState" ToolTip="指标状态">
                                        <asp:ListItem Value="CodeState" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>(暂未开启本功能)</td>
                                <td class="tablisttitle">指标应用类型</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpEAppType" ToolTip="应用类型">
                                        <asp:ListItem Value="EAppType" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>(类型不同功能不能)</td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">考核岗位<br/>部门使用</td>
                                <td class="tabmanagertr" colspan="3">

                                    <asp:TextBox ID="txtPostName" runat="server" ToolTip="名称" Text="" Width="90%"></asp:TextBox>
                                    <a href="javascript:opJsTree('txtPostName','txtPostID');">[选择]</a>

                                    <div style="display: none;">
                                        <asp:TextBox ID="txtPostID" runat="server" ToolTip="编号" Text=""></asp:TextBox>
                                    </div>
                                    <br />
                                    如果全部岗位(部门)都用，可以什么都不选择即可，这样你可以动态继续增加岗位(部门)而不用修改此指标；
                                    如果指标只针对特定的岗位(部门)使用，请选择特定的岗位(部门)即可，这样当评价这个岗位(部门)的时候，这个指标才显示；
                                    评价其他的岗位(部门)的时候，该指标将不显示；<span class="usHelpMessage">此处受指标应用类型的限制；</span>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">指标备注</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtEvalInfo" runat="server" ToolTip="指标备注" Text="" TextMode="MultiLine" Height="120px" Width="100%" ></asp:TextBox></td>
                            </tr>

                             <tr class="tablisttr">
                                <td class="tablisttitle">页面说明</td>
                                <td class="tabmanagertr" colspan="3"><span class="usHelpMessage"> * 注意事项： 
                              
                            1、自评指标(自评可用，互评时自动从数据库取值)，互评指标，部门指标(评价部门可用，互评时自动从数据库取值)；<br/>
2、默认数据，是当指标显示为单选按钮，下来列表的时候显示的内容，最多可以设置10项，超过10项请使用文本输入；<br/>
3、指标权重和岗位分值权重都是对权重（指标分值）进行缩放处理的方式，岗位分值权重设置更精细；<br/>
                                    4、指标权重是对权重和最小分值的缩放，也对评价指标进行自动的缩放；<br/>
                                    5、指标权重和岗位指标权重两者不能同时启用，开启了岗位指标权重后指标权重缩放功能将关闭；



                                                                     </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>
