<%@ 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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 20px">
                        <asp:Label id="XLabel2" runat="server" value valuetodisplaytext text="手工调整"></asp:Label></td>
                    <td class="formno">
                        &nbsp;</td>
                </tr>
            </tbody>
        </table>
        <p>
        </p>
        <p>
        </p>
        <table width="840" align="center" class="table">
            <tbody>
                <tr>
                    <td width="90" height="23" class="basiclblfirst">
                        <asp:Label id="Label1" runat="server" value valuetodisplaytext text="调整类型"></asp:Label></td>
                    <td width="326" class="basictextfirst">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.OperaType" XDataSource Width="100px" PromptText="--请选择--">
                            <asp:ListItem>补款</asp:ListItem>
                            <asp:ListItem>扣款</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="90" height="23" class="basiclblfirst">
                    </td>
                    <td width="326" class="basictextfirst">
                    </td>
                </tr>
                <tr>
                    <td width="90" height="23" class="basiclblfirst">
                        <asp:Label id="XLabel13" runat="server" value valuetodisplaytext text="年月"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="state1" XDataSource="DataSource:SWMDB;TableName:V_DF_SWM_SalaryAccountApp;Filter:YearsMonth->SWMDB:DF_SWM_YJ_OtherAmount.YearMonth,state1->1" HiddenExpress="1" PrintOut="False" ValueColumn="FormState" DisplayColumn="FormState"></aspxform:XDropDownList>
                    </td>
                    <td width="326" class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.YearMonth" BorderColor="#DCDCDC" BorderWidth="1" width="200px"></aspxform:XTextBox>
                        <asp:Label id="Label2" runat="server" text="(6位数字，例如：201801)" forecolor="Blue"></asp:Label>
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.Account" BorderColor="#DCDCDC" BorderWidth="1" width="10px" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="varState" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express="if(state1=='',0,state1)"></aspxform:XTextBox>
                    </td>
                    <td width="90" class="basiclblfirst3">
                        <asp:Label id="XLabel1" runat="server" value valuetodisplaytext text="员工姓名"></asp:Label></td>
                    <td width="326" class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.Name" Width="200px" DisableBehavior="ReadOnly" ReadOnly="True" CssClass="text" ValueToDisplayText BackColor="#E6F1F8" DisableCssClass="1"></aspxform:XTextBox>
                        &nbsp;<aspxform:XSelectUserButton id="XSelectUserButton1" runat="server" Width="21px" DataMap="Account->SWMDB:DF_SWM_YJ_OtherAmount.Account;DisplayName->SWMDB:DF_SWM_YJ_OtherAmount.Name"></aspxform:XSelectUserButton>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst">
                        <asp:Label id="XLabel3" runat="server" value valuetodisplaytext text="金额"></asp:Label></td>
                    <td class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.Amount" BorderColor="#DCDCDC" BorderWidth="1" width="200px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="varAmount" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True">0</aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3">
                        <asp:Label id="XLabel4" runat="server" value valuetodisplaytext text="备注"></asp:Label></td>
                    <td class="basictextfirst3">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="SWMDB:DF_SWM_YJ_OtherAmount.Remark" BorderColor="#DCDCDC" BorderWidth="1" width="200px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <aspxform:XRequiredFieldValidator id="xrfv1" runat="server" ValidationGroup="submit" Display="None" ErrorMessage="请选择调整类型" ForeColor="Red" ControlToValidate="XDropDownList2">请选择调整类型</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="xrfv2" runat="server" ValidationGroup="submit" Display="None" ErrorMessage="请输入年月！" ForeColor="Red" ControlToValidate="XTextBox2">请输入年月！</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRegularExpressionValidator id="XRegularExpressionValidator1" ValidationGroup="submit" runat="server" ControlToValidate="XTextBox2" ErrorMessage="输入年月格式不正确" Display="None" ValidationExpression="\d{4}((0([1-9]))|(1(0|1|2)))">输入年月格式不正确</aspxform:XRegularExpressionValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="submit" Display="None" ErrorMessage="请输入金额" ForeColor="Red" ControlToValidate="XTextBox4">请输入金额</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XCompareValidator id="xcv2" runat="server" ValidationGroup="submit" Display="None" ErrorMessage="金额必须大于0" ForeColor="Red" ControlToValidate="XTextBox4" ControlToCompare="XTextBox3" Operator="GreaterThan" Type="Double" ValueToCompareExpress="varAmount">金额必须大于0</aspxform:XCompareValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="submit" ErrorMessage="请选择员工" ForeColor="Red" ControlToValidate="XTextBox1">请选择员工</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValidationGroup="submit" Display="None" ErrorMessage="当前年月薪酬岗已完成工资计算,不允许此操作！" ForeColor="Red" ControlToValidate="XTextBox7" ValueToCompareExpress="varAmount">当前年月薪酬岗已完成工资计算,不允许此操作！</aspxform:XCompareValidator>
        </p>
    </form>
</body>
</html>
