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


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <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>
     <%=ImportScriptStr %>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />

    <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" type="text/javascript">

         function SaveToShow(info,data)
         {
             art.dialog.data("retndata", data);
             art.dialog.alert(info, function () { art.dialog.close(); });
            
         }



         function jscheckAll() {
             var idlist = "";
             var bIsOK = true;
             $("#grvInfo input[type='text']").each(function (i) {

                 var sValue = $(this).val();
                 if (!isNaN(sValue)) {
                     idlist += $(this).attr("class") + "-" + $(this).attr("title") + "-" + sValue + ";";
                     $(this).css("background", "#ffffff");


                     if (parseInt(sValue) > 100)
                     {
                         alert("岗位分值权重必须设置成数字，而且不能大于100！");
                         bIsOK = false;
                         $(this).focus();
                         $(this).css("background", "#ff0000");
                         return false;
                     }
                 }
                 else
                 {
                     alert("岗位分值权重必须设置，而且必须是数字！" );
                     bIsOK = false;
                     $(this).focus();
                     $(this).css("background", "#ff0000");
                     return false;
                 }


             });

             if(!bIsOK)
             {
                 return false;
             }


             $("#txtPostID").val(idlist);
             //alert(idlist);
             if (idlist == "") {
                 alert("对不起，您必须输入全部的分值才可以提交！");
                 return false;
             }
             else {
                 return true;
             }
         }



    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
        <div class="divTbg">
            <div class="divTbgL"></div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">岗位分值权重</div>
            </div>
        </div>
        <div class="divTbgF"></div>

        <div class="divInfo">
            <div class="divInfoblack">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <div class="navtitle">
                            岗位分值权重列表
                        </div>
                    </div>
                    <div class="listRight">
                    </div>
                </div>
            </div>
        </div>
        <div class="divInfo">
            <div class="divInfoContext">
                <asp:GridView ID="grvInfo" runat="server" BorderStyle="None" CellPadding="0"
                    CellSpacing="1" GridLines="None" EnableViewState="true"
                    Width="100%" CssClass="tablist" HorizontalAlign="Center"
                    AutoGenerateColumns="False" EnableModelValidation="True">
                    <Columns>
                        <asp:BoundField DataField="postid" HeaderText="岗位编号"/>
                        <asp:BoundField DataField="postname" HeaderText="岗位名称" />
                        
                    </Columns>
                    <RowStyle CssClass="tablisttr" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="tablisttitle" HorizontalAlign="Center"></HeaderStyle>

                </asp:GridView>
            </div>

        </div>
        <div class="divInfo" style=" display:none;">
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" OnPageChanged="Pager_PageChanged"
                ShowCustomInfoSection="Left" ShowPageIndexBox="Always" ShowPageIndex="False"
                CustomInfoHTML="共 <B>%PageCount%</B> 页，当前为第 <B>%CurrentPageIndex%</B> 页，每页 <B>%PageSize%</B> 条"
                SubmitButtonText="" FirstPageText="首页" LastPageText="尾页"
                LayoutType="Table" NextPageText="后一页" PrevPageText="前一页" ShowMoreButtons="False"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"
                CustomInfoTextAlign="Left" HorizontalAlign="Right">
            </webdiyer:AspNetPager>
        </div>
         <div class="divInfo">
            <span class="usHelpMessage"> * 注意事项：  1、可以设置不同岗位评价不同岗位的时候，指标的分值比例不同；需要乘以这个数然后乘以100；
               <br/>&nbsp;&nbsp;2、比如设置成100的话，对于指标最大值相当于乘以100在除以100，相当于没有变化；如果设置成70，相当于70%；
                <br/>&nbsp;&nbsp;3、系统按行显示为这个岗位评价其他岗位的时候，这个指标的分值比例；
      </span>  
              </div>

         <div class="divSave">
              <div style="display:none;">
             <asp:TextBox ID="txtPostID" runat="server" CssClass="1" ToolTip="岗位指标分值" Text="1"></asp:TextBox> </div>     


             <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>
    </form>
</body>
</html>
