public ActionResult RePushFail() { try { HONEYPOT hp = new HONEYPOT(); hp.ID = Guid.NewGuid().ToString(); hp.IP = IPNet.GetIP4Address(); hp.PUSHDATE = DateTime.Now; hp.SLBH = "重推错误"; hp.STEPNAME = "重推错误"; BDCDA_DAL.Insert_HONEYPOT(hp); return(Json(true)); } catch (Exception ex) { //return this.Content(ex.Message); return(Json(new BDCFilterResult { IsSuccess = false, Message = ex.Message })); } }
public ActionResult PushDA(PageParams p) { try { if (p.PrjId.Length < 12 || p.PrjId.Contains("-")) { HONEYPOT hp = new HONEYPOT(); hp.ID = Guid.NewGuid().ToString(); hp.IP = IPNet.GetIP4Address(); hp.PUSHDATE = DateTime.Now; hp.SLBH = p.PrjId; hp.STEPNAME = "重推房产"; BDCDA_DAL.Insert_HONEYPOT(hp); return(Json(new BDCFilterResult { IsSuccess = false, Message = "受理编号错误,请重新填写" })); } else { p.UserId = FCDA_BLL.GetUserID(p.PrjId.Trim());//"guidangren"; BDCFilterResult res = FCDA_BLL.Insert_FCDA(p); //return this.Content(message); return(Json(res)); } } catch (Exception ex) { //return this.Content(ex.Message); return(Json(new BDCFilterResult { IsSuccess = false, Message = ex.Message })); } }
public ActionResult PushARCH(PageParams p) { //try //{ // HONEYPOT hp = new HONEYPOT(); // hp.ID = Guid.NewGuid().ToString(); // hp.IP = IPNet.GetIP4Address(); // hp.PUSHDATE = DateTime.Now; // hp.SLBH = p.PrjId; // hp.STEPNAME = "重推档案"; // BDCDA_DAL.Insert_HONEYPOT(hp); // return Json(true); //} //catch (Exception ex) //{ // //return this.Content(ex.Message); // return Json(new BDCFilterResult // { // IsSuccess = false, // Message = ex.Message // }); //} try { if (p.PrjId.Length < 12) { HONEYPOT hp = new HONEYPOT(); hp.ID = Guid.NewGuid().ToString(); hp.IP = IPNet.GetIP4Address(); hp.PUSHDATE = DateTime.Now; hp.SLBH = p.PrjId; hp.STEPNAME = "重推房产"; BDCDA_DAL.Insert_HONEYPOT(hp); return(Json(new BDCFilterResult { IsSuccess = false, Message = "受理编号错误,请重新填写" })); } else { PageParams param = new Web4BDC.Models.PageParams(); param.PrjId = p.PrjId.Trim(); //param.UserId = FCDA_BLL.GetUserID(p.PrjId.Trim());//"guidangren"; BDCFilterResult res = FCDA_BLL.Insert_ARCH(param); //return this.Content(message); return(Json(res.IsSuccess)); } } catch (Exception ex) { //return this.Content(ex.Message); return(Json(new BDCFilterResult { IsSuccess = false, Message = ex.Message })); } }