Grid CommandColumn IsVisible ve Visible Expression
This commit is contained in:
parent
1745707691
commit
abd7dd05fd
26 changed files with 359 additions and 253 deletions
|
|
@ -52,5 +52,14 @@ public class CommandColumnDto
|
||||||
/// <summary> Url boş ise calisacak 'eval' icerisinde calisacak olan kod
|
/// <summary> Url boş ise calisacak 'eval' icerisinde calisacak olan kod
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string OnClick { get; set; }
|
public string OnClick { get; set; }
|
||||||
|
/// <summary> Görünür durumu
|
||||||
|
/// </summary>
|
||||||
|
public bool IsVisible { get; set; } = true;
|
||||||
|
/// <summary> Dinamik görünürlük kontrolü için JavaScript fonksiyonu
|
||||||
|
/// Örnek: "(e) => !e.row.isEditing" veya "(e) => e.row.data.Status === 'Active'"
|
||||||
|
/// Fonksiyon parametre olarak DevExtreme button event objesini alır (e.row, e.row.data, e.row.isEditing vb.)
|
||||||
|
/// true/false döndürmelidir
|
||||||
|
/// </summary>
|
||||||
|
public string VisibleExpression { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4141,6 +4141,12 @@
|
||||||
"en": "Authorization Type",
|
"en": "Authorization Type",
|
||||||
"tr": "Yetkilendirme Türü"
|
"tr": "Yetkilendirme Türü"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "ListForms.ListFormEdit.CommandUrl",
|
||||||
|
"en": "Url",
|
||||||
|
"tr": "Url"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "ListForms.ListFormEdit.CommandUrlOptions",
|
"key": "ListForms.ListFormEdit.CommandUrlOptions",
|
||||||
|
|
@ -4153,6 +4159,18 @@
|
||||||
"en": "Url Target",
|
"en": "Url Target",
|
||||||
"tr": "Url Türü"
|
"tr": "Url Türü"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "ListForms.ListFormEdit.CommandVisible",
|
||||||
|
"en": "Visible",
|
||||||
|
"tr": "Görünür"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "ListForms.ListFormEdit.CommandVisibleExpression",
|
||||||
|
"en": "Visible Expression",
|
||||||
|
"tr": "Görünür İfade"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "ListForms.ListFormEdit.WidgetsDescription",
|
"key": "ListForms.ListFormEdit.WidgetsDescription",
|
||||||
|
|
@ -9472,7 +9490,7 @@
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Maintenance.Workorders",
|
"key": "App.Maintenance.Workorders",
|
||||||
"tr": "Bakım İş Emirleri",
|
"tr": "Bakım İş Emirleri",
|
||||||
"en": "Maintenance Workorders"
|
"en": "Workorders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,8 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Accounting.BankAccount,
|
AuthName = AppCodes.Accounting.BankAccount,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Bank)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Bank)}/@Id",
|
||||||
|
IsVisible = true
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
|
|
|
||||||
|
|
@ -641,9 +641,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Text = "Permission",
|
Text = "Permission",
|
||||||
AuthName = PlatformConsts.IdentityPermissions.Roles.ManagePermissions,
|
AuthName = PlatformConsts.IdentityPermissions.Roles.ManagePermissions,
|
||||||
DialogName = "RolesPermission",
|
DialogName = "RolesPermission",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name" }),
|
||||||
name = "@Name",
|
IsVisible = true,
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
|
|
@ -769,22 +768,21 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
InsertServiceAddress = "list-form-dynamic-api/user-insert",
|
InsertServiceAddress = "list-form-dynamic-api/user-insert",
|
||||||
UpdateServiceAddress = "list-form-dynamic-api/user-update",
|
UpdateServiceAddress = "list-form-dynamic-api/user-update",
|
||||||
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
|
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
|
||||||
new CommandColumnDto() {
|
new() {
|
||||||
Hint = "Detail",
|
Hint = "Detail",
|
||||||
Text ="Detail",
|
Text ="Detail",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName=PlatformConsts.IdentityPermissions.Users.Update,
|
AuthName=PlatformConsts.IdentityPermissions.Users.Update,
|
||||||
Url="/admin/users/detail/@Id"
|
Url="/admin/users/detail/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
new CommandColumnDto() {
|
new() {
|
||||||
Hint = "Permission",
|
Hint = "Permission",
|
||||||
Text = "Permission",
|
Text = "Permission",
|
||||||
AuthName = PlatformConsts.IdentityPermissions.Users.ManagePermissions,
|
AuthName = PlatformConsts.IdentityPermissions.Users.ManagePermissions,
|
||||||
DialogName = "UsersPermission",
|
DialogName = "UsersPermission",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Email", id = "@Id" }),
|
||||||
name = "@Email",
|
IsVisible = true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
|
|
@ -1102,9 +1100,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Text = "Details",
|
Text = "Details",
|
||||||
AuthName = AppCodes.AuditLogs,
|
AuthName = AppCodes.AuditLogs,
|
||||||
DialogName = "AuditLogDetail",
|
DialogName = "AuditLogDetail",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { id = "@Id" }),
|
||||||
id = "@Id",
|
IsVisible = true
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -1308,6 +1305,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Text = "Swagger",
|
Text = "Swagger",
|
||||||
AuthName=AppCodes.DeveloperKits.CustomEndpoints,
|
AuthName=AppCodes.DeveloperKits.CustomEndpoints,
|
||||||
Url= swaggerRootUrl + "/swagger/index.html",
|
Url= swaggerRootUrl + "/swagger/index.html",
|
||||||
|
IsVisible = true
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -4092,7 +4090,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Definitions.Skill,
|
AuthName = AppCodes.Definitions.Skill,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.SkillType)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.SkillType)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
|
|
@ -4428,7 +4427,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Definitions.Uom,
|
AuthName = AppCodes.Definitions.Uom,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.UomCategory)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.UomCategory)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
|
|
|
||||||
|
|
@ -2050,6 +2050,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Definitions.Question,
|
AuthName = AppCodes.Definitions.Question,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.QuestionPool)}/@Id",
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.QuestionPool)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -2170,9 +2171,8 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend
|
||||||
Text = "Answers",
|
Text = "Answers",
|
||||||
AuthName = AppCodes.Definitions.Question,
|
AuthName = AppCodes.Definitions.Question,
|
||||||
DialogName = "QuestionAnswers",
|
DialogName = "QuestionAnswers",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { id = "@Id" }),
|
||||||
id = "@Id"
|
IsVisible = true
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,8 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Crm.Customer,
|
AuthName = AppCodes.Crm.Customer,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Customer)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Customer)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
|
|
@ -1179,7 +1180,8 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Crm.Opportunity,
|
AuthName = AppCodes.Crm.Opportunity,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Opportunity)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Opportunity)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
|
||||||
|
|
@ -2052,25 +2052,26 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Toplu İzin",
|
Text ="Toplu İzin",
|
||||||
AuthName = AppCodes.Hr.Leave + ".Update",
|
AuthName = AppCodes.Hr.Leave + ".Update",
|
||||||
DialogName = "CollectiveLeave",
|
DialogName = "CollectiveLeave",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id" }),
|
||||||
name = "@Name",
|
IsVisible=true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Accept",
|
Hint = "Accept",
|
||||||
Text ="Accept",
|
Text ="Accept",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Leave + ".Update",
|
AuthName = AppCodes.Hr.Leave + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'"
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Reject",
|
Hint = "Reject",
|
||||||
Text ="Reject",
|
Text ="Reject",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Leave + ".Update",
|
AuthName = AppCodes.Hr.Leave + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
},
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'" },
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -2378,24 +2379,26 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Toplu Mesai",
|
Text ="Toplu Mesai",
|
||||||
AuthName = AppCodes.Hr.Overtime + ".Update",
|
AuthName = AppCodes.Hr.Overtime + ".Update",
|
||||||
DialogName = "CollectiveOvertime",
|
DialogName = "CollectiveOvertime",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id" }),
|
||||||
name = "@Name",
|
IsVisible=true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Accept",
|
Hint = "Accept",
|
||||||
Text ="Accept",
|
Text ="Accept",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Overtime + ".Update",
|
AuthName = AppCodes.Hr.Overtime + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'"
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Reject",
|
Hint = "Reject",
|
||||||
Text ="Reject",
|
Text ="Reject",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Overtime + ".Update",
|
AuthName = AppCodes.Hr.Overtime + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -2703,14 +2706,18 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Accept",
|
Text ="Accept",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Expense + ".Update",
|
AuthName = AppCodes.Hr.Expense + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'"
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Reject",
|
Hint = "Reject",
|
||||||
Text ="Reject",
|
Text ="Reject",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Expense + ".Update",
|
AuthName = AppCodes.Hr.Expense + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Askıda'"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -2996,31 +3003,34 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Toplu Bordro",
|
Text ="Toplu Bordro",
|
||||||
AuthName = AppCodes.Hr.Payroll + ".Update",
|
AuthName = AppCodes.Hr.Payroll + ".Update",
|
||||||
DialogName = "CollectivePayroll",
|
DialogName = "CollectivePayroll",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id" }),
|
||||||
name = "@Name",
|
IsVisible=true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Ödeme & Kesinti",
|
Hint = "Ödeme & Kesinti",
|
||||||
Text ="Ödeme & Kesinti",
|
Text ="Ödeme & Kesinti",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Payroll + ".Update",
|
AuthName = AppCodes.Hr.Payroll + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Accept",
|
Hint = "Accept",
|
||||||
Text ="Accept",
|
Text ="Accept",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Payroll + ".Update",
|
AuthName = AppCodes.Hr.Payroll + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Taslak'"
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Reject",
|
Hint = "Reject",
|
||||||
Text ="Reject",
|
Text ="Reject",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Payroll + ".Update",
|
AuthName = AppCodes.Hr.Payroll + ".Update",
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
|
VisibleExpression="(e) => e.row.data.Status === 'Taslak'"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -3339,10 +3349,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Questions",
|
Text = "Questions",
|
||||||
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
||||||
DialogName = "Template360Questions",
|
DialogName = "Template360Questions",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id"}),
|
||||||
name = "@Name",
|
IsVisible=true
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -3494,10 +3502,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Evaluations",
|
Text = "Evaluations",
|
||||||
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
||||||
DialogName = "Evaluation360",
|
DialogName = "Evaluation360",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id" }),
|
||||||
name = "@Name",
|
IsVisible=true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -3728,15 +3734,13 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
new() { FieldName = "MaxParticipants", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }
|
new() { FieldName = "MaxParticipants", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }
|
||||||
}),
|
}),
|
||||||
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
|
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
|
||||||
new CommandColumnDto() {
|
new() {
|
||||||
Hint = "Sertifikalar",
|
Hint = "Sertifikalar",
|
||||||
Text = "Sertifikalar",
|
Text = "Sertifikalar",
|
||||||
AuthName = AppCodes.Hr.Training + ".Update",
|
AuthName = AppCodes.Hr.Training + ".Update",
|
||||||
DialogName = "TrainingCertificates",
|
DialogName = "TrainingCertificates",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Email", id = "@Id" }),
|
||||||
name = "@Email",
|
IsVisible=true
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -4061,6 +4065,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Survey,
|
AuthName = AppCodes.Hr.Survey,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Survey)}/@Id",
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Survey)}/@Id",
|
||||||
|
IsVisible=true,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -4235,7 +4240,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Options",
|
Text ="Options",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.Survey,
|
AuthName = AppCodes.Hr.Survey,
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -4391,7 +4397,8 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Answers",
|
Text ="Answers",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Hr.SurveyResponse,
|
AuthName = AppCodes.Hr.SurveyResponse,
|
||||||
Url="/admin/list/list-employees/@Id"
|
Url="/admin/list/list-employees/@Id",
|
||||||
|
IsVisible=true
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
|
||||||
|
|
@ -1706,6 +1706,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Intranet.SocialComment,
|
AuthName = AppCodes.Intranet.SocialComment,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.SocialComment)}/@Id",
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.SocialComment)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
new EditingFormItemDto { Order = 9, DataField = "WarrantyExpiry", ColSpan = 1, EditorType2=EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.DateFormat },
|
new EditingFormItemDto { Order = 9, DataField = "WarrantyExpiry", ColSpan = 1, EditorType2=EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.DateFormat },
|
||||||
new EditingFormItemDto { Order = 10, DataField = "Location", ColSpan = 1, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 10, DataField = "Location", ColSpan = 1, EditorType2=EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order = 11, DataField = "DepartmentId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 11, DataField = "DepartmentId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 12, DataField = "StatusId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 12, DataField = "Status", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 13, DataField = "Criticality", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 13, DataField = "Criticality", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 14, DataField = "Capacity", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
new EditingFormItemDto { Order = 14, DataField = "Capacity", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
||||||
new EditingFormItemDto { Order = 15, DataField = "CostPerHour", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
new EditingFormItemDto { Order = 15, DataField = "CostPerHour", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
||||||
|
|
@ -585,15 +585,15 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "StatusId",
|
FieldName = "Status",
|
||||||
Width = 150,
|
Width = 150,
|
||||||
ListOrderNo = 13,
|
ListOrderNo = 13,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.WorkcenterStatus), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.WorkcenterStatus), "Name", "Name"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
|
@ -768,14 +768,16 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Maintenance.Plan,
|
AuthName = AppCodes.Maintenance.Plan,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Plan)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Plan)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Work Order",
|
Hint = "Work Order",
|
||||||
Text ="Work Order",
|
Text ="Work Order",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Maintenance.Plan,
|
AuthName = AppCodes.Maintenance.Plan,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Plan)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Plan)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -1350,7 +1352,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson,
|
||||||
EditingOptionJson = DefaultEditingOptionJson(AppCodes.Maintenance.Fault, 500, 250, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(AppCodes.Maintenance.Fault, 500, 500, true, true, true, true, false),
|
||||||
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
new() {
|
new() {
|
||||||
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= [
|
Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= [
|
||||||
|
|
@ -1362,15 +1364,18 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
new EditingFormItemDto { Order = 6, DataField = "FaultTypeId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 6, DataField = "FaultTypeId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 7, DataField = "Priority", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 7, DataField = "Priority", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 8, DataField = "Severity", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 8, DataField = "Severity", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 9, DataField = "AssignedTo", ColSpan = 1, EditorType2=EditorTypes.dxSelectBox },
|
new EditingFormItemDto { Order = 9, DataField = "EstimatedRepairTime", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
||||||
new EditingFormItemDto { Order = 10, DataField = "EstimatedRepairTime", ColSpan = 1, EditorType2=EditorTypes.dxNumberBox },
|
new EditingFormItemDto { Order = 10, DataField = "FollowUpRequired", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
new EditingFormItemDto { Order = 11, DataField = "FollowUpRequired", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 11, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
||||||
new EditingFormItemDto { Order = 12, DataField = "IsActive", ColSpan = 1, EditorType2=EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 12, DataField = "Status", ColSpan = 1, EditorType2=EditorTypes.dxSelectBox },
|
||||||
new EditingFormItemDto { Order = 13, DataField = "FaultStatusId", ColSpan = 1, EditorType2=EditorTypes.dxSelectBox },
|
|
||||||
]}
|
]}
|
||||||
}),
|
}),
|
||||||
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
|
new() { FieldName = "IsActive", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "FollowUpRequired", FieldDbType = DbType.Boolean, Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "Priority", FieldDbType = DbType.String, Value = "Low", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "Severity", FieldDbType = DbType.String, Value = "Low", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
|
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Açık", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -1576,15 +1581,30 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "FaultStatusId",
|
FieldName = "Status",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 11,
|
ListOrderNo = 11,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.FaultStatus), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.FaultStatus), "Name", "Name"),
|
||||||
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
ListFormCode = listForm.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Boolean,
|
||||||
|
FieldName = "IsActive",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 12,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
|
|
|
||||||
|
|
@ -117,16 +117,15 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Seed",
|
Text = "Seed",
|
||||||
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings,
|
||||||
DialogName = "TenantsConnectionString",
|
DialogName = "TenantsConnectionString",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "@Name", id = "@Id" }),
|
||||||
name = "@Name",
|
IsVisible = true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Branches",
|
Hint = "Branches",
|
||||||
Text = "Branches",
|
Text = "Branches",
|
||||||
AuthName = AppCodes.Branches,
|
AuthName = AppCodes.Branches,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Tenant)}/@Id",
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Tenant)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
InsertServiceAddress = "list-form-dynamic-api/tenant-insert",
|
InsertServiceAddress = "list-form-dynamic-api/tenant-insert",
|
||||||
|
|
@ -597,9 +596,8 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Seed",
|
Text = "Seed",
|
||||||
AuthName = AppCodes.Branches + ".Update",
|
AuthName = AppCodes.Branches + ".Update",
|
||||||
DialogName = "BranchSeed",
|
DialogName = "BranchSeed",
|
||||||
DialogParameters = JsonSerializer.Serialize(
|
DialogParameters = JsonSerializer.Serialize( new { id = "@Id", name = "@Name"} ),
|
||||||
new { id = "@Id", name = "@Name"}
|
IsVisible = true,
|
||||||
)
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -1561,7 +1559,8 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.Languages.LanguageText,
|
AuthName = AppCodes.Languages.LanguageText,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Language)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Language)}/@Id",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -2490,14 +2489,16 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName=AppCodes.Listforms.Listform + ".Update",
|
AuthName=AppCodes.Listforms.Listform + ".Update",
|
||||||
Url="/admin/listform/edit/@ListFormCode"
|
Url="/admin/listform/edit/@ListFormCode",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
Hint = "Göster",
|
Hint = "Göster",
|
||||||
Text ="Göster",
|
Text ="Göster",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName=AppCodes.Listforms.Listform,
|
AuthName=AppCodes.Listforms.Listform,
|
||||||
Url="/admin/list/@ListFormCode"
|
Url="/admin/list/@ListFormCode",
|
||||||
|
IsVisible = true,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
StateStoringJson = JsonSerializer.Serialize(new StateStoringDto { Enabled = true, StorageKey = "listFormGridStorage", Type = "custom" }),
|
StateStoringJson = JsonSerializer.Serialize(new StateStoringDto { Enabled = true, StorageKey = "listFormGridStorage", Type = "custom" }),
|
||||||
|
|
@ -2945,10 +2946,8 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Create",
|
Text = "Create",
|
||||||
AuthName = AppCodes.Notifications.NotificationRules,
|
AuthName = AppCodes.Notifications.NotificationRules,
|
||||||
DialogName = "CreateNotification",
|
DialogName = "CreateNotification",
|
||||||
DialogParameters = JsonSerializer.Serialize(new {
|
DialogParameters = JsonSerializer.Serialize(new { name = "id", id = "@Id" }),
|
||||||
name = "id",
|
IsVisible = true,
|
||||||
id = "@Id"
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
@ -3346,6 +3345,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Hangfire Login",
|
Text = "Hangfire Login",
|
||||||
AuthName=AppCodes.BackgroundWorkers,
|
AuthName=AppCodes.BackgroundWorkers,
|
||||||
Url= swaggerRootUrl + "/Account/Login",
|
Url= swaggerRootUrl + "/Account/Login",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ButtonPosition= UiCommandButtonPositionTypeEnum.Toolbar,
|
ButtonPosition= UiCommandButtonPositionTypeEnum.Toolbar,
|
||||||
|
|
@ -3353,13 +3353,15 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
Text = "Hangfire Aç",
|
Text = "Hangfire Aç",
|
||||||
AuthName=AppCodes.BackgroundWorkers,
|
AuthName=AppCodes.BackgroundWorkers,
|
||||||
Url= swaggerRootUrl + "/hangfire",
|
Url= swaggerRootUrl + "/hangfire",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ButtonPosition= UiCommandButtonPositionTypeEnum.Toolbar,
|
ButtonPosition= UiCommandButtonPositionTypeEnum.Toolbar,
|
||||||
Hint = "Hangfire Tazele",
|
Hint = "Hangfire Tazele",
|
||||||
Text = "Hangfire Tazele",
|
Text = "Hangfire Tazele",
|
||||||
AuthName=AppCodes.BackgroundWorkers,
|
AuthName=AppCodes.BackgroundWorkers,
|
||||||
OnClick="UiEvalService.ApiGenerateBackgroundWorkers();"
|
OnClick="UiEvalService.ApiGenerateBackgroundWorkers();",
|
||||||
|
IsVisible = true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
PermissionJson = DefaultPermissionJson(AppCodes.BackgroundWorkers),
|
PermissionJson = DefaultPermissionJson(AppCodes.BackgroundWorkers),
|
||||||
|
|
|
||||||
|
|
@ -1145,7 +1145,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.SupplyChain.Supply,
|
AuthName = AppCodes.SupplyChain.Supply,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Supply)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Supply)}/@Id",
|
||||||
|
IsVisible=true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -2491,7 +2492,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.SupplyChain.Approval,
|
AuthName = AppCodes.SupplyChain.Approval,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Approval)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Approval)}/@Id",
|
||||||
|
IsVisible=true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
@ -2971,7 +2973,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.SupplyChain.Request,
|
AuthName = AppCodes.SupplyChain.Request,
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Request)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Request)}/@Id",
|
||||||
|
IsVisible=true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}, autoSave: true
|
}, autoSave: true
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,7 @@ public class Fault : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public string Severity { get; set; }
|
public string Severity { get; set; }
|
||||||
public int? EstimatedRepairTime { get; set; }
|
public int? EstimatedRepairTime { get; set; }
|
||||||
public bool FollowUpRequired { get; set; }
|
public bool FollowUpRequired { get; set; }
|
||||||
public Guid? FaultStatusId { get; set; }
|
public string Status { get; set; }
|
||||||
public FaultStatus? FaultStatus { get; set; }
|
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
public string AssignedTo { get; set; }
|
public string AssignedTo { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,7 @@ public class Workcenter : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public Guid? DepartmentId { get; set; }
|
public Guid? DepartmentId { get; set; }
|
||||||
public Department? Department { get; set; }
|
public Department? Department { get; set; }
|
||||||
|
|
||||||
public Guid? StatusId { get; set; }
|
public string Status { get; set; }
|
||||||
public WorkcenterStatus? Status { get; set; }
|
|
||||||
|
|
||||||
public string Criticality { get; set; }
|
public string Criticality { get; set; }
|
||||||
public int Capacity { get; set; }
|
public int Capacity { get; set; }
|
||||||
public decimal CostPerHour { get; set; }
|
public decimal CostPerHour { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ public class WorkcenterStatus : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public string Code { get; set; }
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,15 @@ public class CommandColumn : ValueObject
|
||||||
/// <summary> Url boş ise calisacak 'eval' icerisinde calisacak olan kod
|
/// <summary> Url boş ise calisacak 'eval' icerisinde calisacak olan kod
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string OnClick { get; set; }
|
public string OnClick { get; set; }
|
||||||
|
/// <summary> Görünür durumu
|
||||||
|
/// </summary>
|
||||||
|
public bool IsVisible { get; set; } = true;
|
||||||
|
/// <summary> Dinamik görünürlük kontrolü için JavaScript fonksiyonu
|
||||||
|
/// Örnek: "(e) => !e.row.isEditing" veya "(e) => e.row.data.Status === 'Active'"
|
||||||
|
/// Fonksiyon parametre olarak DevExtreme button event objesini alır (e.row, e.row.data, e.row.isEditing vb.)
|
||||||
|
/// true/false döndürmelidir
|
||||||
|
/// </summary>
|
||||||
|
public string VisibleExpression { get; set; }
|
||||||
|
|
||||||
protected override IEnumerable<object> GetAtomicValues()
|
protected override IEnumerable<object> GetAtomicValues()
|
||||||
{
|
{
|
||||||
|
|
@ -67,6 +76,8 @@ public class CommandColumn : ValueObject
|
||||||
yield return DialogName;
|
yield return DialogName;
|
||||||
yield return DialogParameters;
|
yield return DialogParameters;
|
||||||
yield return OnClick;
|
yield return OnClick;
|
||||||
|
yield return IsVisible;
|
||||||
|
yield return VisibleExpression;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2717,7 +2717,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Location).HasMaxLength(250);
|
b.Property(x => x.Location).HasMaxLength(250);
|
||||||
|
|
||||||
b.Property(x => x.DepartmentId).IsRequired();
|
b.Property(x => x.DepartmentId).IsRequired();
|
||||||
b.Property(x => x.StatusId).IsRequired();
|
b.Property(x => x.Status).IsRequired().HasMaxLength(20);
|
||||||
|
|
||||||
b.Property(x => x.Criticality).HasMaxLength(10);
|
b.Property(x => x.Criticality).HasMaxLength(10);
|
||||||
b.Property(x => x.Capacity).HasDefaultValue(0);
|
b.Property(x => x.Capacity).HasDefaultValue(0);
|
||||||
|
|
@ -2729,11 +2729,6 @@ public class PlatformDbContext :
|
||||||
.WithMany(x => x.Workcenters)
|
.WithMany(x => x.Workcenters)
|
||||||
.HasForeignKey(x => x.WorkcenterTypeId)
|
.HasForeignKey(x => x.WorkcenterTypeId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne(x => x.Status)
|
|
||||||
.WithMany(x => x.Workcenters)
|
|
||||||
.HasForeignKey(x => x.StatusId)
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<WorkcenterSpecification>(b =>
|
builder.Entity<WorkcenterSpecification>(b =>
|
||||||
|
|
@ -2815,7 +2810,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Title).HasMaxLength(200);
|
b.Property(x => x.Title).HasMaxLength(200);
|
||||||
b.Property(x => x.Description);
|
b.Property(x => x.Description);
|
||||||
b.Property(x => x.AssignedTo).HasMaxLength(150);
|
b.Property(x => x.AssignedTo).HasMaxLength(150);
|
||||||
b.Property(x => x.FaultStatusId).IsRequired();
|
b.Property(x => x.Status).IsRequired().HasMaxLength(20);
|
||||||
b.Property(x => x.ResolutionNotes);
|
b.Property(x => x.ResolutionNotes);
|
||||||
b.Property(x => x.ClosedBy).HasMaxLength(150);
|
b.Property(x => x.ClosedBy).HasMaxLength(150);
|
||||||
b.Property(x => x.WorkOrderId).HasMaxLength(100);
|
b.Property(x => x.WorkOrderId).HasMaxLength(100);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251121074401_Initial")]
|
[Migration("20251121142619_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -4586,7 +4586,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<int?>("EstimatedRepairTime")
|
b.Property<int?>("EstimatedRepairTime")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<Guid>("FaultStatusId")
|
b.Property<Guid?>("FaultStatusId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("FaultTypeId")
|
b.Property<Guid>("FaultTypeId")
|
||||||
|
|
@ -4627,6 +4627,11 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
@ -11668,8 +11673,10 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasDefaultValue(0);
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
b.Property<Guid>("StatusId")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("uniqueidentifier");
|
.IsRequired()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -11678,6 +11685,9 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<DateTime?>("WarrantyExpiry")
|
b.Property<DateTime?>("WarrantyExpiry")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("WorkcenterStatusId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("WorkcenterTypeId")
|
b.Property<Guid>("WorkcenterTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
|
@ -11685,7 +11695,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("DepartmentId");
|
b.HasIndex("DepartmentId");
|
||||||
|
|
||||||
b.HasIndex("StatusId");
|
b.HasIndex("WorkcenterStatusId");
|
||||||
|
|
||||||
b.HasIndex("WorkcenterTypeId");
|
b.HasIndex("WorkcenterTypeId");
|
||||||
|
|
||||||
|
|
@ -11766,9 +11776,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
.HasColumnName("CreationTime");
|
.HasColumnName("CreationTime");
|
||||||
|
|
@ -14515,11 +14522,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Fault", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Fault", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.FaultStatus", "FaultStatus")
|
b.HasOne("Erp.Platform.Entities.FaultStatus", null)
|
||||||
.WithMany("Faults")
|
.WithMany("Faults")
|
||||||
.HasForeignKey("FaultStatusId")
|
.HasForeignKey("FaultStatusId");
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.FaultType", "FaultType")
|
b.HasOne("Erp.Platform.Entities.FaultType", "FaultType")
|
||||||
.WithMany("Faults")
|
.WithMany("Faults")
|
||||||
|
|
@ -14533,8 +14538,6 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("FaultStatus");
|
|
||||||
|
|
||||||
b.Navigation("FaultType");
|
b.Navigation("FaultType");
|
||||||
|
|
||||||
b.Navigation("WorkCenter");
|
b.Navigation("WorkCenter");
|
||||||
|
|
@ -15271,11 +15274,9 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.WorkcenterStatus", "Status")
|
b.HasOne("Erp.Platform.Entities.WorkcenterStatus", null)
|
||||||
.WithMany("Workcenters")
|
.WithMany("Workcenters")
|
||||||
.HasForeignKey("StatusId")
|
.HasForeignKey("WorkcenterStatusId");
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.WorkcenterType", "WorkcenterType")
|
b.HasOne("Erp.Platform.Entities.WorkcenterType", "WorkcenterType")
|
||||||
.WithMany("Workcenters")
|
.WithMany("Workcenters")
|
||||||
|
|
@ -15285,8 +15286,6 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Navigation("Department");
|
b.Navigation("Department");
|
||||||
|
|
||||||
b.Navigation("Status");
|
|
||||||
|
|
||||||
b.Navigation("WorkcenterType");
|
b.Navigation("WorkcenterType");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -1326,7 +1326,6 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
||||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
|
|
@ -4823,12 +4822,13 @@ namespace Erp.Platform.Migrations
|
||||||
WarrantyExpiry = table.Column<DateTime>(type: "datetime2", nullable: true),
|
WarrantyExpiry = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
Location = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
Location = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
||||||
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StatusId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||||
Criticality = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
Criticality = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
Capacity = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
Capacity = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
CostPerHour = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
CostPerHour = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
SetupTime = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
SetupTime = 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),
|
||||||
|
WorkcenterStatusId = 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),
|
||||||
|
|
@ -4847,11 +4847,10 @@ namespace Erp.Platform.Migrations
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_Workcenter_Mnt_T_WorkcenterStatus_StatusId",
|
name: "FK_Mnt_T_Workcenter_Mnt_T_WorkcenterStatus_WorkcenterStatusId",
|
||||||
column: x => x.StatusId,
|
column: x => x.WorkcenterStatusId,
|
||||||
principalTable: "Mnt_T_WorkcenterStatus",
|
principalTable: "Mnt_T_WorkcenterStatus",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id");
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_Workcenter_Mnt_T_WorkcenterType_WorkcenterTypeId",
|
name: "FK_Mnt_T_Workcenter_Mnt_T_WorkcenterType_WorkcenterTypeId",
|
||||||
column: x => x.WorkcenterTypeId,
|
column: x => x.WorkcenterTypeId,
|
||||||
|
|
@ -4996,7 +4995,7 @@ namespace Erp.Platform.Migrations
|
||||||
Severity = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
Severity = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
EstimatedRepairTime = table.Column<int>(type: "int", nullable: true),
|
EstimatedRepairTime = table.Column<int>(type: "int", nullable: true),
|
||||||
FollowUpRequired = table.Column<bool>(type: "bit", nullable: false),
|
FollowUpRequired = table.Column<bool>(type: "bit", nullable: false),
|
||||||
FaultStatusId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
||||||
AssignedTo = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
AssignedTo = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||||
ActualRepairTime = table.Column<int>(type: "int", nullable: true),
|
ActualRepairTime = table.Column<int>(type: "int", nullable: true),
|
||||||
|
|
@ -5004,6 +5003,7 @@ namespace Erp.Platform.Migrations
|
||||||
ResolutionNotes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ResolutionNotes = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
ClosedBy = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
ClosedBy = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||||
ClosedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
ClosedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
FaultStatusId = 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),
|
||||||
|
|
@ -5019,8 +5019,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "FK_Mnt_T_Fault_Mnt_T_FaultStatus_FaultStatusId",
|
name: "FK_Mnt_T_Fault_Mnt_T_FaultStatus_FaultStatusId",
|
||||||
column: x => x.FaultStatusId,
|
column: x => x.FaultStatusId,
|
||||||
principalTable: "Mnt_T_FaultStatus",
|
principalTable: "Mnt_T_FaultStatus",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id");
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Mnt_T_Fault_Mnt_T_FaultType_FaultTypeId",
|
name: "FK_Mnt_T_Fault_Mnt_T_FaultType_FaultTypeId",
|
||||||
column: x => x.FaultTypeId,
|
column: x => x.FaultTypeId,
|
||||||
|
|
@ -6575,9 +6574,9 @@ namespace Erp.Platform.Migrations
|
||||||
column: "DepartmentId");
|
column: "DepartmentId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_Workcenter_StatusId",
|
name: "IX_Mnt_T_Workcenter_WorkcenterStatusId",
|
||||||
table: "Mnt_T_Workcenter",
|
table: "Mnt_T_Workcenter",
|
||||||
column: "StatusId");
|
column: "WorkcenterStatusId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Mnt_T_Workcenter_WorkcenterTypeId",
|
name: "IX_Mnt_T_Workcenter_WorkcenterTypeId",
|
||||||
|
|
@ -4583,7 +4583,7 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<int?>("EstimatedRepairTime")
|
b.Property<int?>("EstimatedRepairTime")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<Guid>("FaultStatusId")
|
b.Property<Guid?>("FaultStatusId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("FaultTypeId")
|
b.Property<Guid>("FaultTypeId")
|
||||||
|
|
@ -4624,6 +4624,11 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
@ -11665,8 +11670,10 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasDefaultValue(0);
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
b.Property<Guid>("StatusId")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("uniqueidentifier");
|
.IsRequired()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -11675,6 +11682,9 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<DateTime?>("WarrantyExpiry")
|
b.Property<DateTime?>("WarrantyExpiry")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("WorkcenterStatusId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid>("WorkcenterTypeId")
|
b.Property<Guid>("WorkcenterTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
|
@ -11682,7 +11692,7 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("DepartmentId");
|
b.HasIndex("DepartmentId");
|
||||||
|
|
||||||
b.HasIndex("StatusId");
|
b.HasIndex("WorkcenterStatusId");
|
||||||
|
|
||||||
b.HasIndex("WorkcenterTypeId");
|
b.HasIndex("WorkcenterTypeId");
|
||||||
|
|
||||||
|
|
@ -11763,9 +11773,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
.HasColumnName("CreationTime");
|
.HasColumnName("CreationTime");
|
||||||
|
|
@ -14512,11 +14519,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Fault", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Fault", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.FaultStatus", "FaultStatus")
|
b.HasOne("Erp.Platform.Entities.FaultStatus", null)
|
||||||
.WithMany("Faults")
|
.WithMany("Faults")
|
||||||
.HasForeignKey("FaultStatusId")
|
.HasForeignKey("FaultStatusId");
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.FaultType", "FaultType")
|
b.HasOne("Erp.Platform.Entities.FaultType", "FaultType")
|
||||||
.WithMany("Faults")
|
.WithMany("Faults")
|
||||||
|
|
@ -14530,8 +14535,6 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("FaultStatus");
|
|
||||||
|
|
||||||
b.Navigation("FaultType");
|
b.Navigation("FaultType");
|
||||||
|
|
||||||
b.Navigation("WorkCenter");
|
b.Navigation("WorkCenter");
|
||||||
|
|
@ -15268,11 +15271,9 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.WorkcenterStatus", "Status")
|
b.HasOne("Erp.Platform.Entities.WorkcenterStatus", null)
|
||||||
.WithMany("Workcenters")
|
.WithMany("Workcenters")
|
||||||
.HasForeignKey("StatusId")
|
.HasForeignKey("WorkcenterStatusId");
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.WorkcenterType", "WorkcenterType")
|
b.HasOne("Erp.Platform.Entities.WorkcenterType", "WorkcenterType")
|
||||||
.WithMany("Workcenters")
|
.WithMany("Workcenters")
|
||||||
|
|
@ -15282,8 +15283,6 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Navigation("Department");
|
b.Navigation("Department");
|
||||||
|
|
||||||
b.Navigation("Status");
|
|
||||||
|
|
||||||
b.Navigation("WorkcenterType");
|
b.Navigation("WorkcenterType");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3301,7 +3301,7 @@
|
||||||
"endDate": "01-12-2024",
|
"endDate": "01-12-2024",
|
||||||
"totalDays": 0.5,
|
"totalDays": 0.5,
|
||||||
"reason": "Kişisel işler",
|
"reason": "Kişisel işler",
|
||||||
"status": "Rejected",
|
"status": "Reddedildi",
|
||||||
"appliedDate": "02-11-2024",
|
"appliedDate": "02-11-2024",
|
||||||
"rejectionReason": "Proje teslim tarihi nedeniyle uygun değil",
|
"rejectionReason": "Proje teslim tarihi nedeniyle uygun değil",
|
||||||
"isHalfDay": true
|
"isHalfDay": true
|
||||||
|
|
@ -4857,25 +4857,21 @@
|
||||||
],
|
],
|
||||||
"WorkcenterStatuses": [
|
"WorkcenterStatuses": [
|
||||||
{
|
{
|
||||||
"code": "OP",
|
|
||||||
"name": "Operational",
|
"name": "Operational",
|
||||||
"description": "İş Merkezi Operatif Durumda",
|
"description": "İş Merkezi Operatif Durumda",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "UM",
|
|
||||||
"name": "Under Maintenance",
|
"name": "Under Maintenance",
|
||||||
"description": "İş Merkezi Bakımda",
|
"description": "İş Merkezi Bakımda",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "OO",
|
|
||||||
"name": "Out of Order",
|
"name": "Out of Order",
|
||||||
"description": "İş Merkezi Arızalı",
|
"description": "İş Merkezi Arızalı",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "RT",
|
|
||||||
"name": "Retired",
|
"name": "Retired",
|
||||||
"description": "İş Merkezi Kullanımdan Kaldırıldı",
|
"description": "İş Merkezi Kullanımdan Kaldırıldı",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
|
|
@ -4894,7 +4890,7 @@
|
||||||
"warrantyExpiry": "2025-03-15T00:00:00",
|
"warrantyExpiry": "2025-03-15T00:00:00",
|
||||||
"location": "Atölye A - Hat 1",
|
"location": "Atölye A - Hat 1",
|
||||||
"departmentCode": "ÜRT",
|
"departmentCode": "ÜRT",
|
||||||
"statusCode": "OP",
|
"status": "Operational",
|
||||||
"criticality": "High",
|
"criticality": "High",
|
||||||
"capacity": 8,
|
"capacity": 8,
|
||||||
"costPerHour": 75,
|
"costPerHour": 75,
|
||||||
|
|
@ -4913,7 +4909,7 @@
|
||||||
"warrantyExpiry": "2024-08-20T00:00:00",
|
"warrantyExpiry": "2024-08-20T00:00:00",
|
||||||
"location": "Kompresör Odası",
|
"location": "Kompresör Odası",
|
||||||
"departmentCode": "BAK",
|
"departmentCode": "BAK",
|
||||||
"statusCode": "UM",
|
"status": "Under Maintenance",
|
||||||
"criticality": "Critical",
|
"criticality": "Critical",
|
||||||
"capacity": 8,
|
"capacity": 8,
|
||||||
"costPerHour": 85,
|
"costPerHour": 85,
|
||||||
|
|
@ -4931,7 +4927,7 @@
|
||||||
"installationDate": "2020-11-10T00:00:00",
|
"installationDate": "2020-11-10T00:00:00",
|
||||||
"location": "Ana Üretim Hattı",
|
"location": "Ana Üretim Hattı",
|
||||||
"departmentCode": "KAL",
|
"departmentCode": "KAL",
|
||||||
"statusCode": "OO",
|
"status": "Out of Order",
|
||||||
"criticality": "Medium",
|
"criticality": "Medium",
|
||||||
"capacity": 8,
|
"capacity": 8,
|
||||||
"costPerHour": 85,
|
"costPerHour": 85,
|
||||||
|
|
|
||||||
|
|
@ -1950,13 +1950,12 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
|
|
||||||
foreach (var item in items.WorkcenterStatuses)
|
foreach (var item in items.WorkcenterStatuses)
|
||||||
{
|
{
|
||||||
var exists = await _workcenterStatusRepository.AnyAsync(x => x.Code == item.Code);
|
var exists = await _workcenterStatusRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
if (exists)
|
if (exists)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
await _workcenterStatusRepository.InsertAsync(new WorkcenterStatus
|
await _workcenterStatusRepository.InsertAsync(new WorkcenterStatus
|
||||||
{
|
{
|
||||||
Code = item.Code,
|
|
||||||
Name = item.Name,
|
Name = item.Name,
|
||||||
Description = item.Description,
|
Description = item.Description,
|
||||||
IsActive = item.IsActive
|
IsActive = item.IsActive
|
||||||
|
|
@ -1971,7 +1970,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
|
|
||||||
var department = await _departmentRepository.FirstOrDefaultAsync(x => x.Code == item.DepartmentCode);
|
var department = await _departmentRepository.FirstOrDefaultAsync(x => x.Code == item.DepartmentCode);
|
||||||
var workcenterType = await _workcenterTypeRepository.FirstOrDefaultAsync(x => x.Code == item.WorkcenterTypeCode);
|
var workcenterType = await _workcenterTypeRepository.FirstOrDefaultAsync(x => x.Code == item.WorkcenterTypeCode);
|
||||||
var status = await _workcenterStatusRepository.FirstOrDefaultAsync(x => x.Code == item.StatusCode);
|
|
||||||
|
|
||||||
await _workcenterRepository.InsertAsync(new Workcenter
|
await _workcenterRepository.InsertAsync(new Workcenter
|
||||||
{
|
{
|
||||||
|
|
@ -1986,7 +1984,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
WarrantyExpiry = item.WarrantyExpiry,
|
WarrantyExpiry = item.WarrantyExpiry,
|
||||||
Location = item.Location,
|
Location = item.Location,
|
||||||
DepartmentId = department?.Id,
|
DepartmentId = department?.Id,
|
||||||
StatusId = status?.Id,
|
Status = item.Status,
|
||||||
Criticality = item.Criticality,
|
Criticality = item.Criticality,
|
||||||
Capacity = item.Capacity,
|
Capacity = item.Capacity,
|
||||||
CostPerHour = item.CostPerHour,
|
CostPerHour = item.CostPerHour,
|
||||||
|
|
@ -2069,7 +2067,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
Severity = item.Severity,
|
Severity = item.Severity,
|
||||||
Title = item.Title,
|
Title = item.Title,
|
||||||
Description = item.Description,
|
Description = item.Description,
|
||||||
FaultStatusId = faultStatus?.Id,
|
Status = item.Status,
|
||||||
EstimatedRepairTime = item.EstimatedRepairTime,
|
EstimatedRepairTime = item.EstimatedRepairTime,
|
||||||
ActualRepairTime = item.ActualRepairTime,
|
ActualRepairTime = item.ActualRepairTime,
|
||||||
ResolutionNotes = item.ResolutionNotes,
|
ResolutionNotes = item.ResolutionNotes,
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ public class WorkcenterSeedDto
|
||||||
public string Location { get; set; }
|
public string Location { get; set; }
|
||||||
|
|
||||||
public string DepartmentCode { get; set; }
|
public string DepartmentCode { get; set; }
|
||||||
public string StatusCode { get; set; }
|
public string Status { get; set; }
|
||||||
|
|
||||||
public string Criticality { get; set; }
|
public string Criticality { get; set; }
|
||||||
public int Capacity { get; set; }
|
public int Capacity { get; set; }
|
||||||
|
|
@ -189,7 +189,6 @@ public class WorkcenterTypeSeedDto
|
||||||
|
|
||||||
public class WorkcenterStatusSeedDto
|
public class WorkcenterStatusSeedDto
|
||||||
{
|
{
|
||||||
public string Code { get; set; }
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -303,6 +303,8 @@ export interface CommandColumnDto {
|
||||||
dialogName?: string
|
dialogName?: string
|
||||||
dialogParameters?: string
|
dialogParameters?: string
|
||||||
onClick?: string
|
onClick?: string
|
||||||
|
isVisible: boolean
|
||||||
|
visibleExpression?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GridBoxOptionsDto {
|
export interface GridBoxOptionsDto {
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ function FormTabCommands() {
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CommandAuthorizationType')}</Th>
|
<Th>{translate('::ListForms.ListFormEdit.CommandAuthorizationType')}</Th>
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CommandUrlTarget')}</Th>
|
<Th>{translate('::ListForms.ListFormEdit.CommandUrlTarget')}</Th>
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CommandUrl')}</Th>
|
<Th>{translate('::ListForms.ListFormEdit.CommandUrl')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CommandVisible')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CommandVisibleExpression')}</Th>
|
||||||
</Tr>
|
</Tr>
|
||||||
</THead>
|
</THead>
|
||||||
<TBody>
|
<TBody>
|
||||||
|
|
@ -113,6 +115,8 @@ function FormTabCommands() {
|
||||||
<Td>{row.authName}</Td>
|
<Td>{row.authName}</Td>
|
||||||
<Td>{row.urlTarget}</Td>
|
<Td>{row.urlTarget}</Td>
|
||||||
<Td>{row.url}</Td>
|
<Td>{row.url}</Td>
|
||||||
|
<Td>{row.isVisible ? 'Yes' : 'No'}</Td>
|
||||||
|
<Td>{row.visibleExpression}</Td>
|
||||||
</Tr>
|
</Tr>
|
||||||
))}
|
))}
|
||||||
</TBody>
|
</TBody>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
Checkbox,
|
||||||
Dialog,
|
Dialog,
|
||||||
FormContainer,
|
FormContainer,
|
||||||
FormItem,
|
FormItem,
|
||||||
|
|
@ -98,6 +99,7 @@ function JsonRowOpDialogCommand({
|
||||||
id="commandOperation"
|
id="commandOperation"
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
preventScroll={true}
|
preventScroll={true}
|
||||||
|
width={900}
|
||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
onRequestClose={handleClose}
|
onRequestClose={handleClose}
|
||||||
>
|
>
|
||||||
|
|
@ -117,6 +119,8 @@ function JsonRowOpDialogCommand({
|
||||||
dialogName: '',
|
dialogName: '',
|
||||||
dialogParameters: '',
|
dialogParameters: '',
|
||||||
onClick: '',
|
onClick: '',
|
||||||
|
isVisible: true,
|
||||||
|
visibleExpression: '',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validationSchema={schema}
|
validationSchema={schema}
|
||||||
|
|
@ -157,6 +161,7 @@ function JsonRowOpDialogCommand({
|
||||||
<Form>
|
<Form>
|
||||||
<FormContainer size="sm">
|
<FormContainer size="sm">
|
||||||
<div className="h-full overflow-y-auto p-2">
|
<div className="h-full overflow-y-auto p-2">
|
||||||
|
<div className="grid grid-cols-2 gap-4">
|
||||||
<FormItem
|
<FormItem
|
||||||
label="Button Position"
|
label="Button Position"
|
||||||
invalid={errors.buttonPosition && touched.buttonPosition}
|
invalid={errors.buttonPosition && touched.buttonPosition}
|
||||||
|
|
@ -247,6 +252,33 @@ function JsonRowOpDialogCommand({
|
||||||
component={Input}
|
component={Input}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem
|
||||||
|
label="Is Visible"
|
||||||
|
invalid={errors.isVisible && touched.isVisible}
|
||||||
|
errorMessage={errors.isVisible}
|
||||||
|
>
|
||||||
|
<Field
|
||||||
|
type="checkbox"
|
||||||
|
name="isVisible"
|
||||||
|
placeholder="is Visible"
|
||||||
|
component={Checkbox}
|
||||||
|
/>
|
||||||
|
</FormItem>
|
||||||
|
</div>
|
||||||
|
<FormItem
|
||||||
|
label="Visible Expression (Sample: (e) => e.row.data.Status === 'Taslak')"
|
||||||
|
invalid={errors.visibleExpression && touched.visibleExpression}
|
||||||
|
errorMessage={errors.visibleExpression}
|
||||||
|
className="mt-4"
|
||||||
|
>
|
||||||
|
<Field
|
||||||
|
type="text"
|
||||||
|
name="visibleExpression"
|
||||||
|
placeholder="Visible Expression"
|
||||||
|
component={Input}
|
||||||
|
/>
|
||||||
|
</FormItem>
|
||||||
|
|
||||||
<Tabs defaultValue="urlOptions" variant="pill">
|
<Tabs defaultValue="urlOptions" variant="pill">
|
||||||
<TabList>
|
<TabList>
|
||||||
<TabNav value="urlOptions">Url Options</TabNav>
|
<TabNav value="urlOptions">Url Options</TabNav>
|
||||||
|
|
|
||||||
|
|
@ -323,8 +323,21 @@ const useListFormColumns = ({
|
||||||
if (action.buttonPosition !== UiCommandButtonPositionTypeEnum.CommandColumn) return
|
if (action.buttonPosition !== UiCommandButtonPositionTypeEnum.CommandColumn) return
|
||||||
if (!checkPermission(action.authName)) return
|
if (!checkPermission(action.authName)) return
|
||||||
|
|
||||||
|
// visibleExpression varsa dinamik fonksiyon oluştur, yoksa statik değer kullan
|
||||||
|
let visibleFunc: ((e: any) => boolean) | boolean = action.isVisible
|
||||||
|
if (action.visibleExpression) {
|
||||||
|
try {
|
||||||
|
// visibleExpression string'ini fonksiyona çevir
|
||||||
|
// Örnek: "(e) => !e.row.isEditing" veya "(e) => e.row.data.Status === 'Active'"
|
||||||
|
visibleFunc = eval(action.visibleExpression)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('VisibleExpression evaluation error:', error, action.visibleExpression)
|
||||||
|
visibleFunc = action.isVisible // Hata durumunda varsayılan değeri kullan
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const item = {
|
const item = {
|
||||||
visible: true,
|
visible: visibleFunc,
|
||||||
hint: action.hint,
|
hint: action.hint,
|
||||||
icon: action.icon,
|
icon: action.icon,
|
||||||
text: translate('::' + action.text),
|
text: translate('::' + action.text),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue