Participant kaldırıldı -> Crm birleştirildi.
This commit is contained in:
parent
4b94aeaa86
commit
93f6b8aab6
14 changed files with 1644 additions and 1807 deletions
|
|
@ -223,12 +223,6 @@
|
||||||
"en": "Tests",
|
"en": "Tests",
|
||||||
"tr": "Testler"
|
"tr": "Testler"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceName": "Platform",
|
|
||||||
"key": "App.Participant",
|
|
||||||
"en": "Participant",
|
|
||||||
"tr": "Katılımcı"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceName": "AbpAccount",
|
"resourceName": "AbpAccount",
|
||||||
"key": "Menu:Account",
|
"key": "Menu:Account",
|
||||||
|
|
@ -5751,9 +5745,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Definitions.Program",
|
"key": "App.Definitions.Source",
|
||||||
"tr": "Programlar",
|
"tr": "Kaynaklar",
|
||||||
"en": "Programs"
|
"en": "Sources"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
@ -5767,30 +5761,30 @@
|
||||||
"tr": "Satış Reddetme Nedeni",
|
"tr": "Satış Reddetme Nedeni",
|
||||||
"en": "Sales Rejection Reason"
|
"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",
|
"resourceName": "Platform",
|
||||||
"key": "App.Definitions.ClassCancellationReason",
|
"key": "App.Definitions.ClassCancellationReason",
|
||||||
"tr": "Sınıf İptal Nedeni",
|
"tr": "Sınıf İptal Nedeni",
|
||||||
"en": "Class Cancellation Reason"
|
"en": "Class Cancellation Reason"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceName": "Platform",
|
|
||||||
"key": "App.Definitions.Source",
|
|
||||||
"tr": "Kaynaklar",
|
|
||||||
"en": "Sources"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Definitions.Vaccine",
|
"key": "App.Definitions.Vaccine",
|
||||||
"tr": "Aşılar",
|
"tr": "Aşılar",
|
||||||
"en": "Vaccines"
|
"en": "Vaccines"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceName": "Platform",
|
|
||||||
"key": "App.Definitions.NoteType",
|
|
||||||
"tr": "Not Tipleri",
|
|
||||||
"en": "Note Types"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Definitions.WorkHour",
|
"key": "App.Definitions.WorkHour",
|
||||||
|
|
@ -9759,34 +9753,34 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.CustomerType",
|
"key": "App.Definitions.CustomerType",
|
||||||
"tr": "Müşteri Türleri",
|
"tr": "Müşteri Türleri",
|
||||||
"en": "Customer Types"
|
"en": "Customer Types"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.CustomerSegment",
|
"key": "App.Definitions.CustomerSegment",
|
||||||
"tr": "Müşteri Segmentleri",
|
"tr": "Müşteri Segmentleri",
|
||||||
"en": "Customer Segments"
|
"en": "Customer Segments"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.Customer",
|
"key": "App.Definitions.Customer",
|
||||||
"tr": "Müşteriler",
|
"tr": "Müşteriler",
|
||||||
"en": "Customers"
|
"en": "Customers"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.SalesTeam",
|
"key": "App.Definitions.LossReason",
|
||||||
"tr": "Satış Ekipleri",
|
|
||||||
"en": "Sales Teams"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceName": "Platform",
|
|
||||||
"key": "App.Crm.LossReason",
|
|
||||||
"tr": "Kayıp Nedenleri",
|
"tr": "Kayıp Nedenleri",
|
||||||
"en": "Loss Reasons"
|
"en": "Loss Reasons"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.SalesOrderStatus",
|
||||||
|
"tr": "Satış Siparişleri Durumları",
|
||||||
|
"en": "Sales Order Statuses"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.Opportunity",
|
"key": "App.Crm.Opportunity",
|
||||||
|
|
@ -9811,12 +9805,6 @@
|
||||||
"tr": "Aktiviteler",
|
"tr": "Aktiviteler",
|
||||||
"en": "Activities"
|
"en": "Activities"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"resourceName": "Platform",
|
|
||||||
"key": "App.Crm.SalesOrderStatus",
|
|
||||||
"tr": "Satış Siparişleri Durumları",
|
|
||||||
"en": "Sales Order Statuses"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.SalesOrder",
|
"key": "App.Crm.SalesOrder",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -2373,7 +2373,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
|
|
||||||
// Customer ile Bank, Certificate ve Contact Sub Forms ilişkisinin kurulması
|
// Customer ile Bank, Certificate ve Contact Sub Forms ilişkisinin kurulması
|
||||||
await utils.CloneFormLayoutAsync(
|
await utils.CloneFormLayoutAsync(
|
||||||
AppCodes.Crm.Customer,
|
AppCodes.Definitions.Customer,
|
||||||
JsonSerializer.Serialize(new List<dynamic>() {
|
JsonSerializer.Serialize(new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
|
|
|
||||||
|
|
@ -1360,21 +1360,21 @@
|
||||||
"RequiredPermissionName": "App.SqlQueryManager",
|
"RequiredPermissionName": "App.SqlQueryManager",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": null,
|
"ParentCode": null,
|
||||||
"Code": "App.Participant",
|
"Code": "App.Crm",
|
||||||
"DisplayName": "App.Participant",
|
"DisplayName": "App.Crm",
|
||||||
"Order": 300,
|
"Order": 300,
|
||||||
"Url": null,
|
"Url": null,
|
||||||
"Icon": "FcBusinessman",
|
"Icon": "FcContacts",
|
||||||
"RequiredPermissionName": null,
|
"RequiredPermissionName": null,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
"ShortName": "Prt"
|
"ShortName": "Crm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Participant.Definitions",
|
"Code": "App.Crm.Definitions",
|
||||||
"DisplayName": "App.Definitions",
|
"DisplayName": "App.Crm.Definitions",
|
||||||
"Order": 1,
|
"Order": 1,
|
||||||
"Url": null,
|
"Url": null,
|
||||||
"Icon": "FcFilingCabinet",
|
"Icon": "FcFilingCabinet",
|
||||||
|
|
@ -1382,7 +1382,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.MeetingMethod",
|
"Code": "App.Definitions.MeetingMethod",
|
||||||
"DisplayName": "App.Definitions.MeetingMethod",
|
"DisplayName": "App.Definitions.MeetingMethod",
|
||||||
"Order": 1,
|
"Order": 1,
|
||||||
|
|
@ -1392,7 +1392,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.MeetingResult",
|
"Code": "App.Definitions.MeetingResult",
|
||||||
"DisplayName": "App.Definitions.MeetingResult",
|
"DisplayName": "App.Definitions.MeetingResult",
|
||||||
"Order": 2,
|
"Order": 2,
|
||||||
|
|
@ -1402,7 +1402,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.Source",
|
"Code": "App.Definitions.Source",
|
||||||
"DisplayName": "App.Definitions.Source",
|
"DisplayName": "App.Definitions.Source",
|
||||||
"Order": 3,
|
"Order": 3,
|
||||||
|
|
@ -1412,7 +1412,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.Interesting",
|
"Code": "App.Definitions.Interesting",
|
||||||
"DisplayName": "App.Definitions.Interesting",
|
"DisplayName": "App.Definitions.Interesting",
|
||||||
"Order": 4,
|
"Order": 4,
|
||||||
|
|
@ -1422,7 +1422,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.SalesRejectionReason",
|
"Code": "App.Definitions.SalesRejectionReason",
|
||||||
"DisplayName": "App.Definitions.SalesRejectionReason",
|
"DisplayName": "App.Definitions.SalesRejectionReason",
|
||||||
"Order": 5,
|
"Order": 5,
|
||||||
|
|
@ -1432,7 +1432,7 @@
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Participant.Definitions",
|
"ParentCode": "App.Crm.Definitions",
|
||||||
"Code": "App.Definitions.NoteType",
|
"Code": "App.Definitions.NoteType",
|
||||||
"DisplayName": "App.Definitions.NoteType",
|
"DisplayName": "App.Definitions.NoteType",
|
||||||
"Order": 6,
|
"Order": 6,
|
||||||
|
|
@ -1441,6 +1441,87 @@
|
||||||
"RequiredPermissionName": "App.Definitions.NoteType",
|
"RequiredPermissionName": "App.Definitions.NoteType",
|
||||||
"IsDisabled": false
|
"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,
|
"ParentCode": null,
|
||||||
"Code": "App.Coordinator",
|
"Code": "App.Coordinator",
|
||||||
|
|
@ -1622,107 +1703,6 @@
|
||||||
"RequiredPermissionName": "App.Coordinator.Tests",
|
"RequiredPermissionName": "App.Coordinator.Tests",
|
||||||
"IsDisabled": false
|
"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,
|
"ParentCode": null,
|
||||||
"Code": "App.SupplyChain",
|
"Code": "App.SupplyChain",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -7,9 +7,8 @@ public enum MenuPrefix
|
||||||
Platform,
|
Platform,
|
||||||
Saas,
|
Saas,
|
||||||
Administration,
|
Administration,
|
||||||
Participant,
|
|
||||||
Coordinator,
|
|
||||||
Crm,
|
Crm,
|
||||||
|
Coordinator,
|
||||||
SupplyChain,
|
SupplyChain,
|
||||||
Maintenance,
|
Maintenance,
|
||||||
Store,
|
Store,
|
||||||
|
|
@ -28,9 +27,8 @@ public static class MenuPrefixExtensions
|
||||||
MenuPrefix.Platform => "Plat",
|
MenuPrefix.Platform => "Plat",
|
||||||
MenuPrefix.Saas => "Sas",
|
MenuPrefix.Saas => "Sas",
|
||||||
MenuPrefix.Administration => "Adm",
|
MenuPrefix.Administration => "Adm",
|
||||||
MenuPrefix.Participant => "Prt",
|
|
||||||
MenuPrefix.Coordinator => "Crd",
|
|
||||||
MenuPrefix.Crm => "Crm",
|
MenuPrefix.Crm => "Crm",
|
||||||
|
MenuPrefix.Coordinator => "Crd",
|
||||||
MenuPrefix.SupplyChain => "Scp",
|
MenuPrefix.SupplyChain => "Scp",
|
||||||
MenuPrefix.Maintenance => "Mnt",
|
MenuPrefix.Maintenance => "Mnt",
|
||||||
MenuPrefix.Store => "Str",
|
MenuPrefix.Store => "Str",
|
||||||
|
|
|
||||||
|
|
@ -111,13 +111,22 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
|
||||||
// 🔹 PARTICIPANT
|
// CRM
|
||||||
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.SalesRejectionReason), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.SalesRejectionReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.MeetingResult), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ 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
|
// 🔹 COORDINATOR
|
||||||
{ nameof(TableNameEnum.Schedule), (TablePrefix.BranchByName, MenuPrefix.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.PurchaseOrder), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
{ nameof(TableNameEnum.PurchaseOrderItem), (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
|
// 🔹 MAINTENANCE
|
||||||
{ nameof(TableNameEnum.WorkcenterType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.WorkcenterType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
{ nameof(TableNameEnum.WorkcenterStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
{ nameof(TableNameEnum.WorkcenterStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||||
|
|
|
||||||
|
|
@ -452,6 +452,23 @@ public static class SeedConsts
|
||||||
public const string QuestionTag = Default + ".QuestionTag";
|
public const string QuestionTag = Default + ".QuestionTag";
|
||||||
public const string QuestionPool = Default + ".QuestionPool";
|
public const string QuestionPool = Default + ".QuestionPool";
|
||||||
public const string Question = Default + ".Question";
|
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
|
public static class Coordinator
|
||||||
|
|
@ -498,22 +515,6 @@ public static class SeedConsts
|
||||||
public const string SurveyResponse = Default + ".SurveyResponse";
|
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 static class SupplyChain
|
||||||
{
|
{
|
||||||
public const string Default = Prefix.App + ".SupplyChain";
|
public const string Default = Prefix.App + ".SupplyChain";
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,14 @@ public class PlatformDbContext :
|
||||||
public DbSet<SocialLike> SocialLikes { get; set; }
|
public DbSet<SocialLike> SocialLikes { get; set; }
|
||||||
#endregion
|
#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<MeetingMethod> MeetingMethods { get; set; }
|
||||||
public DbSet<MeetingResult> MeetingResults { get; set; }
|
public DbSet<MeetingResult> MeetingResults { get; set; }
|
||||||
public DbSet<Source> Sources { get; set; }
|
public DbSet<Source> Sources { get; set; }
|
||||||
|
|
@ -145,7 +152,7 @@ public class PlatformDbContext :
|
||||||
public DbSet<SalesRejectionReason> SalesRejectionReasons { get; set; }
|
public DbSet<SalesRejectionReason> SalesRejectionReasons { get; set; }
|
||||||
public DbSet<NoteType> NoteTypes { get; set; }
|
public DbSet<NoteType> NoteTypes { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Coordinator
|
#region Coordinator
|
||||||
public DbSet<Program> Programs { get; set; }
|
public DbSet<Program> Programs { get; set; }
|
||||||
public DbSet<Schedule> Schedules { get; set; }
|
public DbSet<Schedule> Schedules { get; set; }
|
||||||
|
|
@ -224,16 +231,6 @@ public class PlatformDbContext :
|
||||||
public DbSet<PurchaseOrderItem> PurchaseOrderItems { get; set; }
|
public DbSet<PurchaseOrderItem> PurchaseOrderItems { get; set; }
|
||||||
#endregion
|
#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
|
#region Store
|
||||||
public DbSet<WarehouseType> WarehouseTypes { get; set; }
|
public DbSet<WarehouseType> WarehouseTypes { get; set; }
|
||||||
public DbSet<Warehouse> Warehouses { get; set; }
|
public DbSet<Warehouse> Warehouses { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20260107104555_Initial")]
|
[Migration("20260117151816_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -5823,7 +5823,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_Interesting", (string)null);
|
b.ToTable("Crm_T_Interesting", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
|
||||||
|
|
@ -8122,7 +8122,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_MeetingMethod", (string)null);
|
b.ToTable("Crm_T_MeetingMethod", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
|
||||||
|
|
@ -8179,7 +8179,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_MeetingResult", (string)null);
|
b.ToTable("Crm_T_MeetingResult", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
|
||||||
|
|
@ -8633,7 +8633,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_NoteType", (string)null);
|
b.ToTable("Crm_T_NoteType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
|
@ -13754,7 +13754,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_SalesRejectionReason", (string)null);
|
b.ToTable("Crm_T_SalesRejectionReason", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
|
||||||
|
|
@ -14731,7 +14731,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_Source", (string)null);
|
b.ToTable("Crm_T_Source", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>
|
||||||
|
|
@ -1398,6 +1398,27 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Crm_T_CustomerType", x => x.Id);
|
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(
|
migrationBuilder.CreateTable(
|
||||||
name: "Crm_T_LossReason",
|
name: "Crm_T_LossReason",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -1421,6 +1442,70 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Crm_T_LossReason", x => x.Id);
|
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(
|
migrationBuilder.CreateTable(
|
||||||
name: "Crm_T_SalesOrderStatus",
|
name: "Crm_T_SalesOrderStatus",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -1443,6 +1528,49 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Crm_T_SalesOrderStatus", x => x.Id);
|
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(
|
migrationBuilder.CreateTable(
|
||||||
name: "Hr_T_Badge",
|
name: "Hr_T_Badge",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -2173,134 +2301,6 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Prj_T_WorkType", x => x.Id);
|
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(
|
migrationBuilder.CreateTable(
|
||||||
name: "Sas_H_ContactTag",
|
name: "Sas_H_ContactTag",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -6399,9 +6399,9 @@ namespace Erp.Platform.Migrations
|
||||||
principalTable: "Crm_T_LossReason",
|
principalTable: "Crm_T_LossReason",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Crm_T_Opportunity_Prt_T_Source_SourceId",
|
name: "FK_Crm_T_Opportunity_Crm_T_Source_SourceId",
|
||||||
column: x => x.SourceId,
|
column: x => x.SourceId,
|
||||||
principalTable: "Prt_T_Source",
|
principalTable: "Crm_T_Source",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
@ -10526,9 +10526,24 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Crm_T_Competitor");
|
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(
|
migrationBuilder.DropTable(
|
||||||
name: "Crm_T_SalesOrderItem");
|
name: "Crm_T_SalesOrderItem");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Crm_T_SalesRejectionReason");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Hr_T_Expense");
|
name: "Hr_T_Expense");
|
||||||
|
|
||||||
|
|
@ -10616,21 +10631,6 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Prj_T_ProjectTeam");
|
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(
|
migrationBuilder.DropTable(
|
||||||
name: "Sas_H_ContactTag");
|
name: "Sas_H_ContactTag");
|
||||||
|
|
||||||
|
|
@ -10923,7 +10923,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "Crm_T_LossReason");
|
name: "Crm_T_LossReason");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Prt_T_Source");
|
name: "Crm_T_Source");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Hr_T_Survey");
|
name: "Hr_T_Survey");
|
||||||
|
|
@ -5820,7 +5820,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_Interesting", (string)null);
|
b.ToTable("Crm_T_Interesting", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Inventory", b =>
|
||||||
|
|
@ -8119,7 +8119,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_MeetingMethod", (string)null);
|
b.ToTable("Crm_T_MeetingMethod", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.MeetingResult", b =>
|
||||||
|
|
@ -8176,7 +8176,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_MeetingResult", (string)null);
|
b.ToTable("Crm_T_MeetingResult", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Menu", b =>
|
||||||
|
|
@ -8630,7 +8630,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_NoteType", (string)null);
|
b.ToTable("Crm_T_NoteType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Operation", b =>
|
||||||
|
|
@ -13751,7 +13751,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_SalesRejectionReason", (string)null);
|
b.ToTable("Crm_T_SalesRejectionReason", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Schedule", b =>
|
||||||
|
|
@ -14728,7 +14728,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prt_T_Source", (string)null);
|
b.ToTable("Crm_T_Source", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Status", b =>
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,8 @@ const EntityEditor: React.FC = () => {
|
||||||
'Platform': 'Plat',
|
'Platform': 'Plat',
|
||||||
'Saas': 'Sas',
|
'Saas': 'Sas',
|
||||||
'Administration': 'Adm',
|
'Administration': 'Adm',
|
||||||
'Participant': 'Prt',
|
|
||||||
'Coordinator': 'Crd',
|
|
||||||
'Crm': 'Crm',
|
'Crm': 'Crm',
|
||||||
|
'Coordinator': 'Crd',
|
||||||
'SupplyChain': 'Scp',
|
'SupplyChain': 'Scp',
|
||||||
'Maintenance': 'Mnt',
|
'Maintenance': 'Mnt',
|
||||||
'Warehouse': 'Str',
|
'Warehouse': 'Str',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue