예제 #1
0
파일: AdminServer.cs 프로젝트: orxie/Wcry
        /// <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);
        }
예제 #2
0
파일: qywh.aspx.cs 프로젝트: orxie/Wcry
    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>");
        }
    }
예제 #3
0
 /// <summary>
 /// 添加企业文化
 /// </summary>
 /// <param name="userinfo"></param>
 /// <returns></returns>
 public static int Addqywh(qy qywh)
 {
     return(DAL.AdminServer.Addqywh(qywh));
 }