Seeder düzenlemeleri
This commit is contained in:
parent
ddc8054bb4
commit
36907db226
96 changed files with 1907 additions and 785 deletions
|
|
@ -8,7 +8,7 @@ public class EmployeeDto : FullAuditedEntityDto<Guid>
|
|||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Code { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
public string NationalId { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ public class VisitorDto : FullAuditedEntityDto<Guid>
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
|
|
|
|||
|
|
@ -79,12 +79,12 @@ public static class LookupQueryValues
|
|||
public static string PartnerContactValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"FullName\" AS \"Name\" " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.PartnerContact)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"PartnerId\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND \"IsActive\" = 'true' " +
|
||||
$"ORDER BY \"FullName\";";
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string TenantValues =
|
||||
$"SELECT * FROM (" +
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ public class DemoDto : FullAuditedEntityDto<Guid>
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public string OrganizationName { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public string Address { get; set; }
|
||||
|
|
|
|||
|
|
@ -6,5 +6,4 @@ namespace Erp.Platform.Sectors;
|
|||
public class SectorDto : AuditedEntityDto<Guid>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string FullName { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ public class IntranetAppService : PlatformAppService, IIntranetAppService
|
|||
Organizer = new EventOrganizerDto
|
||||
{
|
||||
Id = employee.Id,
|
||||
Name = employee.FullName,
|
||||
Name = employee.Name,
|
||||
Position = employee.JobPosition.Name,
|
||||
Avatar = employee.Avatar
|
||||
},
|
||||
|
|
@ -387,7 +387,7 @@ public class IntranetAppService : PlatformAppService, IIntranetAppService
|
|||
Employee = new EventOrganizerDto
|
||||
{
|
||||
Id = commentAuthor.Id,
|
||||
Name = commentAuthor.FullName,
|
||||
Name = commentAuthor.Name,
|
||||
Position = commentAuthor.JobPosition.Name,
|
||||
Avatar = commentAuthor.Avatar
|
||||
},
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class PublicAppService : PlatformAppService
|
|||
|
||||
var bodyBuilder = new StringBuilder();
|
||||
bodyBuilder.AppendLine($"Şirket: {input.OrganizationName}");
|
||||
bodyBuilder.AppendLine($"Ad Soyad: {input.FullName}");
|
||||
bodyBuilder.AppendLine($"Ad Soyad: {input.Name}");
|
||||
bodyBuilder.AppendLine($"E-Posta: {input.Email}");
|
||||
bodyBuilder.AppendLine($"Telefon: {input.PhoneNumber}");
|
||||
bodyBuilder.AppendLine($"Adres: {input.Address}");
|
||||
|
|
|
|||
|
|
@ -9585,7 +9585,7 @@
|
|||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Maintenance.Calendar",
|
||||
"key": "App.Maintenance.WorkorderCalendar",
|
||||
"tr": "Bakım Takvimi",
|
||||
"en": "Calendar"
|
||||
},
|
||||
|
|
@ -9621,10 +9621,22 @@
|
|||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Maintenance.Workorders",
|
||||
"key": "App.Maintenance.Workorder",
|
||||
"tr": "Bakım İş Emirleri",
|
||||
"en": "Workorders"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Maintenance.WorkorderMaterial",
|
||||
"tr": "Malzemeler",
|
||||
"en": "Materials"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Maintenance.WorkorderActivity",
|
||||
"tr": "Faaliyetler",
|
||||
"en": "Activities"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Store.WarehouseType",
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -356,7 +356,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -521,7 +521,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -721,7 +721,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -176,7 +176,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -392,7 +392,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -599,7 +599,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -730,7 +730,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -936,7 +936,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1074,7 +1074,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1262,7 +1262,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1480,7 +1480,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1598,7 +1598,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1718,7 +1718,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1893,7 +1893,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2110,7 +2110,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2234,7 +2234,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2358,7 +2358,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2798,7 +2798,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2983,7 +2983,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3181,7 +3181,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
},
|
||||
|
|
@ -3307,7 +3307,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3338,7 +3338,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
Order = 1, ColCount = 1, ColSpan = 1, ItemType = "group", Items =
|
||||
[
|
||||
new EditingFormItemDto { Order = 1, DataField = "OrganizationName", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "FullName", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 3, DataField = "Email", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 4, DataField = "PhoneNumber", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions },
|
||||
new EditingFormItemDto { Order = 5, DataField = "Address", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextArea },
|
||||
|
|
@ -3395,7 +3395,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormCode = listForm.ListFormCode,
|
||||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "FullName",
|
||||
FieldName = "Name",
|
||||
Width = 150,
|
||||
ListOrderNo = 3,
|
||||
Visible = true,
|
||||
|
|
@ -3519,7 +3519,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3731,7 +3731,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3975,7 +3975,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4065,7 +4065,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4161,7 +4161,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4285,7 +4285,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4403,7 +4403,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4499,7 +4499,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4697,7 +4697,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4784,7 +4784,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4873,7 +4873,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4959,7 +4959,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -5063,7 +5063,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -5150,7 +5150,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -5424,7 +5424,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -5601,7 +5601,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -5633,7 +5633,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
new() {
|
||||
Order = 1, ColCount = 1, ColSpan = 1, ItemType = "group", Items =
|
||||
[
|
||||
new EditingFormItemDto { Order = 1, DataField = "FullName", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "Email", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 3, DataField = "MobileNumber", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions },
|
||||
new EditingFormItemDto { Order = 4, DataField = "PhoneNumber", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions },
|
||||
|
|
@ -5678,7 +5678,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
|||
ListFormCode = listForm.ListFormCode,
|
||||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "FullName",
|
||||
FieldName = "Name",
|
||||
Width = 150,
|
||||
ListOrderNo = 2,
|
||||
Visible = true,
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -171,7 +171,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -566,7 +566,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -713,7 +713,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -887,7 +887,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1096,7 +1096,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1270,7 +1270,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1543,7 +1543,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1658,7 +1658,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1898,7 +1898,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2019,7 +2019,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2150,7 +2150,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -181,7 +181,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -303,7 +303,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -874,7 +874,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -960,7 +960,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1131,7 +1131,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1420,7 +1420,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -1519,7 +1519,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1662,7 +1662,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -1805,7 +1805,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1988,7 +1988,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2149,7 +2149,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -149,7 +149,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -439,7 +439,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -581,7 +581,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
},
|
||||
|
|
@ -650,7 +650,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -958,7 +958,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1105,7 +1105,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
},
|
||||
|
|
@ -1255,7 +1255,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1289,7 +1289,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
new() {
|
||||
Order=1, Caption="General", ColCount=2, ColSpan=1, ItemType="group", Items =[
|
||||
new EditingFormItemDto { Order = 1, DataField = "Code", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "FullName", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 3, DataField = "NationalId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 4, DataField = "BirthDate", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox },
|
||||
new EditingFormItemDto { Order = 5, DataField = "Gender", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox },
|
||||
|
|
@ -1379,7 +1379,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ListFormCode = listForm.ListFormCode,
|
||||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "FullName",
|
||||
FieldName = "Name",
|
||||
Width = 150,
|
||||
ListOrderNo = 3,
|
||||
Visible = true,
|
||||
|
|
@ -1873,7 +1873,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -2003,7 +2003,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2114,7 +2114,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
SortIndex = 0,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
},
|
||||
|
|
@ -2283,7 +2283,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -2334,7 +2334,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2444,7 +2444,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
SortIndex = 0,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
},
|
||||
|
|
@ -2612,7 +2612,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -2663,7 +2663,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2765,7 +2765,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -2951,7 +2951,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3081,7 +3081,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
SortIndex = 0,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
},
|
||||
|
|
@ -3318,7 +3318,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3469,7 +3469,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3681,7 +3681,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsDeleted = false,
|
||||
SortIndex = 0,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -3702,7 +3702,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4036,7 +4036,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4216,7 +4216,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4381,7 +4381,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4460,7 +4460,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -142,7 +142,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -228,7 +228,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -399,7 +399,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
Visible = true,
|
||||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -477,7 +477,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -667,7 +667,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -790,7 +790,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -917,7 +917,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1144,7 +1144,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1317,7 +1317,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -1415,7 +1415,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1447,7 +1447,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
{
|
||||
new() {
|
||||
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items =[
|
||||
new EditingFormItemDto { Order = 1, DataField = "FullName", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField = "CompanyName", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 3, DataField = "Email", ColSpan=1, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 4, DataField = "PhoneNumber", ColSpan=1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox, EditorOptions = EditorOptionValues.PhoneEditorOptions },
|
||||
|
|
@ -1490,7 +1490,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormCode = listForm.ListFormCode,
|
||||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "FullName",
|
||||
FieldName = "Name",
|
||||
Width = 150,
|
||||
ListOrderNo = 2,
|
||||
Visible = true,
|
||||
|
|
@ -1624,7 +1624,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -1670,7 +1670,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1757,7 +1757,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -1839,7 +1839,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -56,7 +56,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -178,7 +178,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -407,7 +407,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -714,7 +714,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -836,7 +836,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1056,7 +1056,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1298,7 +1298,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -199,7 +199,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -332,7 +332,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -447,7 +447,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -562,7 +562,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -709,7 +709,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -181,7 +181,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -305,7 +305,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -429,7 +429,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -553,7 +553,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -677,7 +677,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -801,7 +801,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -979,7 +979,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -1210,7 +1210,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1297,7 +1297,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ListFormType = ListFormTypeEnum.List,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1365,7 +1365,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -1382,7 +1382,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -1434,7 +1434,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1787,7 +1787,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1996,7 +1996,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -2080,7 +2080,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2276,7 +2276,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2356,7 +2356,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -533,7 +533,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -995,7 +995,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1368,7 +1368,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1521,13 +1521,13 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
Title = listFormName,
|
||||
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||
IsTenant = true,
|
||||
IsTenant = false,
|
||||
IsBranch = false,
|
||||
IsOrganizationUnit = false,
|
||||
Description = listFormName,
|
||||
|
|
@ -1553,7 +1553,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
{
|
||||
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items = [
|
||||
new EditingFormItemDto { Order=1, DataField="BotName", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order=2, DataField="Description", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order=2, DataField="Description", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextArea },
|
||||
new EditingFormItemDto { Order=3, DataField="ApiUrl", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order=4, DataField="IsActive", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxCheckBox }
|
||||
]}
|
||||
|
|
@ -1604,7 +1604,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "Description",
|
||||
Width = 400,
|
||||
Width = 600,
|
||||
ListOrderNo = 3,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
@ -1662,7 +1662,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1813,7 +1813,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1994,7 +1994,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2169,7 +2169,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2451,7 +2451,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2583,7 +2583,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3055,7 +3055,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3287,7 +3287,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3479,7 +3479,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3706,7 +3706,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3815,7 +3815,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3924,7 +3924,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4080,7 +4080,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4167,7 +4167,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4371,7 +4371,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4519,7 +4519,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -196,7 +196,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -336,7 +336,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -476,7 +476,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -613,7 +613,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
},
|
||||
|
|
@ -854,7 +854,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1067,7 +1067,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1340,7 +1340,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1649,7 +1649,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen
|
|||
ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -198,7 +198,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -368,7 +368,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -685,7 +685,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -808,7 +808,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -933,7 +933,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1058,7 +1058,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -1712,7 +1712,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2023,7 +2023,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2162,7 +2162,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2194,7 +2194,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
{
|
||||
new() {
|
||||
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items =[
|
||||
new EditingFormItemDto { Order = 1, DataField="FullName", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 1, DataField="Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 2, DataField="Title", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 3, DataField="Department", ColSpan = 1, EditorType2 = EditorTypes.dxTextBox },
|
||||
new EditingFormItemDto { Order = 4, DataField="Email", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||
|
|
@ -2233,7 +2233,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ListFormCode = listForm.ListFormCode,
|
||||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "FullName",
|
||||
FieldName = "Name",
|
||||
Width = 200,
|
||||
ListOrderNo = 2,
|
||||
Visible = true,
|
||||
|
|
@ -2457,7 +2457,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2627,7 +2627,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = AppCodes.SupplyChain.ApprovalStep,
|
||||
Name = AppCodes.SupplyChain.ApprovalStep,
|
||||
|
|
@ -2719,7 +2719,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -2805,7 +2805,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -2930,7 +2930,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3076,7 +3076,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
|
|
@ -3199,7 +3199,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = true,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3415,7 +3415,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3538,7 +3538,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -3661,7 +3661,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
@ -4108,7 +4108,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
IsActive = true,
|
||||
IsDeleted = false,
|
||||
AllowSearch = true,
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "Name"),
|
||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||
PivotSettingsJson = DefaultPivotSettingsJson
|
||||
|
|
@ -4144,7 +4144,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
|||
ExportJson = DefaultExportJson,
|
||||
IsSubForm = false,
|
||||
ShowNote = true,
|
||||
LayoutJson = DefaultLayoutJson,
|
||||
LayoutJson = DefaultLayoutJson(),
|
||||
CultureName = LanguageCodes.En,
|
||||
ListFormCode = listFormName,
|
||||
Name = listFormName,
|
||||
|
|
|
|||
|
|
@ -1058,11 +1058,21 @@
|
|||
"RequiredPermissionName": "App.Branches",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Saas",
|
||||
"Code": "App.AiBot",
|
||||
"DisplayName": "App.AiBot",
|
||||
"Order": 3,
|
||||
"Url": "/admin/list/App.AiBot",
|
||||
"Icon": "FcMindMap",
|
||||
"RequiredPermissionName": "App.AiBot",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Saas",
|
||||
"Code": "App.Settings",
|
||||
"DisplayName": "App.Settings",
|
||||
"Order": 3,
|
||||
"Order": 4,
|
||||
"Url": null,
|
||||
"Icon": "FcCircuit",
|
||||
"RequiredPermissionName": null,
|
||||
|
|
@ -1088,16 +1098,6 @@
|
|||
"RequiredPermissionName": "App.Settings.GlobalSearch",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Saas",
|
||||
"Code": "App.AiBot",
|
||||
"DisplayName": "App.AiBot",
|
||||
"Order": 4,
|
||||
"Url": "/admin/list/App.AiBot",
|
||||
"Icon": "FcDepartment",
|
||||
"RequiredPermissionName": "App.AiBot",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Saas",
|
||||
"Code": "App.Languages",
|
||||
|
|
@ -2530,22 +2530,22 @@
|
|||
},
|
||||
{
|
||||
"ParentCode": "App.Maintenance",
|
||||
"Code": "App.Maintenance.Calendar",
|
||||
"DisplayName": "App.Maintenance.Calendar",
|
||||
"Code": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "App.Maintenance.WorkorderCalendar",
|
||||
"Order": 4,
|
||||
"Url": "/admin/maintenance/calendar",
|
||||
"Url": "/admin/list/App.Maintenance.WorkorderCalendar",
|
||||
"Icon": "FcCalendar",
|
||||
"RequiredPermissionName": "App.Maintenance.Calendar",
|
||||
"RequiredPermissionName": "App.Maintenance.WorkorderCalendar",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Maintenance",
|
||||
"Code": "App.Maintenance.Workorders",
|
||||
"DisplayName": "App.Maintenance.Workorders",
|
||||
"Code": "App.Maintenance.Workorder",
|
||||
"DisplayName": "App.Maintenance.Workorder",
|
||||
"Order": 5,
|
||||
"Url": "/admin/maintenance/workorders",
|
||||
"Url": "/admin/list/App.Maintenance.Workorder",
|
||||
"Icon": "FcList",
|
||||
"RequiredPermissionName": "App.Maintenance.Workorders",
|
||||
"RequiredPermissionName": "App.Maintenance.Workorder",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -211,7 +211,6 @@
|
|||
"MultiTenancySide": 2,
|
||||
"MenuGroup": "Erp|Kurs"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.AiBot",
|
||||
|
|
@ -275,7 +274,6 @@
|
|||
"MultiTenancySide": 2,
|
||||
"MenuGroup": "Erp|Kurs"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.Settings.SettingDefinitions",
|
||||
|
|
@ -6983,17 +6981,17 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.Maintenance.Calendar",
|
||||
"DisplayName": "App.Maintenance.WorkorderCalendar",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Create",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Create",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7001,8 +6999,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Update",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Update",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7010,8 +7008,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Delete",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Delete",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7019,8 +7017,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Export",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Export",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7028,8 +7026,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Import",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Import",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7037,8 +7035,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Calendar.Note",
|
||||
"ParentName": "App.Maintenance.Calendar",
|
||||
"Name": "App.Maintenance.WorkorderCalendar.Note",
|
||||
"ParentName": "App.Maintenance.WorkorderCalendar",
|
||||
"DisplayName": "Note",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7359,19 +7357,20 @@
|
|||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.Maintenance.Workorders",
|
||||
"DisplayName": "App.Maintenance.Workorder",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Create",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Create",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7379,8 +7378,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Update",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Update",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7388,8 +7387,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Delete",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Delete",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7397,8 +7396,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Export",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Export",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7406,8 +7405,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Import",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Import",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
|
|
@ -7415,13 +7414,142 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.Workorders.Note",
|
||||
"ParentName": "App.Maintenance.Workorders",
|
||||
"Name": "App.Maintenance.Workorder.Note",
|
||||
"ParentName": "App.Maintenance.Workorder",
|
||||
"DisplayName": "Note",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.Maintenance.WorkorderMaterial",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Create",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Update",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Delete",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Export",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Import",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderMaterial.Note",
|
||||
"ParentName": "App.Maintenance.WorkorderMaterial",
|
||||
"DisplayName": "Note",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.Maintenance.WorkorderActivity",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Create",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Update",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Delete",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Export",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Import",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Maintenance",
|
||||
"Name": "App.Maintenance.WorkorderActivity.Note",
|
||||
"ParentName": "App.Maintenance.WorkorderActivity",
|
||||
"DisplayName": "Note",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 3,
|
||||
"MenuGroup": "Erp"
|
||||
},
|
||||
|
||||
{
|
||||
"GroupName": "App.Store",
|
||||
"Name": "App.Store.WarehouseType",
|
||||
|
|
@ -13093,4 +13221,4 @@
|
|||
"MenuGroup": "Erp"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ public static class SeederDefaults
|
|||
ColumnResizingMode = "widget",
|
||||
FocusRowEnabled = true,
|
||||
});
|
||||
public static readonly string DefaultLayoutJson = JsonSerializer.Serialize(new LayoutDto()
|
||||
public static string DefaultLayoutJson(string DefaultLayout = "grid") => JsonSerializer.Serialize(new LayoutDto()
|
||||
{
|
||||
Grid = true,
|
||||
Card = true,
|
||||
|
|
@ -71,7 +71,7 @@ public static class SeederDefaults
|
|||
Tree = true,
|
||||
Gantt = true,
|
||||
Scheduler = true,
|
||||
DefaultLayout = "grid",
|
||||
DefaultLayout = DefaultLayout,
|
||||
CardLayoutColumn = 4
|
||||
});
|
||||
public static readonly string DefaultExportJson = JsonSerializer.Serialize(new ChartExportDto
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ public enum TableNameEnum
|
|||
WorkorderType,
|
||||
WorkorderStatus,
|
||||
Workorder,
|
||||
WorkorderMaterial,
|
||||
WorkorderActivity,
|
||||
WarehouseType,
|
||||
Warehouse,
|
||||
ZoneType,
|
||||
|
|
|
|||
|
|
@ -719,6 +719,45 @@ public static class PlatformConsts
|
|||
{
|
||||
return TableNameResolver.GetFullViewName($"{TableName}");
|
||||
}
|
||||
|
||||
public static class ListFormFieldAlignment
|
||||
{
|
||||
public const string Left = "left";
|
||||
public const string Center = "center";
|
||||
public const string Right = "right";
|
||||
}
|
||||
|
||||
public static class ListFormFieldFormat
|
||||
{
|
||||
public const string Billions = "billions";
|
||||
public const string Currency = "currency";
|
||||
public const string Day = "day";
|
||||
public const string Decimal = "decimal";
|
||||
public const string Exponential = "exponential";
|
||||
public const string FixedPoint = "fixedPoint";
|
||||
public const string LargeNumber = "largeNumber";
|
||||
public const string LongDate = "longDate";
|
||||
public const string LongTime = "longTime";
|
||||
public const string Millions = "millions";
|
||||
public const string Millisecond = "millisecond";
|
||||
public const string Month = "month";
|
||||
public const string MonthAndDay = "monthAndDay";
|
||||
public const string MonthAndYear = "monthAndYear";
|
||||
public const string Percent = "percent";
|
||||
public const string Quarter = "quarter";
|
||||
public const string QuarterAndYear = "quarterAndYear";
|
||||
public const string ShortDate = "shortDate";
|
||||
public const string ShortTime = "shortTime";
|
||||
public const string Thousands = "thousands";
|
||||
public const string Trillions = "trillions";
|
||||
public const string Year = "year";
|
||||
public const string DayOfWeek = "dayOfWeek";
|
||||
public const string Hour = "hour";
|
||||
public const string LongDateLongTime = "longDateLongTime";
|
||||
public const string Minute = "minute";
|
||||
public const string Second = "second";
|
||||
public const string ShortDateShortTime = "shortDateShortTime";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -203,6 +203,8 @@ public static class TableNameResolver
|
|||
{ nameof(TableNameEnum.Workorder), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||
{ nameof(TableNameEnum.WorkorderType), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||
{ nameof(TableNameEnum.WorkorderStatus), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||
{ nameof(TableNameEnum.WorkorderMaterial), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||
{ nameof(TableNameEnum.WorkorderActivity), (TablePrefix.TenantByName, MenuPrefix.Maintenance) },
|
||||
|
||||
|
||||
// 🔹 ACCOUNTING
|
||||
|
|
|
|||
|
|
@ -547,9 +547,12 @@ public static class SeedConsts
|
|||
public const string Fault = Default + ".Fault";
|
||||
public const string FaultType = Default + ".FaultType";
|
||||
public const string FaultStatus = Default + ".FaultStatus";
|
||||
public const string Workorder = Default + ".Workorder";
|
||||
public const string WorkorderType = Default + ".WorkorderType";
|
||||
public const string WorkorderStatus = Default + ".WorkorderStatus";
|
||||
public const string Workorder = Default + ".Workorder";
|
||||
public const string WorkorderMaterial = Default + ".WorkorderMaterial";
|
||||
public const string WorkorderActivity = Default + ".WorkorderActivity";
|
||||
public const string WorkorderCalendar = Default + ".WorkorderCalendar";
|
||||
}
|
||||
|
||||
public static class Accounting
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class Demo : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public string Address { get; set; }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class Lawyer : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Address { get; set; }
|
||||
public string TaxOffice { get; set; }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class Employee : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Code { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
public string NationalId { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class Visitor : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
|
|
|
|||
|
|
@ -14,28 +14,28 @@ public class Workorder : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Workcenter Workcenter { get; set; }
|
||||
|
||||
public Guid? PlanId { get; set; }
|
||||
public PlanWizard Plan { get; set; }
|
||||
public PlanWizard PlanWizard { get; set; }
|
||||
|
||||
public Guid OrderTypeId { get; set; } //Preventive, Corrective, Emergency, Inspection, Calibration
|
||||
public WorkorderType OrderType { get; set; }
|
||||
public Guid WorkorderTypeId { get; set; } //Preventive, Corrective, Emergency, Inspection, Calibration
|
||||
public WorkorderType WorkorderType { get; set; }
|
||||
|
||||
public string Priority { get; set; } //Low, Medium, High, Urgent
|
||||
public string Status { get; set; } //Created, Planned, Released, InProgress, OnHold, Completed, Cancelled
|
||||
public string Subject { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
public string AssignedTo { get; set; }
|
||||
public string MaintenanceTeamId { get; set; }
|
||||
public Guid EmployeeId { get; set; }
|
||||
public Employee Employee { get; set; }
|
||||
|
||||
public DateTime? ScheduledStart { get; set; }
|
||||
public DateTime? ScheduledEnd { get; set; }
|
||||
public decimal EstimatedCost { get; set; }
|
||||
|
||||
public DateTime? ActualStart { get; set; }
|
||||
public DateTime? ActualEnd { get; set; }
|
||||
public decimal ActualCost { get; set; }
|
||||
|
||||
public int EstimatedCost { get; set; }
|
||||
public int ActualCost { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CompletionNotes { get; set; }
|
||||
|
||||
public ICollection<WorkorderMaterial> Materials { get; set; }
|
||||
public ICollection<WorkorderActivity> Activities { get; set; }
|
||||
|
|
|
|||
|
|
@ -8,16 +8,12 @@ public class WorkorderActivity : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public Guid WorkOrderId { get; set; }
|
||||
public Workorder WorkOrder { get; set; }
|
||||
public Guid WorkorderId { get; set; }
|
||||
public Workorder Workorder { get; set; }
|
||||
|
||||
public string ActivityDescription { get; set; }
|
||||
|
||||
public int PlannedDuration { get; set; }
|
||||
public int ActualDuration { get; set; }
|
||||
|
||||
public string PerformedBy { get; set; }
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public Guid EmployeeId { get; set; }
|
||||
public Employee Employee { get; set; }
|
||||
|
||||
public int Duration { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,16 +8,14 @@ public class WorkorderMaterial : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public Guid WorkOrderId { get; set; }
|
||||
public Workorder WorkOrder { get; set; }
|
||||
public Guid WorkorderId { get; set; }
|
||||
public Workorder Workorder { get; set; }
|
||||
|
||||
public Guid MaterialId { get; set; }
|
||||
public Material Material { get; set; }
|
||||
|
||||
public int PlannedQuantity { get; set; }
|
||||
public int ActualQuantity { get; set; }
|
||||
|
||||
public int UnitCost { get; set; }
|
||||
public int TotalCost { get; set; }
|
||||
public decimal Quantity { get; set; }
|
||||
public decimal UnitCost { get; set; }
|
||||
public decimal TotalCost { get; set; }
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class PartnerContact : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid PartnerId { get; set; }
|
||||
public Partner Partner { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Department { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
|
|
|||
|
|
@ -259,6 +259,8 @@ public class PlatformDbContext :
|
|||
public DbSet<WorkorderType> WorkorderTypes { get; set; }
|
||||
public DbSet<WorkorderStatus> WorkorderStatuses { get; set; }
|
||||
public DbSet<Workorder> Workorders { get; set; }
|
||||
public DbSet<WorkorderMaterial> WorkorderMaterials { get; set; }
|
||||
public DbSet<WorkorderActivity> WorkorderActivities { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Mrp
|
||||
|
|
@ -1364,7 +1366,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Lawyer)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.FullName).HasMaxLength(100).IsRequired();
|
||||
b.Property(x => x.Name).HasMaxLength(100).IsRequired();
|
||||
b.Property(x => x.Email).HasMaxLength(100);
|
||||
b.Property(x => x.Address).HasMaxLength(250);
|
||||
b.Property(x => x.TaxOffice).HasMaxLength(50);
|
||||
|
|
@ -1601,7 +1603,7 @@ public class PlatformDbContext :
|
|||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.OrganizationName).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.FullName).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.Email).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.PhoneNumber).IsRequired().HasMaxLength(20);
|
||||
b.Property(x => x.Address).IsRequired().HasMaxLength(512);
|
||||
|
|
@ -1911,7 +1913,7 @@ public class PlatformDbContext :
|
|||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Code).IsRequired().HasMaxLength(50);
|
||||
b.Property(x => x.FullName).HasMaxLength(200);
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||
b.Property(x => x.Email).HasMaxLength(150);
|
||||
b.Property(x => x.PhoneNumber).HasMaxLength(20);
|
||||
b.Property(x => x.MobileNumber).HasMaxLength(20);
|
||||
|
|
@ -2156,7 +2158,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Visitor)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.FullName).IsRequired().HasMaxLength(100);
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
||||
b.Property(x => x.CompanyName).HasMaxLength(150);
|
||||
b.Property(a => a.PhoneNumber).IsRequired().HasMaxLength(20);
|
||||
b.Property(x => x.Email).HasMaxLength(150);
|
||||
|
|
@ -2546,7 +2548,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PartnerContact)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.FullName).IsRequired().HasMaxLength(128);
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
b.Property(x => x.Title).HasMaxLength(64);
|
||||
b.Property(x => x.Department).HasMaxLength(64);
|
||||
b.Property(x => x.Email).HasMaxLength(128);
|
||||
|
|
@ -3500,7 +3502,7 @@ public class PlatformDbContext :
|
|||
b.HasOne(x => x.Employee)
|
||||
.WithMany(x => x.Quotations)
|
||||
.HasForeignKey(x => x.EmployeeId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
|
||||
builder.Entity<QuotationItem>(b =>
|
||||
|
|
@ -3522,5 +3524,57 @@ public class PlatformDbContext :
|
|||
.HasForeignKey(x => x.QuotationId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
builder.Entity<Workorder>(b =>
|
||||
{
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Workorder)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.WorkorderNumber).HasMaxLength(50);
|
||||
b.Property(x => x.WorkcenterId).IsRequired();
|
||||
b.Property(x => x.WorkorderTypeId).IsRequired();
|
||||
b.Property(x => x.Priority).IsRequired().HasMaxLength(50);
|
||||
b.Property(x => x.Status).IsRequired().HasMaxLength(50);
|
||||
b.Property(x => x.Subject).HasMaxLength(500);
|
||||
|
||||
b.Property(x => x.EstimatedCost).HasPrecision(18, 2).HasDefaultValue(0);
|
||||
b.Property(x => x.ActualCost).HasPrecision(18, 2).HasDefaultValue(0);
|
||||
|
||||
b.Property(x => x.Description).HasMaxLength(1000);
|
||||
b.Property(x => x.Notes).HasMaxLength(1000);
|
||||
});
|
||||
|
||||
builder.Entity<WorkorderMaterial>(b =>
|
||||
{
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkorderMaterial)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.WorkorderId).IsRequired();
|
||||
b.Property(x => x.MaterialId).IsRequired();
|
||||
b.Property(x => x.Quantity).HasPrecision(18, 2);
|
||||
b.Property(x => x.UnitCost).HasPrecision(18, 2);
|
||||
b.Property(x => x.TotalCost).HasPrecision(18, 2);
|
||||
|
||||
b.HasOne(x => x.Workorder)
|
||||
.WithMany(x => x.Materials)
|
||||
.HasForeignKey(x => x.WorkorderId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
|
||||
builder.Entity<WorkorderActivity>(b =>
|
||||
{
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkorderActivity)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.WorkorderId).IsRequired();
|
||||
b.Property(x => x.EmployeeId).IsRequired();
|
||||
b.Property(x => x.Duration).HasDefaultValue(0);
|
||||
b.Property(x => x.Description).HasMaxLength(1000);
|
||||
|
||||
b.HasOne(x => x.Workorder)
|
||||
.WithMany(x => x.Activities)
|
||||
.HasForeignKey(x => x.WorkorderId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
namespace Erp.Platform.Migrations
|
||||
{
|
||||
[DbContext(typeof(PlatformDbContext))]
|
||||
[Migration("20251203145036_Initial")]
|
||||
[Migration("20251203205612_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -4136,11 +4136,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -4160,6 +4155,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(2000)
|
||||
.HasColumnType("nvarchar(2000)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<int>("NumberOfBranches")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
|
@ -4665,10 +4665,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid?>("EmploymentTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<string>("Gender")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
|
|
@ -4711,6 +4707,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<string>("NationalId")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -5774,11 +5775,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -5797,6 +5793,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<string>("PhoneNumber")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -8771,11 +8772,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -8804,6 +8800,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<Guid>("PartnerId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -13739,11 +13740,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid?>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -13758,6 +13754,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<string>("PhoneNumber")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
|
|
@ -14415,8 +14416,11 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("ActualCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("ActualCost")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<DateTime?>("ActualEnd")
|
||||
.HasColumnType("datetime2");
|
||||
|
|
@ -14424,12 +14428,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<DateTime?>("ActualStart")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("AssignedTo")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("CompletionNotes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14447,10 +14445,17 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<int>("EstimatedCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<Guid>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<decimal>("EstimatedCost")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
|
|
@ -14466,20 +14471,20 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("MaintenanceTeamId")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid>("OrderTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<Guid?>("PlanId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PlanWizardId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Priority")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<DateTime?>("ScheduledEnd")
|
||||
.HasColumnType("datetime2");
|
||||
|
|
@ -14488,7 +14493,13 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
|
|
@ -14498,22 +14509,28 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("WorkorderNumber")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<Guid?>("WorkorderStatusId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("WorkorderTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OrderTypeId");
|
||||
b.HasIndex("EmployeeId");
|
||||
|
||||
b.HasIndex("PlanId");
|
||||
b.HasIndex("PlanWizardId");
|
||||
|
||||
b.HasIndex("WorkcenterId");
|
||||
|
||||
b.HasIndex("WorkorderStatusId");
|
||||
|
||||
b.ToTable("Workorders");
|
||||
b.HasIndex("WorkorderTypeId");
|
||||
|
||||
b.ToTable("Mnt_T_Workorder", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderActivity", b =>
|
||||
|
|
@ -14521,15 +14538,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("ActivityDescription")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("ActualDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14546,6 +14554,18 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("datetime2")
|
||||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<int>("Duration")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(0);
|
||||
|
||||
b.Property<Guid>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -14560,27 +14580,20 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PerformedBy")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("PlannedDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<Guid>("WorkOrderId")
|
||||
b.Property<Guid>("WorkorderId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("WorkOrderId");
|
||||
b.HasIndex("EmployeeId");
|
||||
|
||||
b.ToTable("WorkorderActivity");
|
||||
b.HasIndex("WorkorderId");
|
||||
|
||||
b.ToTable("Mnt_T_WorkorderActivity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderMaterial", b =>
|
||||
|
|
@ -14588,9 +14601,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("ActualQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14624,29 +14634,32 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("MaterialId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("PlannedQuantity")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("Quantity")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<int>("TotalCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("TotalCost")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<int>("UnitCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("UnitCost")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<Guid>("WorkOrderId")
|
||||
b.Property<Guid>("WorkorderId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("MaterialId");
|
||||
|
||||
b.HasIndex("WorkOrderId");
|
||||
b.HasIndex("WorkorderId");
|
||||
|
||||
b.ToTable("WorkorderMaterial");
|
||||
b.ToTable("Mnt_T_WorkorderMaterial", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderStatus", b =>
|
||||
|
|
@ -18732,15 +18745,15 @@ namespace Erp.Platform.Migrations
|
|||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.Workorder", b =>
|
||||
{
|
||||
b.HasOne("Erp.Platform.Entities.WorkorderType", "OrderType")
|
||||
.WithMany("Workorders")
|
||||
.HasForeignKey("OrderTypeId")
|
||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||
.WithMany()
|
||||
.HasForeignKey("EmployeeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "Plan")
|
||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanId");
|
||||
.HasForeignKey("PlanWizardId");
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||
.WithMany("Workorders")
|
||||
|
|
@ -18752,22 +18765,38 @@ namespace Erp.Platform.Migrations
|
|||
.WithMany("Workorders")
|
||||
.HasForeignKey("WorkorderStatusId");
|
||||
|
||||
b.Navigation("OrderType");
|
||||
b.HasOne("Erp.Platform.Entities.WorkorderType", "WorkorderType")
|
||||
.WithMany("Workorders")
|
||||
.HasForeignKey("WorkorderTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Plan");
|
||||
b.Navigation("Employee");
|
||||
|
||||
b.Navigation("PlanWizard");
|
||||
|
||||
b.Navigation("Workcenter");
|
||||
|
||||
b.Navigation("WorkorderType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderActivity", b =>
|
||||
{
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "WorkOrder")
|
||||
.WithMany("Activities")
|
||||
.HasForeignKey("WorkOrderId")
|
||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||
.WithMany()
|
||||
.HasForeignKey("EmployeeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("WorkOrder");
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "Workorder")
|
||||
.WithMany("Activities")
|
||||
.HasForeignKey("WorkorderId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Employee");
|
||||
|
||||
b.Navigation("Workorder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderMaterial", b =>
|
||||
|
|
@ -18778,15 +18807,15 @@ namespace Erp.Platform.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "WorkOrder")
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "Workorder")
|
||||
.WithMany("Materials")
|
||||
.HasForeignKey("WorkOrderId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasForeignKey("WorkorderId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Material");
|
||||
|
||||
b.Navigation("WorkOrder");
|
||||
b.Navigation("Workorder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.Zone", b =>
|
||||
|
|
@ -592,7 +592,7 @@ namespace Erp.Platform.Migrations
|
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
OrganizationName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||
FullName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||
PhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||
Address = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false),
|
||||
|
|
@ -701,7 +701,7 @@ namespace Erp.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FullName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||
Email = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
Address = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
||||
TaxOffice = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
|
|
@ -5060,7 +5060,7 @@ namespace Erp.Platform.Migrations
|
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
PartnerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
FullName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||
Title = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
Department = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||
|
|
@ -5436,7 +5436,7 @@ namespace Erp.Platform.Migrations
|
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
FullName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||
Avatar = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
||||
NationalId = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||
BirthDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
|
|
@ -6054,7 +6054,7 @@ namespace Erp.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FullName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||
CompanyName = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||
Email = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||
PhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||
|
|
@ -6318,28 +6318,28 @@ namespace Erp.Platform.Migrations
|
|||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Workorders",
|
||||
name: "Mnt_T_Workorder",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
WorkorderNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
WorkorderNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
WorkcenterId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PlanId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
OrderTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Priority = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Status = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
AssignedTo = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
MaintenanceTeamId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
PlanWizardId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
WorkorderTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Priority = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Subject = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ScheduledStart = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
ScheduledEnd = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
EstimatedCost = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||
ActualStart = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
ActualEnd = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
EstimatedCost = table.Column<int>(type: "int", nullable: false),
|
||||
ActualCost = table.Column<int>(type: "int", nullable: false),
|
||||
Notes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
CompletionNotes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
ActualCost = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||
Notes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||
WorkorderStatusId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
|
|
@ -6351,26 +6351,32 @@ namespace Erp.Platform.Migrations
|
|||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Workorders", x => x.Id);
|
||||
table.PrimaryKey("PK_Mnt_T_Workorder", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Workorders_Mnt_T_PlanWizard_PlanId",
|
||||
column: x => x.PlanId,
|
||||
name: "FK_Mnt_T_Workorder_Hr_T_Employee_EmployeeId",
|
||||
column: x => x.EmployeeId,
|
||||
principalTable: "Hr_T_Employee",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Mnt_T_Workorder_Mnt_T_PlanWizard_PlanWizardId",
|
||||
column: x => x.PlanWizardId,
|
||||
principalTable: "Mnt_T_PlanWizard",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_Workorders_Mnt_T_Workcenter_WorkcenterId",
|
||||
name: "FK_Mnt_T_Workorder_Mnt_T_Workcenter_WorkcenterId",
|
||||
column: x => x.WorkcenterId,
|
||||
principalTable: "Mnt_T_Workcenter",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Workorders_Mnt_T_WorkorderStatus_WorkorderStatusId",
|
||||
name: "FK_Mnt_T_Workorder_Mnt_T_WorkorderStatus_WorkorderStatusId",
|
||||
column: x => x.WorkorderStatusId,
|
||||
principalTable: "Mnt_T_WorkorderStatus",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_Workorders_Mnt_T_WorkorderType_OrderTypeId",
|
||||
column: x => x.OrderTypeId,
|
||||
name: "FK_Mnt_T_Workorder_Mnt_T_WorkorderType_WorkorderTypeId",
|
||||
column: x => x.WorkorderTypeId,
|
||||
principalTable: "Mnt_T_WorkorderType",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
|
|
@ -6811,18 +6817,15 @@ namespace Erp.Platform.Migrations
|
|||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "WorkorderActivity",
|
||||
name: "Mnt_T_WorkorderActivity",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
WorkOrderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ActivityDescription = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
PlannedDuration = table.Column<int>(type: "int", nullable: false),
|
||||
ActualDuration = table.Column<int>(type: "int", nullable: false),
|
||||
PerformedBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
CompletedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
Notes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
WorkorderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Duration = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, 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),
|
||||
|
|
@ -6833,27 +6836,32 @@ namespace Erp.Platform.Migrations
|
|||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_WorkorderActivity", x => x.Id);
|
||||
table.PrimaryKey("PK_Mnt_T_WorkorderActivity", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_WorkorderActivity_Workorders_WorkOrderId",
|
||||
column: x => x.WorkOrderId,
|
||||
principalTable: "Workorders",
|
||||
name: "FK_Mnt_T_WorkorderActivity_Hr_T_Employee_EmployeeId",
|
||||
column: x => x.EmployeeId,
|
||||
principalTable: "Hr_T_Employee",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Mnt_T_WorkorderActivity_Mnt_T_Workorder_WorkorderId",
|
||||
column: x => x.WorkorderId,
|
||||
principalTable: "Mnt_T_Workorder",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "WorkorderMaterial",
|
||||
name: "Mnt_T_WorkorderMaterial",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
WorkOrderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
WorkorderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
PlannedQuantity = table.Column<int>(type: "int", nullable: false),
|
||||
ActualQuantity = table.Column<int>(type: "int", nullable: false),
|
||||
UnitCost = table.Column<int>(type: "int", nullable: false),
|
||||
TotalCost = table.Column<int>(type: "int", nullable: false),
|
||||
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||
UnitCost = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||
TotalCost = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, 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),
|
||||
|
|
@ -6864,19 +6872,19 @@ namespace Erp.Platform.Migrations
|
|||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_WorkorderMaterial", x => x.Id);
|
||||
table.PrimaryKey("PK_Mnt_T_WorkorderMaterial", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_WorkorderMaterial_Scp_T_Material_MaterialId",
|
||||
name: "FK_Mnt_T_WorkorderMaterial_Mnt_T_Workorder_WorkorderId",
|
||||
column: x => x.WorkorderId,
|
||||
principalTable: "Mnt_T_Workorder",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_Mnt_T_WorkorderMaterial_Scp_T_Material_MaterialId",
|
||||
column: x => x.MaterialId,
|
||||
principalTable: "Scp_T_Material",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_WorkorderMaterial_Workorders_WorkOrderId",
|
||||
column: x => x.WorkOrderId,
|
||||
principalTable: "Workorders",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
|
|
@ -7938,6 +7946,51 @@ namespace Erp.Platform.Migrations
|
|||
table: "Mnt_T_WorkcenterSpecification",
|
||||
column: "WorkcenterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_Workorder_EmployeeId",
|
||||
table: "Mnt_T_Workorder",
|
||||
column: "EmployeeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_Workorder_PlanWizardId",
|
||||
table: "Mnt_T_Workorder",
|
||||
column: "PlanWizardId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_Workorder_WorkcenterId",
|
||||
table: "Mnt_T_Workorder",
|
||||
column: "WorkcenterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_Workorder_WorkorderStatusId",
|
||||
table: "Mnt_T_Workorder",
|
||||
column: "WorkorderStatusId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_Workorder_WorkorderTypeId",
|
||||
table: "Mnt_T_Workorder",
|
||||
column: "WorkorderTypeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_WorkorderActivity_EmployeeId",
|
||||
table: "Mnt_T_WorkorderActivity",
|
||||
column: "EmployeeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_WorkorderActivity_WorkorderId",
|
||||
table: "Mnt_T_WorkorderActivity",
|
||||
column: "WorkorderId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_WorkorderMaterial_MaterialId",
|
||||
table: "Mnt_T_WorkorderMaterial",
|
||||
column: "MaterialId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mnt_T_WorkorderMaterial_WorkorderId",
|
||||
table: "Mnt_T_WorkorderMaterial",
|
||||
column: "WorkorderId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Mrp_T_Bom_BomTypeId",
|
||||
table: "Mrp_T_Bom",
|
||||
|
|
@ -8559,41 +8612,6 @@ namespace Erp.Platform.Migrations
|
|||
table: "Str_T_Zone",
|
||||
column: "ZoneTypeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_WorkorderActivity_WorkOrderId",
|
||||
table: "WorkorderActivity",
|
||||
column: "WorkOrderId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_WorkorderMaterial_MaterialId",
|
||||
table: "WorkorderMaterial",
|
||||
column: "MaterialId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_WorkorderMaterial_WorkOrderId",
|
||||
table: "WorkorderMaterial",
|
||||
column: "WorkOrderId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Workorders_OrderTypeId",
|
||||
table: "Workorders",
|
||||
column: "OrderTypeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Workorders_PlanId",
|
||||
table: "Workorders",
|
||||
column: "PlanId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Workorders_WorkcenterId",
|
||||
table: "Workorders",
|
||||
column: "WorkcenterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Workorders_WorkorderStatusId",
|
||||
table: "Workorders",
|
||||
column: "WorkorderStatusId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Acc_T_CurrentAccount_Adm_T_Partner_PartnerId",
|
||||
table: "Acc_T_CurrentAccount",
|
||||
|
|
@ -8931,6 +8949,12 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkcenterSpecification");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderActivity");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderMaterial");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mrp_T_BomComponent");
|
||||
|
||||
|
|
@ -9111,12 +9135,6 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Str_T_PutawayCondition");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "WorkorderActivity");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "WorkorderMaterial");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "AbpEntityChanges");
|
||||
|
||||
|
|
@ -9174,6 +9192,9 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_FaultType");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_Workorder");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mrp_T_Bom");
|
||||
|
||||
|
|
@ -9246,9 +9267,6 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Str_T_Putaway");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Workorders");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "AbpAuditLogs");
|
||||
|
||||
|
|
@ -9267,6 +9285,15 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Hr_T_Survey");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_PlanWizard");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderStatus");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderType");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mrp_T_BomType");
|
||||
|
||||
|
|
@ -9321,18 +9348,12 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Str_T_ZoneType");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_PlanWizard");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderStatus");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkorderType");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Sas_T_Branch");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_Workcenter");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mrp_T_OperationCategory");
|
||||
|
||||
|
|
@ -9342,9 +9363,6 @@ namespace Erp.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "Str_T_WarehouseType");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_Workcenter");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Mnt_T_WorkcenterStatus");
|
||||
|
||||
|
|
@ -4133,11 +4133,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -4157,6 +4152,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(2000)
|
||||
.HasColumnType("nvarchar(2000)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<int>("NumberOfBranches")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
|
@ -4662,10 +4662,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid?>("EmploymentTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<string>("Gender")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
|
|
@ -4708,6 +4704,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<string>("NationalId")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -5771,11 +5772,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -5794,6 +5790,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<string>("PhoneNumber")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -8768,11 +8769,6 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -8801,6 +8797,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
||||
b.Property<Guid>("PartnerId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -13736,11 +13737,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid?>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("FullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -13755,6 +13751,11 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<string>("PhoneNumber")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
|
|
@ -14412,8 +14413,11 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("ActualCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("ActualCost")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<DateTime?>("ActualEnd")
|
||||
.HasColumnType("datetime2");
|
||||
|
|
@ -14421,12 +14425,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<DateTime?>("ActualStart")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("AssignedTo")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("CompletionNotes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14444,10 +14442,17 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<int>("EstimatedCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<Guid>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<decimal>("EstimatedCost")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
|
|
@ -14463,20 +14468,20 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("MaintenanceTeamId")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid>("OrderTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<Guid?>("PlanId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("PlanWizardId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Priority")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<DateTime?>("ScheduledEnd")
|
||||
.HasColumnType("datetime2");
|
||||
|
|
@ -14485,7 +14490,13 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
|
|
@ -14495,22 +14506,28 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("WorkorderNumber")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<Guid?>("WorkorderStatusId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("WorkorderTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("OrderTypeId");
|
||||
b.HasIndex("EmployeeId");
|
||||
|
||||
b.HasIndex("PlanId");
|
||||
b.HasIndex("PlanWizardId");
|
||||
|
||||
b.HasIndex("WorkcenterId");
|
||||
|
||||
b.HasIndex("WorkorderStatusId");
|
||||
|
||||
b.ToTable("Workorders");
|
||||
b.HasIndex("WorkorderTypeId");
|
||||
|
||||
b.ToTable("Mnt_T_Workorder", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderActivity", b =>
|
||||
|
|
@ -14518,15 +14535,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("ActivityDescription")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("ActualDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14543,6 +14551,18 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("datetime2")
|
||||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<int>("Duration")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(0);
|
||||
|
||||
b.Property<Guid>("EmployeeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -14557,27 +14577,20 @@ namespace Erp.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PerformedBy")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("PlannedDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<Guid>("WorkOrderId")
|
||||
b.Property<Guid>("WorkorderId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("WorkOrderId");
|
||||
b.HasIndex("EmployeeId");
|
||||
|
||||
b.ToTable("WorkorderActivity");
|
||||
b.HasIndex("WorkorderId");
|
||||
|
||||
b.ToTable("Mnt_T_WorkorderActivity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderMaterial", b =>
|
||||
|
|
@ -14585,9 +14598,6 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("ActualQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreationTime")
|
||||
.HasColumnType("datetime2")
|
||||
.HasColumnName("CreationTime");
|
||||
|
|
@ -14621,29 +14631,32 @@ namespace Erp.Platform.Migrations
|
|||
b.Property<Guid>("MaterialId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("PlannedQuantity")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("Quantity")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<int>("TotalCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("TotalCost")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<int>("UnitCost")
|
||||
.HasColumnType("int");
|
||||
b.Property<decimal>("UnitCost")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<Guid>("WorkOrderId")
|
||||
b.Property<Guid>("WorkorderId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("MaterialId");
|
||||
|
||||
b.HasIndex("WorkOrderId");
|
||||
b.HasIndex("WorkorderId");
|
||||
|
||||
b.ToTable("WorkorderMaterial");
|
||||
b.ToTable("Mnt_T_WorkorderMaterial", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderStatus", b =>
|
||||
|
|
@ -18729,15 +18742,15 @@ namespace Erp.Platform.Migrations
|
|||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.Workorder", b =>
|
||||
{
|
||||
b.HasOne("Erp.Platform.Entities.WorkorderType", "OrderType")
|
||||
.WithMany("Workorders")
|
||||
.HasForeignKey("OrderTypeId")
|
||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||
.WithMany()
|
||||
.HasForeignKey("EmployeeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "Plan")
|
||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanId");
|
||||
.HasForeignKey("PlanWizardId");
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||
.WithMany("Workorders")
|
||||
|
|
@ -18749,22 +18762,38 @@ namespace Erp.Platform.Migrations
|
|||
.WithMany("Workorders")
|
||||
.HasForeignKey("WorkorderStatusId");
|
||||
|
||||
b.Navigation("OrderType");
|
||||
b.HasOne("Erp.Platform.Entities.WorkorderType", "WorkorderType")
|
||||
.WithMany("Workorders")
|
||||
.HasForeignKey("WorkorderTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Plan");
|
||||
b.Navigation("Employee");
|
||||
|
||||
b.Navigation("PlanWizard");
|
||||
|
||||
b.Navigation("Workcenter");
|
||||
|
||||
b.Navigation("WorkorderType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderActivity", b =>
|
||||
{
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "WorkOrder")
|
||||
.WithMany("Activities")
|
||||
.HasForeignKey("WorkOrderId")
|
||||
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||
.WithMany()
|
||||
.HasForeignKey("EmployeeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("WorkOrder");
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "Workorder")
|
||||
.WithMany("Activities")
|
||||
.HasForeignKey("WorkorderId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Employee");
|
||||
|
||||
b.Navigation("Workorder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.WorkorderMaterial", b =>
|
||||
|
|
@ -18775,15 +18804,15 @@ namespace Erp.Platform.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "WorkOrder")
|
||||
b.HasOne("Erp.Platform.Entities.Workorder", "Workorder")
|
||||
.WithMany("Materials")
|
||||
.HasForeignKey("WorkOrderId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasForeignKey("WorkorderId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Material");
|
||||
|
||||
b.Navigation("WorkOrder");
|
||||
b.Navigation("Workorder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Erp.Platform.Entities.Zone", b =>
|
||||
|
|
|
|||
|
|
@ -2878,7 +2878,7 @@
|
|||
"Employees": [
|
||||
{
|
||||
"code": "EMP-001",
|
||||
"fullName": "Ali Öztürk",
|
||||
"name": "Ali Öztürk",
|
||||
"avatar": "https://i.pravatar.cc/150?img=12",
|
||||
"nationalId": "12345678901",
|
||||
"birthDate": "2020-10-29",
|
||||
|
|
@ -2918,7 +2918,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-002",
|
||||
"fullName": "Ayşe Kaya",
|
||||
"name": "Ayşe Kaya",
|
||||
"avatar": "https://i.pravatar.cc/150?img=5",
|
||||
"nationalId": "12345678902",
|
||||
"birthDate": "2015-10-30",
|
||||
|
|
@ -2958,7 +2958,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-003",
|
||||
"fullName": "Mehmet Yılmaz",
|
||||
"name": "Mehmet Yılmaz",
|
||||
"avatar": "https://i.pravatar.cc/150?img=8",
|
||||
"nationalId": "12345678903",
|
||||
"birthDate": "2010-10-31",
|
||||
|
|
@ -2998,7 +2998,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-004",
|
||||
"fullName": "Selin Demir",
|
||||
"name": "Selin Demir",
|
||||
"avatar": "https://i.pravatar.cc/150?img=9",
|
||||
"nationalId": "12345678904",
|
||||
"birthDate": "2000-11-01",
|
||||
|
|
@ -3038,7 +3038,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-005",
|
||||
"fullName": "Ahmet Çelik",
|
||||
"name": "Ahmet Çelik",
|
||||
"avatar": "https://i.pravatar.cc/150?img=33",
|
||||
"nationalId": "12345678905",
|
||||
"birthDate": "1999-11-02",
|
||||
|
|
@ -3078,7 +3078,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-006",
|
||||
"fullName": "Zeynep Arslan",
|
||||
"name": "Zeynep Arslan",
|
||||
"avatar": "https://i.pravatar.cc/150?img=10",
|
||||
"nationalId": "12345678906",
|
||||
"birthDate": "1995-11-03",
|
||||
|
|
@ -3118,7 +3118,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-007",
|
||||
"fullName": "Burak Koç",
|
||||
"name": "Burak Koç",
|
||||
"avatar": "https://i.pravatar.cc/150?img=14",
|
||||
"nationalId": "12345678907",
|
||||
"birthDate": "1980-11-04",
|
||||
|
|
@ -3158,7 +3158,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-008",
|
||||
"fullName": "Elif Şahin",
|
||||
"name": "Elif Şahin",
|
||||
"avatar": "https://i.pravatar.cc/150?img=20",
|
||||
"nationalId": "12345678908",
|
||||
"birthDate": "1989-11-05",
|
||||
|
|
@ -3198,7 +3198,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-009",
|
||||
"fullName": "Canan Öztürk",
|
||||
"name": "Canan Öztürk",
|
||||
"avatar": "https://i.pravatar.cc/150?img=25",
|
||||
"nationalId": "12345678909",
|
||||
"birthDate": "1992-11-06",
|
||||
|
|
@ -3238,7 +3238,7 @@
|
|||
},
|
||||
{
|
||||
"code": "EMP-010",
|
||||
"fullName": "Murat Aydın",
|
||||
"name": "Murat Aydın",
|
||||
"avatar": "https://i.pravatar.cc/150?img=30",
|
||||
"nationalId": "12345678910",
|
||||
"birthDate": "1984-11-07",
|
||||
|
|
@ -3802,7 +3802,7 @@
|
|||
],
|
||||
"Visitors": [
|
||||
{
|
||||
"fullName": "Ali Veli",
|
||||
"name": "Ali Veli",
|
||||
"companyName": "ABC Teknoloji",
|
||||
"email": "ali.veli@abc.com",
|
||||
"phoneNumber": "5321112233",
|
||||
|
|
@ -3814,7 +3814,7 @@
|
|||
"photo": "https://i.pravatar.cc/150?img=12"
|
||||
},
|
||||
{
|
||||
"fullName": "Fatma Yıldız",
|
||||
"name": "Fatma Yıldız",
|
||||
"companyName": "XYZ Danışmanlık",
|
||||
"email": "fatma@xyz.com",
|
||||
"phoneNumber": "5332223344",
|
||||
|
|
@ -3825,7 +3825,7 @@
|
|||
"photo": "https://i.pravatar.cc/150?img=13"
|
||||
},
|
||||
{
|
||||
"fullName": "Mehmet Kara",
|
||||
"name": "Mehmet Kara",
|
||||
"companyName": "DEF Yazılım",
|
||||
"email": "mehmet@def.com",
|
||||
"phoneNumber": "5343334455",
|
||||
|
|
|
|||
|
|
@ -1126,7 +1126,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
await _employeeRepository.InsertAsync(new Employee
|
||||
{
|
||||
Code = item.Code,
|
||||
FullName = item.FullName,
|
||||
Name = item.Name,
|
||||
Avatar = item.Avatar,
|
||||
NationalId = item.NationalId,
|
||||
BirthDate = item.BirthDate,
|
||||
|
|
@ -1423,14 +1423,14 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
|
||||
foreach (var item in items.Visitors)
|
||||
{
|
||||
var exists = await _visitorRepository.AnyAsync(x => x.FullName == item.FullName);
|
||||
var exists = await _visitorRepository.AnyAsync(x => x.Name == item.Name);
|
||||
if (exists)
|
||||
continue;
|
||||
|
||||
var employee = await _employeeRepository.FirstOrDefaultAsync(x => x.Code == item.EmployeeCode);
|
||||
await _visitorRepository.InsertAsync(new Visitor
|
||||
{
|
||||
FullName = item.FullName,
|
||||
Name = item.Name,
|
||||
CompanyName = item.CompanyName,
|
||||
Email = item.Email,
|
||||
PhoneNumber = item.PhoneNumber,
|
||||
|
|
|
|||
|
|
@ -819,7 +819,7 @@ public class ExpenseRequestSeedDto
|
|||
|
||||
public class VisitorSeedDto
|
||||
{
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
|
|
@ -950,7 +950,7 @@ public class LeaveSeedDto
|
|||
public class EmployeeSeedDto
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
public string NationalId { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const MultiSelectEmployee: React.FC<MultiSelectEmployeeProps> = ({
|
|||
|
||||
const filteredEmployees = mockEmployees.filter(
|
||||
(employee: EmployeeDto) =>
|
||||
employee.fullName.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
employee.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
employee.code.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
);
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ const MultiSelectEmployee: React.FC<MultiSelectEmployeeProps> = ({
|
|||
key={employee.id}
|
||||
className="inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-blue-100 text-blue-800"
|
||||
>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
{!disabled && (
|
||||
<button
|
||||
type="button"
|
||||
|
|
@ -142,7 +142,7 @@ const MultiSelectEmployee: React.FC<MultiSelectEmployeeProps> = ({
|
|||
>
|
||||
<div>
|
||||
<div className="text-sm font-medium text-gray-900">
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</div>
|
||||
<div className="text-xs text-gray-500">
|
||||
{employee.code} - {employee.jobPosition?.name}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '2',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Fatma Demir',
|
||||
name: 'Fatma Demir',
|
||||
title: 'Genel Müdür',
|
||||
department: 'Yönetim',
|
||||
email: 'fatma.demir@uretim.com',
|
||||
|
|
@ -81,7 +81,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: 'C001',
|
||||
firstName: 'Ali',
|
||||
lastName: 'Veli',
|
||||
fullName: 'Ali Veli',
|
||||
name: 'Ali Veli',
|
||||
title: 'Satınalma Müdürü',
|
||||
email: 'aliveli@gmail.com',
|
||||
phoneNumber: '+90 212 555 1234',
|
||||
|
|
@ -105,7 +105,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '2',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Fatma Demir',
|
||||
name: 'Fatma Demir',
|
||||
title: 'Genel Müdür',
|
||||
department: 'Yönetim',
|
||||
email: 'fatma.demir@uretim.com',
|
||||
|
|
@ -173,7 +173,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: 'C002',
|
||||
firstName: 'Ayşe',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Ayşe Demir',
|
||||
name: 'Ayşe Demir',
|
||||
title: 'Satış Müdürü',
|
||||
email: 'aysedemir@gmail.com',
|
||||
phoneNumber: '+90 216 555 5678',
|
||||
|
|
@ -197,7 +197,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '2',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Fatma Demir',
|
||||
name: 'Fatma Demir',
|
||||
title: 'Genel Müdür',
|
||||
department: 'Yönetim',
|
||||
email: 'fatma.demir@uretim.com',
|
||||
|
|
@ -265,7 +265,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: 'C003',
|
||||
firstName: 'Mehmet',
|
||||
lastName: 'Yılmaz',
|
||||
fullName: 'Mehmet Yılmaz',
|
||||
name: 'Mehmet Yılmaz',
|
||||
title: 'Genel Müdür',
|
||||
email: 'mehmetyilmaz@gmail.com',
|
||||
phoneNumber: '+90 232 555 7890',
|
||||
|
|
@ -289,7 +289,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '2',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Fatma Demir',
|
||||
name: 'Fatma Demir',
|
||||
title: 'Genel Müdür',
|
||||
department: 'Yönetim',
|
||||
email: 'fatma.demir@uretim.com',
|
||||
|
|
@ -357,7 +357,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: 'C004',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Çelik',
|
||||
fullName: 'Fatma Çelik',
|
||||
name: 'Fatma Çelik',
|
||||
title: 'Finans Müdürü',
|
||||
email: 'fatmacelik@gmail.com',
|
||||
phoneNumber: '+90 312 555 3456',
|
||||
|
|
@ -383,7 +383,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '2',
|
||||
firstName: 'Fatma',
|
||||
lastName: 'Demir',
|
||||
fullName: 'Fatma Demir',
|
||||
name: 'Fatma Demir',
|
||||
title: 'Genel Müdür',
|
||||
department: 'Yönetim',
|
||||
email: 'fatma.demir@uretim.com',
|
||||
|
|
@ -434,7 +434,7 @@ export const mockBusinessParties: BusinessParty[] = [
|
|||
id: '1',
|
||||
firstName: 'Ali',
|
||||
lastName: 'Yılmaz',
|
||||
fullName: 'Ali Yılmaz',
|
||||
name: 'Ali Yılmaz',
|
||||
title: 'Satınalma Müdürü',
|
||||
department: 'Satınalma',
|
||||
email: 'ali.yilmaz@teknoloji.com',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-001",
|
||||
firstName: "Ali",
|
||||
lastName: "Öztürk",
|
||||
fullName: "Ali Öztürk",
|
||||
name: "Ali Öztürk",
|
||||
email: "ali.ozturk@company.com",
|
||||
phoneNumber: "2125550100",
|
||||
mobileNumber: "5325550101",
|
||||
|
|
@ -73,7 +73,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-002",
|
||||
firstName: "Ayşe",
|
||||
lastName: "Kaya",
|
||||
fullName: "Ayşe Kaya",
|
||||
name: "Ayşe Kaya",
|
||||
email: "ayse.kaya@company.com",
|
||||
phoneNumber: "2125550102",
|
||||
mobileNumber: "5325550103",
|
||||
|
|
@ -132,7 +132,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-003",
|
||||
firstName: "Mehmet",
|
||||
lastName: "Yılmaz",
|
||||
fullName: "Mehmet Yılmaz",
|
||||
name: "Mehmet Yılmaz",
|
||||
email: "mehmet.yilmaz@company.com",
|
||||
phoneNumber: "2125550105",
|
||||
mobileNumber: "5325550106",
|
||||
|
|
@ -191,7 +191,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-004",
|
||||
firstName: "Selin",
|
||||
lastName: "Demir",
|
||||
fullName: "Selin Demir",
|
||||
name: "Selin Demir",
|
||||
email: "selin.demir@company.com",
|
||||
phoneNumber: "3125550108",
|
||||
mobileNumber: "5425550109",
|
||||
|
|
@ -250,7 +250,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-005",
|
||||
firstName: "Ahmet",
|
||||
lastName: "Çelik",
|
||||
fullName: "Ahmet Çelik",
|
||||
name: "Ahmet Çelik",
|
||||
email: "ahmet.celik@company.com",
|
||||
phoneNumber: "2125550111",
|
||||
mobileNumber: "5325550112",
|
||||
|
|
@ -309,7 +309,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-006",
|
||||
firstName: "Zeynep",
|
||||
lastName: "Arslan",
|
||||
fullName: "Zeynep Arslan",
|
||||
name: "Zeynep Arslan",
|
||||
email: "zeynep.arslan@company.com",
|
||||
phoneNumber: "2165550114",
|
||||
mobileNumber: "5325550115",
|
||||
|
|
@ -368,7 +368,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-007",
|
||||
firstName: "Burak",
|
||||
lastName: "Koç",
|
||||
fullName: "Burak Koç",
|
||||
name: "Burak Koç",
|
||||
email: "burak.koc@company.com",
|
||||
phoneNumber: "2245550117",
|
||||
mobileNumber: "5325550118",
|
||||
|
|
@ -427,7 +427,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-008",
|
||||
firstName: "Elif",
|
||||
lastName: "Şahin",
|
||||
fullName: "Elif Şahin",
|
||||
name: "Elif Şahin",
|
||||
email: "elif.sahin@company.com",
|
||||
phoneNumber: "2325550120",
|
||||
mobileNumber: "5325550121",
|
||||
|
|
@ -486,7 +486,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-009",
|
||||
firstName: "Canan",
|
||||
lastName: "Öztürk",
|
||||
fullName: "Canan Öztürk",
|
||||
name: "Canan Öztürk",
|
||||
email: "canan.ozturk@company.com",
|
||||
phoneNumber: "3125550123",
|
||||
mobileNumber: "5325550124",
|
||||
|
|
@ -545,7 +545,7 @@ export const mockEmployees: EmployeeDto[] = [
|
|||
code: "EMP-010",
|
||||
firstName: "Murat",
|
||||
lastName: "Aydın",
|
||||
fullName: "Murat Aydın",
|
||||
name: "Murat Aydın",
|
||||
email: "murat.aydin@company.com",
|
||||
phoneNumber: "2125550126",
|
||||
mobileNumber: "5325550127",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export interface DemoDto {
|
|||
id: string
|
||||
tenantId?: string
|
||||
organizationName: string
|
||||
fullName: string
|
||||
name: string
|
||||
email: string
|
||||
phoneNumber: string
|
||||
address: string
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export interface EmployeeDto {
|
|||
code: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
fullName: string
|
||||
name: string
|
||||
email: string
|
||||
phoneNumber?: string
|
||||
mobileNumber?: string
|
||||
|
|
@ -146,7 +146,7 @@ export interface JobPositionDto {
|
|||
// Ziyaretçi
|
||||
export interface VisitorDto {
|
||||
id: string
|
||||
fullName: string
|
||||
name: string
|
||||
companyName: string
|
||||
email: string
|
||||
phoneNumber: string
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ export interface Contact {
|
|||
customerId?: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
fullName: string
|
||||
name: string
|
||||
title?: string
|
||||
department?: string
|
||||
email: string
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ const ActivityDetails: React.FC<ActivityDetailsProps> = ({ isOpen, onClose, onEd
|
|||
<label className="block text-sm font-medium text-gray-600 mb-1">Sorumlu</label>
|
||||
<div className="flex items-center gap-2">
|
||||
<FaUser className="w-4 h-4 text-gray-400" />
|
||||
<span className="text-gray-900">{activity.assigned?.fullName}</span>
|
||||
<span className="text-gray-900">{activity.assigned?.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ const ActivityDetails: React.FC<ActivityDetailsProps> = ({ isOpen, onClose, onEd
|
|||
<div key={index} className="flex items-center gap-2">
|
||||
<FaUsers className="w-4 h-4 text-gray-400" />
|
||||
<span className="text-gray-900">
|
||||
{employee ? employee.fullName : participantId}
|
||||
{employee ? employee.name : participantId}
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ const ActivityForm: React.FC<ActivityFormProps> = ({ isOpen, onClose, onSave, ac
|
|||
<option value="">Çalışan seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ const ActivityRecords: React.FC = () => {
|
|||
render: (activity: CrmActivity) => (
|
||||
<div className="flex items-center gap-1">
|
||||
<FaUser className="w-4 h-4 text-gray-400" />
|
||||
<span>{activity.assigned?.fullName}</span>
|
||||
<span>{activity.assigned?.name}</span>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const CustomerCards: React.FC = () => {
|
|||
const matchesSearch =
|
||||
customer.code?.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
customer.name?.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
customer.primaryContact?.fullName?.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
customer.primaryContact?.name?.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
const matchesStatus = filterStatus === 'all' || customer.status === filterStatus
|
||||
const matchesSegment = filterSegment === 'all' || customer.customerSegment === filterSegment
|
||||
return matchesSearch && matchesStatus && matchesSegment
|
||||
|
|
@ -321,7 +321,7 @@ const CustomerCards: React.FC = () => {
|
|||
<div className="space-y-1.5 mb-3 text-xs">
|
||||
<div className="flex items-center text-sm text-gray-600">
|
||||
<FaUser className="w-4 h-4 mr-2 text-gray-400" />
|
||||
<span className="truncate">{customer.primaryContact?.fullName}</span>
|
||||
<span className="truncate">{customer.primaryContact?.name}</span>
|
||||
</div>
|
||||
<div className="flex items-center text-sm text-gray-600">
|
||||
<FaEnvelope className="w-4 h-4 mr-2 text-gray-400" />
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ const CustomerList: React.FC = () => {
|
|||
const matchesSearch =
|
||||
customer.code.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
customer.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||
customer.primaryContact?.fullName.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
customer.primaryContact?.name.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
const matchesStatus = filterStatus === 'all' || customer.status === filterStatus
|
||||
const matchesSegment = filterSegment === 'all' || customer.customerSegment === filterSegment
|
||||
return matchesSearch && matchesStatus && matchesSegment
|
||||
|
|
@ -285,7 +285,7 @@ const CustomerList: React.FC = () => {
|
|||
<td className="px-4 py-3">
|
||||
<div className="space-y-1">
|
||||
<div className="text-sm font-medium text-gray-900">
|
||||
{customer.primaryContact?.fullName}
|
||||
{customer.primaryContact?.name}
|
||||
</div>
|
||||
<div className="flex items-center text-sm text-gray-500">
|
||||
<FaEnvelope size={14} className="mr-1" />
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ const CustomerView: React.FC = () => {
|
|||
<FaUser className="w-8 h-8 text-gray-500" />
|
||||
</div>
|
||||
<h4 className="font-medium text-gray-900">
|
||||
{customer.primaryContact?.fullName}
|
||||
{customer.primaryContact?.name}
|
||||
</h4>
|
||||
<p className="text-sm text-gray-600">
|
||||
{customer.primaryContact?.title || 'Pozisyon belirtilmemiş'}
|
||||
|
|
@ -524,7 +524,7 @@ const CustomerView: React.FC = () => {
|
|||
</div>
|
||||
<div>
|
||||
<h2 className="text-2xl font-bold text-gray-900">
|
||||
{customer.primaryContact?.fullName}
|
||||
{customer.primaryContact?.name}
|
||||
</h2>
|
||||
<p className="text-gray-600">
|
||||
{customer.primaryContact?.title || 'Pozisyon belirtilmemiş'}
|
||||
|
|
@ -618,7 +618,7 @@ const CustomerView: React.FC = () => {
|
|||
<FaUser className="w-5 h-5 text-gray-500" />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<h4 className="font-medium text-gray-900">{contact.fullName}</h4>
|
||||
<h4 className="font-medium text-gray-900">{contact.name}</h4>
|
||||
<p className="text-sm text-gray-600 mb-2">
|
||||
{contact.title || 'Pozisyon belirtilmemiş'}
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ const OpportunityDetails: React.FC<OpportunityDetailsProps> = ({
|
|||
<label className="block text-sm font-medium text-gray-600 mb-1">Sorumlu</label>
|
||||
<div className="flex items-center gap-2">
|
||||
<FaUser className="w-4 h-4 text-gray-400" />
|
||||
<span className="text-gray-900">{opportunity.assigned?.fullName}</span>
|
||||
<span className="text-gray-900">{opportunity.assigned?.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ const OpportunityForm: React.FC<OpportunityFormProps> = ({
|
|||
<option value="">Sorumlu seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ const OpportunityManagement: React.FC = () => {
|
|||
render: (opportunity: CrmOpportunity) => (
|
||||
<div className="flex items-center gap-1">
|
||||
<FaUser className="w-4 h-4 text-gray-400" />
|
||||
<span>{opportunity.assigned?.fullName}</span>
|
||||
<span>{opportunity.assigned?.name}</span>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ const SalesOrderForm: React.FC = () => {
|
|||
<option value="">Müşteri seçin...</option>
|
||||
{customers.map((customer) => (
|
||||
<option key={customer.id} value={customer.id}>
|
||||
{customer.name} - {customer.primaryContact?.fullName}
|
||||
{customer.name} - {customer.primaryContact?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -374,7 +374,7 @@ const SalesOrderForm: React.FC = () => {
|
|||
</label>
|
||||
<input
|
||||
type="text"
|
||||
value={selectedCustomer.primaryContact?.fullName}
|
||||
value={selectedCustomer.primaryContact?.name}
|
||||
disabled
|
||||
className="w-full px-3 py-1.5 text-sm border border-gray-300 rounded-md bg-gray-50"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ const SalesOrderView: React.FC = () => {
|
|||
<div>
|
||||
<span className="text-sm font-medium text-gray-600">İletişim Kişisi:</span>
|
||||
<p className="text-sm text-gray-900">
|
||||
{order.customer?.primaryContact?.fullName || 'Belirtilmemiş'}
|
||||
{order.customer?.primaryContact?.name || 'Belirtilmemiş'}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center text-sm text-gray-600">
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ const SalesTeamCreate: React.FC = () => {
|
|||
<option value="">Çalışan seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -297,7 +297,7 @@ const SalesTeamCreate: React.FC = () => {
|
|||
<option value="">Çalışan seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ const SalesTeamEdit: React.FC = () => {
|
|||
<option value="">Lider seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -345,7 +345,7 @@ const SalesTeamEdit: React.FC = () => {
|
|||
<option value="">Çalışan seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName}
|
||||
{employee.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ const SalesTeamView: React.FC = () => {
|
|||
<div>
|
||||
<label className="block text-xs font-medium text-gray-600 mb-1">Yönetici</label>
|
||||
<p className="text-gray-900">
|
||||
{team.manager?.fullName || 'Yönetici bilgisi girilmemiş'}
|
||||
{team.manager?.name || 'Yönetici bilgisi girilmemiş'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -247,7 +247,7 @@ const SalesTeamView: React.FC = () => {
|
|||
<FaUser className="w-5 h-5 text-blue-600" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-medium text-gray-900">{member.employee?.fullName}</p>
|
||||
<p className="font-medium text-gray-900">{member.employee?.name}</p>
|
||||
<p className="text-sm text-gray-500">
|
||||
Katılım: {currentLocalDate(member.joinDate, currentLocale || 'tr')}
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ const SalesTeams: React.FC = () => {
|
|||
<FaUsers className="w-4 h-4 text-gray-400" />
|
||||
<span className="text-sm text-gray-600">Yönetici</span>
|
||||
</div>
|
||||
<span className="font-medium">{team.manager?.fullName}</span>
|
||||
<span className="font-medium">{team.manager?.name}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between">
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
>
|
||||
<img
|
||||
src={post.employee.avatar || 'https://i.pravatar.cc/150?img=1'}
|
||||
alt={post.employee.fullName}
|
||||
alt={post.employee.name}
|
||||
className="w-12 h-12 rounded-full object-cover cursor-pointer ring-2 ring-transparent hover:ring-blue-500 transition-all"
|
||||
/>
|
||||
<AnimatePresence>
|
||||
|
|
@ -267,7 +267,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
<UserProfileCard
|
||||
user={{
|
||||
id: post.employee.id,
|
||||
name: post.employee.fullName,
|
||||
name: post.employee.name,
|
||||
avatar: post.employee.avatar || 'https://i.pravatar.cc/150?img=1',
|
||||
title: post.employee.jobPosition?.name || 'Çalışan',
|
||||
email: post.employee.email,
|
||||
|
|
@ -282,7 +282,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
</div>
|
||||
<div>
|
||||
<h3 className="font-semibold text-gray-900 dark:text-gray-100">
|
||||
{post.employee.fullName}
|
||||
{post.employee.name}
|
||||
</h3>
|
||||
<p className="text-sm text-gray-600 dark:text-gray-400">
|
||||
{post.employee.jobPosition?.name || 'Çalışan'} • {dayjs(post.creationTime).fromNow()}
|
||||
|
|
@ -381,7 +381,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
>
|
||||
<img
|
||||
src={comment.creator.avatar || 'https://i.pravatar.cc/150?img=1'}
|
||||
alt={comment.creator.fullName}
|
||||
alt={comment.creator.name}
|
||||
className="w-8 h-8 rounded-full object-cover cursor-pointer ring-2 ring-transparent hover:ring-blue-500 transition-all"
|
||||
/>
|
||||
<AnimatePresence>
|
||||
|
|
@ -389,7 +389,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
<UserProfileCard
|
||||
user={{
|
||||
id: comment.creator.id,
|
||||
name: comment.creator.fullName,
|
||||
name: comment.creator.name,
|
||||
avatar: comment.creator.avatar || 'https://i.pravatar.cc/150?img=1',
|
||||
title: comment.creator.jobPosition?.name || 'Çalışan'
|
||||
}}
|
||||
|
|
@ -401,7 +401,7 @@ const PostItem: React.FC<PostItemProps> = ({ post, onLike, onComment, onDelete,
|
|||
<div className="flex-1">
|
||||
<div className="bg-gray-100 dark:bg-gray-700 rounded-lg px-4 py-2">
|
||||
<h4 className="font-semibold text-sm text-gray-900 dark:text-gray-100">
|
||||
{comment.creator.fullName}
|
||||
{comment.creator.name}
|
||||
</h4>
|
||||
<p className="text-sm text-gray-800 dark:text-gray-200">{comment.content}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
|||
const [filter, setFilter] = useState<'all' | 'mine'>('all')
|
||||
|
||||
// Ali Öztürk'ü "Siz" kullanıcısı olarak kullan
|
||||
const currentUserAuthor: EmployeeDto = { ...mockEmployees[0], fullName: 'Siz' }
|
||||
const currentUserAuthor: EmployeeDto = { ...mockEmployees[0], name: 'Siz' }
|
||||
|
||||
const handleCreatePost = (postData: {
|
||||
content: string
|
||||
|
|
|
|||
|
|
@ -75,12 +75,12 @@ const AnnouncementDetailModal: React.FC<AnnouncementDetailModalProps> = ({ annou
|
|||
<div className="flex items-center gap-3 mt-4">
|
||||
<img
|
||||
src={announcement.employee.avatar}
|
||||
alt={announcement.employee.fullName}
|
||||
alt={announcement.employee.name}
|
||||
className="w-12 h-12 rounded-full"
|
||||
/>
|
||||
<div>
|
||||
<p className="font-semibold text-gray-900 dark:text-white">
|
||||
{announcement.employee.fullName}
|
||||
{announcement.employee.name}
|
||||
</p>
|
||||
<div className="flex items-center gap-3 text-sm text-gray-600 dark:text-gray-400">
|
||||
<span>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ const Announcements: React.FC<AnnouncementsProps> = ({ announcements, onAnnounce
|
|||
<div className="flex items-start gap-4">
|
||||
<img
|
||||
src={announcement.employee.avatar}
|
||||
alt={announcement.employee.fullName}
|
||||
alt={announcement.employee.name}
|
||||
className="w-10 h-10 rounded-full"
|
||||
/>
|
||||
<div className="flex-1 min-w-0">
|
||||
|
|
@ -60,7 +60,7 @@ const Announcements: React.FC<AnnouncementsProps> = ({ announcements, onAnnounce
|
|||
{announcement.excerpt}
|
||||
</p>
|
||||
<div className="flex items-center gap-4 mt-3 text-xs text-gray-500 dark:text-gray-400">
|
||||
<span>{announcement.employee.fullName}</span>
|
||||
<span>{announcement.employee.name}</span>
|
||||
<span>•</span>
|
||||
<span>{dayjs(announcement.publishDate).fromNow()}</span>
|
||||
<span>•</span>
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ const TodayBirthdays: React.FC<{ employees: EmployeeDto[] }> = ({ employees }) =
|
|||
>
|
||||
<img
|
||||
src={birthday.avatar}
|
||||
alt={birthday.fullName}
|
||||
alt={birthday.name}
|
||||
className="w-12 h-12 rounded-full border-2 border-pink-300 dark:border-pink-700"
|
||||
/>
|
||||
<div className="flex-1">
|
||||
<p className="text-sm font-semibold text-gray-900 dark:text-white">
|
||||
{birthday.fullName}
|
||||
{birthday.name}
|
||||
</p>
|
||||
<p className="text-xs text-gray-600 dark:text-gray-400">
|
||||
{today.diff(dayjs(birthday.birthDate), 'year')} yaşında 🎉
|
||||
|
|
|
|||
|
|
@ -66,13 +66,13 @@ const Visitors: React.FC<{ visitors: VisitorDto[] }> = ({ visitors }) => {
|
|||
e.currentTarget.onerror = null
|
||||
e.currentTarget.src = '/img/others/default-profile.png'
|
||||
}}
|
||||
alt={visitor.fullName}
|
||||
alt={visitor.name}
|
||||
className="w-10 h-10 rounded-full border-2 border-gray-300 dark:border-gray-600"
|
||||
/>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center justify-between mb-1">
|
||||
<h4 className="text-sm font-medium text-gray-900 dark:text-white truncate">
|
||||
{visitor.fullName}
|
||||
{visitor.name}
|
||||
</h4>
|
||||
<div className="flex items-center gap-1">{getStatusIcon(visitor.status)}</div>
|
||||
</div>
|
||||
|
|
@ -90,7 +90,7 @@ const Visitors: React.FC<{ visitors: VisitorDto[] }> = ({ visitors }) => {
|
|||
</div>
|
||||
{visitor.employee && (
|
||||
<p className="text-xs text-gray-500 dark:text-gray-500 mt-1">
|
||||
Karşılayan: {visitor.employee.fullName}
|
||||
Karşılayan: {visitor.employee.name}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -206,6 +206,15 @@ const SchedulerView = (props: SchedulerViewProps) => {
|
|||
currentView={currentView}
|
||||
onCurrentViewChange={onCurrentViewChange}
|
||||
onAppointmentFormOpening={onAppointmentFormOpening}
|
||||
onAppointmentAdding={() => {
|
||||
props.refreshData?.()
|
||||
}}
|
||||
onAppointmentUpdating={() => {
|
||||
props.refreshData?.()
|
||||
}}
|
||||
onAppointmentDeleting={() => {
|
||||
props.refreshData?.()
|
||||
}}
|
||||
height={
|
||||
gridDto.gridOptions.height > 0
|
||||
? gridDto.gridOptions.height
|
||||
|
|
|
|||
|
|
@ -132,8 +132,8 @@ const AssignNotificationModal: React.FC<AssignNotificationModalProps> = ({
|
|||
>
|
||||
<option value="">Kişi seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -179,7 +179,7 @@ const AssignNotificationModal: React.FC<AssignNotificationModalProps> = ({
|
|||
{assignmentType === 'person' ? (
|
||||
<>
|
||||
<strong>
|
||||
{mockEmployees.find((emp) => emp.fullName === assignedTo)?.fullName}
|
||||
{mockEmployees.find((emp) => emp.name === assignedTo)?.name}
|
||||
</strong>
|
||||
kişisine atanacak
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ const AssignWorkOrderModal: React.FC<AssignWorkOrderModalProps> = ({
|
|||
|
||||
const getSelectedEmployee = () => {
|
||||
if (assignmentType === 'person' && formData.assignedTo) {
|
||||
return mockEmployees.find((emp) => emp.fullName === formData.assignedTo)
|
||||
return mockEmployees.find((emp) => emp.name === formData.assignedTo)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
@ -199,8 +199,8 @@ const AssignWorkOrderModal: React.FC<AssignWorkOrderModalProps> = ({
|
|||
>
|
||||
<option value="">Kişi Seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -279,7 +279,7 @@ const AssignWorkOrderModal: React.FC<AssignWorkOrderModalProps> = ({
|
|||
<div className="space-y-2 text-sm">
|
||||
<div>
|
||||
<span className="text-green-700">Ad Soyad:</span>
|
||||
<span className="ml-2 font-medium">{getSelectedEmployee()?.fullName}</span>
|
||||
<span className="ml-2 font-medium">{getSelectedEmployee()?.name}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span className="text-green-700">Pozisyon:</span>
|
||||
|
|
|
|||
|
|
@ -222,8 +222,8 @@ const CreateWorkOrderFromNotificationModal: React.FC<CreateWorkOrderFromNotifica
|
|||
>
|
||||
<option value="">Kişi seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -259,8 +259,8 @@ const CreateWorkOrderModal: React.FC<CreateWorkOrderModalProps> = ({
|
|||
>
|
||||
<option value="">Teknisyen seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} ({employee.code})
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} ({employee.code})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -350,8 +350,8 @@ const CreateWorkOrderModal: React.FC<CreateWorkOrderModalProps> = ({
|
|||
>
|
||||
<option value="">Teknisyen seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} ({employee.code})
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} ({employee.code})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -244,8 +244,8 @@ const EditFaultNotificationModal: React.FC<EditFaultNotificationModalProps> = ({
|
|||
>
|
||||
<option value="">Bildiren kişi seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -283,8 +283,8 @@ const EditFaultNotificationModal: React.FC<EditFaultNotificationModalProps> = ({
|
|||
>
|
||||
<option value="">Atama yapın</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ const EditTeamModal: React.FC<EditTeamModalProps> = ({ isOpen, onClose, onSave,
|
|||
}
|
||||
|
||||
const handleMemberRoleChange = (employeeName: string, role: TeamRoleEnum) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
if (role === TeamRoleEnum.Lead && employee) {
|
||||
handleInputChange('managerId', employee.id)
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ const EditTeamModal: React.FC<EditTeamModalProps> = ({ isOpen, onClose, onSave,
|
|||
const handleSave = () => {
|
||||
if (validateForm()) {
|
||||
const members: TeamMember[] = selectedEmployees.map((employeeName, index) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
const existingMember = team?.members.find(
|
||||
(m) => m.employee?.firstName + ' ' + m.employee?.lastName === employeeName,
|
||||
)
|
||||
|
|
@ -223,7 +223,7 @@ const EditTeamModal: React.FC<EditTeamModalProps> = ({ isOpen, onClose, onSave,
|
|||
<h4 className="text-sm font-medium text-gray-700 mb-2">Seçili Ekip Üyeleri:</h4>
|
||||
<div className="space-y-2">
|
||||
{selectedEmployees.map((employeeName, index) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
|
|
|
|||
|
|
@ -383,8 +383,8 @@ const EditWorkOrderModal: React.FC<EditWorkOrderModalProps> = ({
|
|||
>
|
||||
<option value="">Kişi Seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -259,8 +259,8 @@ const NewCalendarEventModal: React.FC<NewCalendarEventModalProps> = ({
|
|||
>
|
||||
<option value="">Kişi seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} ({employee.code})
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} ({employee.code})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ const NewFaultNotificationModal: React.FC<NewFaultNotificationModalProps> = ({
|
|||
>
|
||||
<option value="">Bildiren kişi seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ const NewTeamModal: React.FC<NewTeamModalProps> = ({ isOpen, onClose, onSave })
|
|||
}
|
||||
|
||||
const handleMemberRoleChange = (employeeName: string, role: TeamRoleEnum) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
if (role === TeamRoleEnum.Lead && employee) {
|
||||
handleInputChange('managerId', employee.id)
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ const NewTeamModal: React.FC<NewTeamModalProps> = ({ isOpen, onClose, onSave })
|
|||
const handleSave = () => {
|
||||
if (validateForm()) {
|
||||
const members: TeamMember[] = selectedEmployees.map((employeeName, index) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
const isLeader = index === 0 // First selected employee becomes leader
|
||||
|
||||
return {
|
||||
|
|
@ -230,7 +230,7 @@ const NewTeamModal: React.FC<NewTeamModalProps> = ({ isOpen, onClose, onSave })
|
|||
<h4 className="text-sm font-medium text-gray-700 mb-2">Seçili Ekip Üyeleri:</h4>
|
||||
<div className="space-y-1.5">
|
||||
{selectedEmployees.map((employeeName, index) => {
|
||||
const employee = mockEmployees.find((emp) => emp.fullName === employeeName)
|
||||
const employee = mockEmployees.find((emp) => emp.name === employeeName)
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
|
|
|
|||
|
|
@ -315,8 +315,8 @@ const NewWorkOrderModal: React.FC<NewWorkOrderModalProps> = ({ isOpen, onClose,
|
|||
>
|
||||
<option value="">Kişi Seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -198,8 +198,8 @@ const StartWorkOrderModal: React.FC<StartWorkOrderModalProps> = ({
|
|||
>
|
||||
<option value="">Kişi Seçin</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -1092,7 +1092,7 @@ const ProjectForm: React.FC = () => {
|
|||
<option value="">Proje yöneticisi seçin</option>
|
||||
{projectManagers.map((manager) => (
|
||||
<option key={manager.id} value={manager.id}>
|
||||
{manager.fullName}
|
||||
{manager.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -1113,7 +1113,7 @@ const ProjectForm: React.FC = () => {
|
|||
</div>
|
||||
<div>
|
||||
<h4 className="font-medium text-gray-900">
|
||||
{manager.fullName}
|
||||
{manager.name}
|
||||
</h4>
|
||||
<p className="text-sm text-gray-600">
|
||||
{manager.jobPosition?.name || 'Proje Yöneticisi'}
|
||||
|
|
|
|||
|
|
@ -591,7 +591,7 @@ const ProjectGantt: React.FC<ProjectGanttProps> = ({ employeeId }) => {
|
|||
<option value="">Tüm Çalışanlar</option>
|
||||
{mockEmployees.map((emp) => (
|
||||
<option key={emp.id} value={emp.id}>
|
||||
{emp.fullName}
|
||||
{emp.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ const ProjectList: React.FC = () => {
|
|||
<FaUser size={16} className="text-gray-400 mr-2" />
|
||||
<div>
|
||||
<div className="font-medium text-gray-900">
|
||||
{project.projectManager?.fullName}
|
||||
{project.projectManager?.name}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -521,7 +521,7 @@ const ProjectList: React.FC = () => {
|
|||
<FaUser className="w-4 h-4 text-gray-600" />
|
||||
<span className="font-medium text-gray-900">Proje Yöneticisi</span>
|
||||
</div>
|
||||
<p className="text-sm text-gray-700">{project.projectManager?.fullName}</p>
|
||||
<p className="text-sm text-gray-700">{project.projectManager?.name}</p>
|
||||
</div>
|
||||
|
||||
{/* Progress */}
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ const ProjectTasks: React.FC = () => {
|
|||
<FaUser className="w-4 h-4 text-blue-600" />
|
||||
</div>
|
||||
<div className="text-sm text-gray-900 font-medium">
|
||||
{task.assignee?.fullName || '-'}
|
||||
{task.assignee?.name || '-'}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
@ -580,7 +580,7 @@ const ProjectTasks: React.FC = () => {
|
|||
</div>
|
||||
<div>
|
||||
<p className="text-sm font-medium text-gray-900">
|
||||
{selectedTask.assignee.fullName}
|
||||
{selectedTask.assignee.name}
|
||||
</p>
|
||||
<p className="text-sm text-gray-500">{selectedTask.assignee.email}</p>
|
||||
</div>
|
||||
|
|
@ -935,7 +935,7 @@ const ProjectTasks: React.FC = () => {
|
|||
.filter((emp) => emp.isActive)
|
||||
.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -970,7 +970,7 @@ const ProjectTasks: React.FC = () => {
|
|||
</div>
|
||||
<div>
|
||||
<h4 className="font-semibold text-blue-900">
|
||||
{selectedEmployee.fullName}
|
||||
{selectedEmployee.name}
|
||||
</h4>
|
||||
<p className="text-xs text-blue-700">
|
||||
{selectedEmployee.jobPosition?.name}
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ const ProjectView: React.FC = () => {
|
|||
</div>
|
||||
<div>
|
||||
<h4 className="font-medium text-gray-900">
|
||||
{project.projectManager.fullName}
|
||||
{project.projectManager.name}
|
||||
</h4>
|
||||
<p className="text-gray-600">
|
||||
{project.projectManager.jobPosition?.name || 'Proje Yöneticisi'}
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ const TaskEditModal: React.FC<TaskEditModalProps> = ({
|
|||
.filter((emp) => emp.isActive)
|
||||
.map((employee) => (
|
||||
<option key={employee.id} value={employee.id}>
|
||||
{employee.fullName} - {employee.jobPosition?.name}
|
||||
{employee.name} - {employee.jobPosition?.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
@ -365,7 +365,7 @@ const TaskEditModal: React.FC<TaskEditModalProps> = ({
|
|||
</div>
|
||||
<div>
|
||||
<h4 className="font-semibold text-blue-900 text-sm">
|
||||
{selectedEmployee.fullName}
|
||||
{selectedEmployee.name}
|
||||
</h4>
|
||||
<p className="text-xs text-blue-700">
|
||||
{selectedEmployee.jobPosition?.name}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ const TaskViewModal: React.FC<TaskViewModalProps> = ({
|
|||
<TaskInfo
|
||||
icon={FaUser}
|
||||
label="Atanan"
|
||||
value={task.assignee?.fullName || "-"}
|
||||
value={task.assignee?.name || "-"}
|
||||
/>
|
||||
<TaskInfo
|
||||
icon={FaChartLine}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ const Demo: React.FC<DemoModalProps> = ({ isOpen, onClose }) => {
|
|||
const [formData, setFormData] = useState<DemoDto>({
|
||||
id: crypto.randomUUID(),
|
||||
organizationName: "",
|
||||
fullName: "",
|
||||
name: "",
|
||||
email: "",
|
||||
phoneNumber: "",
|
||||
address: "",
|
||||
|
|
@ -60,7 +60,7 @@ const Demo: React.FC<DemoModalProps> = ({ isOpen, onClose }) => {
|
|||
|
||||
if (!formData.organizationName.trim())
|
||||
newErrors.organizationName = "Organization name is required";
|
||||
if (!formData.fullName.trim()) newErrors.fullName = "Full name is required";
|
||||
if (!formData.name.trim()) newErrors.name = "Full name is required";
|
||||
if (!formData.email.trim()) {
|
||||
newErrors.email = "Email is required";
|
||||
} else if (!/\S+@\S+\.\S+/.test(formData.email)) {
|
||||
|
|
@ -135,7 +135,7 @@ const Demo: React.FC<DemoModalProps> = ({ isOpen, onClose }) => {
|
|||
setFormData({
|
||||
id: crypto.randomUUID(),
|
||||
organizationName: "",
|
||||
fullName: "",
|
||||
name: "",
|
||||
email: "",
|
||||
phoneNumber: "",
|
||||
address: "",
|
||||
|
|
@ -206,10 +206,10 @@ const Demo: React.FC<DemoModalProps> = ({ isOpen, onClose }) => {
|
|||
<input
|
||||
type="text"
|
||||
name="fullName"
|
||||
value={formData.fullName}
|
||||
value={formData.name}
|
||||
onChange={handleInputChange}
|
||||
className={`w-full pl-11 pr-4 py-2.5 bg-gray-50 border ${
|
||||
errors.fullName
|
||||
errors.name
|
||||
? "border-red-500 focus:border-red-500 focus:ring-red-500/20"
|
||||
: "border-gray-200 focus:border-blue-500 focus:ring-blue-500/20"
|
||||
} rounded-xl text-gray-800 placeholder-gray-500 focus:outline-none transition-all duration-300`}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const SupplierForm: React.FC = () => {
|
|||
if (!formData.name.trim()) {
|
||||
newErrors.companyName = 'Şirket adı zorunludur'
|
||||
}
|
||||
if (!formData.primaryContact?.fullName?.trim()) {
|
||||
if (!formData.primaryContact?.name?.trim()) {
|
||||
newErrors.contactPerson = 'İletişim kişisi zorunludur'
|
||||
}
|
||||
if (!formData.email?.trim()) {
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ const SupplierList: React.FC = () => {
|
|||
<div className="space-y-1">
|
||||
{supplier.primaryContact && (
|
||||
<div className="text-sm font-medium text-gray-900">
|
||||
{supplier.primaryContact.fullName}
|
||||
{supplier.primaryContact.name}
|
||||
</div>
|
||||
)}
|
||||
{supplier.email && (
|
||||
|
|
|
|||
|
|
@ -1153,7 +1153,7 @@ const StockLevelsInventory: React.FC = () => {
|
|||
)
|
||||
.map((emp) => ({
|
||||
id: emp.id,
|
||||
name: emp.fullName,
|
||||
name: emp.name,
|
||||
code: emp.code,
|
||||
}))
|
||||
|
||||
|
|
@ -1893,7 +1893,7 @@ const StockLevelsInventory: React.FC = () => {
|
|||
)
|
||||
.map((emp) => ({
|
||||
id: emp.id,
|
||||
name: emp.fullName,
|
||||
name: emp.name,
|
||||
code: emp.code,
|
||||
}))
|
||||
|
||||
|
|
|
|||
|
|
@ -1251,8 +1251,8 @@ const WarehouseIssue: React.FC = () => {
|
|||
>
|
||||
<option value="">Çalışan Seçiniz</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.code}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.code}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -795,8 +795,8 @@ const WarehouseReceipt: React.FC = () => {
|
|||
>
|
||||
<option value="">Çalışan Seçiniz</option>
|
||||
{mockEmployees.map((employee) => (
|
||||
<option key={employee.id} value={employee.fullName}>
|
||||
{employee.fullName} - {employee.code}
|
||||
<option key={employee.id} value={employee.name}>
|
||||
{employee.name} - {employee.code}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in a new issue