<%@ page language="C#" autoeventwireup="true" inherits="WebManage_Collection_Company, ZhaoPinXiTong" enableEventValidation="false" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>采集企业</title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="stylesheet" type="text/css" href="../Css/Other.css">
		<script language="javascript" src="../CScript/Pub_Date.js"></script>
		<script language="javascript">
		    //以XML求取ddl_JobTypeSub的数据
		    function XmlPost_JobTypeSub(obj) {
		        var svalue = obj.value;
		        var webFileUrl = "?jobtypeid=" + svalue;
		        var result = "";
		        var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
		        xmlHttp.open("POST", webFileUrl, false);
		        xmlHttp.send("");
		        result = xmlHttp.responseText;
		        if (result != "") {
		            document.all("ddl_JobTypeSub").length = 0;
		            var piArray = result.split(",");
		            for (var i = 0; i < piArray.length; i++) {
		                var ary = piArray[i].toString().split("|");
		                document.all("ddl_JobTypeSub").options.add(new Option(ary[1].toString(), ary[0].toString()));
		            }
		            document.all("hid_JobTypeSub").value = document.all("ddl_JobTypeSub").options[document.all("ddl_JobTypeSub").selectedIndex].value;
		        }
		        else {
		            alert(result);
		        }
		    }
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="PADDING-RIGHT:5px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="5" height="24" background="../Images/WebOffices/Right1_bg.jpg"></td>
											<td background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-LEFT:8px;PADDING-TOP:2px"><font color="#ffffff"><b>采集企业</b></font></td>
											<td width="200" align="right" background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-RIGHT:8px"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="4"></td>
							</tr>
						</table>
						<!--页面主体-->
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
							
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 企业ID：</td>
								<td><asp:TextBox Runat=server ID="txt_IDMin" Width="102"></asp:TextBox>
									-
									<asp:TextBox Runat=server ID="txt_IDMax" Width="100"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_IDMin" ControlToValidate="txt_IDMin" Display="Dynamic" ErrorMessage="<br>请输入数据源内企业起始ID" />
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_IDMax" ControlToValidate="txt_IDMax" Display="Dynamic" ErrorMessage="<br>请输入数据源内企业截止ID" />
									<asp:RegularExpressionValidator Runat=server ID="rev_IDMin" ControlToValidate="txt_IDMin" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>起始ID只限数字！" />
									<asp:RegularExpressionValidator Runat=server ID="rev_IDMax" ControlToValidate="txt_IDMax" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>截止ID只限数字！" />
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 职位类别：</td>
								<td><asp:DropDownList Runat=server ID="ddl_JobType" Width="220"></asp:DropDownList><br>
									<asp:DropDownList Runat=server ID="ddl_JobTypeSub" Width="220"></asp:DropDownList>
									<input type="hidden" Runat=server id="hid_JobTypeSub" NAME="hid_JobTypeSub">
									<asp:RangeValidator Runat=server ID="rav_JobType" ControlToValidate="ddl_JobType" MinimumValue="1001"
										MaximumValue="9999" Display="Dynamic" ErrorMessage="<br>请选择保存采集来的职位类别！"></asp:RangeValidator>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:20px">关键字：</td>
								<td><asp:TextBox Runat=server ID="txt_Key" Width="220" /></td>
							</tr>
						</table>
						<TABLE cellSpacing="1" cellPadding="4" width="100%" bgColor="#ffffff" border="0">
							<TR bgColor="#ffffff">
								<TD style="PADDING-LEFT: 20px" width="100" height="25">&nbsp;</TD>
								<TD><asp:Button id="btn_Submit" Runat=server Text="开始采集" OnClick="btn_Submit_Click"></asp:Button>
									<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
							</TR>
						</TABLE>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
							<tr bgcolor="#ffffff">
								<td style="PADDING-LEFT:20px"><font color="#777777">操作说明：<br>
										① 企业ID为数据源内企业的ID范围，ID范围不能大于100；<br>
										② 输入关键字，表示所采集的企业内必须含有该关键字； </font>
								</td>
							</tr>
						</table>
						<!--主体结束-->
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

