diff --git a/server/AyaNova/biz/BizObjectFactory.cs b/server/AyaNova/biz/BizObjectFactory.cs index bdefec69..2efec0f0 100644 --- a/server/AyaNova/biz/BizObjectFactory.cs +++ b/server/AyaNova/biz/BizObjectFactory.cs @@ -33,7 +33,7 @@ namespace AyaNova.Biz case AyaType.DataListSavedFilter: return new DataListSavedFilterBiz(ct, userId, translationId, roles); case AyaType.FormCustom: - return new FormCustomBiz(ct, userId, translationId, roles); + return new FormCustomBiz(ct, userId, translationId, roles); case AyaType.FileAttachment: return new AttachmentBiz(ct, userId, roles); case AyaType.Customer: @@ -147,8 +147,8 @@ namespace AyaNova.Biz return new TaskGroupBiz(ct, userId, translationId, roles); case AyaType.UnitMeterReading: return new UnitMeterReadingBiz(ct, userId, translationId, roles); - - + case AyaType.Report: + return new ReportBiz(ct, userId, translationId, roles); default: throw new System.NotSupportedException($"AyaNova.BLL.BizObjectFactory::GetBizObject type {ayaType.ToString()} is not supported"); } diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index aab898ca..9c5f251b 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -14,7 +14,7 @@ using System; namespace AyaNova.Biz { - internal class ReportBiz : BizObject, ISearchAbleObject + internal class ReportBiz : BizObject, IJobObject, ISearchAbleObject { internal ReportBiz(AyContext dbcontext, long currentUserId, long userTranslationId, AuthorizationRoles UserRoles) {