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

    protected void Page_Load(object sender, EventArgs e)
     {
    
        this.XTextBox2.Text = DateTime.Now.Year.ToString();
     }

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

    //金额默认为0
    function txtFocus(el) {
        if (el.defaultValue == el.value) { el.value = ''; el.style.color = '#000'; }
    }


    function txtBlur(el) {
        if (el.value == '') { el.value = el.defaultValue; el.style.color = '#666'; }
    }

</script>
<body>
    <form runat="server">
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel2" runat="server" Value ValueToDisplayText text="人事分配积分奖惩表"></asp:Label>
                    </td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" Value ValueToDisplayText text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel94" BackColor="#8AB3DF" runat="server" Value ValueToDisplayText text="--系统自动生成--" XDataBind="DF_HR_PRIZEPUNISH_INFO.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel1" runat="server" Value ValueToDisplayText text="分配人姓名"></asp:Label>
                        <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText XDataBind="DF_HR_PRIZEPUNISH_INFO.AppName" BorderColor="#DCDCDC" BorderWidth="1" width="50%" CssClass="text" backColor="#e6f1f8" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" XDataBind="DF_HR_PRIZEPUNISH_INFO.AppAcount" BorderColor="Gainsboro" BorderWidth="1" width="50%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel3" runat="server" Value ValueToDisplayText text="分配日期"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_HR_PRIZEPUNISH_INFO.AppDate" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" Width="50%" BackColor="#E6F1F8"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" Value ValueToDisplayText text="积分年度"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" ValueToDisplayText XDataBind="DF_HR_PRIZEPUNISH_INFO.IntegralAnnual" BorderColor="#DCDCDC" BorderWidth="1" width="50%" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="FONT-SIZE: 14px; BORDER-TOP: #93a1ae 1px solid; FONT-FAMILY: 微软雅黑; BORDER-RIGHT: #93a1ae 1px solid; BORDER-BOTTOM: #b2bcc6 1px solid; FONT-WEIGHT: bold; BORDER-LEFT: #93a1ae 1px solid; BACKGROUND-COLOR: #c1d7ec">
                        <asp:Label id="XLabel31" runat="server" Value ValueToDisplayText text="员工信息"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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HR_PRIZEPUNISH_DETAIL.PrizePunishName;Department->DF_HR_PRIZEPUNISH_DETAIL.Department" DisplayColumns="Account:员工编号,;DisplayName:员工姓名,;Department:部门名称," XDataSource="TableName:V_DF_HR_PRIZEPUNISH_INFO_YGXX" MultiSelect="True" Text="查询"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" id="r1" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td height="18" align="center" class="tds" style="WIDTH: 50px">
                        <asp:Label id="XLabel32" runat="server" Value ValueToDisplayText text="序号"></asp:Label>
                    </td>
                    <td align="center" class="tds" style="WIDTH: 10%">
                        <div align="center">
                            <asp:Label id="XLabel33" runat="server" Value ValueToDisplayText text="员工姓名"></asp:Label>
                        </div>
                    </td>
                    <td align="center" class="tds" style="WIDTH: 15%">
                        <div align="center">
                            <asp:Label id="XLabel39" runat="server" Value ValueToDisplayText text="员工编号"></asp:Label>
                        </div>
                    </td>
                    <td align="center" class="tds" style="WIDTH: 15%">
                        <asp:Label id="XLabel38" runat="server" Value ValueToDisplayText text="部门名称"></asp:Label>
                    </td>
                    <td align="center" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 10%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel35" runat="server" Value ValueToDisplayText text="加分"></asp:Label>
                    </td>
                    <td align="center" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 10%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel5" runat="server" Value ValueToDisplayText text="减分"></asp:Label>
                    </td>
                    <td align="center" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 35%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel6" runat="server" Value ValueToDisplayText text="事由"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" BackColor="Transparent" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox5" runat="server" ValueToDisplayText XDataBind="DF_HR_PRIZEPUNISH_DETAIL.PrizePunishName" BorderColor="Gainsboro" BorderWidth="1" width="99.99%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" ValueToDisplayText XDataBind="DF_HR_PRIZEPUNISH_DETAIL.EmployeeNO" BorderColor="Gainsboro" BorderWidth="1" width="99.99%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox7" runat="server" ValueToDisplayText XDataBind="DF_HR_PRIZEPUNISH_DETAIL.Department" BorderColor="Gainsboro" BorderWidth="1" width="99.99%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox19" onfocus="txtFocus(this)" onblur="txtBlur(this)" runat="server" XDataBind="DF_HR_PRIZEPUNISH_DETAIL.BonusPoints" width="99.9%" TextAlign="Right">0</aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox3" onfocus="txtFocus(this)" onblur="txtBlur(this)" runat="server" XDataBind="DF_HR_PRIZEPUNISH_DETAIL.Points" width="99.9%" TextAlign="Right">0</aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" onfocus="txtFocus(this)" onblur="txtBlur(this)" runat="server" XDataBind="var1" width="99.9%" HiddenInput="True" TextAlign="Right" Express="DF_HR_PRIZEPUNISH_DETAIL.BonusPoints+DF_HR_PRIZEPUNISH_DETAIL.Points">0</aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox10" onfocus="txtFocus(this)" onblur="txtBlur(this)" runat="server" XDataBind="var2" width="99.9%" HiddenInput="True" TextAlign="Right">0</aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_HR_PRIZEPUNISH_DETAIL.Teason" width="99.9%" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
        </p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ControlToValidate="XTextBox5" ErrorMessage="请选择员工姓名"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox19" ErrorMessage="如不需要加分请填写0分"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XTextBox3" ErrorMessage="如不需要减分请填写0分" EnableViewState="False"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ControlToValidate="XTextBox10" ErrorMessage="加减分不能同时为0" ValueToCompareExpress="var1" Operator="NotEqual"></aspxform:XCompareValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </form>
</body>
</html>
