Project Task Type
This commit is contained in:
parent
b11b5f2185
commit
8c5a141c8e
16 changed files with 125 additions and 125 deletions
|
|
@ -9615,13 +9615,13 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Project.Task",
|
"key": "App.Project.TaskType",
|
||||||
"tr": "Görev Tanımları",
|
"tr": "Görev Türleri",
|
||||||
"en": "Task Definitions"
|
"en": "Task Types"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Project.Tasks",
|
"key": "App.Project.Task",
|
||||||
"tr": "Görevler",
|
"tr": "Görevler",
|
||||||
"en": "Tasks"
|
"en": "Tasks"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1287,8 +1287,8 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Project Task
|
#region Project Task Type
|
||||||
listFormName = AppCodes.Project.Task;
|
listFormName = AppCodes.Project.TaskType;
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
|
|
@ -1308,7 +1308,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
||||||
IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
Description = listFormName,
|
Description = listFormName,
|
||||||
SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.ProjectTask)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.ProjectTaskType)),
|
||||||
KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
|
|
@ -1320,7 +1320,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
||||||
SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
ColumnOptionJson = DefaultColumnOptionJson,
|
ColumnOptionJson = DefaultColumnOptionJson,
|
||||||
PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.ProjectTask)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.ProjectTaskType)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 300, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 300, true, true, true, true, false),
|
||||||
|
|
@ -1340,7 +1340,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
#region Project Task Fields
|
#region Project Task Type Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
|
|
||||||
|
|
@ -2590,7 +2590,7 @@
|
||||||
"DisplayName": "App.Project.Status",
|
"DisplayName": "App.Project.Status",
|
||||||
"Order": 2,
|
"Order": 2,
|
||||||
"Url": "/admin/list/App.Project.Status",
|
"Url": "/admin/list/App.Project.Status",
|
||||||
"Icon": "FcTimeline",
|
"Icon": "FcApproval",
|
||||||
"RequiredPermissionName": "App.Project.Status",
|
"RequiredPermissionName": "App.Project.Status",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
@ -2600,7 +2600,7 @@
|
||||||
"DisplayName": "App.Project.Category",
|
"DisplayName": "App.Project.Category",
|
||||||
"Order": 3,
|
"Order": 3,
|
||||||
"Url": "/admin/list/App.Project.Category",
|
"Url": "/admin/list/App.Project.Category",
|
||||||
"Icon": "FcTimeline",
|
"Icon": "FcGrid",
|
||||||
"RequiredPermissionName": "App.Project.Category",
|
"RequiredPermissionName": "App.Project.Category",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
@ -2616,12 +2616,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Project",
|
"ParentCode": "App.Project",
|
||||||
"Code": "App.Project.Task",
|
"Code": "App.Project.TaskType",
|
||||||
"DisplayName": "App.Project.Task",
|
"DisplayName": "App.Project.TaskType",
|
||||||
"Order": 5,
|
"Order": 5,
|
||||||
"Url": "/admin/list/App.Project.Task",
|
"Url": "/admin/list/App.Project.TaskType",
|
||||||
"Icon": "FcPlanner",
|
"Icon": "FcPlanner",
|
||||||
"RequiredPermissionName": "App.Project.Task",
|
"RequiredPermissionName": "App.Project.TaskType",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -2640,18 +2640,18 @@
|
||||||
"DisplayName": "App.Project.Phase",
|
"DisplayName": "App.Project.Phase",
|
||||||
"Order": 7,
|
"Order": 7,
|
||||||
"Url": "/admin/list/App.Project.Phase",
|
"Url": "/admin/list/App.Project.Phase",
|
||||||
"Icon": "FcParallelTasks",
|
"Icon": "FcProcess",
|
||||||
"RequiredPermissionName": "App.Project.Phase",
|
"RequiredPermissionName": "App.Project.Phase",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Project",
|
"ParentCode": "App.Project",
|
||||||
"Code": "App.Project.Tasks",
|
"Code": "App.Project.Task",
|
||||||
"DisplayName": "App.Project.Tasks",
|
"DisplayName": "App.Project.Task",
|
||||||
"Order": 8,
|
"Order": 8,
|
||||||
"Url": "/admin/projects/tasks",
|
"Url": "/admin/projects/tasks",
|
||||||
"Icon": "FcBullish",
|
"Icon": "FcInspection",
|
||||||
"RequiredPermissionName": "App.Project.Tasks",
|
"RequiredPermissionName": "App.Project.Task",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -2660,7 +2660,7 @@
|
||||||
"DisplayName": "App.Project.Activity",
|
"DisplayName": "App.Project.Activity",
|
||||||
"Order": 9,
|
"Order": 9,
|
||||||
"Url": "/admin/projects/activities",
|
"Url": "/admin/projects/activities",
|
||||||
"Icon": "FcPlanner",
|
"Icon": "FcServices",
|
||||||
"RequiredPermissionName": "App.Project.Activity",
|
"RequiredPermissionName": "App.Project.Activity",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
@ -2670,7 +2670,7 @@
|
||||||
"DisplayName": "App.Project.Workload",
|
"DisplayName": "App.Project.Workload",
|
||||||
"Order": 10,
|
"Order": 10,
|
||||||
"Url": "/admin/projects/workload",
|
"Url": "/admin/projects/workload",
|
||||||
"Icon": "FcFlowChart",
|
"Icon": "FcComboChart",
|
||||||
"RequiredPermissionName": "App.Project.Workload",
|
"RequiredPermissionName": "App.Project.Workload",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8395,6 +8395,70 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Project.TaskType",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Create",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Update",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Delete",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Export",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Import",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Import",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Project",
|
||||||
|
"Name": "App.Project.TaskType.Note",
|
||||||
|
"ParentName": "App.Project.TaskType",
|
||||||
|
"DisplayName": "Note",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.Project",
|
"GroupName": "App.Project",
|
||||||
"Name": "App.Project.Task",
|
"Name": "App.Project.Task",
|
||||||
|
|
@ -8468,70 +8532,6 @@
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks",
|
|
||||||
"ParentName": null,
|
|
||||||
"DisplayName": "App.Project.Tasks",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Create",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Create",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Update",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Update",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Delete",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Delete",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Export",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Export",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Import",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Import",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupName": "App.Project",
|
|
||||||
"Name": "App.Project.Tasks.Note",
|
|
||||||
"ParentName": "App.Project.Tasks",
|
|
||||||
"DisplayName": "Note",
|
|
||||||
"IsEnabled": true,
|
|
||||||
"MultiTenancySide": 3,
|
|
||||||
"MenuGroup": "Erp"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.Project",
|
"GroupName": "App.Project",
|
||||||
"Name": "App.Project.Activity",
|
"Name": "App.Project.Activity",
|
||||||
|
|
|
||||||
|
|
@ -194,5 +194,5 @@ public enum TableNameEnum
|
||||||
ProjectRisk,
|
ProjectRisk,
|
||||||
ProjectPhase,
|
ProjectPhase,
|
||||||
ProjectCategory,
|
ProjectCategory,
|
||||||
ProjectTask
|
ProjectTaskType
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.ProjectCategory), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
{ nameof(TableNameEnum.ProjectCategory), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
||||||
{ nameof(TableNameEnum.ProjectPhase), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
{ nameof(TableNameEnum.ProjectPhase), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
||||||
{ nameof(TableNameEnum.Projects), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
{ nameof(TableNameEnum.Projects), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
||||||
{ nameof(TableNameEnum.ProjectTask), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
{ nameof(TableNameEnum.ProjectTaskType), (TablePrefix.TenantByName, MenuPrefix.Project) },
|
||||||
};
|
};
|
||||||
|
|
||||||
public static string GetFullTableName(string tableName)
|
public static string GetFullTableName(string tableName)
|
||||||
|
|
|
||||||
|
|
@ -568,7 +568,7 @@ public static class SeedConsts
|
||||||
public const string Risk = Default + ".Risk";
|
public const string Risk = Default + ".Risk";
|
||||||
public const string Category = Default + ".Category";
|
public const string Category = Default + ".Category";
|
||||||
public const string Phase = Default + ".Phase";
|
public const string Phase = Default + ".Phase";
|
||||||
public const string Task = Default + ".Task";
|
public const string TaskType = Default + ".TaskType";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Mrp
|
public static class Mrp
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Erp.Platform.Entities;
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
public class ProjectTask : FullAuditedEntity<Guid>, IMultiTenant
|
public class ProjectTaskType : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
|
@ -274,7 +274,7 @@ public class PlatformDbContext :
|
||||||
public DbSet<ProjectRisk> ProjectRisks { get; set; }
|
public DbSet<ProjectRisk> ProjectRisks { get; set; }
|
||||||
public DbSet<ProjectCategory> ProjectCategories { get; set; }
|
public DbSet<ProjectCategory> ProjectCategories { get; set; }
|
||||||
public DbSet<ProjectPhase> ProjectPhases { get; set; }
|
public DbSet<ProjectPhase> ProjectPhases { get; set; }
|
||||||
public DbSet<ProjectTask> ProjectTasks { get; set; }
|
public DbSet<ProjectTaskType> ProjectTasks { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public PlatformDbContext(DbContextOptions<PlatformDbContext> options)
|
public PlatformDbContext(DbContextOptions<PlatformDbContext> options)
|
||||||
|
|
@ -3309,9 +3309,9 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.IsActive).HasDefaultValue(true);
|
b.Property(x => x.IsActive).HasDefaultValue(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ProjectTask>(b =>
|
builder.Entity<ProjectTaskType>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ProjectTask)), Prefix.DbSchema);
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ProjectTaskType)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(50);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(50);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251127105051_Initial")]
|
[Migration("20251127112310_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -9848,7 +9848,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid?>("ProjectPhaseId")
|
b.Property<Guid?>("ProjectPhaseId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("ProjectTaskId")
|
b.Property<Guid?>("ProjectTaskTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("ProjectTypeId")
|
b.Property<Guid>("ProjectTypeId")
|
||||||
|
|
@ -9872,7 +9872,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("ProjectPhaseId");
|
b.HasIndex("ProjectPhaseId");
|
||||||
|
|
||||||
b.HasIndex("ProjectTaskId");
|
b.HasIndex("ProjectTaskTypeId");
|
||||||
|
|
||||||
b.HasIndex("ProjectTypeId");
|
b.HasIndex("ProjectTypeId");
|
||||||
|
|
||||||
|
|
@ -10176,7 +10176,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Prj_T_ProjectStatus", (string)null);
|
b.ToTable("Prj_T_ProjectStatus", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectTask", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectTaskType", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -10231,7 +10231,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prj_T_ProjectTask", (string)null);
|
b.ToTable("Prj_T_ProjectTaskType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectType", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectType", b =>
|
||||||
|
|
@ -17427,9 +17427,9 @@ namespace Erp.Platform.Migrations
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
.HasForeignKey("ProjectPhaseId");
|
.HasForeignKey("ProjectPhaseId");
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.ProjectTask", null)
|
b.HasOne("Erp.Platform.Entities.ProjectTaskType", null)
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
.HasForeignKey("ProjectTaskId");
|
.HasForeignKey("ProjectTaskTypeId");
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.ProjectType", "ProjectType")
|
b.HasOne("Erp.Platform.Entities.ProjectType", "ProjectType")
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
|
|
@ -18380,7 +18380,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Projects");
|
b.Navigation("Projects");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectTask", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectTaskType", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Projects");
|
b.Navigation("Projects");
|
||||||
});
|
});
|
||||||
|
|
@ -1890,7 +1890,7 @@ namespace Erp.Platform.Migrations
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Prj_T_ProjectTask",
|
name: "Prj_T_ProjectTaskType",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
|
@ -1908,7 +1908,7 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Prj_T_ProjectTask", x => x.Id);
|
table.PrimaryKey("PK_Prj_T_ProjectTaskType", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
|
|
@ -6840,7 +6840,7 @@ namespace Erp.Platform.Migrations
|
||||||
Progress = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
Progress = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
ProjectPhaseId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ProjectPhaseId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ProjectTaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ProjectTaskTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -6874,9 +6874,9 @@ namespace Erp.Platform.Migrations
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Prj_T_Projects_Prj_T_ProjectTask_ProjectTaskId",
|
name: "FK_Prj_T_Projects_Prj_T_ProjectTaskType_ProjectTaskTypeId",
|
||||||
column: x => x.ProjectTaskId,
|
column: x => x.ProjectTaskTypeId,
|
||||||
principalTable: "Prj_T_ProjectTask",
|
principalTable: "Prj_T_ProjectTaskType",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Prj_T_Projects_Prj_T_ProjectType_ProjectTypeId",
|
name: "FK_Prj_T_Projects_Prj_T_ProjectType_ProjectTypeId",
|
||||||
|
|
@ -7831,9 +7831,9 @@ namespace Erp.Platform.Migrations
|
||||||
column: "ProjectPhaseId");
|
column: "ProjectPhaseId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Prj_T_Projects_ProjectTaskId",
|
name: "IX_Prj_T_Projects_ProjectTaskTypeId",
|
||||||
table: "Prj_T_Projects",
|
table: "Prj_T_Projects",
|
||||||
column: "ProjectTaskId");
|
column: "ProjectTaskTypeId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Prj_T_Projects_ProjectTypeId",
|
name: "IX_Prj_T_Projects_ProjectTypeId",
|
||||||
|
|
@ -8911,7 +8911,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "Prj_T_ProjectPhase");
|
name: "Prj_T_ProjectPhase");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Prj_T_ProjectTask");
|
name: "Prj_T_ProjectTaskType");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Prj_T_ProjectType");
|
name: "Prj_T_ProjectType");
|
||||||
|
|
@ -9845,7 +9845,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid?>("ProjectPhaseId")
|
b.Property<Guid?>("ProjectPhaseId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("ProjectTaskId")
|
b.Property<Guid?>("ProjectTaskTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("ProjectTypeId")
|
b.Property<Guid>("ProjectTypeId")
|
||||||
|
|
@ -9869,7 +9869,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("ProjectPhaseId");
|
b.HasIndex("ProjectPhaseId");
|
||||||
|
|
||||||
b.HasIndex("ProjectTaskId");
|
b.HasIndex("ProjectTaskTypeId");
|
||||||
|
|
||||||
b.HasIndex("ProjectTypeId");
|
b.HasIndex("ProjectTypeId");
|
||||||
|
|
||||||
|
|
@ -10173,7 +10173,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Prj_T_ProjectStatus", (string)null);
|
b.ToTable("Prj_T_ProjectStatus", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectTask", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectTaskType", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -10228,7 +10228,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("Prj_T_ProjectTask", (string)null);
|
b.ToTable("Prj_T_ProjectTaskType", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectType", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectType", b =>
|
||||||
|
|
@ -17424,9 +17424,9 @@ namespace Erp.Platform.Migrations
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
.HasForeignKey("ProjectPhaseId");
|
.HasForeignKey("ProjectPhaseId");
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.ProjectTask", null)
|
b.HasOne("Erp.Platform.Entities.ProjectTaskType", null)
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
.HasForeignKey("ProjectTaskId");
|
.HasForeignKey("ProjectTaskTypeId");
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.ProjectType", "ProjectType")
|
b.HasOne("Erp.Platform.Entities.ProjectType", "ProjectType")
|
||||||
.WithMany("Projects")
|
.WithMany("Projects")
|
||||||
|
|
@ -18377,7 +18377,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Projects");
|
b.Navigation("Projects");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.ProjectTask", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.ProjectTaskType", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Projects");
|
b.Navigation("Projects");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -6119,7 +6119,7 @@
|
||||||
"isActive": false
|
"isActive": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ProjectTasks": [
|
"ProjectTaskTypes": [
|
||||||
{
|
{
|
||||||
"name": "Geliştirme",
|
"name": "Geliştirme",
|
||||||
"description": "Projenin planlama aşamasında olduğunu ifade eder",
|
"description": "Projenin planlama aşamasında olduğunu ifade eder",
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
private readonly IRepository<ProjectCategory, Guid> _projectCategoryRepository;
|
private readonly IRepository<ProjectCategory, Guid> _projectCategoryRepository;
|
||||||
private readonly IRepository<ProjectRisk, Guid> _projectRiskRepository;
|
private readonly IRepository<ProjectRisk, Guid> _projectRiskRepository;
|
||||||
private readonly IRepository<ProjectPhase, Guid> _projectPhaseRepository;
|
private readonly IRepository<ProjectPhase, Guid> _projectPhaseRepository;
|
||||||
private readonly IRepository<ProjectTask, Guid> _projectTaskRepository;
|
private readonly IRepository<ProjectTaskType, Guid> _projectTaskRepository;
|
||||||
|
|
||||||
public TenantDataSeeder(
|
public TenantDataSeeder(
|
||||||
IClock clock,
|
IClock clock,
|
||||||
|
|
@ -252,7 +252,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IRepository<ProjectRisk, Guid> projectRiskRepository,
|
IRepository<ProjectRisk, Guid> projectRiskRepository,
|
||||||
IRepository<ProjectCategory, Guid> projectCategoryRepository,
|
IRepository<ProjectCategory, Guid> projectCategoryRepository,
|
||||||
IRepository<ProjectPhase, Guid> projectPhaseRepository,
|
IRepository<ProjectPhase, Guid> projectPhaseRepository,
|
||||||
IRepository<ProjectTask, Guid> projectTaskRepository
|
IRepository<ProjectTaskType, Guid> projectTaskRepository
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_clock = clock;
|
_clock = clock;
|
||||||
|
|
@ -2588,13 +2588,13 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in items.ProjectTasks)
|
foreach (var item in items.ProjectTaskTypes)
|
||||||
{
|
{
|
||||||
var exists = await _projectTaskRepository.AnyAsync(x => x.Name == item.Name);
|
var exists = await _projectTaskRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
if (exists)
|
if (exists)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
await _projectTaskRepository.InsertAsync(new ProjectTask
|
await _projectTaskRepository.InsertAsync(new ProjectTaskType
|
||||||
{
|
{
|
||||||
Name = item.Name,
|
Name = item.Name,
|
||||||
Description = item.Description,
|
Description = item.Description,
|
||||||
|
|
|
||||||
|
|
@ -134,10 +134,10 @@ public class TenantSeederDto
|
||||||
public List<ProjectRiskSeedDto> ProjectRisks { get; set; }
|
public List<ProjectRiskSeedDto> ProjectRisks { get; set; }
|
||||||
public List<ProjectCategorySeedDto> ProjectCategories { get; set; }
|
public List<ProjectCategorySeedDto> ProjectCategories { get; set; }
|
||||||
public List<ProjectPhaseSeedDto> ProjectPhases { get; set; }
|
public List<ProjectPhaseSeedDto> ProjectPhases { get; set; }
|
||||||
public List<ProjectTaskSeedDto> ProjectTasks { get; set; }
|
public List<ProjectTaskTypeSeedDto> ProjectTaskTypes { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ProjectTaskSeedDto
|
public class ProjectTaskTypeSeedDto
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ const IntranetDashboard: React.FC = () => {
|
||||||
permission: 'App.Intranet.Announcement.Widget',
|
permission: 'App.Intranet.Announcement.Widget',
|
||||||
column: 'right',
|
column: 'right',
|
||||||
},
|
},
|
||||||
{ id: 'priority-tasks', permission: 'App.Project.Task.Widget', column: 'right' },
|
{ id: 'priority-tasks', permission: 'App.Project.TaskType.Widget', column: 'right' },
|
||||||
{ id: 'meal-weekly-menu', permission: 'App.Intranet.Meal.Widget', column: 'right' },
|
{ id: 'meal-weekly-menu', permission: 'App.Intranet.Meal.Widget', column: 'right' },
|
||||||
{ id: 'shuttle-route', permission: 'App.Intranet.ShuttleRoute.Widget', column: 'right' },
|
{ id: 'shuttle-route', permission: 'App.Intranet.ShuttleRoute.Widget', column: 'right' },
|
||||||
{ id: 'leave-management', permission: 'App.Hr.Leave.Widget', column: 'right' },
|
{ id: 'leave-management', permission: 'App.Hr.Leave.Widget', column: 'right' },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue