<%@ 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.XDateTimePicker3.Text = DateTime.Now.ToString("yyyy-MM-dd");
              this.XDateTimePicker4.Text = DateTime.Now.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}
       .yz-textbox{display:inline;}
      </style>
    <script type="text/javascript">
        function addmulMonth(dtstr, n) {       //   n个月后
            var result = '';
            if (dtstr != null & dtstr != '') {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/OAAPIHandler.ashx'),
                    method: 'POST',
                    disableCaching: true,
                    async: false,
                    params: {
                        method: 'GetInductionDate',
                        addMonth: n,
                        date: dtstr
                    },
                    success: function (action) {                       
                        //alert(action.result.InductionDate);
                        result = action.result.InductionDate;
                    }
                })
            }            
            return result;
        }
</script>
</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="--系统自动生成--" XDataBind="DF_HR_NEWSTAFFAPP.FormNo" Value ValueToDisplayText BackColor="#8AB3DF"></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" text="姓名 " value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.AppAccount" BorderColor="#DCDCDC" BorderWidth="1" width="50%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesName" BorderColor="#DCDCDC" BorderWidth="1" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel3" runat="server" text="公司" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.CompanyID" ValueToDisplayText="TableName:V_DF_HR_OrgMaintenance_Company;FilterColumn:CompanyID;DisplayColumn:CompanyName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="210px" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" DisplayColumns="CompanyID:公司编号,;CompanyName:公司名称," DataMap="CompanyID->DF_HR_NEWSTAFFAPP.CompanyID" XDataSource="TableName:DF_HR_OrgCompany" Width="50px"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="44" class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="BU" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.BUID" ValueToDisplayText="TableName:V_DF_HR_OrgMaintenance_BU;FilterColumn:BUID;DisplayColumn:BUName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="210px" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Text="查询" DisplayColumns="BUID:BU编号,;BUName:BU名称," DataMap="BUID->DF_HR_NEWSTAFFAPP.BUID" XDataSource="TableName:DF_HR_OrgBU;Filter:CompanyID->DF_HR_NEWSTAFFAPP.CompanyID" Width="50px"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="大区" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.RegionID" ValueToDisplayText="TableName:V_DF_HR_OrgMaintenance_Region;FilterColumn:RegionID;DisplayColumn:RegionName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="210px" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="查询" DisplayColumns="RegionID:大区编号,;RegionName:大区名称," DataMap="RegionID->DF_HR_NEWSTAFFAPP.RegionID" XDataSource="TableName:DF_HR_OrgRegion;Filter:BUID->DF_HR_NEWSTAFFAPP.BUID" Width="50px"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel10" runat="server" text="部门" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesDepartmentID" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="50%" HiddenInput="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesDepartment" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="210px" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton5" runat="server" Text="查询" DisplayColumns="DepartmentName:部门名称," DataMap="DepartmentNO->DF_HR_NEWSTAFFAPP.EmployeesDepartmentID;DepartmentName->DF_HR_NEWSTAFFAPP.EmployeesDepartment" XDataSource="TableName:DF_HR_DEPARTMENTAREA" Width="50px"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="地区" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesRegionID" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="50%" HiddenInput="True" ReadOnly="True" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesRegion" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="210px" CssClass="text"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton6" runat="server" Text="查询" DisplayColumns="AreaNO:地区编号,;AreaName:地区名称," DataMap="AreaNO->DF_HR_NEWSTAFFAPP.EmployeesRegionID;AreaName->DF_HR_NEWSTAFFAPP.EmployeesRegion" XDataSource="TableName:DF_HR_AREA;Filter:BUNO->DF_HR_NEWSTAFFAPP.BUID" Width="50px"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" text="汇报对象" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.Reporter" ValueToDisplayText BackColor="White" BorderColor="#DCDCDC" BorderWidth="1" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="入职时间" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmployeesInductionDate" BorderColor="#DCDCDC" BorderWidth="1" Width="50%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="所属序列" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XCheckBox id="XCheckBox1" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.IsMarketSeries" Text="市场序列"></aspxform:XCheckBox>
                        <aspxform:XCheckBox id="XCheckBox2" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.IsSaleseries" Text="销售序列"></aspxform:XCheckBox>
                        <aspxform:XCheckBox id="XCheckBox3" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.IsManagementSeries" Text="管理序列"></aspxform:XCheckBox>
                    </td>
                    <%--<td class="td" width="62">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1">选顶替时输入</aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                    </td>--%>
                </tr>
                <tr>
                    <td height="22" class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel12" runat="server" text="试用期薪酬" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.probationSalary" BorderColor="#DCDCDC" BorderWidth="1" width="70%" Format="type:currency;.0"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="转正后薪酬" value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.PositiveWage" BorderColor="#DCDCDC" BorderWidth="1" width="70%" Format="type:currency;.0"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="编制类型" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="varCompileType" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenInput="True">bianzhileixing</aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.CompileType" DataMap="Name->DF_HR_NEWSTAFFAPP.CompileName" XDataSource="TableName:DF_HR_DataSourceList;Filter:Type->varCompileType" Width="20%" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.Other" BorderColor="#DCDCDC" BorderWidth="1" Width="20%" HiddenExpress="DF_HR_NEWSTAFFAPP.CompileType!='2'"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.CompileName" Value ValueToDisplayText BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" Width="24px"></aspxform:XTextBox>
                    </td>
                    <%--<td class="td" width="62">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1">选顶替时输入</aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 8%" class="td1">
                    </td>--%>
                </tr>
                <tr>
                    <td height="21" class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel14" runat="server" text="用工类型" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="varEmploymentTypes" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenInput="True">yonggongleixing</aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmploymentTypes" DataMap="Name->DF_HR_NEWSTAFFAPP.EmploymentName" XDataSource="TableName:DF_HR_DataSourceList;Filter:Type->varEmploymentTypes" Width="49%" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.EmploymentName" Value ValueToDisplayText BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" Width="24px"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="试用期期限" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.ProbationPeriodValue" BorderColor="#DCDCDC" BorderWidth="1" width="50%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.ProbationPeriod" DataMap="Name->DF_HR_NEWSTAFFAPP.ProbationName;value->DF_HR_NEWSTAFFAPP.ProbationPeriodValue" XDataSource="TableName:DF_HR_DataSourceList;Filter:Type->varshiyongqixian" Width="50%" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.ProbationName" Value ValueToDisplayText BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" Width="24px"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="varshiyongqixian" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenInput="True">shiyongqixian</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel15" runat="server" text="岗位名称 " value valuetodisplaytext></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.PostName" BorderColor="#DCDCDC" BorderWidth="1" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel17" runat="server" text="试用期到期日" value valuetodisplaytext width="90px"></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_HR_NEWSTAFFAPP.ProbationDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" Width="50%" DisableExpress="DF_HR_NEWSTAFFAPP.ProbationName!='不固定'" Express="if(DF_HR_NEWSTAFFAPP.EmployeesInductionDate!='',ProbationDate1,'')"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="ProbationDate1" BorderColor="#DCDCDC" BorderWidth="1" Width="50%" HiddenExpress="1" Express="javascript(&quot;addmulMonth&quot;,if(DF_HR_NEWSTAFFAPP.EmployeesInductionDate=='',ProbationDate1,DF_HR_NEWSTAFFAPP.EmployeesInductionDate),DF_HR_NEWSTAFFAPP.ProbationPeriodValue)"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <p align="center">
            <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_HR_EMPLOYEEINFORMATION_INFO.TaskID" BorderColor="#DCDCDC" BorderWidth="1" width="50px" HiddenInput="True"></aspxform:XTextBox>
            <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="varDate" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" DisplayOnly="True"></aspxform:XDateTimePicker>
        </p>
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
        </p>
        <p align="center">
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox1" ErrorMessage="请填写姓名"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="请填写公司"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox17" ErrorMessage="请填写BU"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox21" ErrorMessage="请填写部门"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker1" ErrorMessage="请填写入职时间"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker1" ErrorMessage="入职时间要大于此申请时间" ControlToCompare="XDateTimePicker4" Operator="GreaterThan"></aspxform:XCompareValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="请填写汇报对象"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox6" ErrorMessage="请填写试用期薪酬"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox7" ErrorMessage="转正后薪酬"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList2" ErrorMessage="请选择编制类型"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择用工类型"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList3" ErrorMessage="请选择试用期期限"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker2" ErrorMessage="请填写试用期到期日"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox13" ErrorMessage="请填写岗位名称 "></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
