/// <summary> /// 定制信息填写列表 /// </summary> /// <returns></returns> public JsonResult post_make() { jk_name = Gain_Session_Name(); str = "JK_Name='" + jk_name + "'"; id = BLL.Member.Select_Id(str); string name, phone, theme ,time= ""; int number; name=Tool.GetSafeSqlandHtml( Request["name"]); phone =Tool.GetSafeSqlandHtml( Request["phone"]); theme =Tool.GetSafeSqlandHtml( Request["time"]); time = Tool.GetSafeSqlandHtml( Request["theme"]); number =Convert.ToInt32( Tool.GetSafeSqlandHtml( Request["number"])); Model.Cstomization cstomization = new Model.Cstomization() {JK_Cstomation_Date=time,JK_Cstomization_DateTime=DateTime.Now,JK_Cstomization_Context=theme,JK_Cstomization_Number=number,JK_Cstomzatio_Phone=phone,JK_Cstomziation_Name=name,JK_Cstomization_Member_Id=id }; reuslt = BLL.Cstomization.Add(cstomization); if (reuslt>=1) { msg="Success"; return Json(msg); } msg = "Defeated"; return Json(msg); }
/// <summary> ///定制信息提交 /// </summary> /// <returns></returns> public ActionResult Post_list() { id=Select_Member_id(); string name, content, phone,date,msg = "" ; int number; int result; name=Tool.GetSafeSqlandHtml( Request["name"]); content =Tool.GetSafeSqlandHtml( Request["content"]); phone = Tool.GetSafeSqlandHtml( Request["phone"]); date =Tool.GetSafeSqlandHtml( Request["datatime"]); number =Convert.ToInt32( Tool.GetSafeSqlandHtml( Request["number"])); Model.Cstomization cstomization = new Model.Cstomization(){JK_Cstomziation_Name=name,JK_Cstomzatio_Phone=phone,JK_Cstomization_DateTime=DateTime.Now,JK_Cstomization_Number=number,JK_Cstomization_Member_Id=id,JK_Cstomation_Date=date}; result= BLL.Cstomization.Add(cstomization); if (result>=1) { msg = "Success"; return Json(msg); } msg = "Defeated"; return Json(msg); }