ListFormSeeder_Intranet Seeder
This commit is contained in:
parent
7b77bc976b
commit
40a459fefb
1 changed files with 24 additions and 17 deletions
|
|
@ -13,8 +13,6 @@ using Volo.Abp.Data;
|
||||||
using Volo.Abp.DependencyInjection;
|
using Volo.Abp.DependencyInjection;
|
||||||
using Volo.Abp.Domain.Repositories;
|
using Volo.Abp.Domain.Repositories;
|
||||||
using Volo.Abp.Identity;
|
using Volo.Abp.Identity;
|
||||||
using Volo.Abp.TenantManagement;
|
|
||||||
using AbpIdentity = Kurs.Platform.Data.Seeds.SeedConsts.AbpIdentity;
|
|
||||||
using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes;
|
using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes;
|
||||||
using static Kurs.Platform.PlatformConsts;
|
using static Kurs.Platform.PlatformConsts;
|
||||||
using static Kurs.Platform.PlatformSeeder.SeederDefaults;
|
using static Kurs.Platform.PlatformSeeder.SeederDefaults;
|
||||||
|
|
@ -125,7 +123,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
Width = 250,
|
Width = 500,
|
||||||
ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -223,7 +221,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
Width = 250,
|
Width = 500,
|
||||||
ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -281,7 +279,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
{
|
{
|
||||||
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Event, Width = 650, Height = 550 },
|
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Event, Width = 500, Height = 400 },
|
||||||
AllowDeleting = true,
|
AllowDeleting = true,
|
||||||
AllowAdding = true,
|
AllowAdding = true,
|
||||||
AllowUpdating = true,
|
AllowUpdating = true,
|
||||||
|
|
@ -428,7 +426,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Description",
|
FieldName = "Description",
|
||||||
Width = 400,
|
Width = 500,
|
||||||
ListOrderNo = 6,
|
ListOrderNo = 6,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -453,7 +451,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
DataSourceType = UiLookupDataSourceTypeEnum.Query,
|
DataSourceType = UiLookupDataSourceTypeEnum.Query,
|
||||||
DisplayExpr = "name",
|
DisplayExpr = "name",
|
||||||
ValueExpr = "key",
|
ValueExpr = "key",
|
||||||
LookupQuery = LookupQueryValues.UserValues
|
LookupQuery = LookupQueryValues.EmployeeValues
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
||||||
|
|
@ -562,7 +560,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
{
|
{
|
||||||
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Meal, Width = 600, Height = 450 },
|
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Meal, Width = 500, Height = 300 },
|
||||||
AllowDeleting = true,
|
AllowDeleting = true,
|
||||||
AllowAdding = true,
|
AllowAdding = true,
|
||||||
AllowUpdating = true,
|
AllowUpdating = true,
|
||||||
|
|
@ -677,6 +675,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new () { Key= "dinner", Name="Dinner" }
|
new () { Key= "dinner", Name="Dinner" }
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
@ -719,6 +718,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new () { Key="Roka Salatası", Name="Roka Salatası" }
|
new () { Key="Roka Salatası", Name="Roka Salatası" }
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
@ -767,7 +767,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
{
|
{
|
||||||
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Reservation, Width = 500, Height = 600 },
|
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.Reservation, Width = 500, Height = 400 },
|
||||||
AllowDeleting = true,
|
AllowDeleting = true,
|
||||||
AllowAdding = true,
|
AllowAdding = true,
|
||||||
AllowUpdating = true,
|
AllowUpdating = true,
|
||||||
|
|
@ -790,7 +790,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new EditingFormItemDto {Order=6,DataField="Purpose", IsRequired = true, EditorType2 = EditorTypes.dxTextBox},
|
new EditingFormItemDto {Order=6,DataField="Purpose", IsRequired = true, EditorType2 = EditorTypes.dxTextBox},
|
||||||
new EditingFormItemDto {Order=8,DataField="Participants", EditorType2 = EditorTypes.dxNumberBox},
|
new EditingFormItemDto {Order=8,DataField="Participants", EditorType2 = EditorTypes.dxNumberBox},
|
||||||
new EditingFormItemDto {Order=9,DataField="Notes", EditorType2 = EditorTypes.dxTextArea},
|
new EditingFormItemDto {Order=9,DataField="Notes", EditorType2 = EditorTypes.dxTextArea},
|
||||||
new EditingFormItemDto {Order=7,DataField="Status", IsRequired = true, EditorType2 = EditorTypes.dxTextBox},
|
new EditingFormItemDto {Order=7,DataField="Status", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox},
|
||||||
]}
|
]}
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
|
@ -857,6 +857,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
@ -866,7 +867,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
Width = 100,
|
Width = 150,
|
||||||
ListOrderNo = 4,
|
ListOrderNo = 4,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -889,7 +890,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "StartDate",
|
FieldName = "StartDate",
|
||||||
Width = 100,
|
Width = 125,
|
||||||
ListOrderNo = 5,
|
ListOrderNo = 5,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -905,7 +906,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "EndDate",
|
FieldName = "EndDate",
|
||||||
Width = 100,
|
Width = 125,
|
||||||
ListOrderNo = 6,
|
ListOrderNo = 6,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -921,12 +922,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Purpose",
|
FieldName = "Purpose",
|
||||||
Width = 200,
|
Width = 300,
|
||||||
ListOrderNo = 7,
|
ListOrderNo = 7,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
@ -951,7 +953,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Notes",
|
FieldName = "Notes",
|
||||||
Width = 300,
|
Width = 400,
|
||||||
ListOrderNo = 9,
|
ListOrderNo = 9,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -984,6 +986,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new () { Key= "completed", Name="Completed" },
|
new () { Key= "completed", Name="Completed" },
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
@ -1032,7 +1035,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
{
|
{
|
||||||
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.ShuttleRoute, Width = 500, Height = 600 },
|
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.ShuttleRoute, Width = 500, Height = 300 },
|
||||||
AllowDeleting = true,
|
AllowDeleting = true,
|
||||||
AllowAdding = true,
|
AllowAdding = true,
|
||||||
AllowUpdating = true,
|
AllowUpdating = true,
|
||||||
|
|
@ -1053,7 +1056,8 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new EditingFormItemDto { Order = 3, DataField = "DepartureTime", IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
new EditingFormItemDto { Order = 3, DataField = "DepartureTime", IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
||||||
new EditingFormItemDto { Order = 4, DataField = "ArrivalTime", IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
new EditingFormItemDto { Order = 4, DataField = "ArrivalTime", IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
||||||
new EditingFormItemDto { Order = 5, DataField = "Capacity", EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
new EditingFormItemDto { Order = 5, DataField = "Capacity", EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
||||||
new EditingFormItemDto { Order = 6, DataField = "Route", IsRequired = true, EditorType2 = EditorTypes.dxTagBox }
|
new EditingFormItemDto { Order = 6, DataField = "Available", EditorType2 = EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
||||||
|
new EditingFormItemDto { Order = 7, DataField = "Route", IsRequired = true, EditorType2 = EditorTypes.dxTagBox }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
@ -1181,6 +1185,8 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "Available",
|
FieldName = "Available",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 7,
|
ListOrderNo = 7,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1219,6 +1225,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
new () { Key= "Ümraniye", Name="Ümraniye" },
|
new () { Key= "Ümraniye", Name="Ümraniye" },
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue