public ActionResult Edit(FormCollection collection) { string name = string.Empty; ViewBag.Query1 = string.Format("&appid={0}&tabid={1}", Request.QueryString["appid"], Request.QueryString["tabid"]); string id = Request.QueryString["id"]; string type = Request.QueryString["type"]; var model = new RoadFlow.Data.Model.QueryDesign(); Guid tid; if (id.IsGuid(out tid)) { model = queryDesign.Get(tid); } ViewBag.Connopts = conn.GetAllOptions(model.ConnectionID.ToString()); ViewBag.Tableopts = getTableOps(model.ConnectionID, model.TableName); ViewBag.type = type; return(View(model)); }
/// <summary> /// 更新 /// </summary> public int Update(RoadFlow.Data.Model.QueryDesign model) { return(queryDesign.Update(model)); }
/// <summary> /// 新增 /// </summary> public int Add(RoadFlow.Data.Model.QueryDesign model) { return(queryDesign.Add(model)); }