![]() | RemReportRepDeletedDoc Method |
Namespace: Paperwork.Connect
public rRepDeletedDoc RepDeletedDoc( bool onlyParams, DateTime beginDate, DateTime endDate, string deleter, string storageId, string typeName, string formatId, int pageIndex )
public void RepDeletedDoc() { p.rReport.RepDeletedDoc(false,beginDate.HasValue?beginDate.Value:default(DateTime),endDate.HasValue?endDate.Value:default(DateTime),loginName,storageId,docType,format,pageIndex,((s,e) => { try { foreach (rRepDeletedDocItem row in e.Result.Items) Result.Add(new DeletedResult() { DelDate = row.DelDate == null ? (DateTime?)null : row.DelDate, Deleter = row.UserName, ObjectName = row.ObjectName, Storage = row.StorageId, DocType = row.TypeTitle, DocFormat = row.FormatId, ContentSize = row.ContentSize, ObjectId = row.ObjectId }); this.PageCount = Result.Count == 0 ? 1 : (TotalRecCount / Result.Count); this.Size = DBUtil.dbStr(e.Result.TotalSize); this.TotalRecCount = DBUtil.dbInt(e.Result.TotalItems); dSet = e.Result; } }