<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="Stylesheet" type="text/css" />
    <title>BPM Form</title> <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana;background-color: #e9f0f6;}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    </style>
    <script type="text/javascript">
    function getvl(name) {
            var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
            if (reg.test(location.href))
                return unescape(RegExp.$2.replace(/\+/g, " "));
            return "";
        };
     function IsEdit(id) {
        var state = getvl("formstate");
         if(id==userToken.Account||state =="Edit")
           return 1;

          return 2;

        }


    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="424" class="logo">
                    </td>
                    <td width="378" class="biaoti">
                        <div align="center"><asp:Label id="XLabel1" runat="server" text="考核打分" valuetodisplaytext value font-size="40px"></asp:Label>
                        </div>
                    </td>
                    <td width="392" class="formno">
                        <asp:Label id="XLabel9" runat="server" text="表单号：" valuetodisplaytext value></asp:Label>
                        <aspxform:XLabel id="XLabel10" runat="server" text="Label" ValueToDisplayText Value XDataBind="DF_RATING_SCORE.FormNo" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="15%" height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel2" runat="server" text="创建用户" valuetodisplaytext value></asp:Label></td>
                    <td width="35%" class="basictextfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_RATING_SCORE.CUser" BackColor="#E6F1F8" ReadOnly="True" CssClass="text1" BorderColor="#DCDCDC" BorderWidth="1" width="60%"></aspxform:XTextBox>
                    </td>
                    <td width="15%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel3" runat="server" text="创建日期" valuetodisplaytext value></asp:Label></td>
                    <td width="35%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_RATING_SCORE.CDate" BackColor="#E6F1F8" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" Width="60%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" bgcolor="#d4e4fe" colspan="4">
                        <asp:Label id="XLabel5" runat="server" text="基本信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td width="178" height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel6" runat="server" text="考核批次" valuetodisplaytext value></asp:Label></td>
                    <td width="418" class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_RATING_SCORE.PBatch" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="60%"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel13" runat="server" text="被考核人" valuetodisplaytext value></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_RATING_SCORE.Name" BorderColor="#DCDCDC" BorderWidth="1" width="60%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" ValueToDisplayText Value XDataBind="DF_RATING_SCORE.Account" BorderColor="Gainsboro" BorderWidth="1px" width="81px" Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="178" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel14" runat="server" text="考核表名称" valuetodisplaytext value></asp:Label></td>
                    <td width="418" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_RATING_SCORE.PName" BorderColor="#DCDCDC" BorderWidth="1" width="60%"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td width="69" height="15" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel11" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                    <td width="247" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel18" runat="server" text="考核指标" valuetodisplaytext value></asp:Label></td>
                    <td width="504" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel15" runat="server" text="指标描述" valuetodisplaytext value></asp:Label></td>
                    <td width="143" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel19" runat="server" text="考核权重" valuetodisplaytext value></asp:Label></td>
                    <td width="124" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel22" runat="server" text="打分人" valuetodisplaytext value></asp:Label></td>
                    <td width="102" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel21" runat="server" text="打分" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td  class="tds1"  style="background-color:#d4e4fe;height:85px;">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" CssClass="text1" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1"  style="background-color:#d4e4fe;height:60px;">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_RATING_SCORE_KPI.KPI" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="100%" DisableBehavior="ReadOnly" TextMode="MultiLine" Height="85px"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox5" runat="server" ValueToDisplayText Value XDataBind="DF_RATING_SCORE_KPI.KPIDes" BackColor="#E6F1F8" CssClass="text" BorderColor="Gainsboro" BorderWidth="1px" width="100%" Max="0" Min="0" DisableBehavior="ReadOnly" HiddenInput="False" TextMode="MultiLine" Height="85px"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_RATING_SCORE_KPI.Weight" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="100%"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_RATING_SCORE_KPI.Name" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="100%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_RATING_SCORE_KPI.Account" BorderColor="#DCDCDC" BorderWidth="1" width="100%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds2" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_RATING_SCORE_KPI.Score" BorderColor="#DCDCDC" BorderWidth="1" width="100%" DisableExpress="javascript('IsEdit',DF_RATING_SCORE_KPI.Account)==2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="15" bgcolor="#d4e4fe" colspan="4">
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <p align="center">
                            <asp:Label id="XLabel23" runat="server" text="小计" valuetodisplaytext value></asp:Label>
                        </p>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_RATING_SCORE.Total" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Express="sum(DF_RATING_SCORE_KPI.Score)"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td width="72" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel4" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                    <td width="148" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel7" runat="server" text="打分人" valuetodisplaytext value></asp:Label></td>
                    <td width="974" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel8" runat="server" text="评语" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" BackColor="Transparent" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center"></aspxform:XGridLineNo>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_RATING_SCORE_COM.Name" BackColor="#E6F1F8" CssClass="text1" BorderColor="#DCDCDC" BorderWidth="1" width="100%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_RATING_SCORE_COM.Account" BorderColor="#DCDCDC" BorderWidth="1" width="100%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_RATING_SCORE_COM.Comment" BorderColor="#DCDCDC" BorderWidth="1" width="100%" TextMode="MultiLine" DisableExpress="javascript('IsEdit',DF_RATING_SCORE_COM.Account)==2"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server"></aspxform:XProcessButtonList>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress="javascript('IsEdit',DF_RATING_SCORE_KPI.Account)==2" ControlToValidate="XTextBox10" ErrorMessage="请打分!" ValidationGroup="Score"></aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" DisableExpress="DF_RATING_SCORE.PState!='正式'||javascript('IsEdit',DF_RATING_SCORE_KPI.Account)==2" ControlToValidate="XTextBox6" ErrorMessage="请填写评语！" ValidationGroup="Score"></aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="800" border="0" cellspacing="0" cellpadding="0" hiddenexpress="1==1">
            <tbody>
                <tr>
                    <td width="800">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_RATING_SCORE.TestCyc" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_RATING_SCORE.PCyc" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_RATING_SCORE.PState" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_RATING_SCORE.TEndTime" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_RATING_SCORE.PEndTime" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_RATING_SCORE.CEndTime" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_RATING_SCORE.ComCyc" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
