![]() | RemReportRepAttorney Method |
Namespace: Paperwork.Connect
public rRepAttorney RepAttorney( int active, int begiRec, int endRec )
public void RepAttorney(string state, int pageIndex) { int beginRec = (PageSize * (pageIndex - 1)); int endRec = PageSize * (pageIndex); this.PageIndex = pageIndex; p.rReport.RepAttorney(Convert.ToInt32(state), beginRec, endRec, (s, e) => { foreach (rRepAttorneyItem row in e.Result.Items) Result.Add(new AttorneyResult() { LastDate = row.LastDate == null ? "" : Convert.ToDateTime(row.LastDate).ToString("dd'/'MM'/'yyyy").Equals("31/12/9999") ? "" : Convert.ToDateTime(row.LastDate).ToString("dd'/'MM'/'yyyy"), DelDate = row.DeleteDate }); } }