CompanyAddZW.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class CompanyAddZW : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["qxuname"] == null)
{
Response.Redirect("UserLogin.aspx");
}
if (Request["action"].ToString() != "add")
{
string sql;
sql = "select * from gangwei where id=" + Request.QueryString["id"].ToString().Trim();
DataSet result = new DataSet();
sqlConn conn = new sqlConn();
result = conn.hsggetdata(sql);
if (result != null)
{
this.name.Value = result.Tables[0].Rows[0]["mingcheng"].ToString();
this.number.Value = result.Tables[0].Rows[0]["renshu"].ToString();
//this.xingbie.Text = result.Tables[0].Rows[0]["xingbie"].ToString();
this.money.Value = result.Tables[0].Rows[0]["yuexin"].ToString();
this.jtyq.Value = result.Tables[0].Rows[0]["yaoqiu"].ToString();
this.fldy.Value = result.Tables[0].Rows[0]["daiyu"].ToString();
this.gwzz.Value = result.Tables[0].Rows[0]["zhizhe"].ToString();
for (int i = 0; i < sex.Items.Count; i++)
{
if (sex.Items[i].Value == result.Tables[0].Rows[0]["xingbie"].ToString())
{
sex.Items[i].Selected = true;
}
}
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Request["action"].ToString() == "add")
{
string gongsiID = Session["qxuserid"].ToString().Trim();//获取企业ID
string mingcheng = this.name.Value; //岗位名称
string renshu = this.number.Value; //招聘人数
string xiebie = this.sex.Items[sex.SelectedIndex].Value; //性别要求
string yuxin = this.money.Value;//月薪
string yaoqiu = this.jtyq.Value;//职位要求
string daiyu = this.fldy.Value;//工资待遇
string zhizhe = this.gwzz.Value;
string strsql = "";
sqlConn conn = new sqlConn();
strsql = "Insert into gangwei(gongsiID,mingcheng,renshu,xingbie,yuexin,yaoqiu,daiyu,zhizhe)values(";
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
