public ActionResult Index(FormCollection form) { string NodeCode = form["NodeCode"]; string NodeName = form["NodeName"]; Vnet_ReginfoCollection daReginfoColl = new Vnet_ReginfoCollection(); daReginfoColl.ChangePage = this.ChangePage(); daReginfoColl.ListByNodeCodeAndNodeName(NodeCode, NodeName); return(ListViewResult(daReginfoColl, ValueFormat)); }
public ActionResult GetNodeId(int?nodeId) { Vnet_ReginfoCollection daReginfoColl = new Vnet_ReginfoCollection(); string likeValue = Request.Form["q"].Safe().ToString().Trim(); daReginfoColl.ChangePage = this.ChangePage(1, 20); daReginfoColl.ListByLikeValue(likeValue.Length > 0 ? null : nodeId, likeValue); var arrayList = ToArrayList(daReginfoColl.DataTable); return(Json(arrayList)); }