public JsonResult Delete(int id) { bool res = FlowProjectService.DeleteById(id); if (res) { FlowViewService.DeleteByWhere(" ProjectId='" + id + "'"); } var result = res ? SuccessTip("删除成功") : ErrorTip("删除失败"); return(Json(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(ScadaFlowProjectModel model) { var newmodel = FlowProjectService.GetById(model.Id); newmodel.UpdateTime = DateTime.Now; newmodel.UpdateUserId = Operator.UserId; newmodel.CreateTime = DateTime.Now; newmodel.CreateUserId = Operator.UserId; newmodel.Title = model.Title; var result = FlowProjectService.UpdateById(newmodel) ? SuccessTip("修改成功") : ErrorTip("修改失败"); return(Json(result)); }
public ActionResult Edit(int id) { var model = FlowProjectService.GetById(id); return(View(model)); }
public JsonResult List(ScadaFlowProjectModel model, PageInfo pageInfo) { var result = FlowProjectService.GetListByFilter(model, pageInfo); return(Json(result, JsonRequestBehavior.AllowGet)); }