<%@ 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)
     {
        string taskid = Request.QueryString["taskid"];
    
        this.XTextBox5.Text = taskid;
       this.XDateTimePicker6.Text = DateTime.Now.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}
     .yz-inp-cnt{display:inline;}
    </style>
    <script type="text/javascript">

        function addmulMonth(dtstr, n) {       //   n个月后

            var s = dtstr.split("-");
            var yy = parseInt(s[0]);
            var mm = parseFloat(s[1]) - 1;
            var dd = parseFloat(s[2]) - 1;
            var dt = new Date(yy, mm, dd);
            var newtimems = dt.getFullYear() + n;
            dt.setFullYear(newtimems);
            return dt;
        }
</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="新员工合同签订表 " valuetodisplaytext value></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" text="表单号：" valuetodisplaytext value></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" text="--系统自动生成--" BackColor="#8AB3DF" XDataBind="DF_HR_EMPLOYEECONTRACT.FormNo" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel1" runat="server" text="姓名 " valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.GYTaskID" ValueToDisplayText="TableName:V_DF_HR_EMPLOYEEINFORMATIONTaskID;FilterColumn:TaskID;DisplayColumn:TaskID" ReadOnly="True" HiddenInput="true" DataMap="Name->DF_HR_EMPLOYEECONTRACT.EmployeesNames;Department->DF_HR_EMPLOYEECONTRACT.EmployeesDepartment;Region->DF_HR_EMPLOYEECONTRACT.EmployeesRegion;InductionDate->DF_HR_EMPLOYEECONTRACT.EmployeesInductionDate;Email->DF_HR_EMPLOYEECONTRACT.YGEmail;Account->DF_HR_EMPLOYEECONTRACT.EmployeesName;BUName->DF_HR_EMPLOYEECONTRACT.EmployeesBU" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.YGEmail" ValueToDisplayText ReadOnly="True" HiddenInput="True" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesNames" ValueToDisplayText ReadOnly="True" HiddenInput="True" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesName" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" ReadOnly="True" width="70%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel3" runat="server" text="部门" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesDepartment" ReadOnly="True" width="70%" BorderWidth="1" BorderColor="#DCDCDC" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="BU" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesBU" ValueToDisplayText="TableName:DF_HR_OrgBU;FilterColumn:BUID;DisplayColumn:BUName" ReadOnly="True" width="70%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" text="地区" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesRegion" ReadOnly="True" width="70%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="入职时间" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.EmployeesInductionDate" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8" Width="49%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel12" runat="server" text="合同期限" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.ContractDeadlineValue" ReadOnly="True" HiddenInput="True" width="100%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.ContractDeadline" DataMap="value->DF_HR_EMPLOYEECONTRACT.ContractDeadlineValue" Width="50%" XDataSource="TableName:V_DF_HR_DataSourceList_hetongqixian" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="39" class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="合同起始时间" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.ContractSigningDate" BorderWidth="1" BorderColor="#DCDCDC" Width="49%"></aspxform:XDateTimePicker>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="合同到期日" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" BackColor="#E6F1F8" XDataBind="DF_HR_EMPLOYEECONTRACT.ContractDueDate" BorderWidth="1" BorderColor="#DCDCDC" Width="50%" DisplayOnly="True" Express="if(DF_HR_EMPLOYEECONTRACT.ContractSigningDate!='',ProbationDate1,'')"></aspxform:XDateTimePicker>
                        <aspxform:XDateTimePicker id="XDateTimePicker6" runat="server" XDataBind="ProbationDate1" BorderWidth="1" BorderColor="#DCDCDC" Width="50%" Express="javascript(&quot;addmulMonth&quot;,if(DF_HR_EMPLOYEECONTRACT.ContractSigningDate=='',ProbationDate1,DF_HR_EMPLOYEECONTRACT.ContractSigningDate),DF_HR_EMPLOYEECONTRACT.ContractDeadlineValue)" HiddenExpress="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" text="合同收到日期(*)" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.ContractReceivedDate" BorderWidth="1" BorderColor="#DCDCDC" Width="49%"></aspxform:XDateTimePicker>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="是否收到入职登记表(*)" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.WhetherOrNot" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="发起人" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.AppName" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" ReadOnly="True" width="70%" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8"></aspxform:XTextBox>
                    </td>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel15" runat="server" text="发起时间" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.AppDate" BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" backColor="#e6f1f8" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="WIDTH: 10%">
                        <asp:Label id="XLabel14" runat="server" text="类型" valuetodisplaytext value></asp:Label></td>
                    <td class="td1" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_HR_EMPLOYEECONTRACT.Type" RepeatDirection="Horizontal" DisableExpress="1">
                            <asp:ListItem>续签</asp:ListItem>
                            <asp:ListItem Selected="True">新员工</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="td">
                    </td>
                    <td class="td1">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
        </p>
        <p align="center">
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ErrorMessage="请填写合同期限" ControlToValidate="XDropDownList1"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ErrorMessage="请填写合同起始时间" ControlToValidate="XDateTimePicker2"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ErrorMessage="请填写合同收到日期" ControlToValidate="XDateTimePicker3" ValidationGroup="HuiTian"></aspxform:XRequiredFieldValidator>
            &nbsp;&nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ErrorMessage="请填写是否收到入职登记表" ControlToValidate="XRadioButtonList2" ValidationGroup="HuiTian"></aspxform:XRequiredFieldValidator>
        </p>
    </form>
</body>
</html>
