Participant kaldırıldı -> Crm birleştirildi.

This commit is contained in:
Sedat Öztürk 2026-01-17 18:27:37 +03:00
parent 4b94aeaa86
commit 93f6b8aab6
14 changed files with 1644 additions and 1807 deletions

View file

@ -223,12 +223,6 @@
"en": "Tests",
"tr": "Testler"
},
{
"resourceName": "Platform",
"key": "App.Participant",
"en": "Participant",
"tr": "Katılımcı"
},
{
"resourceName": "AbpAccount",
"key": "Menu:Account",
@ -5751,9 +5745,9 @@
},
{
"resourceName": "Platform",
"key": "App.Definitions.Program",
"tr": "Programlar",
"en": "Programs"
"key": "App.Definitions.Source",
"tr": "Kaynaklar",
"en": "Sources"
},
{
"resourceName": "Platform",
@ -5767,30 +5761,30 @@
"tr": "Satış Reddetme Nedeni",
"en": "Sales Rejection Reason"
},
{
"resourceName": "Platform",
"key": "App.Definitions.NoteType",
"tr": "Not Tipleri",
"en": "Note Types"
},
{
"resourceName": "Platform",
"key": "App.Definitions.Program",
"tr": "Programlar",
"en": "Programs"
},
{
"resourceName": "Platform",
"key": "App.Definitions.ClassCancellationReason",
"tr": "Sınıf İptal Nedeni",
"en": "Class Cancellation Reason"
},
{
"resourceName": "Platform",
"key": "App.Definitions.Source",
"tr": "Kaynaklar",
"en": "Sources"
},
{
"resourceName": "Platform",
"key": "App.Definitions.Vaccine",
"tr": "Aşılar",
"en": "Vaccines"
},
{
"resourceName": "Platform",
"key": "App.Definitions.NoteType",
"tr": "Not Tipleri",
"en": "Note Types"
},
{
"resourceName": "Platform",
"key": "App.Definitions.WorkHour",
@ -9759,33 +9753,33 @@
},
{
"resourceName": "Platform",
"key": "App.Crm.CustomerType",
"key": "App.Definitions.CustomerType",
"tr": "Müşteri Türleri",
"en": "Customer Types"
},
{
"resourceName": "Platform",
"key": "App.Crm.CustomerSegment",
"key": "App.Definitions.CustomerSegment",
"tr": "Müşteri Segmentleri",
"en": "Customer Segments"
},
{
"resourceName": "Platform",
"key": "App.Crm.Customer",
"key": "App.Definitions.Customer",
"tr": "Müşteriler",
"en": "Customers"
},
{
"resourceName": "Platform",
"key": "App.Crm.SalesTeam",
"tr": "Satış Ekipleri",
"en": "Sales Teams"
"key": "App.Definitions.LossReason",
"tr": "Kayıp Nedenleri",
"en": "Loss Reasons"
},
{
"resourceName": "Platform",
"key": "App.Crm.LossReason",
"tr": "Kayıp Nedenleri",
"en": "Loss Reasons"
"key": "App.Definitions.SalesOrderStatus",
"tr": "Satış Siparişleri Durumları",
"en": "Sales Order Statuses"
},
{
"resourceName": "Platform",
@ -9811,12 +9805,6 @@
"tr": "Aktiviteler",
"en": "Activities"
},
{
"resourceName": "Platform",
"key": "App.Crm.SalesOrderStatus",
"tr": "Satış Siparişleri Durumları",
"en": "Sales Order Statuses"
},
{
"resourceName": "Platform",
"key": "App.Crm.SalesOrder",

File diff suppressed because it is too large Load diff

View file

@ -1,791 +0,0 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Text.Json;
using System.Threading.Tasks;
using Erp.Languages.Languages;
using Erp.Platform.Entities;
using Erp.Platform.Enums;
using Erp.Platform.ListForms;
using Erp.Platform.Queries;
using Microsoft.Extensions.Configuration;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Identity;
using AppCodes = Erp.Platform.Data.Seeds.SeedConsts.AppCodes;
using static Erp.Platform.PlatformConsts;
using static Erp.Platform.PlatformSeeder.SeederDefaults;
namespace Erp.Platform.Data.Seeds;
public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDependency
{
private readonly IRepository<ListForm, Guid> _listFormRepository;
private readonly IRepository<ListFormField, Guid> _listFormFieldRepository;
private readonly IdentityUserManager _identityUserManager;
private readonly IdentityRoleManager _identityRoleManager;
private readonly IConfiguration _configuration;
public ListFormSeeder_Participant(
IRepository<ListForm, Guid> listFormRepository,
IRepository<ListFormField, Guid> listFormFieldRepository,
IdentityUserManager userManager,
IdentityRoleManager roleManager,
IConfiguration configuration)
{
_listFormRepository = listFormRepository;
_listFormFieldRepository = listFormFieldRepository;
_identityUserManager = userManager;
_identityRoleManager = roleManager;
_configuration = configuration;
}
public async Task SeedAsync(DataSeedContext context)
{
var listFormName = String.Empty;
#region MeetingMethod
listFormName = AppCodes.Definitions.MeetingMethod;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.MeetingMethod)),
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.MeetingMethod)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order = 2, DataField = "Type", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]}
}),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}),
}
);
#region MeetingMethod Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
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 = "Name",
Width = 250,
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 = "Type",
Width = 250,
ListOrderNo = 3,
Visible = true,
IsActive = true,
IsDeleted = false,
AllowSearch = true,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Dijital",Name="Dijital" },
new () { Key="Telefon",Name="Telefon" },
new () { Key="Fiziksel",Name="Fiziksel" },
new () { Key="Hibrit",Name="Hibrit" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
},
// Status
new()
{
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Status",
Width = 120,
ListOrderNo = 4,
Visible = true,
IsActive = true,
IsDeleted = false,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Aktif",Name="Aktif" },
new () { Key="Pasif",Name="Pasif" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
}
});
#endregion
}
#endregion
#region MeetingResult
listFormName = AppCodes.Definitions.MeetingResult;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.MeetingResult)),
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.MeetingResult)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order = 2, DataField = "Order", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxNumberBox },
new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]}
}),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}),
}
);
#region MeetingResult Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
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 = "Name",
Width = 250,
ListOrderNo = 2,
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.String,
FieldName = "Order",
Width = 250,
ListOrderNo = 3,
Visible = true,
IsActive = true,
IsDeleted = false,
AllowSearch = true,
SortIndex = 1,
SortDirection = GridColumnOptions.SortOrderAsc,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
},
// Status
new()
{
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Status",
Width = 120,
ListOrderNo = 4,
Visible = true,
IsActive = true,
IsDeleted = false,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Aktif",Name="Aktif" },
new () { Key="Pasif",Name="Pasif" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
}
});
#endregion
}
#endregion
#region Source
listFormName = AppCodes.Definitions.Source;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.Source)),
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.Source)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1,ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order = 2, DataField = "Status", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]}
}),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}),
}
);
#region Source Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
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 = "Name",
Width = 500,
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 = "Status",
Width = 250,
ListOrderNo = 3,
Visible = true,
IsActive = true,
IsDeleted = false,
AllowSearch = true,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Aktif",Name="Aktif" },
new () { Key="Pasif",Name="Pasif" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
}
});
#endregion
}
#endregion
#region Interesting
listFormName = AppCodes.Definitions.Interesting;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.Interesting)),
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.Interesting)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order = 2, DataField = "Status", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]}
}),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}),
}
);
#region Interesting Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
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 = "Name",
Width = 250,
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 = "Status",
Width = 250,
ListOrderNo = 3,
Visible = true,
IsActive = true,
IsDeleted = false,
AllowSearch = true,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Aktif",Name="Aktif" },
new () { Key="Pasif",Name="Pasif" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
}
});
#endregion
}
#endregion
#region SalesRejectionReason
listFormName = AppCodes.Definitions.SalesRejectionReason;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.SalesRejectionReason)),
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.SalesRejectionReason)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order = 2, DataField = "Category", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]}
}),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}),
}
);
#region SalesRejectionReason Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
new() {
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.Guid,
FieldName = "Id",
Width = 100,
ListOrderNo = 1,
Visible = false,
IsActive = true,
IsDeleted = false,
SortIndex = 0,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
},
new() {
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Name",
Width = 500,
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
},
// Status
new()
{
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Category",
Width = 300,
ListOrderNo = 3,
Visible = true,
IsActive = true,
IsDeleted = false,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Kişisel",Name="Kişisel" },
new () { Key="Fiyat / Bütçe",Name="Fiyat / Bütçe" },
new () { Key="Ürün / Hizmet",Name="Ürün / Hizmet" },
new () { Key="Rekabet",Name="Rekabet" },
new () { Key="Zamanlama",Name="Zamanlama" },
new () { Key="Lokasyon",Name="Lokasyon" },
new () { Key="İletişim",Name="İletişim" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
},
new() {
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Status",
Width = 100,
ListOrderNo = 4,
Visible = true,
IsActive = true,
IsDeleted = false,
AllowSearch = true,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
LookupJson = JsonSerializer.Serialize(new LookupDto {
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
DisplayExpr = "name",
ValueExpr = "key",
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
new () { Key="Aktif",Name="Aktif" },
new () { Key="Pasif",Name="Pasif" },
}),
}),
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
}
});
#endregion
}
#endregion
#region NoteType
listFormName = AppCodes.Definitions.NoteType;
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
{
var listForm = await _listFormRepository.InsertAsync(
new ListForm()
{
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
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.NoteType)),
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.NoteType)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
PagerOptionJson = DefaultPagerOptionJson,
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() {
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= [
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
]}
}),
}
);
#region NoteType Fields
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
new() {
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.Guid,
FieldName = "Id",
Width = 100,
ListOrderNo = 1,
Visible = false,
IsActive = true,
IsDeleted = false,
SortIndex = 0,
ValidationRuleJson = DefaultValidationRuleRequiredJson,
ColumnCustomizationJson = DefaultColumnCustomizationJson,
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
PivotSettingsJson = DefaultPivotSettingsJson
},
new() {
ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En,
SourceDbType = DbType.String,
FieldName = "Name",
Width = 250,
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
}
});
#endregion
}
#endregion
}
}

View file

@ -2373,7 +2373,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
// Customer ile Bank, Certificate ve Contact Sub Forms ilişkisinin kurulması
await utils.CloneFormLayoutAsync(
AppCodes.Crm.Customer,
AppCodes.Definitions.Customer,
JsonSerializer.Serialize(new List<dynamic>() {
new {
TabType = ListFormTabTypeEnum.List,

View file

@ -1362,19 +1362,19 @@
},
{
"ParentCode": null,
"Code": "App.Participant",
"DisplayName": "App.Participant",
"Code": "App.Crm",
"DisplayName": "App.Crm",
"Order": 300,
"Url": null,
"Icon": "FcBusinessman",
"Icon": "FcContacts",
"RequiredPermissionName": null,
"IsDisabled": false,
"ShortName": "Prt"
"ShortName": "Crm"
},
{
"ParentCode": "App.Participant",
"Code": "App.Participant.Definitions",
"DisplayName": "App.Definitions",
"ParentCode": "App.Crm",
"Code": "App.Crm.Definitions",
"DisplayName": "App.Crm.Definitions",
"Order": 1,
"Url": null,
"Icon": "FcFilingCabinet",
@ -1382,7 +1382,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.MeetingMethod",
"DisplayName": "App.Definitions.MeetingMethod",
"Order": 1,
@ -1392,7 +1392,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.MeetingResult",
"DisplayName": "App.Definitions.MeetingResult",
"Order": 2,
@ -1402,7 +1402,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.Source",
"DisplayName": "App.Definitions.Source",
"Order": 3,
@ -1412,7 +1412,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.Interesting",
"DisplayName": "App.Definitions.Interesting",
"Order": 4,
@ -1422,7 +1422,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.SalesRejectionReason",
"DisplayName": "App.Definitions.SalesRejectionReason",
"Order": 5,
@ -1432,7 +1432,7 @@
"IsDisabled": false
},
{
"ParentCode": "App.Participant.Definitions",
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.NoteType",
"DisplayName": "App.Definitions.NoteType",
"Order": 6,
@ -1441,6 +1441,87 @@
"RequiredPermissionName": "App.Definitions.NoteType",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.CustomerType",
"DisplayName": "App.Definitions.CustomerType",
"Order": 7,
"Url": "/admin/list/App.Definitions.CustomerType",
"Icon": "FcMultipleInputs",
"RequiredPermissionName": "App.Definitions.CustomerType",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.CustomerSegment",
"DisplayName": "App.Definitions.CustomerSegment",
"Order": 8,
"Url": "/admin/list/App.Definitions.CustomerSegment",
"Icon": "FcComboChart",
"RequiredPermissionName": "App.Definitions.CustomerSegment",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.Customer",
"DisplayName": "App.Definitions.Customer",
"Order": 9,
"Url": "/admin/list/App.Definitions.Customer",
"Icon": "FcBusinessman",
"RequiredPermissionName": "App.Definitions.Customer",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.LossReason",
"DisplayName": "App.Definitions.LossReason",
"Order": 10,
"Url": "/admin/list/App.Definitions.LossReason",
"Icon": "FcHighPriority",
"RequiredPermissionName": "App.Definitions.LossReason",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Definitions.SalesOrderStatus",
"DisplayName": "App.Definitions.SalesOrderStatus",
"Order": 11,
"Url": "/admin/list/App.Definitions.SalesOrderStatus",
"Icon": "FcWorkflow",
"RequiredPermissionName": "App.Definitions.SalesOrderStatus",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.Opportunity",
"DisplayName": "App.Crm.Opportunity",
"Order": 2,
"Url": "/admin/list/App.Crm.Opportunity",
"Icon": "FcIdea",
"RequiredPermissionName": "App.Crm.Opportunity",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.Activity",
"DisplayName": "App.Crm.Activity",
"Order": 3,
"Url": "/admin/list/App.Crm.Activity",
"Icon": "FcCalendar",
"RequiredPermissionName": "App.Crm.Activity",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.SalesOrder",
"DisplayName": "App.Crm.SalesOrder",
"Order": 4,
"Url": "/admin/list/App.Crm.SalesOrder",
"Icon": "FcShop",
"RequiredPermissionName": "App.Crm.SalesOrder",
"IsDisabled": false
},
{
"ParentCode": null,
"Code": "App.Coordinator",
@ -1622,107 +1703,6 @@
"RequiredPermissionName": "App.Coordinator.Tests",
"IsDisabled": false
},
{
"ParentCode": null,
"Code": "App.Crm",
"DisplayName": "App.Crm",
"Order": 500,
"Url": null,
"Icon": "FcContacts",
"RequiredPermissionName": null,
"IsDisabled": false,
"ShortName": "Crm"
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.Definitions",
"DisplayName": "App.Crm.Definitions",
"Order": 1,
"Url": null,
"Icon": "FcFilingCabinet",
"RequiredPermissionName": null,
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Crm.CustomerType",
"DisplayName": "App.Crm.CustomerType",
"Order": 1,
"Url": "/admin/list/App.Crm.CustomerType",
"Icon": "FcMultipleInputs",
"RequiredPermissionName": "App.Crm.CustomerType",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Crm.CustomerSegment",
"DisplayName": "App.Crm.CustomerSegment",
"Order": 2,
"Url": "/admin/list/App.Crm.CustomerSegment",
"Icon": "FcComboChart",
"RequiredPermissionName": "App.Crm.CustomerSegment",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Crm.Customer",
"DisplayName": "App.Crm.Customer",
"Order": 3,
"Url": "/admin/list/App.Crm.Customer",
"Icon": "FcBusinessman",
"RequiredPermissionName": "App.Crm.Customer",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Crm.LossReason",
"DisplayName": "App.Crm.LossReason",
"Order": 4,
"Url": "/admin/list/App.Crm.LossReason",
"Icon": "FcHighPriority",
"RequiredPermissionName": "App.Crm.LossReason",
"IsDisabled": false
},
{
"ParentCode": "App.Crm.Definitions",
"Code": "App.Crm.SalesOrderStatus",
"DisplayName": "App.Crm.SalesOrderStatus",
"Order": 5,
"Url": "/admin/list/App.Crm.SalesOrderStatus",
"Icon": "FcWorkflow",
"RequiredPermissionName": "App.Crm.SalesOrderStatus",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.Opportunity",
"DisplayName": "App.Crm.Opportunity",
"Order": 2,
"Url": "/admin/list/App.Crm.Opportunity",
"Icon": "FcIdea",
"RequiredPermissionName": "App.Crm.Opportunity",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.Activity",
"DisplayName": "App.Crm.Activity",
"Order": 3,
"Url": "/admin/list/App.Crm.Activity",
"Icon": "FcCalendar",
"RequiredPermissionName": "App.Crm.Activity",
"IsDisabled": false
},
{
"ParentCode": "App.Crm",
"Code": "App.Crm.SalesOrder",
"DisplayName": "App.Crm.SalesOrder",
"Order": 4,
"Url": "/admin/list/App.Crm.SalesOrder",
"Icon": "FcShop",
"RequiredPermissionName": "App.Crm.SalesOrder",
"IsDisabled": false
},
{
"ParentCode": null,
"Code": "App.SupplyChain",

File diff suppressed because it is too large Load diff

View file

@ -7,9 +7,8 @@ public enum MenuPrefix
Platform,
Saas,
Administration,
Participant,
Coordinator,
Crm,
Coordinator,
SupplyChain,
Maintenance,
Store,
@ -28,9 +27,8 @@ public static class MenuPrefixExtensions
MenuPrefix.Platform => "Plat",
MenuPrefix.Saas => "Sas",
MenuPrefix.Administration => "Adm",
MenuPrefix.Participant => "Prt",
MenuPrefix.Coordinator => "Crd",
MenuPrefix.Crm => "Crm",
MenuPrefix.Coordinator => "Crd",
MenuPrefix.SupplyChain => "Scp",
MenuPrefix.Maintenance => "Mnt",
MenuPrefix.Store => "Str",

View file

@ -111,13 +111,22 @@ public static class TableNameResolver
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Administration) },
// 🔹 PARTICIPANT
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Participant) },
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Participant) },
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Participant) },
{ nameof(TableNameEnum.SalesRejectionReason), (TablePrefix.TenantByName, MenuPrefix.Participant) },
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Participant) },
{ nameof(TableNameEnum.MeetingResult), (TablePrefix.TenantByName, MenuPrefix.Participant) },
// CRM
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesRejectionReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.MeetingResult), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.LossReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Opportunity), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Activity), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Competitor), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrderStatus), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrder), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrderItem), (TablePrefix.TenantByName, MenuPrefix.Crm) },
// 🔹 COORDINATOR
{ nameof(TableNameEnum.Schedule), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
@ -180,17 +189,6 @@ public static class TableNameResolver
{ nameof(TableNameEnum.PurchaseOrder), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
{ nameof(TableNameEnum.PurchaseOrderItem), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
// CRM
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.LossReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Opportunity), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Activity), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.Competitor), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrderStatus), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrder), (TablePrefix.TenantByName, MenuPrefix.Crm) },
{ nameof(TableNameEnum.SalesOrderItem), (TablePrefix.TenantByName, MenuPrefix.Crm) },
// 🔹 MAINTENANCE
{ nameof(TableNameEnum.WorkcenterType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
{ nameof(TableNameEnum.WorkcenterStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },

View file

@ -452,6 +452,23 @@ public static class SeedConsts
public const string QuestionTag = Default + ".QuestionTag";
public const string QuestionPool = Default + ".QuestionPool";
public const string Question = Default + ".Question";
public const string CustomerType = Default + ".CustomerType";
public const string CustomerSegment = Default + ".CustomerSegment";
public const string Customer = Default + ".Customer";
public const string LossReason = Default + ".LossReason";
public const string SalesOrderStatus = Default + ".SalesOrderStatus";
}
public static class Crm
{
public const string Default = Prefix.App + ".Crm";
public const string Opportunity = Default + ".Opportunity";
public const string OpportunityActivity = Default + ".OpportunityActivity";
public const string OpportunityCompetitor = Default + ".OpportunityCompetitor";
public const string Activity = Default + ".Activity";
public const string SalesOrder = Default + ".SalesOrder";
public const string SalesOrderItem = Default + ".SalesOrderItem";
}
public static class Coordinator
@ -498,22 +515,6 @@ public static class SeedConsts
public const string SurveyResponse = Default + ".SurveyResponse";
}
public static class Crm
{
public const string Default = Prefix.App + ".Crm";
public const string CustomerType = Default + ".CustomerType";
public const string CustomerSegment = Default + ".CustomerSegment";
public const string Customer = Default + ".Customer";
public const string LossReason = Default + ".LossReason";
public const string Opportunity = Default + ".Opportunity";
public const string OpportunityActivity = Default + ".OpportunityActivity";
public const string OpportunityCompetitor = Default + ".OpportunityCompetitor";
public const string Activity = Default + ".Activity";
public const string SalesOrderStatus = Default + ".SalesOrderStatus";
public const string SalesOrder = Default + ".SalesOrder";
public const string SalesOrderItem = Default + ".SalesOrderItem";
}
public static class SupplyChain
{
public const string Default = Prefix.App + ".SupplyChain";

View file

@ -137,7 +137,14 @@ public class PlatformDbContext :
public DbSet<SocialLike> SocialLikes { get; set; }
#endregion
#region Participant
#region Crm
public DbSet<LossReason> LostReasons { get; set; }
public DbSet<Opportunity> Opportunities { get; set; }
public DbSet<Entities.Activity> Actions { get; set; }
public DbSet<Competitor> Competitors { get; set; }
public DbSet<SalesOrder> SalesOrders { get; set; }
public DbSet<SalesOrderItem> SalesOrderItems { get; set; }
public DbSet<SalesOrderStatus> SalesOrderStatuses { get; set; }
public DbSet<MeetingMethod> MeetingMethods { get; set; }
public DbSet<MeetingResult> MeetingResults { get; set; }
public DbSet<Source> Sources { get; set; }
@ -224,16 +231,6 @@ public class PlatformDbContext :
public DbSet<PurchaseOrderItem> PurchaseOrderItems { get; set; }
#endregion
#region Crm
public DbSet<LossReason> LostReasons { get; set; }
public DbSet<Opportunity> Opportunities { get; set; }
public DbSet<Entities.Activity> Actions { get; set; }
public DbSet<Competitor> Competitors { get; set; }
public DbSet<SalesOrder> SalesOrders { get; set; }
public DbSet<SalesOrderItem> SalesOrderItems { get; set; }
public DbSet<SalesOrderStatus> SalesOrderStatuses { get; set; }
#endregion
#region Store
public DbSet<WarehouseType> WarehouseTypes { get; set; }
public DbSet<Warehouse> Warehouses { get; set; }

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Erp.Platform.Migrations
{
[DbContext(typeof(PlatformDbContext))]
[Migration("20260107104555_Initial")]
[Migration("20260117151816_Initial")]
partial class Initial
{
/// <inheritdoc />
@ -5823,7 +5823,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_Interesting", (string)null);
b.ToTable("Crm_T_Interesting", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
@ -8122,7 +8122,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_MeetingMethod", (string)null);
b.ToTable("Crm_T_MeetingMethod", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
@ -8179,7 +8179,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_MeetingResult", (string)null);
b.ToTable("Crm_T_MeetingResult", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
@ -8633,7 +8633,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_NoteType", (string)null);
b.ToTable("Crm_T_NoteType", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
@ -13754,7 +13754,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_SalesRejectionReason", (string)null);
b.ToTable("Crm_T_SalesRejectionReason", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
@ -14731,7 +14731,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_Source", (string)null);
b.ToTable("Crm_T_Source", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>

View file

@ -1398,6 +1398,27 @@ namespace Erp.Platform.Migrations
table.PrimaryKey("PK_Crm_T_CustomerType", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_Interesting",
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(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Crm_T_Interesting", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_LossReason",
columns: table => new
@ -1421,6 +1442,70 @@ namespace Erp.Platform.Migrations
table.PrimaryKey("PK_Crm_T_LossReason", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_MeetingMethod",
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(64)", maxLength: 64, nullable: false),
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
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_Crm_T_MeetingMethod", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_MeetingResult",
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(64)", maxLength: 64, nullable: false),
Order = table.Column<short>(type: "smallint", nullable: true),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
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_Crm_T_MeetingResult", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_NoteType",
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(64)", maxLength: 64, nullable: false),
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_Crm_T_NoteType", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_SalesOrderStatus",
columns: table => new
@ -1443,6 +1528,49 @@ namespace Erp.Platform.Migrations
table.PrimaryKey("PK_Crm_T_SalesOrderStatus", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_SalesRejectionReason",
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(64)", maxLength: 64, nullable: false),
Category = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Crm_T_SalesRejectionReason", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Crm_T_Source",
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(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Crm_T_Source", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Hr_T_Badge",
columns: table => new
@ -2173,134 +2301,6 @@ namespace Erp.Platform.Migrations
table.PrimaryKey("PK_Prj_T_WorkType", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_Interesting",
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(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Prt_T_Interesting", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_MeetingMethod",
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(64)", maxLength: 64, nullable: false),
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
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_Prt_T_MeetingMethod", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_MeetingResult",
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(64)", maxLength: 64, nullable: false),
Order = table.Column<short>(type: "smallint", nullable: true),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
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_Prt_T_MeetingResult", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_NoteType",
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(64)", maxLength: 64, nullable: false),
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_Prt_T_NoteType", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_SalesRejectionReason",
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(64)", maxLength: 64, nullable: false),
Category = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Prt_T_SalesRejectionReason", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Prt_T_Source",
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(64)", maxLength: 64, nullable: false),
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: 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_Prt_T_Source", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_H_ContactTag",
columns: table => new
@ -6399,9 +6399,9 @@ namespace Erp.Platform.Migrations
principalTable: "Crm_T_LossReason",
principalColumn: "Id");
table.ForeignKey(
name: "FK_Crm_T_Opportunity_Prt_T_Source_SourceId",
name: "FK_Crm_T_Opportunity_Crm_T_Source_SourceId",
column: x => x.SourceId,
principalTable: "Prt_T_Source",
principalTable: "Crm_T_Source",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
@ -10526,9 +10526,24 @@ namespace Erp.Platform.Migrations
migrationBuilder.DropTable(
name: "Crm_T_Competitor");
migrationBuilder.DropTable(
name: "Crm_T_Interesting");
migrationBuilder.DropTable(
name: "Crm_T_MeetingMethod");
migrationBuilder.DropTable(
name: "Crm_T_MeetingResult");
migrationBuilder.DropTable(
name: "Crm_T_NoteType");
migrationBuilder.DropTable(
name: "Crm_T_SalesOrderItem");
migrationBuilder.DropTable(
name: "Crm_T_SalesRejectionReason");
migrationBuilder.DropTable(
name: "Hr_T_Expense");
@ -10616,21 +10631,6 @@ namespace Erp.Platform.Migrations
migrationBuilder.DropTable(
name: "Prj_T_ProjectTeam");
migrationBuilder.DropTable(
name: "Prt_T_Interesting");
migrationBuilder.DropTable(
name: "Prt_T_MeetingMethod");
migrationBuilder.DropTable(
name: "Prt_T_MeetingResult");
migrationBuilder.DropTable(
name: "Prt_T_NoteType");
migrationBuilder.DropTable(
name: "Prt_T_SalesRejectionReason");
migrationBuilder.DropTable(
name: "Sas_H_ContactTag");
@ -10923,7 +10923,7 @@ namespace Erp.Platform.Migrations
name: "Crm_T_LossReason");
migrationBuilder.DropTable(
name: "Prt_T_Source");
name: "Crm_T_Source");
migrationBuilder.DropTable(
name: "Hr_T_Survey");

View file

@ -5820,7 +5820,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_Interesting", (string)null);
b.ToTable("Crm_T_Interesting", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
@ -8119,7 +8119,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_MeetingMethod", (string)null);
b.ToTable("Crm_T_MeetingMethod", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
@ -8176,7 +8176,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_MeetingResult", (string)null);
b.ToTable("Crm_T_MeetingResult", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
@ -8630,7 +8630,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_NoteType", (string)null);
b.ToTable("Crm_T_NoteType", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
@ -13751,7 +13751,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_SalesRejectionReason", (string)null);
b.ToTable("Crm_T_SalesRejectionReason", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
@ -14728,7 +14728,7 @@ namespace Erp.Platform.Migrations
b.HasKey("Id");
b.ToTable("Prt_T_Source", (string)null);
b.ToTable("Crm_T_Source", (string)null);
});
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>

View file

@ -63,9 +63,8 @@ const EntityEditor: React.FC = () => {
'Platform': 'Plat',
'Saas': 'Sas',
'Administration': 'Adm',
'Participant': 'Prt',
'Coordinator': 'Crd',
'Crm': 'Crm',
'Coordinator': 'Crd',
'SupplyChain': 'Scp',
'Maintenance': 'Mnt',
'Warehouse': 'Str',