diff --git a/server/AyaNova/DataList/EventDataList.cs b/server/AyaNova/DataList/EventDataList.cs index 018f119b..b32ed81b 100644 --- a/server/AyaNova/DataList/EventDataList.cs +++ b/server/AyaNova/DataList/EventDataList.cs @@ -36,6 +36,10 @@ namespace AyaNova.DataList cm.fld = "object"; dlistView.Add(cm); + cm = new JObject(); + cm.fld = "AyaType"; + dlistView.Add(cm); + cm = new JObject(); cm.fld = "username"; dlistView.Add(cm); @@ -66,6 +70,15 @@ namespace AyaNova.DataList SqlValueColumnName = "aevent.ayevent" }); + FieldDefinitions.Add(new AyaDataListFieldDefinition + { + TKey = "AyaType", + FieldKey = "AyaType", + UiFieldDataType = (int)UiFieldDataType.Enum, + EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()), + SqlValueColumnName = "aevent.ayatype" + }); + FieldDefinitions.Add(new AyaDataListFieldDefinition { TKey = "Object", diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index 4f0151cd..1d6ffe2b 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -22,8 +22,8 @@ namespace AyaNova.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 15; - internal const long EXPECTED_COLUMN_COUNT = 515; - internal const long EXPECTED_INDEX_COUNT = 148; + internal const long EXPECTED_COLUMN_COUNT = 538; + internal const long EXPECTED_INDEX_COUNT = 159; //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!! @@ -331,16 +331,16 @@ BEGIN when 2 then aytable = 'awidget'; when 3 then aytable = 'auser'; when 4 then return 'LT:ServerState'; - when 5 return 'LT:License'; - when 6 return 'LT:LogFile'; - when 7 return 'LT:PickListTemplate'; + when 5 then return 'LT:License'; + when 6 then return 'LT:LogFile'; + when 7 then return 'LT:PickListTemplate'; when 8 then aytable = 'acustomer'; - when 9 return 'LT:ServerJob'; + when 9 then return 'LT:ServerJob'; when 10 then aytable = 'acontract'; - when 11 return 'LT:TrialSeeder'; - when 12 return 'LT:ServerMetrics'; + when 11 then return 'LT:TrialSeeder'; + when 12 then return 'LT:ServerMetrics'; when 13 then aytable = 'atranslation'; - when 14 return 'LT:UserOptions'; + when 14 then return 'LT:UserOptions'; when 15 then aytable = 'aheadoffice'; when 16 then aytable = 'aloanunit'; when 17 then aytable = 'afileattachment'; aynamecolumn ='displayfilename'; @@ -373,18 +373,18 @@ BEGIN when 44 then aytable = 'aworkorderitemunit'; when 45 then aytable = 'aworkordertemplate'; when 46 then aytable = 'aworkordertemplateitem'; - when 47 return 'LT:GlobalOps'; - when 48 return 'LT:BizMetrics'; - when 49 return 'LT:Backup'; + when 47 then return 'LT:GlobalOps'; + when 48 then return 'LT:BizMetrics'; + when 49 then return 'LT:Backup'; when 50 then aytable = 'anotification'; - when 51 return 'LT:NotifySubscription'; + when 51 then return 'LT:NotifySubscription'; when 52 then aytable = 'areminder'; - when 53 return 'LT:UnitMeterReading'; + when 53 then return 'LT:UnitMeterReading'; when 54 then aytable = 'acustomerservicerequest'; - when 55 return 'LT:ServiceBank'; - when 56 return 'LT:OpsNotificationSettings'; + when 55 then return 'LT:ServiceBank'; + when 56 then return 'LT:OpsNotificationSettings'; when 57 then aytable = 'areport'; - when 58 return 'LT:DashBoardView'; + when 58 then return 'LT:DashBoardView'; when 59 then aytable = 'acustomernote'; when 60 then aytable = 'amemo'; when 61 then aytable = 'areview';