public Report Store <T>(string reportSubject, string report, ReportStyle reportStyle, T extra, Type type, MiMFa_Accessibility accessablity = MiMFa_Accessibility.User, string creatorName = "Unknown") { Report NewReport = new Report(); NewReport.ID = ReportCounter++; NewReport.Name = reportSubject; NewReport.Type = type; NewReport.AccessDate = Default.Date; NewReport.AccessTime = Default.Time; NewReport.Accessablity = accessablity; NewReport.HTML = report; NewReport.Extra = extra; NewReport.CreatorName = creatorName; NewReport.Style = reportStyle; return(Store(NewReport)); }
public List <Report> GetReportListByAccessablity(MiMFa_Accessibility accessablity, int limit = -1, int offset = -1) { return(GetReportList(GetReportTable(" WHERE Accessablity = @Accessablity", new SQLiteParameter[] { new SQLiteParameter("@Accessablity", accessablity) }, limit, offset))); }