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.Domain.Repositories;
|
||||
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 static Kurs.Platform.PlatformConsts;
|
||||
using static Kurs.Platform.PlatformSeeder.SeederDefaults;
|
||||
|
|
@ -125,7 +123,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Name",
|
||||
Width = 250,
|
||||
Width = 500,
|
||||
ListOrderNo = 2,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -223,7 +221,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Name",
|
||||
Width = 250,
|
||||
Width = 500,
|
||||
ListOrderNo = 2,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -281,7 +279,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
PagerOptionJson = DefaultPagerOptionJson,
|
||||
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,
|
||||
AllowAdding = true,
|
||||
AllowUpdating = true,
|
||||
|
|
@ -428,7 +426,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Description",
|
||||
Width = 400,
|
||||
Width = 500,
|
||||
ListOrderNo = 6,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -453,7 +451,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
DataSourceType = UiLookupDataSourceTypeEnum.Query,
|
||||
DisplayExpr = "name",
|
||||
ValueExpr = "key",
|
||||
LookupQuery = LookupQueryValues.UserValues
|
||||
LookupQuery = LookupQueryValues.EmployeeValues
|
||||
}),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
||||
|
|
@ -562,7 +560,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
PagerOptionJson = DefaultPagerOptionJson,
|
||||
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,
|
||||
AllowAdding = true,
|
||||
AllowUpdating = true,
|
||||
|
|
@ -677,6 +675,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
new () { Key= "dinner", Name="Dinner" }
|
||||
}),
|
||||
}),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -719,6 +718,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
new () { Key="Roka Salatası", Name="Roka Salatası" }
|
||||
}),
|
||||
}),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -767,7 +767,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
PagerOptionJson = DefaultPagerOptionJson,
|
||||
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,
|
||||
AllowAdding = 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=8,DataField="Participants", EditorType2 = EditorTypes.dxNumberBox},
|
||||
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[]
|
||||
|
|
@ -857,6 +857,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -866,7 +867,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.Guid,
|
||||
FieldName = "EmployeeId",
|
||||
Width = 100,
|
||||
Width = 150,
|
||||
ListOrderNo = 4,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -889,7 +890,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.DateTime,
|
||||
FieldName = "StartDate",
|
||||
Width = 100,
|
||||
Width = 125,
|
||||
ListOrderNo = 5,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -905,7 +906,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.DateTime,
|
||||
FieldName = "EndDate",
|
||||
Width = 100,
|
||||
Width = 125,
|
||||
ListOrderNo = 6,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -921,12 +922,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Purpose",
|
||||
Width = 200,
|
||||
Width = 300,
|
||||
ListOrderNo = 7,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -951,7 +953,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Notes",
|
||||
Width = 300,
|
||||
Width = 400,
|
||||
ListOrderNo = 9,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -984,6 +986,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
new () { Key= "completed", Name="Completed" },
|
||||
}),
|
||||
}),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -1032,7 +1035,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
PagerOptionJson = DefaultPagerOptionJson,
|
||||
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,
|
||||
AllowAdding = 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 = 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 = 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,
|
||||
SourceDbType = DbType.Int32,
|
||||
FieldName = "Available",
|
||||
Format = "fixedPoint",
|
||||
Alignment = "right",
|
||||
Width = 100,
|
||||
ListOrderNo = 7,
|
||||
Visible = true,
|
||||
|
|
@ -1219,6 +1225,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
new () { Key= "Ümraniye", Name="Ümraniye" },
|
||||
}),
|
||||
}),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
|
|||
Loading…
Reference in a new issue