<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Admin_jobinfoedit, App_Web_gqabgzwv" enableEventValidation="false" %>
<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>发布招聘信息</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../Admin/css/Layer.css" rel="stylesheet" type="text/css" />
    <link href="../Common/Calendar/CalendarControl.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Common/Calendar/CalendarControl.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:auto;">
                    <table width="100%" height="94" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="right" background="images/lanmu1_nr1.jpg"><table width="671" height="94" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" background="images/lanmu_nr1.jpg"><table width="162" height="19" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td align="right" class="biaoti18">在线招聘</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="right">
                            <hr />
                               <img src="images/bu.gif" width="12" height="12">　
                                <asp:LinkButton ID="lkbtnAddNew" runat="server" OnClick="lkbtnAddNew_Click">添加新的招聘职位信息</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                    ForeColor="#333333" GridLines="None" Width="100%" OnRowDeleting="GridView1_RowDeleting" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" DataKeyNames="JobID" OnRowCommand="GridView1_RowCommand">
                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:BoundField DataField="JobCode" HeaderText="职位号">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="JobName" HeaderText="职位名称">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="JobProjectName" HeaderText="公司/项目名称">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="JobDepartmentName" HeaderText="部门名称">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="JobPersonCount" HeaderText="招聘人数">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="JobEndTime" HeaderText="到期时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:BoundField>
                                        <asp:CommandField ShowSelectButton="True">
                                            <ItemStyle HorizontalAlign="Right" />
                                        </asp:CommandField>
                                        <asp:CommandField ShowDeleteButton="True" />
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("JobID") %>'
                                                    CommandName="use">将该职位提前</asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("JobID") %>'
                                                    CommandName="pause" ><%# Eval("JobProjectKey")!=null && Eval("JobProjectKey").ToString() == "stop" ? "启用职位" : "暂停发布"%></asp:LinkButton>
                                                    
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                      <RowStyle BackColor="#D9EBFF" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#637991" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#637991" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#4A6B84" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#d9ebff">
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                           职位名称：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobName" runat="server"></asp:TextBox>
                                            <cc1:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxJobName"
                                                Display="None" ErrorMessage="职位名称不能为空" SetFocusOnError="True" ValidationGroup="job"></cc1:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            职位号：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobCode" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            公司/项目名称：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:DropDownList ID="ddlJobProject" runat="server">
                                                
                                            </asp:DropDownList>
                                           
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            工作性质：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:DropDownList ID="ddlJobNature" runat="server" Width="100px">
                                                <asp:ListItem>全职</asp:ListItem>
                                                <asp:ListItem>兼职</asp:ListItem>
                                                <asp:ListItem>临时</asp:ListItem>
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            发布时间：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobStartTime" runat="server"></asp:TextBox>
                                            <asp:ImageButton ID="imgbtnstarttime" runat="server" Height="15px" ImageUrl="~/Images/minical.gif"
                                                Width="18px" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            到期时间：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobEndTime" runat="server"></asp:TextBox>
                                            <asp:ImageButton ID="imgbtnendtime" runat="server" Height="15px" ImageUrl="~/Images/minical.gif"
                                                Width="18px" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            工作所在地：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:DropDownList ID="ddlJobCity" runat="server" Width="100px">
                                                <asp:ListItem>四川省</asp:ListItem>
                                                <asp:ListItem>北京市</asp:ListItem>
                                                <asp:ListItem>上海市</asp:ListItem>
                                                <asp:ListItem>天津市</asp:ListItem>
                                                <asp:ListItem>重庆市</asp:ListItem>
                                                <asp:ListItem>广东省</asp:ListItem>
                                                <asp:ListItem>福建省</asp:ListItem>
                                                <asp:ListItem>浙江省</asp:ListItem>
                                                <asp:ListItem>江苏省</asp:ListItem>
                                                <asp:ListItem>山东省</asp:ListItem>
                                                <asp:ListItem>山西省</asp:ListItem>
                                                <asp:ListItem>江西省</asp:ListItem>
                                                <asp:ListItem>辽宁省</asp:ListItem>
                                                <asp:ListItem>湖北省</asp:ListItem>
                                                <asp:ListItem>湖南省</asp:ListItem>
                                                <asp:ListItem>陕西省</asp:ListItem>
                                                <asp:ListItem>河北省</asp:ListItem>
                                                <asp:ListItem>河南省</asp:ListItem>
                                                <asp:ListItem>内蒙古</asp:ListItem>
                                                <asp:ListItem>吉林省</asp:ListItem>
                                                <asp:ListItem>黑龙江</asp:ListItem>
                                                <asp:ListItem>安徽省</asp:ListItem>
                                                <asp:ListItem>贵州省</asp:ListItem>
                                                <asp:ListItem>海南省</asp:ListItem>
                                                <asp:ListItem>云南省</asp:ListItem>
                                                <asp:ListItem>甘肃省</asp:ListItem>
                                                <asp:ListItem>青海省</asp:ListItem>
                                                <asp:ListItem>广西省</asp:ListItem>
                                                <asp:ListItem>西藏</asp:ListItem>
                                                <asp:ListItem>宁夏</asp:ListItem>
                                                <asp:ListItem>新疆</asp:ListItem>
                                                <asp:ListItem>香港</asp:ListItem>
                                                <asp:ListItem>澳门</asp:ListItem>
                                                <asp:ListItem>台湾</asp:ListItem>
                                                <asp:ListItem>国外</asp:ListItem>
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            招聘人数：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobPersonCount" runat="server" Width="100px" Text="1"></asp:TextBox>
                                            <cc1:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxJobPersonCount"
                                                Display="None" ErrorMessage="请输入正确的数字" SetFocusOnError="True" ValidationExpression="^[1-9][0-9]*$"
                                                ValidationGroup="job"></cc1:RegularExpressionValidator></td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            部门名称：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobDepartmentName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            电子邮件：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobEmail" runat="server" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            专业要求：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobProfession" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            工作经验：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobExperience" runat="server" Width="100px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            其他联系方式：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobOtherContact" runat="server" Width="300px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" bgcolor="#ffffff">
                                            职位描述：
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:TextBox ID="tbxJobRemark" runat="server" Rows="5" TextMode="MultiLine" Width="400px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td  bgcolor="#ffffff">
                                            
                                        </td>
                                         <td  bgcolor="#ffffff">
                                             <asp:Button ID="btnStart" Visible="false" runat="server" Text="该职位已被暂停，启用改职位" OnClick="btnStart_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#ffffff">
                                        </td>
                                        <td bgcolor="#ffffff">
                                            <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" ValidationGroup="job" />
                                            <asp:Button ID="btnUpdate" runat="server" Text="修改" OnClick="btnUpdate_Click" ValidationGroup="job" />
                                            <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
                                            <asp:HiddenField ID="hideJobID" runat="server" />
                                        
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td colspan="2" bgcolor="#ffffff">
                                            <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Blue" Visible="False">→查看应聘该职务的所有人的简历</asp:HyperLink></td>
                                    </tr>
                                </table>
                                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                                    TargetControlID="RequiredFieldValidator1">
                                </ajaxToolkit:ValidatorCalloutExtender>
                                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                                    TargetControlID="RegularExpressionValidator1">
                                </ajaxToolkit:ValidatorCalloutExtender>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
