//提交回复 private void DoRepply() { string ReplyId = RequestData.Get("ReplyId") + ""; string Content = RequestData.Get("Content") + ""; string NikeName = RequestData.Get("NikeName") + ""; var Ent = EmpVoiceAnswerInfo.Find(ReplyId); if (Ent != null) { EmpVoiceAnswerInfo SubEnt = new EmpVoiceAnswerInfo(); SubEnt.ParentId = Ent.Id; SubEnt.Answer = Content; SubEnt.NikeName = NikeName; SubEnt.CreateId = UserInfo.UserID; SubEnt.DoCreate(); Ent.ReplyCount = Ent.ReplyCount.GetValueOrDefault() + 1; if (!string.IsNullOrEmpty(Ent.NoReaderItem)) { Ent.NoReaderItem += "," + SubEnt.Id; } Ent.DoUpdate(); this.PageState.Add("AnserId", SubEnt.Id); } }
private void DoSelect() { if (op != "c" && op != "cs") { if (!String.IsNullOrEmpty(id)) { ent = EmpVoiceAnswerInfo.Find(id); } this.SetFormData(ent); } }