/// <summary> /// 根据条件查询回复信息 /// </summary> /// <param name="demandType">查询类型(实体类中的所有属性选其一)</param> /// <param name="demandContent">查询参数(要查询的条件参数)</param> /// <returns></returns> public static Reply GetReplyByConn(string demandType, string demandContent) { Reply obj = Reply_Service.GetReplyByConn(demandType, demandContent); obj.GetComment = Comment_Manager.GetCommentByConn("Com_No", obj.Com_No + "")[0]; return(obj); }
/// <summary> /// 获取全部回复信息 /// </summary> /// <returns></returns> public static List <Reply> GetAllReply() { List <Reply> list = new List <Reply>(); foreach (Reply obj in Reply_Service.GetAllReply()) { obj.GetComment = Comment_Manager.GetCommentByConn("Com_No", obj.Com_No + "")[0]; list.Add(obj); } return(list); }