public JsonResult UpdateCooperation(string id, string description, int result) { CooperationService cs = new CooperationService(); var res = cs.UpdateCooperation(id, description, result); return(Json(res)); }
public ActionResult SubmitCooperation(Cooperation entity) { var result = new OpResult(); var userId = CurrentMember.MemberId.ToString(); result = new CooperationService().SubmitCooperation(entity, userId); return(Json(result)); }
public ActionResult Cooperation() { var coopSvc = new CooperationService(); var result = coopSvc.FindByCustomerId(CurrentMember.MemberId.ToString()); if (result.Status != 0) { result = new Cooperation(); } return(View(result)); }
public ActionResult CooperationCheck(string id) { Cooperation cooper = new CooperationService().GetCooperationByWhere(a => a.Id.Equals(id) && a.IsDeleted != 1); if (cooper != null) { var customer = new FCake.Bll.CustomersService().GetById(cooper.CustomerId); cooper.CustomerId = customer.Mobile; return(View(cooper)); } return(View()); }
public ActionResult SubmitCooperation(Cooperation entity) { var result = new OpResult(); //result.Successed = false; //string par = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"; //Regex regex = new Regex(par); //Match match = regex.Match(entity.Email); //if (!match.Success) //{ // result.Message = "请输入正确的邮箱"; // return new JsonNetResult(result); //} //if (new Regex(@"^1[3|5|7|8|][0-9]{9}$").IsMatch(entity.Phone) == false) //{ // result.Message = "请输入正确的手机号!"; // return new JsonNetResult(result); //} result = new CooperationService().SubmitCooperation(entity, CurrentMember.MemberId.ToString()); return(new JsonNetResult(result)); }