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

    // Insert page code here
    //
    
    void Page_Load(object sender, EventArgs e) {
        /*this.XTextBox16.Text = Request.QueryString["pbatch"];
        this.XTextBox16.Value = Request.QueryString["pbatch"];
        this.XTextBox18.Text = Request.QueryString["mid"];
        this.XTextBox18.Value = Request.QueryString["mid"];*/
    
    }

</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 language="javascript">
function colors(color){
    var v = XFormShell.XFormAgent.CalcExpress(color, "DF_RATING_PManage_Info.PName");
    if(v=='数据缺失')
    {
    color.style.color="red";
    }
}
function Color(n)
{
    var oTable = document.getElementById('table'); //获取表格的ID
    var oTbody = oTable.tBodies[0]; //获取表格的tbody
    var colDataRows = oTbody.rows[n];
    // var txt=colDataRows.cells[8].firstChild;//考核岗位
    // var txt = colDataRows.cells[8].all.XTextBox6
    var txt=agent.Eles[colDataRows.cells[7].children[0].getAttribute("xform_xele_index")].getValue();
        //for (var i = 2; i < oTable.rows.length - 1; i++) {    //遍历Table的所有Row //遍历Row中的每一列
        //    var str =agent.Eles[tableObj.rows[i].cells[8].children[0].getAttribute("xform_xele_index")].getValue();
        //}
    var v = txt;
    //agent.Eles[document.getElementById("XTextBox1")].style.color = "red";

     if(v=='数据缺失')
  //  if (v == 'TEST-软件技术')
        {
       // colDataRows.cells[7].children[0].getAttribute("xform_xele_index").style.color = 'red';
        }
    }

    function GetDate(tdays) {
        if (tdays != "") {
            YZSoft.Ajax.request({
                url: YZSoft.$url('Oimec/ApiServices/KPIAPIHandler.ashx'),
                method: 'POST',
                params: {
                    method: 'UserDataProvider',
                    td: tdays
                },
                success: function (action) {
                    var result = action.result;
                    var a = result.date;
                    return a;
                },
                failure: function (action) {
                    alert(action.result.errorMessage);

                }
            });
        }
    }
</script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="291" class="logo">
                    </td>
                    <td width="628" class="biaoti">
                        <div align="center"><asp:Label id="XLabel1" runat="server" font-size="40px" value valuetodisplaytext text="考核指标打分人确认"></asp:Label>
                        </div>
                    </td>
                    <td width="275" class="formno">
                        <asp:Label id="XLabel13" runat="server" value valuetodisplaytext text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel6" runat="server" Value ValueToDisplayText text="Label" XDataBind="DF_RATING_PManage.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" value valuetodisplaytext text="创建用户"></asp:Label></td>
                    <td width="35%" class="basictextfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_RATING_PManage.CUser" BackColor="#E6F1F8" width="60%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="15%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel3" runat="server" value valuetodisplaytext text="创建日期"></asp:Label></td>
                    <td width="35%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_RATING_PManage.Date" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="60%" DisplayOnly="True"></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" value valuetodisplaytext text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="178" height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel4" runat="server" value valuetodisplaytext text="考核批次"></asp:Label></td>
                    <td width="418" class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_RATING_PManage.PBatch" width="60%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel7" runat="server" value valuetodisplaytext text="年度"></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_RATING_PManage.Year" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td width="178" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel14" runat="server" value valuetodisplaytext text="季度"></asp:Label></td>
                    <td width="418" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_RATING_PManage.Quarter" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel8" runat="server" value valuetodisplaytext text="测试关闭时间"></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker7" runat="server" XDataBind="DF_RATING_PManage.TEndTime" BorderWidth="1" BorderColor="#DCDCDC" Width="60%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_RATING_PManage.TestCycle" width="50px" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" HiddenExpress="1">3</aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                    </td>
                </tr>
                <tr>
                    <td height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel9" runat="server" value valuetodisplaytext text="考核关闭时间"></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_RATING_PManage.PStarTime" BorderWidth="1" BorderColor="#DCDCDC" Width="60px" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_RATING_PManage.PEndTime" BorderWidth="1" BorderColor="#DCDCDC" Width="60%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_RATING_PManage.RatingCycle" width="50px" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" HiddenExpress="1">5</aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel23" runat="server" value valuetodisplaytext text="员工确认时间"></asp:Label></td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" XDataBind="DF_RATING_PManage.CEndTime" BorderWidth="1" BorderColor="#DCDCDC" Width="60px" HiddenExpress="1"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker6" runat="server" XDataBind="DF_RATING_PManage.ATime" BorderWidth="1" BorderColor="#DCDCDC" Width="60%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_RATING_PManage.ComfirCycle" width="50px" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" HiddenExpress="1">2</aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" id="table" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td width="63" height="15" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel11" runat="server" value valuetodisplaytext text="序号"></asp:Label></td>
                    <td width="112" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel17" runat="server" value valuetodisplaytext text="考核批次"></asp:Label></td>
                    <td width="136" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel16" runat="server" value valuetodisplaytext text="考核表名称"></asp:Label></td>
                    <td width="69" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel12" runat="server" value valuetodisplaytext text="被考核人"></asp:Label></td>
                    <td width="180" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel18" runat="server" value valuetodisplaytext text="考核指标"></asp:Label></td>
                    <td width="324" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel15" runat="server" value valuetodisplaytext text="指标描述"></asp:Label></td>
                    <td width="79" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel19" runat="server" value valuetodisplaytext text="考核权重"></asp:Label></td>
                    <%--   <td class="tds" bgcolor="#d4e4fe" width="79">
                        <asp:Label id="XLabel20" runat="server" text="打分类别" ValueToDisplayText Value></asp:Label>
                    </td>--%> 
                    <td width="89" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel21" runat="server" value valuetodisplaytext text="考核岗位"></asp:Label></td>
                    <td width="50" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel22" runat="server" value valuetodisplaytext text="打分人"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="varId" BackColor="Transparent" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text1" Width="100%" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.PBatch" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.PName" width="100%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.Name" width="100%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.Account" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.KPI" width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox5" runat="server" Value ValueToDisplayText XDataBind="DF_RATING_CONFIRM_INFO.KPIDesc" width="100%" BorderWidth="1px" BorderColor="Gainsboro" CssClass="text" Max="0" Min="0" HiddenInput="False" TextMode="MultiLine" Height="35px"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.KPIWeight" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <%--  <td class="tds1" bgcolor="#d4e4fe">
                    </td>--%> 
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.Position" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tds2" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.GName" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" Value ValueToDisplayText width="77px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="True" Express="javascript('Color',varId)"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.GAccount" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_RATING_CONFIRM_INFO.Type" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200">
            <tbody>
                <tr>
                    <td width="1200">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValueToCompare="数据缺失" Operator="NotEqual" ValidationGroup="FQ" ControlToValidate="XTextBox10" ErrorMessage="请检查打分人！"></aspxform:XCompareValidator>
    </form>
</body>
</html>
