Mrp Operation Category, Operation Type ve Operation
This commit is contained in:
parent
5e16262371
commit
c437f4cf75
18 changed files with 1921 additions and 241 deletions
|
|
@ -9751,6 +9751,12 @@
|
||||||
"tr": "Satış Siparişleri",
|
"tr": "Satış Siparişleri",
|
||||||
"en": "Sales Orders"
|
"en": "Sales Orders"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Mrp.OperationCategory",
|
||||||
|
"tr": "Operasyon Kategorileri",
|
||||||
|
"en": "Operation Categories"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Mrp.OperationType",
|
"key": "App.Mrp.OperationType",
|
||||||
|
|
|
||||||
|
|
@ -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 = Erp.Platform.Data.Seeds.SeedConsts.AbpIdentity;
|
|
||||||
using AppCodes = Erp.Platform.Data.Seeds.SeedConsts.AppCodes;
|
using AppCodes = Erp.Platform.Data.Seeds.SeedConsts.AppCodes;
|
||||||
using static Erp.Platform.PlatformConsts;
|
using static Erp.Platform.PlatformConsts;
|
||||||
using static Erp.Platform.PlatformSeeder.SeederDefaults;
|
using static Erp.Platform.PlatformSeeder.SeederDefaults;
|
||||||
|
|
@ -47,128 +45,652 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
||||||
{
|
{
|
||||||
var listFormName = String.Empty;
|
var listFormName = String.Empty;
|
||||||
|
|
||||||
// #region Workcenter Type
|
#region Operation Category
|
||||||
// listFormName = AppCodes.Maintenance.WorkcenterType;
|
listFormName = AppCodes.Mrp.OperationCategory;
|
||||||
// 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(
|
||||||
// new ListForm()
|
new ListForm()
|
||||||
// {
|
{
|
||||||
// ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
// IsSubForm = false,
|
IsSubForm = false,
|
||||||
// ShowNote = true,
|
ShowNote = true,
|
||||||
// LayoutJson = DefaultLayoutJson,
|
LayoutJson = DefaultLayoutJson,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// ListFormCode = listFormName,
|
ListFormCode = listFormName,
|
||||||
// Name = listFormName,
|
Name = listFormName,
|
||||||
// Title = listFormName,
|
Title = listFormName,
|
||||||
// DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
// IsTenant = true,
|
IsTenant = true,
|
||||||
// IsBranch = false,
|
IsBranch = false,
|
||||||
// IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
// Description = listFormName,
|
Description = listFormName,
|
||||||
// SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
// SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkcenterType)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.OperationCategory)),
|
||||||
// KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
// KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
// DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
// SortMode = GridOptions.SortModeSingle,
|
SortMode = GridOptions.SortModeSingle,
|
||||||
// FilterRowJson = DefaultFilterRowJson,
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
// HeaderFilterJson = DefaultHeaderFilterJson,
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
// SearchPanelJson = DefaultSearchPanelJson,
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
// GroupPanelJson = DefaultGroupPanelJson,
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
// SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
// ColumnOptionJson = DefaultColumnOptionJson,
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
// PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
// DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.WorkcenterType)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.OperationCategory)),
|
||||||
// DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
// PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
// InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
// EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
||||||
// EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
// new() {
|
new() {
|
||||||
// Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= [
|
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= [
|
||||||
// new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
// new EditingFormItemDto { Order = 3, DataField = "Description", ColSpan = 1, EditorType2=EditorTypes.dxTextArea },
|
new EditingFormItemDto { Order = 2, DataField = "Description", ColSpan = 1, EditorType2=EditorTypes.dxTextArea },
|
||||||
// new EditingFormItemDto { Order = 4, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 3, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
// ]}
|
]}
|
||||||
// }),
|
}),
|
||||||
// FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
// new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
|
new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
|
||||||
// }),
|
}),
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
|
|
||||||
// #region WorkcenterType Fields
|
#region Operation Category Fields
|
||||||
// await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "Id",
|
FieldName = "Id",
|
||||||
// Width = 100,
|
Width = 100,
|
||||||
// ListOrderNo = 1,
|
ListOrderNo = 1,
|
||||||
// Visible = false,
|
Visible = false,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// IsDeleted = false,
|
IsDeleted = false,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Name",
|
FieldName = "Name",
|
||||||
// Width = 350,
|
Width = 350,
|
||||||
// ListOrderNo = 3,
|
ListOrderNo = 3,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// IsDeleted = false,
|
IsDeleted = false,
|
||||||
// SortIndex = 1,
|
SortIndex = 1,
|
||||||
// SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
// AllowSearch = true,
|
AllowSearch = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Description",
|
FieldName = "Description",
|
||||||
// Width = 500,
|
Width = 500,
|
||||||
// ListOrderNo = 4,
|
ListOrderNo = 4,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// IsDeleted = false,
|
IsDeleted = false,
|
||||||
// AllowSearch = true,
|
AllowSearch = true,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "IsActive",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 5,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
// new() {
|
#region Operation Type
|
||||||
// ListFormCode = listForm.ListFormCode,
|
listFormName = AppCodes.Mrp.OperationType;
|
||||||
// CultureName = LanguageCodes.En,
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
// SourceDbType = DbType.Boolean,
|
{
|
||||||
// FieldName = "IsActive",
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
// Width = 100,
|
new ListForm()
|
||||||
// ListOrderNo = 5,
|
{
|
||||||
// Visible = true,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
// IsActive = true,
|
IsSubForm = false,
|
||||||
// IsDeleted = false,
|
ShowNote = true,
|
||||||
// AllowSearch = true,
|
LayoutJson = DefaultLayoutJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
CultureName = LanguageCodes.En,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
ListFormCode = listFormName,
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
Name = listFormName,
|
||||||
// }
|
Title = listFormName,
|
||||||
// ]);
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
// #endregion
|
IsTenant = true,
|
||||||
// }
|
IsBranch = false,
|
||||||
// #endregion
|
IsOrganizationUnit = false,
|
||||||
|
Description = listFormName,
|
||||||
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.OperationType)),
|
||||||
|
KeyFieldName = "Id",
|
||||||
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
SortMode = GridOptions.SortModeSingle,
|
||||||
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.OperationType)),
|
||||||
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 800, 300, true, true, true, true, false),
|
||||||
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
|
new() {
|
||||||
|
Order=1, ColCount=2, ColSpan=1, ItemType="group", Items= [
|
||||||
|
new EditingFormItemDto { Order = 1, DataField = "Code", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
|
new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
|
new EditingFormItemDto { Order = 3, DataField = "Description", ColSpan = 2, EditorType2=EditorTypes.dxTextArea },
|
||||||
|
new EditingFormItemDto { Order = 4, DataField = "CategoryId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
|
new EditingFormItemDto { Order = 5, DataField = "DefaultDuration", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxNumberBox },
|
||||||
|
new EditingFormItemDto { Order = 6, DataField = "RequiresSetup", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
new EditingFormItemDto { Order = 7, DataField = "AllowsParallelOperation", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
new EditingFormItemDto { Order = 8, DataField = "QualityCheckRequired", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
new EditingFormItemDto { Order = 9, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
]}
|
||||||
|
}),
|
||||||
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
|
new() { FieldName = "DefaultDuration", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "RequiresSetup", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "AllowsParallelOperation", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "IsActQualityCheckRequiredive", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "QualityCheckRequired", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
#region Operation Type Fields
|
||||||
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "Id",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 1,
|
||||||
|
Visible = false,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Code",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 2,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Name",
|
||||||
|
Width = 350,
|
||||||
|
ListOrderNo = 3,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Description",
|
||||||
|
Width = 500,
|
||||||
|
ListOrderNo = 4,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "CategoryId",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 5,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.OperationCategory), "Id", "Name"),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Int32,
|
||||||
|
FieldName = "DefaultDuration",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 6,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "RequiresSetup",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 7,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "AllowsParallelOperation",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 8,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "QualityCheckRequired",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 9,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "IsActive",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 10,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Operation
|
||||||
|
listFormName = AppCodes.Mrp.Operation;
|
||||||
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
|
{
|
||||||
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
|
new ListForm()
|
||||||
|
{
|
||||||
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
IsSubForm = false,
|
||||||
|
ShowNote = true,
|
||||||
|
LayoutJson = DefaultLayoutJson,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
ListFormCode = listFormName,
|
||||||
|
Name = listFormName,
|
||||||
|
Title = listFormName,
|
||||||
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
IsTenant = true,
|
||||||
|
IsBranch = false,
|
||||||
|
IsOrganizationUnit = false,
|
||||||
|
Description = listFormName,
|
||||||
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Operation)),
|
||||||
|
KeyFieldName = "Id",
|
||||||
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
SortMode = GridOptions.SortModeSingle,
|
||||||
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Operation)),
|
||||||
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 800, 400, true, true, true, true, false),
|
||||||
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
|
new() {
|
||||||
|
Order=1, ColCount=2, ColSpan=1, ItemType="group", Items= [
|
||||||
|
new EditingFormItemDto { Order = 1, DataField = "Code", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
|
new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
|
new EditingFormItemDto { Order = 3, DataField = "Description", ColSpan = 2, EditorType2=EditorTypes.dxTextArea },
|
||||||
|
new EditingFormItemDto { Order = 4, DataField = "OperationTypeId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
|
new EditingFormItemDto { Order = 5, DataField = "WorkCenterId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
|
new EditingFormItemDto { Order = 6, DataField = "StandardTime", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxNumberBox },
|
||||||
|
new EditingFormItemDto { Order = 7, DataField = "SetupTime", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxNumberBox },
|
||||||
|
new EditingFormItemDto { Order = 8, DataField = "LaborCost", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
||||||
|
new EditingFormItemDto { Order = 9, DataField = "MachineCost", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
||||||
|
new EditingFormItemDto { Order = 10, DataField = "OverheadCost", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox, EditorOptions=EditorOptionValues.NumberStandartFormat },
|
||||||
|
new EditingFormItemDto { Order = 11, DataField = "Instructions", ColSpan = 1, EditorType2=EditorTypes.dxTextArea },
|
||||||
|
new EditingFormItemDto { Order = 12, DataField = "QualityCheckRequired", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
new EditingFormItemDto { Order = 13, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
|
]}
|
||||||
|
}),
|
||||||
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
|
new() { FieldName = "StandardTime", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "SetupTime", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "LaborCost", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "MachineCost", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "OverheadCost", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "QualityCheckRequired", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
#region Operation Category Fields
|
||||||
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "Id",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 1,
|
||||||
|
Visible = false,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Code",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 2,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Name",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 3,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Description",
|
||||||
|
Width = 300,
|
||||||
|
ListOrderNo = 4,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "OperationTypeId",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 5,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.OperationType), "Id", "Name"),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "WorkCenterId",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 6,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Workcenter), "Id", "Name"),
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Int32,
|
||||||
|
FieldName = "StandardTime",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 7,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "SetupTime",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 8,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Decimal,
|
||||||
|
FieldName = "LaborCost",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 9,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Decimal,
|
||||||
|
FieldName = "MachineCost",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 10,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Decimal,
|
||||||
|
FieldName = "OverheadCost",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 11,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Instructions",
|
||||||
|
Width = 500,
|
||||||
|
ListOrderNo = 12,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "QualityCheckRequired",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 13,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "IsActive",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 14,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -152,18 +152,14 @@
|
||||||
"path": "/admin/menuManager",
|
"path": "/admin/menuManager",
|
||||||
"componentPath": "@/views/menu/MenuManager",
|
"componentPath": "@/views/menu/MenuManager",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Menus.Manager"]
|
||||||
"App.Menus.Manager"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.listFormManagement.wizard",
|
"key": "admin.listFormManagement.wizard",
|
||||||
"path": "/admin/listform/wizard",
|
"path": "/admin/listform/wizard",
|
||||||
"componentPath": "@/views/admin/listForm/Wizard",
|
"componentPath": "@/views/admin/listForm/Wizard",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Listforms.Wizard"]
|
||||||
"App.Listforms.Wizard"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.listFormManagement.edit",
|
"key": "admin.listFormManagement.edit",
|
||||||
|
|
@ -177,18 +173,14 @@
|
||||||
"path": "/admin/forumManagement",
|
"path": "/admin/forumManagement",
|
||||||
"componentPath": "@/views/forum/Management",
|
"componentPath": "@/views/forum/Management",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.ForumManagement"]
|
||||||
"App.ForumManagement"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.ai",
|
"key": "admin.ai",
|
||||||
"path": "/admin/ai",
|
"path": "/admin/ai",
|
||||||
"componentPath": "@/views/ai/Assistant",
|
"componentPath": "@/views/ai/Assistant",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["Abp.Identity.Ai"]
|
||||||
"Abp.Identity.Ai"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.profile.general",
|
"key": "admin.profile.general",
|
||||||
|
|
@ -230,36 +222,28 @@
|
||||||
"path": "/admin/settings",
|
"path": "/admin/settings",
|
||||||
"componentPath": "@/views/settings/Settings",
|
"componentPath": "@/views/settings/Settings",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Setting"]
|
||||||
"App.Setting"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.identity.user.detail",
|
"key": "admin.identity.user.detail",
|
||||||
"path": "/admin/users/detail/:userId",
|
"path": "/admin/users/detail/:userId",
|
||||||
"componentPath": "@/views/admin/user-management/Details",
|
"componentPath": "@/views/admin/user-management/Details",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["AbpIdentity.Users.Update"]
|
||||||
"AbpIdentity.Users.Update"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.identity.ous",
|
"key": "admin.identity.ous",
|
||||||
"path": "/admin/ous",
|
"path": "/admin/ous",
|
||||||
"componentPath": "@/views/admin/organization-unit/OrganizationUnits",
|
"componentPath": "@/views/admin/organization-unit/OrganizationUnits",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["Abp.Identity.OrganizationUnits"]
|
||||||
"Abp.Identity.OrganizationUnits"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.forum",
|
"key": "admin.forum",
|
||||||
"path": "/admin/forum",
|
"path": "/admin/forum",
|
||||||
"componentPath": "@/views/forum/Forum",
|
"componentPath": "@/views/forum/Forum",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.ForumManagement.Publish"]
|
||||||
"App.ForumManagement.Publish"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.list",
|
"key": "admin.list",
|
||||||
|
|
@ -301,216 +285,168 @@
|
||||||
"path": "/admin/developerkit",
|
"path": "/admin/developerkit",
|
||||||
"componentPath": "@/views/developerKit/DashboardPage",
|
"componentPath": "@/views/developerKit/DashboardPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit"]
|
||||||
"App.DeveloperKit"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.entities",
|
"key": "admin.developerkit.entities",
|
||||||
"path": "/admin/developerkit/entities",
|
"path": "/admin/developerkit/entities",
|
||||||
"componentPath": "@/views/developerKit/EntityPage",
|
"componentPath": "@/views/developerKit/EntityPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Entity"]
|
||||||
"App.DeveloperKit.Entity"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.entities.new",
|
"key": "admin.developerkit.entities.new",
|
||||||
"path": "/admin/developerkit/entities/new",
|
"path": "/admin/developerkit/entities/new",
|
||||||
"componentPath": "@/views/developerKit/EntityDetailPage",
|
"componentPath": "@/views/developerKit/EntityDetailPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Entity"]
|
||||||
"App.DeveloperKit.Entity"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.entities.edit",
|
"key": "admin.developerkit.entities.edit",
|
||||||
"path": "/admin/developerkit/entities/edit/:id",
|
"path": "/admin/developerkit/entities/edit/:id",
|
||||||
"componentPath": "@/views/developerKit/EntityDetailPage",
|
"componentPath": "@/views/developerKit/EntityDetailPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Entity"]
|
||||||
"App.DeveloperKit.Entity"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.migrations",
|
"key": "admin.developerkit.migrations",
|
||||||
"path": "/admin/developerkit/migrations",
|
"path": "/admin/developerkit/migrations",
|
||||||
"componentPath": "@/views/developerKit/MigrationPage",
|
"componentPath": "@/views/developerKit/MigrationPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Migrations"]
|
||||||
"App.DeveloperKit.Migrations"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.endpoints",
|
"key": "admin.developerkit.endpoints",
|
||||||
"path": "/admin/developerkit/endpoints",
|
"path": "/admin/developerkit/endpoints",
|
||||||
"componentPath": "@/views/developerKit/CrudEndpointPage",
|
"componentPath": "@/views/developerKit/CrudEndpointPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.CrudEndpoints"]
|
||||||
"App.DeveloperKit.CrudEndpoints"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.dynamic-services",
|
"key": "admin.developerkit.dynamic-services",
|
||||||
"path": "/admin/developerkit/dynamic-services",
|
"path": "/admin/developerkit/dynamic-services",
|
||||||
"componentPath": "@/views/developerKit/DynamicServicePage",
|
"componentPath": "@/views/developerKit/DynamicServicePage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.DynamicServices"]
|
||||||
"App.DeveloperKit.DynamicServices"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.components",
|
"key": "admin.developerkit.components",
|
||||||
"path": "/admin/developerkit/components",
|
"path": "/admin/developerkit/components",
|
||||||
"componentPath": "@/views/developerKit/ComponentPage",
|
"componentPath": "@/views/developerKit/ComponentPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Components"]
|
||||||
"App.DeveloperKit.Components"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.components.new",
|
"key": "admin.developerkit.components.new",
|
||||||
"path": "/admin/developerkit/components/new",
|
"path": "/admin/developerkit/components/new",
|
||||||
"componentPath": "@/views/developerKit/ComponentDetailPage",
|
"componentPath": "@/views/developerKit/ComponentDetailPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Components"]
|
||||||
"App.DeveloperKit.Components"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.components.view",
|
"key": "admin.developerkit.components.view",
|
||||||
"path": "/admin/developerkit/components/view/:id",
|
"path": "/admin/developerkit/components/view/:id",
|
||||||
"componentPath": "@/views/developerKit/ComponentDetailPage",
|
"componentPath": "@/views/developerKit/ComponentDetailPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Components"]
|
||||||
"App.DeveloperKit.Components"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.developerkit.components.edit",
|
"key": "admin.developerkit.components.edit",
|
||||||
"path": "/admin/developerkit/components/edit/:id",
|
"path": "/admin/developerkit/components/edit/:id",
|
||||||
"componentPath": "@/views/developerKit/CodePage",
|
"componentPath": "@/views/developerKit/CodePage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.DeveloperKit.Components"]
|
||||||
"App.DeveloperKit.Components"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.reportManagement",
|
"key": "admin.reportManagement",
|
||||||
"path": "/admin/reports/management",
|
"path": "/admin/reports/management",
|
||||||
"componentPath": "@/views/report/DashboardPage",
|
"componentPath": "@/views/report/DashboardPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Reports.Management"]
|
||||||
"App.Reports.Management"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.reports.view",
|
"key": "admin.reports.view",
|
||||||
"path": "/admin/reports/:id",
|
"path": "/admin/reports/:id",
|
||||||
"componentPath": "@/views/report/ReportViewerPage",
|
"componentPath": "@/views/report/ReportViewerPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Reports.Categories"]
|
||||||
"App.Reports.Categories"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.fileManagement",
|
"key": "admin.fileManagement",
|
||||||
"path": "/admin/files",
|
"path": "/admin/files",
|
||||||
"componentPath": "@/views/admin/files/FileManager",
|
"componentPath": "@/views/admin/files/FileManager",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Files"]
|
||||||
"App.Files"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.classroom.dashboard",
|
"key": "admin.coordinator.classroom.dashboard",
|
||||||
"path": "/admin/coordinator/classroom/dashboard",
|
"path": "/admin/coordinator/classroom/dashboard",
|
||||||
"componentPath": "@/views/coordinator/Classroom/Dashboard",
|
"componentPath": "@/views/coordinator/Classroom/Dashboard",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Classroom.Dashboard"]
|
||||||
"App.Coordinator.Classroom.Dashboard"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.classroom.classes",
|
"key": "admin.coordinator.classroom.classes",
|
||||||
"path": "/admin/coordinator/classroom/classes",
|
"path": "/admin/coordinator/classroom/classes",
|
||||||
"componentPath": "@/views/coordinator/Classroom/ClassList",
|
"componentPath": "@/views/coordinator/Classroom/ClassList",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Classroom.List"]
|
||||||
"App.Coordinator.Classroom.List"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.classroom.classroom",
|
"key": "admin.coordinator.classroom.classroom",
|
||||||
"path": "/admin/coordinator/classroom/room/:id",
|
"path": "/admin/coordinator/classroom/room/:id",
|
||||||
"componentPath": "@/views/coordinator/Classroom/RoomDetail",
|
"componentPath": "@/views/coordinator/Classroom/RoomDetail",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Classroom.RoomDetail"]
|
||||||
"App.Coordinator.Classroom.RoomDetail"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.classroom.planning",
|
"key": "admin.coordinator.classroom.planning",
|
||||||
"path": "/admin/coordinator/classroom/planning/:id",
|
"path": "/admin/coordinator/classroom/planning/:id",
|
||||||
"componentPath": "@/views/coordinator/Classroom/PlanningPage",
|
"componentPath": "@/views/coordinator/Classroom/PlanningPage",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Classroom.Planning"]
|
||||||
"App.Coordinator.Classroom.Planning"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.exams",
|
"key": "admin.coordinator.exams",
|
||||||
"path": "/admin/coordinator/exams",
|
"path": "/admin/coordinator/exams",
|
||||||
"componentPath": "@/views/coordinator/Exams",
|
"componentPath": "@/views/coordinator/Exams",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Exams"]
|
||||||
"App.Coordinator.Exams"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.examDetail",
|
"key": "admin.coordinator.examDetail",
|
||||||
"path": "/admin/coordinator/exam/:id",
|
"path": "/admin/coordinator/exam/:id",
|
||||||
"componentPath": "@/views/coordinator/ExamInterface/ExamInterface",
|
"componentPath": "@/views/coordinator/ExamInterface/ExamInterface",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Exams"]
|
||||||
"App.Coordinator.Exams"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.assignments",
|
"key": "admin.coordinator.assignments",
|
||||||
"path": "/admin/coordinator/assignments",
|
"path": "/admin/coordinator/assignments",
|
||||||
"componentPath": "@/views/coordinator/Assignments",
|
"componentPath": "@/views/coordinator/Assignments",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Assignments"]
|
||||||
"App.Coordinator.Assignments"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.assignmentDetail",
|
"key": "admin.coordinator.assignmentDetail",
|
||||||
"path": "/admin/coordinator/assignment/:id",
|
"path": "/admin/coordinator/assignment/:id",
|
||||||
"componentPath": "@/views/coordinator/ExamInterface/ExamInterface",
|
"componentPath": "@/views/coordinator/ExamInterface/ExamInterface",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Assignments"]
|
||||||
"App.Coordinator.Assignments"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.tests",
|
"key": "admin.coordinator.tests",
|
||||||
"path": "/admin/coordinator/tests",
|
"path": "/admin/coordinator/tests",
|
||||||
"componentPath": "@/views/coordinator/Tests",
|
"componentPath": "@/views/coordinator/Tests",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Tests"]
|
||||||
"App.Coordinator.Tests"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.coordinator.testDetail",
|
"key": "admin.coordinator.testDetail",
|
||||||
"path": "/admin/coordinator/test/:id",
|
"path": "/admin/coordinator/test/:id",
|
||||||
"componentPath": "@/views/coordinator/ExamInterface/PDFTestInterface",
|
"componentPath": "@/views/coordinator/ExamInterface/PDFTestInterface",
|
||||||
"routeType": "protected",
|
"routeType": "protected",
|
||||||
"authority": [
|
"authority": ["App.Coordinator.Tests"]
|
||||||
"App.Coordinator.Tests"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "admin.supplychain.requests",
|
"key": "admin.supplychain.requests",
|
||||||
|
|
@ -2870,22 +2806,22 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.OperationType",
|
"Code": "App.Mrp.OperationCategory",
|
||||||
"DisplayName": "App.Mrp.OperationType",
|
"DisplayName": "App.Mrp.OperationCategory",
|
||||||
"Order": 1,
|
"Order": 1,
|
||||||
"Url": "/admin/mrp/operation-types",
|
"Url": "/admin/list/App.Mrp.OperationCategory",
|
||||||
"Icon": "FcEngineering",
|
"Icon": "FcEngineering",
|
||||||
"RequiredPermissionName": "App.Mrp.OperationType",
|
"RequiredPermissionName": "App.Mrp.OperationCategory",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.Workcenter",
|
"Code": "App.Mrp.OperationType",
|
||||||
"DisplayName": "App.Mrp.Workcenter",
|
"DisplayName": "App.Mrp.OperationType",
|
||||||
"Order": 2,
|
"Order": 2,
|
||||||
"Url": "/admin/mrp/workcenters",
|
"Url": "/admin/list/App.Mrp.OperationType",
|
||||||
"Icon": "FcWorkflow",
|
"Icon": "FcAutomatic",
|
||||||
"RequiredPermissionName": "App.Mrp.Workcenter",
|
"RequiredPermissionName": "App.Mrp.OperationType",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -2893,16 +2829,26 @@
|
||||||
"Code": "App.Mrp.Operation",
|
"Code": "App.Mrp.Operation",
|
||||||
"DisplayName": "App.Mrp.Operation",
|
"DisplayName": "App.Mrp.Operation",
|
||||||
"Order": 3,
|
"Order": 3,
|
||||||
"Url": "/admin/mrp/operations",
|
"Url": "/admin/list/App.Mrp.Operation",
|
||||||
"Icon": "FcFlashOn",
|
"Icon": "FcFlashOn",
|
||||||
"RequiredPermissionName": "App.Mrp.Operation",
|
"RequiredPermissionName": "App.Mrp.Operation",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Mrp",
|
||||||
|
"Code": "App.Mrp.Workcenter",
|
||||||
|
"DisplayName": "App.Mrp.Workcenter",
|
||||||
|
"Order": 4,
|
||||||
|
"Url": "/admin/mrp/workcenters",
|
||||||
|
"Icon": "FcWorkflow",
|
||||||
|
"RequiredPermissionName": "App.Mrp.Workcenter",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.Bom",
|
"Code": "App.Mrp.Bom",
|
||||||
"DisplayName": "App.Mrp.Bom",
|
"DisplayName": "App.Mrp.Bom",
|
||||||
"Order": 4,
|
"Order": 5,
|
||||||
"Url": "/admin/mrp/bom",
|
"Url": "/admin/mrp/bom",
|
||||||
"Icon": "FcFlowChart",
|
"Icon": "FcFlowChart",
|
||||||
"RequiredPermissionName": "App.Mrp.Bom",
|
"RequiredPermissionName": "App.Mrp.Bom",
|
||||||
|
|
@ -2912,7 +2858,7 @@
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.ProductionOrder",
|
"Code": "App.Mrp.ProductionOrder",
|
||||||
"DisplayName": "App.Mrp.ProductionOrder",
|
"DisplayName": "App.Mrp.ProductionOrder",
|
||||||
"Order": 5,
|
"Order": 6,
|
||||||
"Url": "/admin/mrp/production-orders",
|
"Url": "/admin/mrp/production-orders",
|
||||||
"Icon": "FcFactory",
|
"Icon": "FcFactory",
|
||||||
"RequiredPermissionName": "App.Mrp.ProductionOrder",
|
"RequiredPermissionName": "App.Mrp.ProductionOrder",
|
||||||
|
|
@ -2922,7 +2868,7 @@
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.WorkOrder",
|
"Code": "App.Mrp.WorkOrder",
|
||||||
"DisplayName": "App.Mrp.WorkOrder",
|
"DisplayName": "App.Mrp.WorkOrder",
|
||||||
"Order": 6,
|
"Order": 7,
|
||||||
"Url": "/admin/mrp/work-orders",
|
"Url": "/admin/mrp/work-orders",
|
||||||
"Icon": "FcList",
|
"Icon": "FcList",
|
||||||
"RequiredPermissionName": "App.Mrp.WorkOrder",
|
"RequiredPermissionName": "App.Mrp.WorkOrder",
|
||||||
|
|
@ -2932,7 +2878,7 @@
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.DemandPlanning",
|
"Code": "App.Mrp.DemandPlanning",
|
||||||
"DisplayName": "App.Mrp.DemandPlanning",
|
"DisplayName": "App.Mrp.DemandPlanning",
|
||||||
"Order": 7,
|
"Order": 8,
|
||||||
"Url": "/admin/mrp/demand-planning",
|
"Url": "/admin/mrp/demand-planning",
|
||||||
"Icon": "FcPlanner",
|
"Icon": "FcPlanner",
|
||||||
"RequiredPermissionName": "App.Mrp.DemandPlanning",
|
"RequiredPermissionName": "App.Mrp.DemandPlanning",
|
||||||
|
|
@ -2942,7 +2888,7 @@
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.MaterialRequirement",
|
"Code": "App.Mrp.MaterialRequirement",
|
||||||
"DisplayName": "App.Mrp.MaterialRequirement",
|
"DisplayName": "App.Mrp.MaterialRequirement",
|
||||||
"Order": 8,
|
"Order": 9,
|
||||||
"Url": "/admin/mrp/material-requirements",
|
"Url": "/admin/mrp/material-requirements",
|
||||||
"Icon": "FcDataSheet",
|
"Icon": "FcDataSheet",
|
||||||
"RequiredPermissionName": "App.Mrp.MaterialRequirement",
|
"RequiredPermissionName": "App.Mrp.MaterialRequirement",
|
||||||
|
|
@ -2952,7 +2898,7 @@
|
||||||
"ParentCode": "App.Mrp",
|
"ParentCode": "App.Mrp",
|
||||||
"Code": "App.Mrp.PlanningGantt",
|
"Code": "App.Mrp.PlanningGantt",
|
||||||
"DisplayName": "App.Mrp.PlanningGantt",
|
"DisplayName": "App.Mrp.PlanningGantt",
|
||||||
"Order": 9,
|
"Order": 10,
|
||||||
"Url": "/admin/mrp/planning-gantt",
|
"Url": "/admin/mrp/planning-gantt",
|
||||||
"Icon": "FcTimeline",
|
"Icon": "FcTimeline",
|
||||||
"RequiredPermissionName": "App.Mrp.PlanningGantt",
|
"RequiredPermissionName": "App.Mrp.PlanningGantt",
|
||||||
|
|
|
||||||
|
|
@ -10914,6 +10914,71 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Mrp.OperationCategory",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Create",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Update",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Delete",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Export",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Import",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Import",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Mrp",
|
||||||
|
"Name": "App.Mrp.OperationCategory.Note",
|
||||||
|
"ParentName": "App.Mrp.OperationCategory",
|
||||||
|
"DisplayName": "Note",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.Mrp",
|
"GroupName": "App.Mrp",
|
||||||
"Name": "App.Mrp.OperationType",
|
"Name": "App.Mrp.OperationType",
|
||||||
|
|
|
||||||
|
|
@ -181,4 +181,7 @@ public enum TableNameEnum
|
||||||
Location,
|
Location,
|
||||||
Putaway,
|
Putaway,
|
||||||
PutawayCondition,
|
PutawayCondition,
|
||||||
|
OperationCategory,
|
||||||
|
OperationType,
|
||||||
|
Operation
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.Request), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
{ nameof(TableNameEnum.Request), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
{ nameof(TableNameEnum.RequestItem), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
{ nameof(TableNameEnum.RequestItem), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
|
|
||||||
//Crm
|
// CRM
|
||||||
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.LossReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
{ nameof(TableNameEnum.LossReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
|
|
@ -217,6 +217,10 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.Putaway), (TablePrefix.TenantByName, MenuPrefix.Store) },
|
{ nameof(TableNameEnum.Putaway), (TablePrefix.TenantByName, MenuPrefix.Store) },
|
||||||
{ nameof(TableNameEnum.PutawayCondition), (TablePrefix.TenantByName, MenuPrefix.Store) },
|
{ nameof(TableNameEnum.PutawayCondition), (TablePrefix.TenantByName, MenuPrefix.Store) },
|
||||||
|
|
||||||
|
// 🔹 MRP
|
||||||
|
{ nameof(TableNameEnum.OperationCategory), (TablePrefix.TenantByName, MenuPrefix.Mrp) },
|
||||||
|
{ nameof(TableNameEnum.OperationType), (TablePrefix.TenantByName, MenuPrefix.Mrp) },
|
||||||
|
{ nameof(TableNameEnum.Operation), (TablePrefix.TenantByName, MenuPrefix.Mrp) },
|
||||||
};
|
};
|
||||||
|
|
||||||
public static string GetFullTableName(string tableName)
|
public static string GetFullTableName(string tableName)
|
||||||
|
|
|
||||||
|
|
@ -558,6 +558,14 @@ public static class SeedConsts
|
||||||
public const string Putaway = Default + ".Putaway";
|
public const string Putaway = Default + ".Putaway";
|
||||||
public const string PutawayCondition = Default + ".PutawayCondition";
|
public const string PutawayCondition = Default + ".PutawayCondition";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class Mrp
|
||||||
|
{
|
||||||
|
public const string Default = Prefix.App + ".Mrp";
|
||||||
|
public const string OperationCategory = Default + ".OperationCategory";
|
||||||
|
public const string OperationType = Default + ".OperationType";
|
||||||
|
public const string Operation = Default + ".Operation";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class DataSources
|
public static class DataSources
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ public class Workcenter : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
public ICollection<WorkcenterSpecification> Specifications { get; set; }
|
public ICollection<WorkcenterSpecification> Specifications { get; set; }
|
||||||
|
public ICollection<Operation> Operations { get; set; }
|
||||||
// public virtual ICollection<PmMaintenancePlan> MaintenancePlans { get; set; }
|
// public virtual ICollection<PmMaintenancePlan> MaintenancePlans { get; set; }
|
||||||
// public virtual ICollection<PmMaintenanceWorkOrder> WorkOrders { get; set; }
|
// public virtual ICollection<PmMaintenanceWorkOrder> WorkOrders { get; set; }
|
||||||
// public virtual ICollection<PmDownTimeRecord> DownTimeHistory { get; set; }
|
// public virtual ICollection<PmDownTimeRecord> DownTimeHistory { get; set; }
|
||||||
|
|
|
||||||
30
api/src/Erp.Platform.Domain/Entities/Tenant/Mrp/Operation.cs
Normal file
30
api/src/Erp.Platform.Domain/Entities/Tenant/Mrp/Operation.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
|
public class Operation : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
public Guid? OperationTypeId { get; set; }
|
||||||
|
public OperationType? OperationType { get; set; }
|
||||||
|
|
||||||
|
public Guid? WorkCenterId { get; set; }
|
||||||
|
public Workcenter? WorkCenter { get; set; }
|
||||||
|
|
||||||
|
public int StandardTime { get; set; }
|
||||||
|
public int SetupTime { get; set; }
|
||||||
|
public decimal LaborCost { get; set; }
|
||||||
|
public decimal MachineCost { get; set; }
|
||||||
|
public decimal OverheadCost { get; set; }
|
||||||
|
public string Instructions { get; set; }
|
||||||
|
public bool QualityCheckRequired { get; set; }
|
||||||
|
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
|
public class OperationCategory : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
|
public ICollection<OperationType> OperationTypes { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
|
public class OperationType : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
public Guid? CategoryId { get; set; }
|
||||||
|
public OperationCategory? Category { get; set; }
|
||||||
|
|
||||||
|
public int DefaultDuration { get; set; }
|
||||||
|
public bool RequiresSetup { get; set; }
|
||||||
|
public bool AllowsParallelOperation { get; set; }
|
||||||
|
public bool QualityCheckRequired { get; set; }
|
||||||
|
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
|
public ICollection<Operation> Operations { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -257,6 +257,12 @@ public class PlatformDbContext :
|
||||||
public DbSet<MaintenanceWorkorder> Workorders { get; set; }
|
public DbSet<MaintenanceWorkorder> Workorders { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Mrp
|
||||||
|
public DbSet<OperationCategory> OperationCategories { get; set; }
|
||||||
|
public DbSet<OperationType> OperationTypes { get; set; }
|
||||||
|
public DbSet<Operation> Operations { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
public PlatformDbContext(DbContextOptions<PlatformDbContext> options)
|
public PlatformDbContext(DbContextOptions<PlatformDbContext> options)
|
||||||
: base(options)
|
: base(options)
|
||||||
{
|
{
|
||||||
|
|
@ -3060,5 +3066,61 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Operator).IsRequired().HasMaxLength(20);
|
b.Property(x => x.Operator).IsRequired().HasMaxLength(20);
|
||||||
b.Property(x => x.Value).HasMaxLength(200);
|
b.Property(x => x.Value).HasMaxLength(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
builder.Entity<OperationCategory>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.OperationCategory)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.IsActive).HasDefaultValue(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<OperationType>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.OperationType)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Code).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||||
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.CategoryId).IsRequired();
|
||||||
|
b.Property(x => x.DefaultDuration).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.RequiresSetup).HasDefaultValue(false);
|
||||||
|
b.Property(x => x.AllowsParallelOperation).HasDefaultValue(false);
|
||||||
|
b.Property(x => x.QualityCheckRequired).HasDefaultValue(false);
|
||||||
|
b.Property(x => x.IsActive).HasDefaultValue(true);
|
||||||
|
|
||||||
|
b.HasOne(x => x.Category)
|
||||||
|
.WithMany(x => x.OperationTypes)
|
||||||
|
.HasForeignKey(x => x.CategoryId)
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<Operation>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Operation)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Code).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||||
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.OperationTypeId).IsRequired();
|
||||||
|
b.Property(x => x.WorkCenterId).IsRequired();
|
||||||
|
b.Property(x => x.StandardTime).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.SetupTime).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.LaborCost).HasPrecision(18, 2).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.MachineCost).HasPrecision(18, 2).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.OverheadCost).HasPrecision(18, 2).HasDefaultValue(0);
|
||||||
|
b.Property(x => x.Instructions).HasMaxLength(1000);
|
||||||
|
b.Property(x => x.QualityCheckRequired).HasDefaultValue(false);
|
||||||
|
b.Property(x => x.IsActive).HasDefaultValue(true);
|
||||||
|
|
||||||
|
b.HasOne(x => x.OperationType)
|
||||||
|
.WithMany(x => x.Operations)
|
||||||
|
.HasForeignKey(x => x.OperationTypeId)
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251125193313_Initial")]
|
[Migration("20251126071128_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -7783,6 +7783,259 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Prt_T_NoteType", (string)null);
|
b.ToTable("Prt_T_NoteType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
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")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<string>("Instructions")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<int>("LaborCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<int>("MachineCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<Guid>("OperationTypeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<int>("OverheadCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<bool>("QualityCheckRequired")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<int>("SetupTime")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<int>("StandardTime")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid>("WorkCenterId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("OperationTypeId");
|
||||||
|
|
||||||
|
b.HasIndex("WorkCenterId");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_Operation", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationCategory", 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")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
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<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_OperationCategory", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("AllowsParallelOperation")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<Guid>("CategoryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<int>("DefaultDuration")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
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<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<bool>("QualityCheckRequired")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<bool>("RequiresSetup")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CategoryId");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_OperationType", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -16013,6 +16266,36 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Branch");
|
b.Navigation("Branch");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.OperationType", "OperationType")
|
||||||
|
.WithMany("Operations")
|
||||||
|
.HasForeignKey("OperationTypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Workcenter", "WorkCenter")
|
||||||
|
.WithMany("Operations")
|
||||||
|
.HasForeignKey("WorkCenterId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("OperationType");
|
||||||
|
|
||||||
|
b.Navigation("WorkCenter");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.OperationCategory", "Category")
|
||||||
|
.WithMany("OperationTypes")
|
||||||
|
.HasForeignKey("CategoryId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Category");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||||
|
|
@ -17004,6 +17287,16 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Materials");
|
b.Navigation("Materials");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationCategory", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("OperationTypes");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Operations");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Activities");
|
b.Navigation("Activities");
|
||||||
|
|
@ -17170,6 +17463,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b =>
|
||||||
{
|
{
|
||||||
|
b.Navigation("Operations");
|
||||||
|
|
||||||
b.Navigation("Specifications");
|
b.Navigation("Specifications");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -1435,6 +1435,28 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Mnt_T_WorkorderType", x => x.Id);
|
table.PrimaryKey("PK_Mnt_T_WorkorderType", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Mrp_T_OperationCategory",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Mrp_T_OperationCategory", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Net_T_EventCategory",
|
name: "Net_T_EventCategory",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -3244,6 +3266,40 @@ namespace Erp.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Mrp_T_OperationType",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
|
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
DefaultDuration = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
RequiresSetup = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
AllowsParallelOperation = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
QualityCheckRequired = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Mrp_T_OperationType", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Mrp_T_OperationType_Mrp_T_OperationCategory_CategoryId",
|
||||||
|
column: x => x.CategoryId,
|
||||||
|
principalTable: "Mrp_T_OperationCategory",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "OpenIddictAuthorizations",
|
name: "OpenIddictAuthorizations",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -5322,6 +5378,50 @@ namespace Erp.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Mrp_T_Operation",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
|
OperationTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
WorkCenterId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
StandardTime = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
SetupTime = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
LaborCost = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
MachineCost = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
OverheadCost = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
Instructions = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
|
QualityCheckRequired = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Mrp_T_Operation", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Mrp_T_Operation_Mnt_T_Workcenter_WorkCenterId",
|
||||||
|
column: x => x.WorkCenterId,
|
||||||
|
principalTable: "Mnt_T_Workcenter",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Mrp_T_Operation_Mrp_T_OperationType_OperationTypeId",
|
||||||
|
column: x => x.OperationTypeId,
|
||||||
|
principalTable: "Mrp_T_OperationType",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Scp_T_ApprovalStep",
|
name: "Scp_T_ApprovalStep",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -7083,6 +7183,21 @@ namespace Erp.Platform.Migrations
|
||||||
table: "Mnt_T_WorkcenterSpecification",
|
table: "Mnt_T_WorkcenterSpecification",
|
||||||
column: "WorkcenterId");
|
column: "WorkcenterId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Mrp_T_Operation_OperationTypeId",
|
||||||
|
table: "Mrp_T_Operation",
|
||||||
|
column: "OperationTypeId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Mrp_T_Operation_WorkCenterId",
|
||||||
|
table: "Mrp_T_Operation",
|
||||||
|
column: "WorkCenterId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Mrp_T_OperationType_CategoryId",
|
||||||
|
table: "Mrp_T_OperationType",
|
||||||
|
column: "CategoryId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Net_B_Meal_BranchId",
|
name: "IX_Net_B_Meal_BranchId",
|
||||||
table: "Net_B_Meal",
|
table: "Net_B_Meal",
|
||||||
|
|
@ -7853,6 +7968,9 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_WorkcenterSpecification");
|
name: "Mnt_T_WorkcenterSpecification");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Mrp_T_Operation");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Net_B_Meal");
|
name: "Net_B_Meal");
|
||||||
|
|
||||||
|
|
@ -8078,6 +8196,9 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_FaultType");
|
name: "Mnt_T_FaultType");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Mrp_T_OperationType");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Net_T_Training");
|
name: "Net_T_Training");
|
||||||
|
|
||||||
|
|
@ -8177,6 +8298,9 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_WorkorderType");
|
name: "Mnt_T_WorkorderType");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Mrp_T_OperationCategory");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Net_T_EventCategory");
|
name: "Net_T_EventCategory");
|
||||||
|
|
||||||
|
|
@ -7780,6 +7780,259 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Prt_T_NoteType", (string)null);
|
b.ToTable("Prt_T_NoteType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
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")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<string>("Instructions")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<int>("LaborCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<int>("MachineCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<Guid>("OperationTypeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<int>("OverheadCost")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<bool>("QualityCheckRequired")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<int>("SetupTime")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<int>("StandardTime")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid>("WorkCenterId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("OperationTypeId");
|
||||||
|
|
||||||
|
b.HasIndex("WorkCenterId");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_Operation", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationCategory", 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")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
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<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_OperationCategory", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("AllowsParallelOperation")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<Guid>("CategoryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<int>("DefaultDuration")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
|
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<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<bool>("QualityCheckRequired")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<bool>("RequiresSetup")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CategoryId");
|
||||||
|
|
||||||
|
b.ToTable("Mrp_T_OperationType", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -16010,6 +16263,36 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Branch");
|
b.Navigation("Branch");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.OperationType", "OperationType")
|
||||||
|
.WithMany("Operations")
|
||||||
|
.HasForeignKey("OperationTypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Workcenter", "WorkCenter")
|
||||||
|
.WithMany("Operations")
|
||||||
|
.HasForeignKey("WorkCenterId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("OperationType");
|
||||||
|
|
||||||
|
b.Navigation("WorkCenter");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.OperationCategory", "Category")
|
||||||
|
.WithMany("OperationTypes")
|
||||||
|
.HasForeignKey("CategoryId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Category");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||||
|
|
@ -17001,6 +17284,16 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Materials");
|
b.Navigation("Materials");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationCategory", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("OperationTypes");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.OperationType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Operations");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Opportunity", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Activities");
|
b.Navigation("Activities");
|
||||||
|
|
@ -17167,6 +17460,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b =>
|
||||||
{
|
{
|
||||||
|
b.Navigation("Operations");
|
||||||
|
|
||||||
b.Navigation("Specifications");
|
b.Navigation("Specifications");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5475,5 +5475,166 @@
|
||||||
"strategy": "FIFO",
|
"strategy": "FIFO",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"OperationCategories": [
|
||||||
|
{
|
||||||
|
"name": "Üretim",
|
||||||
|
"description": "Üretim süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Montaj",
|
||||||
|
"description": "Montaj süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Muayene",
|
||||||
|
"description": "Muayene süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Ambalajlama",
|
||||||
|
"description": "Ambalajlama süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Kurulum",
|
||||||
|
"description": "Kurulum süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Bakım",
|
||||||
|
"description": "Bakım süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Taşıma",
|
||||||
|
"description": "Taşıma süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Kalite",
|
||||||
|
"description": "Kalite süreçleri ile ilgili operasyonlar",
|
||||||
|
"isActive": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"OperationTypes": [
|
||||||
|
{
|
||||||
|
"code": "CUT001",
|
||||||
|
"name": "Kesme İşlemi",
|
||||||
|
"description": "Malzeme kesme operasyonu",
|
||||||
|
"categoryName": "Üretim",
|
||||||
|
"defaultDuration": 30,
|
||||||
|
"requiresSetup": true,
|
||||||
|
"allowsParallelOperation": false,
|
||||||
|
"qualityCheckRequired": true,
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "WELD001",
|
||||||
|
"name": "Kaynak İşlemi",
|
||||||
|
"description": "Metal kaynak operasyonu",
|
||||||
|
"categoryName": "Muayene",
|
||||||
|
"defaultDuration": 45,
|
||||||
|
"requiresSetup": true,
|
||||||
|
"allowsParallelOperation": false,
|
||||||
|
"qualityCheckRequired": true,
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "ASSY001",
|
||||||
|
"name": "Montaj İşlemi",
|
||||||
|
"description": "Parça montaj operasyonu",
|
||||||
|
"categoryName": "Montaj",
|
||||||
|
"defaultDuration": 20,
|
||||||
|
"requiresSetup": false,
|
||||||
|
"allowsParallelOperation": true,
|
||||||
|
"qualityCheckRequired": false,
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "QC001",
|
||||||
|
"name": "Kalite Kontrolü",
|
||||||
|
"description": "Ürün kalite kontrol işlemi",
|
||||||
|
"categoryName": "Kalite",
|
||||||
|
"defaultDuration": 15,
|
||||||
|
"requiresSetup": false,
|
||||||
|
"allowsParallelOperation": false,
|
||||||
|
"qualityCheckRequired": true,
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "PACK001",
|
||||||
|
"name": "Paketleme",
|
||||||
|
"description": "Ürün paketleme işlemi",
|
||||||
|
"categoryName": "Kurulum",
|
||||||
|
"defaultDuration": 10,
|
||||||
|
"requiresSetup": false,
|
||||||
|
"allowsParallelOperation": true,
|
||||||
|
"qualityCheckRequired": false,
|
||||||
|
"isActive": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Operations": [
|
||||||
|
{
|
||||||
|
"code": "OP001",
|
||||||
|
"name": "CNC Torna Tezgahı İşlemi",
|
||||||
|
"description": "Metal parçaların CNC torna tezgahında işlenmesi",
|
||||||
|
"operationTypeCode": "ASSY001",
|
||||||
|
"workCenterCode": "CNC-001",
|
||||||
|
"standardTime": 45,
|
||||||
|
"setupTime": 30,
|
||||||
|
"laborCost": 50,
|
||||||
|
"machineCost": 100,
|
||||||
|
"overheadCost": 25,
|
||||||
|
"isActive": true,
|
||||||
|
"instructions": "Torna tezgahında hassas işleme yapılacak",
|
||||||
|
"qualityCheckRequired": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "OP002",
|
||||||
|
"name": "Kaynak İşlemi",
|
||||||
|
"description": "Argon kaynak ile metal birleştirme",
|
||||||
|
"operationTypeCode": "WELD001",
|
||||||
|
"workCenterCode": "CNC-001",
|
||||||
|
"standardTime": 60,
|
||||||
|
"setupTime": 15,
|
||||||
|
"laborCost": 80,
|
||||||
|
"machineCost": 40,
|
||||||
|
"overheadCost": 20,
|
||||||
|
"isActive": true,
|
||||||
|
"instructions": "Argon gazı ile koruyucu atmosferde kaynak yapılacak",
|
||||||
|
"qualityCheckRequired": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "OP003",
|
||||||
|
"name": "Kalite Kontrolü",
|
||||||
|
"description": "Boyutsal ve görsel kalite kontrolü",
|
||||||
|
"operationTypeCode": "QC001",
|
||||||
|
"workCenterCode": "COMP-001",
|
||||||
|
"standardTime": 20,
|
||||||
|
"setupTime": 5,
|
||||||
|
"laborCost": 60,
|
||||||
|
"machineCost": 20,
|
||||||
|
"overheadCost": 10,
|
||||||
|
"isActive": true,
|
||||||
|
"instructions": "Teknik çizimlere göre boyutsal kontrol yapılacak",
|
||||||
|
"qualityCheckRequired": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "OP004",
|
||||||
|
"name": "Paketleme İşlemi",
|
||||||
|
"description": "Ürünlerin paketlenmesi",
|
||||||
|
"operationTypeCode": "PACK001",
|
||||||
|
"workCenterCode": "CONV-001",
|
||||||
|
"standardTime": 20,
|
||||||
|
"setupTime": 5,
|
||||||
|
"laborCost": 60,
|
||||||
|
"machineCost": 20,
|
||||||
|
"overheadCost": 10,
|
||||||
|
"isActive": true,
|
||||||
|
"instructions": "Teknik çizimlere göre boyutsal kontrol yapılacak",
|
||||||
|
"qualityCheckRequired": false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,9 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
private readonly IRepository<LocationType, Guid> _locationTypeRepository;
|
private readonly IRepository<LocationType, Guid> _locationTypeRepository;
|
||||||
private readonly IRepository<Location, Guid> _locationRepository;
|
private readonly IRepository<Location, Guid> _locationRepository;
|
||||||
private readonly IRepository<Putaway, Guid> _putawayRepository;
|
private readonly IRepository<Putaway, Guid> _putawayRepository;
|
||||||
|
private readonly IRepository<OperationCategory, Guid> _operationCategoryRepository;
|
||||||
|
private readonly IRepository<OperationType, Guid> _operationTypeRepository;
|
||||||
|
private readonly IRepository<Operation, Guid> _operationRepository;
|
||||||
|
|
||||||
public TenantDataSeeder(
|
public TenantDataSeeder(
|
||||||
IClock clock,
|
IClock clock,
|
||||||
|
|
@ -226,7 +229,10 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IRepository<Zone, Guid> zoneRepository,
|
IRepository<Zone, Guid> zoneRepository,
|
||||||
IRepository<LocationType, Guid> locationTypeRepository,
|
IRepository<LocationType, Guid> locationTypeRepository,
|
||||||
IRepository<Location, Guid> locationRepository,
|
IRepository<Location, Guid> locationRepository,
|
||||||
IRepository<Putaway, Guid> putawayRepository
|
IRepository<Putaway, Guid> putawayRepository,
|
||||||
|
IRepository<OperationCategory, Guid> operationCategoryRepository,
|
||||||
|
IRepository<OperationType, Guid> operationTypeRepository,
|
||||||
|
IRepository<Operation, Guid> operationRepository
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_clock = clock;
|
_clock = clock;
|
||||||
|
|
@ -333,6 +339,9 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
_locationTypeRepository = locationTypeRepository;
|
_locationTypeRepository = locationTypeRepository;
|
||||||
_locationRepository = locationRepository;
|
_locationRepository = locationRepository;
|
||||||
_putawayRepository = putawayRepository;
|
_putawayRepository = putawayRepository;
|
||||||
|
_operationCategoryRepository = operationCategoryRepository;
|
||||||
|
_operationTypeRepository = operationTypeRepository;
|
||||||
|
_operationRepository = operationRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IConfigurationRoot BuildConfiguration()
|
private static IConfigurationRoot BuildConfiguration()
|
||||||
|
|
@ -2275,6 +2284,69 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
|
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.OperationCategories)
|
||||||
|
{
|
||||||
|
var exists = await _operationCategoryRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
await _operationCategoryRepository.InsertAsync(new OperationCategory
|
||||||
|
{
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.OperationTypes)
|
||||||
|
{
|
||||||
|
var exists = await _operationTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var operationCategory = await _operationCategoryRepository.FirstOrDefaultAsync(x => x.Name == item.CategoryName);
|
||||||
|
|
||||||
|
await _operationTypeRepository.InsertAsync(new OperationType
|
||||||
|
{
|
||||||
|
Code = item.Code,
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
CategoryId = operationCategory?.Id,
|
||||||
|
DefaultDuration = item.DefaultDuration,
|
||||||
|
RequiresSetup = item.RequiresSetup,
|
||||||
|
AllowsParallelOperation = item.AllowsParallelOperation,
|
||||||
|
QualityCheckRequired = item.QualityCheckRequired,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.Operations)
|
||||||
|
{
|
||||||
|
var exists = await _operationRepository.AnyAsync(x => x.Code == item.Code);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var operationType = await _operationTypeRepository.FirstOrDefaultAsync(x => x.Code == item.OperationTypeCode);
|
||||||
|
var workcenter = await _workcenterRepository.FirstOrDefaultAsync(x => x.Code == item.WorkCenterCode);
|
||||||
|
|
||||||
|
await _operationRepository.InsertAsync(new Operation
|
||||||
|
{
|
||||||
|
Code = item.Code,
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
OperationTypeId = operationType?.Id,
|
||||||
|
WorkCenterId = workcenter?.Id,
|
||||||
|
StandardTime = item.StandardTime,
|
||||||
|
SetupTime = item.SetupTime,
|
||||||
|
LaborCost = item.LaborCost,
|
||||||
|
MachineCost = item.MachineCost,
|
||||||
|
OverheadCost = item.OverheadCost,
|
||||||
|
Instructions = item.Instructions,
|
||||||
|
QualityCheckRequired = item.QualityCheckRequired,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,46 @@ public class TenantSeederDto
|
||||||
public List<LocationTypeSeedDto> LocationTypes { get; set; }
|
public List<LocationTypeSeedDto> LocationTypes { get; set; }
|
||||||
public List<LocationSeedDto> Locations { get; set; }
|
public List<LocationSeedDto> Locations { get; set; }
|
||||||
public List<PutawaySeedDto> Putaways { get; set; }
|
public List<PutawaySeedDto> Putaways { get; set; }
|
||||||
|
public List<OperationCategorySeedDto> OperationCategories { get; set; }
|
||||||
|
public List<OperationTypeSeedDto> OperationTypes { get; set; }
|
||||||
|
public List<OperationSeedDto> Operations { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class OperationSeedDto
|
||||||
|
{
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string OperationTypeCode { get; set; }
|
||||||
|
public string WorkCenterCode { get; set; }
|
||||||
|
public int StandardTime { get; set; }
|
||||||
|
public int SetupTime { get; set; }
|
||||||
|
public decimal LaborCost { get; set; }
|
||||||
|
public decimal MachineCost { get; set; }
|
||||||
|
public decimal OverheadCost { get; set; }
|
||||||
|
public string Instructions { get; set; }
|
||||||
|
public bool QualityCheckRequired { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class OperationTypeSeedDto
|
||||||
|
{
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string CategoryName { get; set; }
|
||||||
|
public int DefaultDuration { get; set; }
|
||||||
|
public bool RequiresSetup { get; set; }
|
||||||
|
public bool AllowsParallelOperation { get; set; }
|
||||||
|
public bool QualityCheckRequired { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class OperationCategorySeedDto
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PutawaySeedDto
|
public class PutawaySeedDto
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue