private void GetNewData() { string Id = this.RequestData.Get <string>("Id"); if (!string.IsNullOrEmpty(Id)) { Model.NotePad ent = Model.NotePad.Find(Id); this.PageState.Add("DataList", ent); } }
private void UpdateEvent() { string start = RequestData.Get <string>("start"); string end = RequestData.Get <string>("end"); string id = RequestData.Get <string>("id"); if (!string.IsNullOrEmpty(id)) { Model.NotePad ent = Model.NotePad.Find(id); ent.StartTime = DateTime.Parse(start); ent.EndTime = DateTime.Parse(end); ent.DoUpdate(); this.PageState.Add("state", "ture"); } }