HireManage/peoplezpcx_add_add.aspx.cs
(完整代码) 2KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using qiupeng.Public;
using System.IO;
namespace qphr.HireManage
{
public partial class peoplezpcx_add_add : System.Web.UI.Page
{
Db List = new Db();
BindDrowDownList list = new BindDrowDownList();
public static string fjkey;
protected void Page_Load(object sender, EventArgs e)
{
if (this.Session["username"] == null)
{
this.Response.Write("<script language=javascript>alert('登陆超时!');window.parent.location = '../main_d.aspx'</script>");
return;
}
if (!Page.IsPostBack)
{
BindAttribute();
}
}
public void BindAttribute()
{
ZpBmName.Attributes.Add("readonly", "readonly");
Button1.Attributes["onclick"] = "javascript:return chknull();";
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql_insert = "insert into qp_hr_peoplezpcx_mx (CxGongz,Number,Title,Name,CsBothDay,JiGuan,XueLi,ZhuanYe,DianHua,Email,DiZhi,ZpBmId,ZpBmName,CxRiQi,ZhiWei,CxFanShi,CsJieGuo,BeiZhu,Username,Realname,NowTimes) values ('" + List.GetFormatStr(CxGongz.Text) + "','" + Request.QueryString["Number"] + "','','" + List.GetFormatStr(Name.Text) + "','" + List.GetFormatStr(CsBothDay.Text) + "','" + List.GetFormatStr(JiGuan.Text) + "','" + List.GetFormatStr(XueLi.Text) + "','" + List.GetFormatStr(ZhuanYe.Text) + "','" + List.GetFormatStr(DianHua.Text) + "','" + List.GetFormatStr(Email.Text) + "','" + List.GetFormatStr(DiZhi.Text) + "','" + List.GetFormatStr(ZpBmId.Text) + "','" + List.GetFormatStr(ZpBmName.Text) + "','" + List.GetFormatStr(CxRiQi.Text) + "','" + List.GetFormatStr(ZhiWei.Text) + "','" + List.GetFormatStr(CxFanShi.Text) + "','" + List.GetFormatStr(CsJieGuo.SelectedValue) + "','" + List.GetFormatStr(BeiZhu.Text) + "','" + Session["Username"] + "','" + Session["Realname"] + "','" + System.DateTime.Now.ToString() + "')";
List.ExeSql(sql_insert);
List.InsertLog("新增人员信息[" + Name.Text + "]", "招聘初选-人员信息");
this.Response.Write("<script language=javascript>alert('提交成功!');window.close()</script>");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
