private void AddReadRecord(string nid) { IList all = ZEX2.Init().GetAll("e1=" + nid + " and e2=" + this.Uid, null); if (all.Count == 0) { ZEX2Info zEX2Info = new ZEX2Info(); zEX2Info.e1 = Convert.ToInt32(nid); zEX2Info.e2 = Convert.ToInt32(this.Uid); zEX2Info.e10 = DateTime.Now; zEX2Info.e5 = this.RealName; zEX2Info.e6 = this.DepName; ZEX2.Init().Add(zEX2Info); } }
private DataSet GetReadList(string nid) { IList all = ZEX2.Init().GetAll("e1=" + nid, null); IList allNewsUser = this.GetAllNewsUser(nid); foreach (object current in allNewsUser) { Sys_UserInfo sys_UserInfo = current as Sys_UserInfo; sys_UserInfo.et4 = ""; foreach (object current2 in all) { ZEX2Info zEX2Info = current2 as ZEX2Info; if (sys_UserInfo.id == zEX2Info.e2) { sys_UserInfo.et3 = 1; sys_UserInfo.et4 = Utils.ConvertDate3(zEX2Info.e10); } } } IList <Sys_UserInfo> list = (List <Sys_UserInfo>)allNewsUser; return(Utils.ConvertListToDataSet <Sys_UserInfo>(list)); }