/// <summary> /// 添加企业文化 /// </summary> /// <param name="userinfo"></param> /// <returns></returns> public static int Addqywh(qy qywh) { sqltext = "insert into [dbo].[qywh]([Qywh],[Qywhxq]) values ('" + qywh.Qywh + "','" + qywh.Qywhxq + "')"; int i = (int)SQLHelper.ExecuteNonQuery(sqltext); return(i); }
protected void btnSubmit_Click(object sender, EventArgs e) { qy qywh = new qy(); qywh.Qywh = txttitle.Text; qywh.Qywhxq = TextBox1.Text; if (BLL.AdminManager.Addqywh(qywh) == 1) { Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript'>alert('添加成功')</script>"); txttitle.Text = ""; TextBox1.Text = ""; } else { Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript'>alert('添加失败')</script>"); } }
/// <summary> /// 添加企业文化 /// </summary> /// <param name="userinfo"></param> /// <returns></returns> public static int Addqywh(qy qywh) { return(DAL.AdminServer.Addqywh(qywh)); }