<%@ 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.XTextBox6.Text = DateTime.Now.Year.ToString();
        DateTime dt=DateTime.Now;
        this.XDateTimePicker1.Text = dt.AddMonths(-dt.Month + 1).AddDays(-dt.Day+1).ToString("yyyy-MM-dd");
        this.XDateTimePicker2.Text = dt.AddMonths(-dt.Month + 12).AddDays(-dt.Day+31).ToString("yyyy-MM-dd");
    
     }

</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>
<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">
                        <aspxform:XLabel id="XLabel93" runat="server" text="表单号：" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel94" runat="server" text="--系统自动生成--" ValueToDisplayText Value XDataBind="DF_HR_NEWSTAFFAPP.FormNo"></aspxform:XLabel>
                    </td>--%>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td width="62" class="td">
                        <asp:Label id="XLabel1" runat="server" Value ValueToDisplayText text="员工姓名 "></asp:Label>
                        <aspxform:XTextBox id="XTextBox6" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_INTEGRALDISTRIBUTION.years" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox5" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_INTEGRALDISTRIBUTION.EmployeeNames" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <div style="FLOAT: left">
                            <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" BorderColor="#DCDCDC" BorderWidth="1" width="100px" XDataBind="DF_HR_INTEGRALDISTRIBUTION.EmployeeName" BackColor="#E6F1F8"></aspxform:XTextBox>
                        </div>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" Width="50px" XDataSource="TableName:V_DF_HRIntegralDistribution_BMJL" DataMap="DisplayName->DF_HR_INTEGRALDISTRIBUTION.EmployeeNames;Department->DF_HR_INTEGRALDISTRIBUTION.DepartmentName;Region->DF_HR_INTEGRALDISTRIBUTION.AreaName;UserAccount->DF_HR_INTEGRALDISTRIBUTION.EmployeeName" DisplayColumns="Department:部门名称,;Region:地区名称,;DisplayName:姓名,"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="62" class="td">
                        <asp:Label id="XLabel3" runat="server" Value ValueToDisplayText text="部门"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_INTEGRALDISTRIBUTION.DepartmentName" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="62" class="td">
                        <asp:Label id="XLabel6" runat="server" Value ValueToDisplayText text="地区名称"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_INTEGRALDISTRIBUTION.AreaName" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="62" class="td">
                        <asp:Label id="XLabel11" runat="server" Value ValueToDisplayText text="可用积分"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="50%" XDataBind="DF_HR_INTEGRALDISTRIBUTION.AvailableIntegral"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="62" class="td">
                        <asp:Label id="XLabel5" runat="server" Value ValueToDisplayText text="起始日期"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_HR_INTEGRALDISTRIBUTION.StartDate" BackColor="#E6F1F8" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td width="62" class="td">
                        <asp:Label id="XLabel4" runat="server" Value ValueToDisplayText text="结束日期"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_HR_INTEGRALDISTRIBUTION.EndDate" BackColor="#E6F1F8" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td width="62" class="td">
                        <asp:Label id="XLabel7" runat="server" Value ValueToDisplayText text="积分申请日期" Width="83px"></asp:Label>
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_HR_INTEGRALDISTRIBUTION.AppDate" BackColor="#E6F1F8" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td width="62" class="td">
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                    </td>
                </tr>
            </tbody>
        </table>
       <%-- <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="800">
                        <p>
                            <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                        </p>
                    </td>
                </tr>
            </tbody>
        </table>--%>
        <p align="center">
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ControlToValidate="XTextBox1" ErrorMessage="请填写员工姓名 "></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox3" ErrorMessage="请填写可用积分"></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
