Maintenance Planning Wizard güncellemesi
This commit is contained in:
parent
483a249428
commit
712918121e
17 changed files with 309 additions and 309 deletions
|
|
@ -9501,19 +9501,19 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Maintenance.Plan",
|
"key": "App.Maintenance.PlanWizard",
|
||||||
"tr": "Bakım Planları",
|
"tr": "Bakım Planı Sihirbazı",
|
||||||
"en": "Plans"
|
"en": "Planning Wizard"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Maintenance.PlanEmployee",
|
"key": "App.Maintenance.PlanWizardEmployee",
|
||||||
"tr": "Personeller",
|
"tr": "Personeller",
|
||||||
"en": "Employees"
|
"en": "Employees"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Maintenance.PlanMaterial",
|
"key": "App.Maintenance.PlanWizardMaterial",
|
||||||
"tr": "Malzemeler",
|
"tr": "Malzemeler",
|
||||||
"en": "Materials"
|
"en": "Materials"
|
||||||
},
|
},
|
||||||
|
|
@ -10016,4 +10016,4 @@
|
||||||
"en": "Check & Notes"
|
"en": "Check & Notes"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -662,8 +662,8 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Maintenance Plan
|
#region Maintenance Plan Wizard
|
||||||
listFormName = AppCodes.Maintenance.Plan;
|
listFormName = AppCodes.Maintenance.PlanWizard;
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
|
|
@ -683,7 +683,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
Description = listFormName,
|
Description = listFormName,
|
||||||
SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Plan)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizard)),
|
||||||
KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
|
@ -695,7 +695,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
ColumnOptionJson = DefaultColumnOptionJson,
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Plan)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.PlanWizard)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
|
|
@ -1011,8 +1011,8 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Maintenance Plan Material
|
#region Maintenance Plan Wizard Material
|
||||||
listFormName = AppCodes.Maintenance.PlanMaterial;
|
listFormName = AppCodes.Maintenance.PlanWizardMaterial;
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
|
|
@ -1032,7 +1032,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
Description = listFormName,
|
Description = listFormName,
|
||||||
SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanMaterial)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizardMaterial)),
|
||||||
KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
|
@ -1044,7 +1044,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
ColumnOptionJson = DefaultColumnOptionJson,
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.PlanMaterial)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.PlanWizardMaterial)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
|
|
@ -1118,8 +1118,8 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Maintenance Plan Employee
|
#region Maintenance Plan Wizard Employee
|
||||||
listFormName = AppCodes.Maintenance.PlanEmployee;
|
listFormName = AppCodes.Maintenance.PlanWizardEmployee;
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
|
|
@ -1139,7 +1139,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
Description = listFormName,
|
Description = listFormName,
|
||||||
SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanEmployee)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizardEmployee)),
|
||||||
KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
|
@ -1151,7 +1151,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
ColumnOptionJson = DefaultColumnOptionJson,
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.PlanEmployee)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.PlanWizardEmployee)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
|
|
@ -1256,29 +1256,29 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
|
|
||||||
// Maintenance Plan ile Maintenance Plan Material ve Maintenance Plan Employee arasında Sub Forms ilişkisinin kurulması
|
// Maintenance Plan ile Maintenance Plan Material ve Maintenance Plan Employee arasında Sub Forms ilişkisinin kurulması
|
||||||
await utils.CloneFormLayoutAsync(
|
await utils.CloneFormLayoutAsync(
|
||||||
AppCodes.Maintenance.Plan,
|
AppCodes.Maintenance.PlanWizard,
|
||||||
JsonSerializer.Serialize(new List<dynamic>() {
|
JsonSerializer.Serialize(new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
TabTitle = AppCodes.Maintenance.PlanMaterial,
|
TabTitle = AppCodes.Maintenance.PlanWizardMaterial,
|
||||||
Code = AppCodes.Maintenance.PlanMaterial,
|
Code = AppCodes.Maintenance.PlanWizardMaterial,
|
||||||
Relation = new List<dynamic>() {
|
Relation = new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
ParentFieldName = "Id",
|
ParentFieldName = "Id",
|
||||||
DbType = DbType.Guid,
|
DbType = DbType.Guid,
|
||||||
ChildFieldName = "PlanId"
|
ChildFieldName = "PlanWizardId"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new {
|
new {
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
TabTitle = AppCodes.Maintenance.PlanEmployee,
|
TabTitle = AppCodes.Maintenance.PlanWizardEmployee,
|
||||||
Code = AppCodes.Maintenance.PlanEmployee,
|
Code = AppCodes.Maintenance.PlanWizardEmployee,
|
||||||
Relation = new List<dynamic>() {
|
Relation = new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
ParentFieldName = "Id",
|
ParentFieldName = "Id",
|
||||||
DbType = DbType.Guid,
|
DbType = DbType.Guid,
|
||||||
ChildFieldName = "PlanId"
|
ChildFieldName = "PlanWizardId"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2510,12 +2510,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Maintenance",
|
"ParentCode": "App.Maintenance",
|
||||||
"Code": "App.Maintenance.Plan",
|
"Code": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "App.Maintenance.Plan",
|
"DisplayName": "App.Maintenance.PlanWizard",
|
||||||
"Order": 3,
|
"Order": 3,
|
||||||
"Url": "/admin/list/App.Maintenance.Plan",
|
"Url": "/admin/list/App.Maintenance.PlanWizard",
|
||||||
"Icon": "FcPlanner",
|
"Icon": "FcTimeline",
|
||||||
"RequiredPermissionName": "App.Maintenance.Plan",
|
"RequiredPermissionName": "App.Maintenance.PlanWizard",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6738,17 +6738,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan",
|
"Name": "App.Maintenance.PlanWizard",
|
||||||
"ParentName": null,
|
"ParentName": null,
|
||||||
"DisplayName": "App.Maintenance.Plan",
|
"DisplayName": "App.Maintenance.PlanWizard",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Create",
|
"Name": "App.Maintenance.PlanWizard.Create",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6756,8 +6756,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Update",
|
"Name": "App.Maintenance.PlanWizard.Update",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6765,8 +6765,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Delete",
|
"Name": "App.Maintenance.PlanWizard.Delete",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6774,8 +6774,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Export",
|
"Name": "App.Maintenance.PlanWizard.Export",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6783,8 +6783,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Import",
|
"Name": "App.Maintenance.PlanWizard.Import",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6792,8 +6792,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.Plan.Note",
|
"Name": "App.Maintenance.PlanWizard.Note",
|
||||||
"ParentName": "App.Maintenance.Plan",
|
"ParentName": "App.Maintenance.PlanWizard",
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6801,17 +6801,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial",
|
"Name": "App.Maintenance.PlanWizardMaterial",
|
||||||
"ParentName": null,
|
"ParentName": null,
|
||||||
"DisplayName": "App.Maintenance.PlanMaterial",
|
"DisplayName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Create",
|
"Name": "App.Maintenance.PlanWizardMaterial.Create",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6819,8 +6819,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Update",
|
"Name": "App.Maintenance.PlanWizardMaterial.Update",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6828,8 +6828,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Delete",
|
"Name": "App.Maintenance.PlanWizardMaterial.Delete",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6837,8 +6837,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Export",
|
"Name": "App.Maintenance.PlanWizardMaterial.Export",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6846,8 +6846,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Import",
|
"Name": "App.Maintenance.PlanWizardMaterial.Import",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6855,8 +6855,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanMaterial.Note",
|
"Name": "App.Maintenance.PlanWizardMaterial.Note",
|
||||||
"ParentName": "App.Maintenance.PlanMaterial",
|
"ParentName": "App.Maintenance.PlanWizardMaterial",
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6864,17 +6864,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee",
|
"Name": "App.Maintenance.PlanWizardEmployee",
|
||||||
"ParentName": null,
|
"ParentName": null,
|
||||||
"DisplayName": "App.Maintenance.PlanEmployee",
|
"DisplayName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Create",
|
"Name": "App.Maintenance.PlanWizardEmployee.Create",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6882,8 +6882,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Update",
|
"Name": "App.Maintenance.PlanWizardEmployee.Update",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6891,8 +6891,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Delete",
|
"Name": "App.Maintenance.PlanWizardEmployee.Delete",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6900,8 +6900,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Export",
|
"Name": "App.Maintenance.PlanWizardEmployee.Export",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6909,8 +6909,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Import",
|
"Name": "App.Maintenance.PlanWizardEmployee.Import",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
@ -6918,8 +6918,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Maintenance",
|
"GroupName": "App.Maintenance",
|
||||||
"Name": "App.Maintenance.PlanEmployee.Note",
|
"Name": "App.Maintenance.PlanWizardEmployee.Note",
|
||||||
"ParentName": "App.Maintenance.PlanEmployee",
|
"ParentName": "App.Maintenance.PlanWizardEmployee",
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
|
|
|
||||||
|
|
@ -164,9 +164,9 @@ public enum TableNameEnum
|
||||||
WorkcenterStatus,
|
WorkcenterStatus,
|
||||||
Workcenter,
|
Workcenter,
|
||||||
WorkcenterSpecification,
|
WorkcenterSpecification,
|
||||||
Plan,
|
PlanWizard,
|
||||||
PlanMaterial,
|
PlanWizardMaterial,
|
||||||
PlanEmployee,
|
PlanWizardEmployee,
|
||||||
Fault,
|
Fault,
|
||||||
FaultStatus,
|
FaultStatus,
|
||||||
FaultType,
|
FaultType,
|
||||||
|
|
|
||||||
|
|
@ -194,9 +194,9 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.WorkcenterStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.WorkcenterStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.Workcenter), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.Workcenter), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.WorkcenterSpecification), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.WorkcenterSpecification), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.Plan), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.PlanWizard), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.PlanMaterial), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.PlanWizardMaterial), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.PlanEmployee), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.PlanWizardEmployee), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.Fault), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.Fault), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.FaultStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.FaultStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.FaultType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.FaultType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
|
|
|
||||||
|
|
@ -540,9 +540,9 @@ public static class SeedConsts
|
||||||
public const string WorkcenterType = Default + ".WorkcenterType";
|
public const string WorkcenterType = Default + ".WorkcenterType";
|
||||||
public const string WorkcenterStatus = Default + ".WorkcenterStatus";
|
public const string WorkcenterStatus = Default + ".WorkcenterStatus";
|
||||||
public const string Workcenter = Default + ".Workcenter";
|
public const string Workcenter = Default + ".Workcenter";
|
||||||
public const string Plan = Default + ".Plan";
|
public const string PlanWizard = Default + ".PlanWizard";
|
||||||
public const string PlanMaterial = Default + ".PlanMaterial";
|
public const string PlanWizardMaterial = Default + ".PlanWizardMaterial";
|
||||||
public const string PlanEmployee = Default + ".PlanEmployee";
|
public const string PlanWizardEmployee = Default + ".PlanWizardEmployee";
|
||||||
public const string Fault = Default + ".Fault";
|
public const string Fault = Default + ".Fault";
|
||||||
public const string FaultType = Default + ".FaultType";
|
public const string FaultType = Default + ".FaultType";
|
||||||
public const string FaultStatus = Default + ".FaultStatus";
|
public const string FaultStatus = Default + ".FaultStatus";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Erp.Platform.Entities;
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
public class Plan : FullAuditedEntity<Guid>, IMultiTenant
|
public class PlanWizard : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
|
@ -25,6 +25,6 @@ public class Plan : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
|
||||||
// Collections
|
// Collections
|
||||||
public string RequiredSkillsJson { get; set; }
|
public string RequiredSkillsJson { get; set; }
|
||||||
public List<PlanMaterial> Materials { get; set; }
|
public List<PlanWizardMaterial> Materials { get; set; }
|
||||||
public List<PlanEmployee> Employees { get; set; }
|
public List<PlanEmployee> Employees { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -8,8 +8,8 @@ public class PlanEmployee : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public Guid PlanId { get; set; }
|
public Guid PlanWizardId { get; set; }
|
||||||
public Plan Plan { get; set; }
|
public PlanWizard PlanWizard { get; set; }
|
||||||
|
|
||||||
public Guid EmployeeId { get; set; }
|
public Guid EmployeeId { get; set; }
|
||||||
public DateTime StartDate { get; set; }
|
public DateTime StartDate { get; set; }
|
||||||
|
|
@ -4,12 +4,12 @@ using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Erp.Platform.Entities;
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
public class PlanMaterial : FullAuditedEntity<Guid>, IMultiTenant
|
public class PlanWizardMaterial : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public Guid PlanId { get; set; }
|
public Guid PlanWizardId { get; set; }
|
||||||
public Plan Plan { get; set; }
|
public PlanWizard PlanWizard { get; set; }
|
||||||
|
|
||||||
public Guid MaterialId { get; set; }
|
public Guid MaterialId { get; set; }
|
||||||
public decimal Quantity { get; set; }
|
public decimal Quantity { get; set; }
|
||||||
|
|
@ -35,7 +35,7 @@ public class Workcenter : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
|
||||||
public ICollection<WorkcenterSpecification> Specifications { get; set; }
|
public ICollection<WorkcenterSpecification> Specifications { get; set; }
|
||||||
public ICollection<Operation> Operations { get; set; }
|
public ICollection<Operation> Operations { get; set; }
|
||||||
public virtual ICollection<Plan> Plans { get; set; }
|
public virtual ICollection<PlanWizard> PlanWizards { get; set; }
|
||||||
public virtual ICollection<Workorder> Workorders { get; set; }
|
public virtual ICollection<Workorder> Workorders { get; set; }
|
||||||
// public virtual ICollection<PmDownTimeRecord> DownTimeHistory { get; set; }
|
// public virtual ICollection<PmDownTimeRecord> DownTimeHistory { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ public class Workorder : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public Workcenter Workcenter { get; set; }
|
public Workcenter Workcenter { get; set; }
|
||||||
|
|
||||||
public Guid? PlanId { get; set; }
|
public Guid? PlanId { get; set; }
|
||||||
public Plan Plan { get; set; }
|
public PlanWizard Plan { get; set; }
|
||||||
|
|
||||||
public Guid OrderTypeId { get; set; } //Preventive, Corrective, Emergency, Inspection, Calibration
|
public Guid OrderTypeId { get; set; } //Preventive, Corrective, Emergency, Inspection, Calibration
|
||||||
public WorkorderType OrderType { get; set; }
|
public WorkorderType OrderType { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ public class PlatformDbContext :
|
||||||
public DbSet<WorkcenterStatus> WorkcenterStatuses { get; set; }
|
public DbSet<WorkcenterStatus> WorkcenterStatuses { get; set; }
|
||||||
public DbSet<Workcenter> Workcenters { get; set; }
|
public DbSet<Workcenter> Workcenters { get; set; }
|
||||||
public DbSet<WorkcenterSpecification> WorkcenterSpecifications { get; set; }
|
public DbSet<WorkcenterSpecification> WorkcenterSpecifications { get; set; }
|
||||||
public DbSet<Plan> Plans { get; set; }
|
public DbSet<PlanWizard> Plans { get; set; }
|
||||||
public DbSet<Fault> Faults { get; set; }
|
public DbSet<Fault> Faults { get; set; }
|
||||||
public DbSet<FaultStatus> FaultStatuses { get; set; }
|
public DbSet<FaultStatus> FaultStatuses { get; set; }
|
||||||
public DbSet<FaultType> FaultTypes { get; set; }
|
public DbSet<FaultType> FaultTypes { get; set; }
|
||||||
|
|
@ -2824,9 +2824,9 @@ public class PlatformDbContext :
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Plan>(b =>
|
builder.Entity<PlanWizard>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Plan)), Prefix.DbSchema);
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizard)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Code).IsRequired().HasMaxLength(100);
|
b.Property(x => x.Code).IsRequired().HasMaxLength(100);
|
||||||
|
|
@ -2844,37 +2844,37 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.LastExecuted).IsRequired();
|
b.Property(x => x.LastExecuted).IsRequired();
|
||||||
|
|
||||||
b.HasOne(x => x.Workcenter)
|
b.HasOne(x => x.Workcenter)
|
||||||
.WithMany(x => x.Plans)
|
.WithMany(x => x.PlanWizards)
|
||||||
.HasForeignKey(x => x.WorkcenterId)
|
.HasForeignKey(x => x.WorkcenterId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<PlanMaterial>(b =>
|
builder.Entity<PlanWizardMaterial>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanMaterial)), Prefix.DbSchema);
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizardMaterial)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.PlanId).IsRequired();
|
b.Property(x => x.PlanWizardId).IsRequired();
|
||||||
b.Property(x => x.MaterialId).IsRequired();
|
b.Property(x => x.MaterialId).IsRequired();
|
||||||
b.Property(x => x.Quantity).HasPrecision(18, 2).HasDefaultValue(0);
|
b.Property(x => x.Quantity).HasPrecision(18, 2).HasDefaultValue(0);
|
||||||
|
|
||||||
b.HasOne(x => x.Plan)
|
b.HasOne(x => x.PlanWizard)
|
||||||
.WithMany(x => x.Materials)
|
.WithMany(x => x.Materials)
|
||||||
.HasForeignKey(x => x.PlanId)
|
.HasForeignKey(x => x.PlanWizardId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<PlanEmployee>(b =>
|
builder.Entity<PlanEmployee>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanEmployee)), Prefix.DbSchema);
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PlanWizardEmployee)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.PlanId).IsRequired();
|
b.Property(x => x.PlanWizardId).IsRequired();
|
||||||
b.Property(x => x.EmployeeId).IsRequired();
|
b.Property(x => x.EmployeeId).IsRequired();
|
||||||
|
|
||||||
b.HasOne(x => x.Plan)
|
b.HasOne(x => x.PlanWizard)
|
||||||
.WithMany(x => x.Employees)
|
.WithMany(x => x.Employees)
|
||||||
.HasForeignKey(x => x.PlanId)
|
.HasForeignKey(x => x.PlanWizardId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251202124644_Initial")]
|
[Migration("20251202131047_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -9167,7 +9167,68 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Hr_T_Performance360", (string)null);
|
b.ToTable("Hr_T_Performance360", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<Guid>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("EndDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid>("PlanWizardId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("StartDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
|
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -9262,71 +9323,10 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("WorkcenterId");
|
b.HasIndex("WorkcenterId");
|
||||||
|
|
||||||
b.ToTable("Mnt_T_Plan", (string)null);
|
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("CreationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CreatorId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("CreatorId");
|
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("DeleterId");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletionTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("DeletionTime");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<Guid>("EmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("EndDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("bit")
|
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("IsDeleted");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("LastModificationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("LastModificationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("LastModifierId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("LastModifierId");
|
|
||||||
|
|
||||||
b.Property<Guid>("PlanId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("TenantId");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("PlanId");
|
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanEmployee", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanMaterial", b =>
|
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -9364,7 +9364,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid>("MaterialId")
|
b.Property<Guid>("MaterialId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("PlanId")
|
b.Property<Guid>("PlanWizardId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<decimal>("Quantity")
|
b.Property<decimal>("Quantity")
|
||||||
|
|
@ -9379,9 +9379,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("PlanId");
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanMaterial", (string)null);
|
b.ToTable("Mnt_T_PlanWizardMaterial", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Product", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Product", b =>
|
||||||
|
|
@ -18020,10 +18020,21 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Template");
|
b.Navigation("Template");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
.WithMany("Employees")
|
||||||
|
.HasForeignKey("PlanWizardId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PlanWizard");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||||
.WithMany("Plans")
|
.WithMany("PlanWizards")
|
||||||
.HasForeignKey("WorkcenterId")
|
.HasForeignKey("WorkcenterId")
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
@ -18031,26 +18042,15 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Workcenter");
|
b.Navigation("Workcenter");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
.WithMany("Employees")
|
|
||||||
.HasForeignKey("PlanId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Plan");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanMaterial", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
|
||||||
.WithMany("Materials")
|
.WithMany("Materials")
|
||||||
.HasForeignKey("PlanId")
|
.HasForeignKey("PlanWizardId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Plan");
|
b.Navigation("PlanWizard");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Project", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Project", b =>
|
||||||
|
|
@ -18726,7 +18726,7 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "Plan")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("PlanId");
|
.HasForeignKey("PlanId");
|
||||||
|
|
||||||
|
|
@ -19250,7 +19250,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Employees");
|
b.Navigation("Employees");
|
||||||
|
|
||||||
|
|
@ -19454,7 +19454,7 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
b.Navigation("Operations");
|
b.Navigation("Operations");
|
||||||
|
|
||||||
b.Navigation("Plans");
|
b.Navigation("PlanWizards");
|
||||||
|
|
||||||
b.Navigation("Specifications");
|
b.Navigation("Specifications");
|
||||||
|
|
||||||
|
|
@ -5566,7 +5566,7 @@ namespace Erp.Platform.Migrations
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Mnt_T_Plan",
|
name: "Mnt_T_PlanWizard",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
|
@ -5594,9 +5594,9 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Mnt_T_Plan", x => x.Id);
|
table.PrimaryKey("PK_Mnt_T_PlanWizard", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_Plan_Mnt_T_Workcenter_WorkcenterId",
|
name: "FK_Mnt_T_PlanWizard_Mnt_T_Workcenter_WorkcenterId",
|
||||||
column: x => x.WorkcenterId,
|
column: x => x.WorkcenterId,
|
||||||
principalTable: "Mnt_T_Workcenter",
|
principalTable: "Mnt_T_Workcenter",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
|
|
@ -6256,12 +6256,12 @@ namespace Erp.Platform.Migrations
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Mnt_T_PlanEmployee",
|
name: "Mnt_T_PlanWizardEmployee",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
PlanId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
PlanWizardId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -6276,22 +6276,22 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Mnt_T_PlanEmployee", x => x.Id);
|
table.PrimaryKey("PK_Mnt_T_PlanWizardEmployee", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_PlanEmployee_Mnt_T_Plan_PlanId",
|
name: "FK_Mnt_T_PlanWizardEmployee_Mnt_T_PlanWizard_PlanWizardId",
|
||||||
column: x => x.PlanId,
|
column: x => x.PlanWizardId,
|
||||||
principalTable: "Mnt_T_Plan",
|
principalTable: "Mnt_T_PlanWizard",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Mnt_T_PlanMaterial",
|
name: "Mnt_T_PlanWizardMaterial",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
PlanId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
PlanWizardId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -6304,11 +6304,11 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Mnt_T_PlanMaterial", x => x.Id);
|
table.PrimaryKey("PK_Mnt_T_PlanWizardMaterial", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_PlanMaterial_Mnt_T_Plan_PlanId",
|
name: "FK_Mnt_T_PlanWizardMaterial_Mnt_T_PlanWizard_PlanWizardId",
|
||||||
column: x => x.PlanId,
|
column: x => x.PlanWizardId,
|
||||||
principalTable: "Mnt_T_Plan",
|
principalTable: "Mnt_T_PlanWizard",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
@ -6349,9 +6349,9 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Workorders", x => x.Id);
|
table.PrimaryKey("PK_Workorders", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Workorders_Mnt_T_Plan_PlanId",
|
name: "FK_Workorders_Mnt_T_PlanWizard_PlanId",
|
||||||
column: x => x.PlanId,
|
column: x => x.PlanId,
|
||||||
principalTable: "Mnt_T_Plan",
|
principalTable: "Mnt_T_PlanWizard",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Workorders_Mnt_T_Workcenter_WorkcenterId",
|
name: "FK_Workorders_Mnt_T_Workcenter_WorkcenterId",
|
||||||
|
|
@ -7900,19 +7900,19 @@ namespace Erp.Platform.Migrations
|
||||||
column: "WorkcenterId");
|
column: "WorkcenterId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_Plan_WorkcenterId",
|
name: "IX_Mnt_T_PlanWizard_WorkcenterId",
|
||||||
table: "Mnt_T_Plan",
|
table: "Mnt_T_PlanWizard",
|
||||||
column: "WorkcenterId");
|
column: "WorkcenterId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_PlanEmployee_PlanId",
|
name: "IX_Mnt_T_PlanWizardEmployee_PlanWizardId",
|
||||||
table: "Mnt_T_PlanEmployee",
|
table: "Mnt_T_PlanWizardEmployee",
|
||||||
column: "PlanId");
|
column: "PlanWizardId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_PlanMaterial_PlanId",
|
name: "IX_Mnt_T_PlanWizardMaterial_PlanWizardId",
|
||||||
table: "Mnt_T_PlanMaterial",
|
table: "Mnt_T_PlanWizardMaterial",
|
||||||
column: "PlanId");
|
column: "PlanWizardId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_Workcenter_DepartmentId",
|
name: "IX_Mnt_T_Workcenter_DepartmentId",
|
||||||
|
|
@ -8919,10 +8919,10 @@ namespace Erp.Platform.Migrations
|
||||||
name: "Mnt_T_Fault");
|
name: "Mnt_T_Fault");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_PlanEmployee");
|
name: "Mnt_T_PlanWizardEmployee");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_PlanMaterial");
|
name: "Mnt_T_PlanWizardMaterial");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_WorkcenterSpecification");
|
name: "Mnt_T_WorkcenterSpecification");
|
||||||
|
|
@ -9318,7 +9318,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "Str_T_ZoneType");
|
name: "Str_T_ZoneType");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_Plan");
|
name: "Mnt_T_PlanWizard");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_WorkorderStatus");
|
name: "Mnt_T_WorkorderStatus");
|
||||||
|
|
@ -9164,7 +9164,68 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Hr_T_Performance360", (string)null);
|
b.ToTable("Hr_T_Performance360", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<Guid>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("EndDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid>("PlanWizardId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("StartDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
|
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -9259,71 +9320,10 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("WorkcenterId");
|
b.HasIndex("WorkcenterId");
|
||||||
|
|
||||||
b.ToTable("Mnt_T_Plan", (string)null);
|
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("CreationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CreatorId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("CreatorId");
|
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("DeleterId");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletionTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("DeletionTime");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<Guid>("EmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("EndDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("bit")
|
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("IsDeleted");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("LastModificationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("LastModificationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("LastModifierId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("LastModifierId");
|
|
||||||
|
|
||||||
b.Property<Guid>("PlanId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("TenantId");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("PlanId");
|
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanEmployee", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanMaterial", b =>
|
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -9361,7 +9361,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid>("MaterialId")
|
b.Property<Guid>("MaterialId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("PlanId")
|
b.Property<Guid>("PlanWizardId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<decimal>("Quantity")
|
b.Property<decimal>("Quantity")
|
||||||
|
|
@ -9376,9 +9376,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("PlanId");
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanMaterial", (string)null);
|
b.ToTable("Mnt_T_PlanWizardMaterial", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Product", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Product", b =>
|
||||||
|
|
@ -18017,10 +18017,21 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Template");
|
b.Navigation("Template");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
.WithMany("Employees")
|
||||||
|
.HasForeignKey("PlanWizardId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PlanWizard");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||||
.WithMany("Plans")
|
.WithMany("PlanWizards")
|
||||||
.HasForeignKey("WorkcenterId")
|
.HasForeignKey("WorkcenterId")
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
@ -18028,26 +18039,15 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Workcenter");
|
b.Navigation("Workcenter");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
.WithMany("Employees")
|
|
||||||
.HasForeignKey("PlanId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Plan");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanMaterial", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
|
||||||
.WithMany("Materials")
|
.WithMany("Materials")
|
||||||
.HasForeignKey("PlanId")
|
.HasForeignKey("PlanWizardId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Plan");
|
b.Navigation("PlanWizard");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Project", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Project", b =>
|
||||||
|
|
@ -18723,7 +18723,7 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Plan", "Plan")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "Plan")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("PlanId");
|
.HasForeignKey("PlanId");
|
||||||
|
|
||||||
|
|
@ -19247,7 +19247,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Plan", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Employees");
|
b.Navigation("Employees");
|
||||||
|
|
||||||
|
|
@ -19451,7 +19451,7 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
b.Navigation("Operations");
|
b.Navigation("Operations");
|
||||||
|
|
||||||
b.Navigation("Plans");
|
b.Navigation("PlanWizards");
|
||||||
|
|
||||||
b.Navigation("Specifications");
|
b.Navigation("Specifications");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
private readonly IRepository<WorkcenterType, Guid> _workcenterTypeRepository;
|
private readonly IRepository<WorkcenterType, Guid> _workcenterTypeRepository;
|
||||||
private readonly IRepository<WorkcenterStatus, Guid> _workcenterStatusRepository;
|
private readonly IRepository<WorkcenterStatus, Guid> _workcenterStatusRepository;
|
||||||
private readonly IRepository<Workcenter, Guid> _workcenterRepository;
|
private readonly IRepository<Workcenter, Guid> _workcenterRepository;
|
||||||
private readonly IRepository<Plan, Guid> _maintenancePlanRepository;
|
private readonly IRepository<PlanWizard, Guid> _maintenancePlanRepository;
|
||||||
private readonly IRepository<Fault, Guid> _faultRepository;
|
private readonly IRepository<Fault, Guid> _faultRepository;
|
||||||
private readonly IRepository<FaultStatus, Guid> _faultStatusRepository;
|
private readonly IRepository<FaultStatus, Guid> _faultStatusRepository;
|
||||||
private readonly IRepository<FaultType, Guid> _faultTypeRepository;
|
private readonly IRepository<FaultType, Guid> _faultTypeRepository;
|
||||||
|
|
@ -230,7 +230,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IRepository<WorkcenterType, Guid> workcenterTypeRepository,
|
IRepository<WorkcenterType, Guid> workcenterTypeRepository,
|
||||||
IRepository<WorkcenterStatus, Guid> workcenterStatusRepository,
|
IRepository<WorkcenterStatus, Guid> workcenterStatusRepository,
|
||||||
IRepository<Workcenter, Guid> workcenterRepository,
|
IRepository<Workcenter, Guid> workcenterRepository,
|
||||||
IRepository<Plan, Guid> maintenancePlanRepository,
|
IRepository<PlanWizard, Guid> maintenancePlanRepository,
|
||||||
IRepository<Fault, Guid> faultRepository,
|
IRepository<Fault, Guid> faultRepository,
|
||||||
IRepository<FaultStatus, Guid> faultStatusRepository,
|
IRepository<FaultStatus, Guid> faultStatusRepository,
|
||||||
IRepository<FaultType, Guid> faultTypeRepository,
|
IRepository<FaultType, Guid> faultTypeRepository,
|
||||||
|
|
@ -2072,7 +2072,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
|
|
||||||
var workcenter = await _workcenterRepository.FirstOrDefaultAsync(x => x.Code == item.WorkCenterCode);
|
var workcenter = await _workcenterRepository.FirstOrDefaultAsync(x => x.Code == item.WorkCenterCode);
|
||||||
|
|
||||||
await _maintenancePlanRepository.InsertAsync(new Plan
|
await _maintenancePlanRepository.InsertAsync(new PlanWizard
|
||||||
{
|
{
|
||||||
Code = item.Code,
|
Code = item.Code,
|
||||||
WorkcenterId = workcenter?.Id,
|
WorkcenterId = workcenter?.Id,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue