<%@ 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)
    {
        int year = DateTime.Now.Year - 1;
        this.XDropDownList2.Items.Clear();
        for (int i = 0; i < 3; i++)
        {
            this.XDropDownList2.Items.Add(new ListItem(year.ToString()));
            year++;
        }
    }

</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 colors(color) {
            var v = XFormShell.XFormAgent.CalcExpress(color, "DF_RATING_PManage_Info.PName");
            alert(v);
            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 + 1];
            var txt = colDataRows.cells[3].firstChild;
            // var txt = colDataRows.cells[3].all.XTextBox6
            var v = txt.value;
            if (v == '数据缺失') {
                txt.style.color = 'red';

            }
        }
    
    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="458" class="logo">
                    </td>
                    <td width="344" class="biaoti">
                        <div align="center"><asp:Label id="XLabel1" runat="server" text="考核管理" font-size="40px" value valuetodisplaytext></asp:Label>
                        </div>
                    </td>
                    <td width="392" class="formno">
                        <asp:Label id="XLabel17" runat="server" text="表单号：" value valuetodisplaytext></asp:Label>
                        <aspxform:XLabel id="XLabel18" 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" text="创建用户" value valuetodisplaytext></asp:Label></td>
                    <td width="35%" class="basictextfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_RATING_PManage.CUser" ReadOnly="True" CssClass="text1" BorderColor="#DCDCDC" BorderWidth="1" Width="80%"></aspxform:XTextBox>
                    </td>
                    <td width="15%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel3" runat="server" text="创建日期" value valuetodisplaytext></asp:Label></td>
                    <td width="35%" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#E6F1F8" XDataBind="DF_RATING_PManage.Date" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="64%" 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" text="基本信息" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td width="178" height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel6" runat="server" text="考核批次" value valuetodisplaytext></asp:Label></td>
                    <td width="418" class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_RATING_PManage.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="年度" value valuetodisplaytext></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_RATING_PManage.Year" Width="64%" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="178" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel14" runat="server" text="季度" value valuetodisplaytext></asp:Label></td>
                    <td width="418" class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_RATING_PManage.Quarter" Width="64%" PromptText="--请选择--">
                            <asp:ListItem>Q1</asp:ListItem>
                            <asp:ListItem>Q2</asp:ListItem>
                            <asp:ListItem>Q3</asp:ListItem>
                            <asp:ListItem>Q4</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel7" runat="server" text="测试关闭时间" value valuetodisplaytext></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_RATING_PManage.TEndTime" BorderColor="#DCDCDC" BorderWidth="1" Width="64%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_RATING_PManage.TestCycle" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="70px" HiddenInput="True">3</aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel4" runat="server" text="考核关闭时间" value valuetodisplaytext></asp:Label></td>
                    <td class="basiclblfirst" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_RATING_PManage.PEndTime" BorderColor="#DCDCDC" BorderWidth="1" Width="64%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_RATING_PManage.RatingCycle" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="70px" HiddenInput="True">5</aspxform:XTextBox>
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_RATING_PManage.PStarTime" BorderColor="#DCDCDC" BorderWidth="1" Width="50px" HiddenExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel9" runat="server" text="员工确认时间" value valuetodisplaytext></asp:Label></td>
                    <td class="basiclblfirst3" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker6" runat="server" XDataBind="DF_RATING_PManage.ATime" BorderColor="#DCDCDC" BorderWidth="1" Width="64%" Type="TimeMinutes30"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_RATING_PManage.ComfirCycle" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="60px" HiddenInput="True">2</aspxform:XTextBox>
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" XDataBind="DF_RATING_PManage.CEndTime" BorderColor="#DCDCDC" BorderWidth="1" Width="50px" HiddenExpress="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" id="table" dynamicarea="2,1" xdatasource="TableName:V_DF_Manage;OrderBy:Expr1" datamap="DisplayName->DF_RATING_PManage_Info.Name;Account->DF_RATING_PManage_Info.Account;Expr1->DF_RATING_PManage_Info.PName;State->DF_RATING_PManage_Info.State;PostLeaveDate->PostLeaveDate">
            <tbody>
                <tr>
                    <td height="19">
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        <div align="right">
                            <div style="FLOAT: left">
                                <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Width="21px" HiddenExpress="1" MultiSelect="True" DataMap="Account->DF_RATING_PManage_Info.Account;DisplayName->DF_RATING_PManage_Info.Name;State->DF_RATING_PManage_Info.State" NavigateUrl="DFJC/Dialogs/KPIDlg.js" BrowserWindowType="AjaxPanel"></aspxform:XCustomBrowserButton>
                            </div>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="其他员工" Width="76px" MultiSelect="True" DataMap="DisplayName->DF_RATING_PManage_Info.Name;Account->DF_RATING_PManage_Info.Account;State->DF_RATING_PManage_Info.State;PostLeaveDate->PostLeaveDate" DisplayColumns="DisplayName:姓名;Account:账号;State:状态;Depart:部门" PopupWndHeight="-1" UseSubmitBehavior="False" PopupWndWidth="-1" XDataSource="TableName:V_DF_Manage;OrderBy:Account,State"></aspxform:XDataBrowserButton>
                            <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="其他员工" Width="76px" HiddenExpress="1" MultiSelect="True" DataMap="Account->DF_RATING_PManage_Info.Account;DisplayName->DF_RATING_PManage_Info.Name;State->DF_RATING_PManage_Info.State" DisplayColumns="DisplayName:姓名,;State:状态," PopupWndHeight="-1" UseSubmitBehavior="False" PopupWndWidth="-1" XDataSource="TableName:V_DF_User;BufferType:RuntimeUpdate"></aspxform:XDataBrowserButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="72" height="18" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel11" runat="server" text="序号" value valuetodisplaytext></asp:Label></td>
                    <td width="200" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel12" runat="server" text="被考核人" value valuetodisplaytext></asp:Label></td>
                    <td width="200" class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel15" runat="server" text="员工在职状态" value valuetodisplaytext></asp:Label></td>
                    <td class="tds" bgcolor="#d4e4fe">
                        <asp:Label id="XLabel16" runat="server" text="考核表名称" value valuetodisplaytext></asp:Label></td>
                    <td class="tds" bgcolor="#d4e4fe" lass="tds">
                        <asp:Label id="Label1" runat="server" text="员工转正/离职日期"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" XDataBind="varId" CssClass="text1" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_RATING_PManage_Info.Name" ReadOnly="True" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="100%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_RATING_PManage_Info.Account" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_RATING_PManage_Info.State" ReadOnly="True" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" Width="100%"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <div style="FLOAT: left">
                            <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_RATING_PManage_Info.PName" ReadOnly="True" CssClass="text" BorderColor="Gainsboro" BorderWidth="1px" Width="300px" Max="0" Min="0" HiddenInput="False" ValueToDisplayText Value></aspxform:XTextBox>
                        </div>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="选择" Width="42px" DataMap="PName->DF_RATING_PManage_Info.PName" PopupWndHeight="-1" UseSubmitBehavior="False" PopupWndWidth="-1" XDataSource="TableName:V_DF_PName"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="XTextBox2" runat="server" BorderColor="Gainsboro" BorderWidth="1px" Width="77px" Max="0" Min="0" HiddenInput="True" ValueToDisplayText Value Express="javascript('Color',varId)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" bgcolor="#d4e4fe">
                        <aspxform:XDateTimePicker id="XDateTimePicker7" runat="server" XDataBind="PostLeaveDate" BorderColor="#DCDCDC" BorderWidth="1" Width="100px" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" Operator="NotEqual" ValueToCompare="数据缺失" EnableTheming="True" ControlToValidate="XTextBox6" ErrorMessage="请选择考核表！"></aspxform:XCompareValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox7" ErrorMessage="请填写考核批次!"></aspxform:XRequiredFieldValidator>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XDropDownList2" ErrorMessage="请选择年度!" ForeColor="Red" Display="None">请选择年度!</aspxform:XRequiredFieldValidator>
                        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XDropDownList1" ErrorMessage="请选择季度!" ForeColor="Red" Display="None">请选择季度!</aspxform:XRequiredFieldValidator>
                        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XDateTimePicker4" ErrorMessage="请选择测试关闭时间!" ForeColor="Red" Display="None">请选择测试关闭时间!</aspxform:XRequiredFieldValidator>
                        &nbsp; 
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择考核关闭时间!" ForeColor="Red" Display="None">请选择考核关闭时间!</aspxform:XRequiredFieldValidator>
                        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ControlToValidate="XDateTimePicker6" ErrorMessage="请选择员工确认时间!" ForeColor="Red" Display="None">请选择员工确认时间!</aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
