示例#1
0
 public static bool tianjia(woyaozhaocaipu wycp)
 {
     SqlParameter[] parm = new SqlParameter[] {
         new SqlParameter("@Title", wycp.Title),
         new SqlParameter("@neirong", wycp.Neirong),
         new SqlParameter("@fabutupian", wycp.Fabutupian),
         new SqlParameter("@fabutime", wycp.Fabutime),
         new SqlParameter("@useid", wycp.Useid)
     };
     return(DBHelper.Excute("pro_woyaozhaocaipu_tianjia", parm));
 }
        protected void Button1_Click(object sender, EventArgs e)
        {
            woyaozhaocaipu zcp = new woyaozhaocaipu();

            zcp.Title      = this.TextBox1.Text;
            zcp.Neirong    = this.TextBox2.Text;
            zcp.Fabutime   = Convert.ToDateTime(DateTime.Now.ToLocalTime().ToString());
            zcp.Fabutupian = Session["fabutupianmingzi"].ToString();
            zcp.Useid      = int.Parse(Session["userid"].ToString());
            if (woyaozhaocaipuBLL.tianjia(zcp))
            {
                Response.Write("<script>alert('成功发送寻找菜谱')</script>");
            }
            else
            {
                Response.Write("<script>alert('发送失败!看是否填写完整')</script>");
            }
        }
示例#3
0
 public static bool tianjia(woyaozhaocaipu wycp)
 {
     return(woyaozhaocaipuDAL.tianjia(wycp));
 }