<%@ 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.XDateTimePicker2.Text =DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddMonths(1).ToShortDateString();  //获取下个月的当前时间
    
      //this.XDateTimePicker2.Text =DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddMonths(-1).ToShortDateString();   获取上个月的当前时间
    
      }

</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}
    .yz-inp-cnt {display:inline;}
    .yz-textbox{display:inline;}
    </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" text="员工主动离职申请单 "></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" text="--系统自动生成--" BackColor="#8AB3DF" ValueToDisplayText Value XDataBind="DF_HR_LEAVEJOBAPP.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel1" runat="server" text="个人信息  "></asp:Label>
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.AppDate" HiddenInput="True" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel3" runat="server" text="姓名"></asp:Label>
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.PositiveType" HiddenInput="True" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.AppNames" HiddenInput="True" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" ValueToDisplayText="TableName:V_DF_HR_Users;FilterColumn:Account;DisplayColumn:DisplayName" XDataBind="DF_HR_LEAVEJOBAPP.AppName" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%" ReadOnly="True" backColor="#e6f1f8" DataMap="DisplayName->DF_HR_LEAVEJOBAPP.AppNames;Sex->DF_HR_LEAVEJOBAPP.Sex;Department->DF_HR_LEAVEJOBAPP.AppDepartment;PostName->DF_HR_LEAVEJOBAPP.AppJobs"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="性别" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.Sex" RepeatDirection="Horizontal" DisableExpress="1">
                            <asp:ListItem Value="男">男</asp:ListItem>
                            <asp:ListItem Value="女">女</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="部门"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.AppDepartment" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%" ReadOnly="True" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="原所任岗位"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.AppJobs" CssClass="text" BorderColor="#DCDCDC" BorderWidth="1" width="50%" ReadOnly="True" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="离职后联系电话"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.Phone" BorderColor="#DCDCDC" BorderWidth="1" width="50%"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">

                            <asp:Label id="XLabel14" runat="server" text="离职时间"></asp:Label>
                            <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.CorrectDepartureDate" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XDateTimePicker>
                     
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.DepartureDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='本部门经理审批'&amp;&amp;Global.StepName!='人事部经理审批'&amp;&amp;Global.StepName!='经理确认工作交接'" Express="DF_HR_LEAVEJOBAPP.CorrectDepartureDate" Width="50%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr hiddenexpress="Global.StepName!='本部门经理审批'&amp;&amp;Global.StepName!='人事部经理审批'&amp;&amp;Global.StepName!='经理确认工作交接'">
                    <td width="62" class="td">
                        <asp:Label id="XLabel7" runat="server" text="工资发放截止日期" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.PayrollDeadline" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                    <td width="62" class="td">
                    </td>
                    <td class="td1" style="WIDTH: 8%">
                    </td>
                </tr>
                <tr hiddenexpress="Global.StepName!='本部门经理审批'&amp;&amp;Global.StepName!='人事部经理审批'&amp;&amp;Global.StepName!='经理确认工作交接'">
                    <td width="62" class="td">
                        <asp:Label id="XLabel8" runat="server" text="补偿金－免税" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.SurrenderTaxfree" BorderColor="#DCDCDC" BorderWidth="1" width="50%" DisableExpress="Global.StepName!='人事部经理审批'"></aspxform:XTextBox>
                    </td>
                    <td width="62" class="td">
                        <asp:Label id="XLabel9" runat="server" text="补偿金－缴税" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 8%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.SurrenderTaxes" BorderColor="#DCDCDC" BorderWidth="1" width="50%" DisableExpress="Global.StepName!='人事部经理审批'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel15" runat="server" text="离职原因"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_HR_LEAVEJOBAPP.LeavingQeason" BorderColor="#DCDCDC" BorderWidth="1" width="100%" TextMode="MultiLine" Rows="6"></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>
        <p align="center">
            &nbsp;&nbsp;
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox7" ErrorMessage="请填写离职后联系电话"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XDateTimePicker1" ErrorMessage="请填写离职时间"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<aspxform:XCompareValidator id="XCompareValidator7" runat="server" DisableExpress="DF_HR_LEAVEJOBAPP.PositiveType==''" ControlToValidate="XDateTimePicker1" ErrorMessage="离职申请必须提前30天" Operator="GreaterThanEqual" ControlToCompare="XDateTimePicker2"></aspxform:XCompareValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XTextBox9" ErrorMessage="请填写离职原因"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XDateTimePicker3" ErrorMessage="请填写工资发放截止日期" ValidationGroup="b"></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
