Report Category Entity ve Seeder
This commit is contained in:
parent
c6e13b9216
commit
eaf07447a0
6 changed files with 127 additions and 42 deletions
|
|
@ -13124,12 +13124,12 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
}),
|
}),
|
||||||
PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto
|
PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto
|
||||||
{
|
{
|
||||||
C = AppCodes.Reports.Default + ".Create",
|
C = AppCodes.Reports.Categories + ".Create",
|
||||||
R = AppCodes.Reports.Default,
|
R = AppCodes.Reports.Categories,
|
||||||
U = AppCodes.Reports.Default + ".Update",
|
U = AppCodes.Reports.Categories + ".Update",
|
||||||
D = AppCodes.Reports.Default + ".Delete",
|
D = AppCodes.Reports.Categories + ".Delete",
|
||||||
E = AppCodes.Reports.Default + ".Export",
|
E = AppCodes.Reports.Categories + ".Export",
|
||||||
I = AppCodes.Reports.Default + ".Import"
|
I = AppCodes.Reports.Categories + ".Import"
|
||||||
}),
|
}),
|
||||||
PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto
|
PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto
|
||||||
{
|
{
|
||||||
|
|
@ -13186,7 +13186,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 1,
|
ListOrderNo = 1,
|
||||||
Visible = true,
|
Visible = false,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = JsonSerializer.Serialize(new[]
|
ValidationRuleJson = JsonSerializer.Serialize(new[]
|
||||||
|
|
@ -13195,9 +13195,9 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
}),
|
}),
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
{
|
{
|
||||||
C = AppCodes.Reports.Default + ".Create",
|
C = AppCodes.Reports.Categories + ".Create",
|
||||||
R = AppCodes.Reports.Default,
|
R = AppCodes.Reports.Categories,
|
||||||
U = AppCodes.Reports.Default + ".Update",
|
U = AppCodes.Reports.Categories + ".Update",
|
||||||
E = true,
|
E = true,
|
||||||
Deny = false
|
Deny = false
|
||||||
})
|
})
|
||||||
|
|
@ -13208,7 +13208,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
Width = 300,
|
Width = 200,
|
||||||
ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -13220,9 +13220,9 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
}),
|
}),
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
{
|
{
|
||||||
C = AppCodes.Reports.Default + ".Create",
|
C = AppCodes.Reports.Categories + ".Create",
|
||||||
R = AppCodes.Reports.Default,
|
R = AppCodes.Reports.Categories,
|
||||||
U = AppCodes.Reports.Default + ".Update",
|
U = AppCodes.Reports.Categories + ".Update",
|
||||||
E = true,
|
E = true,
|
||||||
Deny = false
|
Deny = false
|
||||||
})
|
})
|
||||||
|
|
@ -13233,7 +13233,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Description",
|
FieldName = "Description",
|
||||||
Width = 100,
|
Width = 500,
|
||||||
ListOrderNo = 3,
|
ListOrderNo = 3,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -13241,9 +13241,9 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
{
|
{
|
||||||
C = AppCodes.Reports.Default + ".Create",
|
C = AppCodes.Reports.Categories + ".Create",
|
||||||
R = AppCodes.Reports.Default,
|
R = AppCodes.Reports.Categories,
|
||||||
U = AppCodes.Reports.Default + ".Update",
|
U = AppCodes.Reports.Categories + ".Update",
|
||||||
E = true,
|
E = true,
|
||||||
Deny = false
|
Deny = false
|
||||||
})
|
})
|
||||||
|
|
@ -13254,7 +13254,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Icon",
|
FieldName = "Icon",
|
||||||
Width = 100,
|
Width = 200,
|
||||||
ListOrderNo = 4,
|
ListOrderNo = 4,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
|
|
@ -13262,9 +13262,9 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
{
|
{
|
||||||
C = AppCodes.Reports.Default + ".Create",
|
C = AppCodes.Reports.Categories + ".Create",
|
||||||
R = AppCodes.Reports.Default,
|
R = AppCodes.Reports.Categories,
|
||||||
U = AppCodes.Reports.Default + ".Update",
|
U = AppCodes.Reports.Categories + ".Update",
|
||||||
E = true,
|
E = true,
|
||||||
Deny = false
|
Deny = false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1264,9 +1264,21 @@
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Reports",
|
"key": "App.Reports",
|
||||||
|
"en": "Reports",
|
||||||
|
"tr": "Raporlar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Reports.Management",
|
||||||
"en": "Report Management",
|
"en": "Report Management",
|
||||||
"tr": "Rapor Yönetimi"
|
"tr": "Rapor Yönetimi"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Reports.Categories",
|
||||||
|
"en": "Report Categories",
|
||||||
|
"tr": "Rapor Kategorileri"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Menus.Menu",
|
"key": "App.Menus.Menu",
|
||||||
|
|
@ -10089,16 +10101,38 @@
|
||||||
"RequiredPermissionName": "App.DeveloperKit",
|
"RequiredPermissionName": "App.DeveloperKit",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Saas",
|
"ParentCode": "App.Saas",
|
||||||
"Code": "App.Reports",
|
"Code": "App.Reports",
|
||||||
"DisplayName": "App.Reports",
|
"DisplayName": "App.Reports",
|
||||||
"Order": 14,
|
"Order": 14,
|
||||||
"Url": "/admin/reports",
|
"Url": null,
|
||||||
"Icon": "FcDocument",
|
"Icon": "FcDocument",
|
||||||
"RequiredPermissionName": "App.Reports",
|
"RequiredPermissionName": null,
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Reports",
|
||||||
|
"Code": "App.Reports.Categories",
|
||||||
|
"DisplayName": "App.Reports.Categories",
|
||||||
|
"Order": 1,
|
||||||
|
"Url": "/admin/list/list-reportcategory",
|
||||||
|
"Icon": "FcProcess",
|
||||||
|
"RequiredPermissionName": "App.Reports.Categories",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Reports",
|
||||||
|
"Code": "App.Reports.Management",
|
||||||
|
"DisplayName": "App.Reports.Management",
|
||||||
|
"Order": 2,
|
||||||
|
"Url": "/admin/report/management",
|
||||||
|
"Icon": "FcSimCardChip",
|
||||||
|
"RequiredPermissionName": "App.Reports.Management",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"ParentCode": null,
|
"ParentCode": null,
|
||||||
"Code": "App.Administration",
|
"Code": "App.Administration",
|
||||||
|
|
@ -12676,48 +12710,97 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports",
|
"Name": "App.Reports.Management",
|
||||||
"ParentName": null,
|
"ParentName": null,
|
||||||
"DisplayName": "App.Reports",
|
"DisplayName": "App.Reports.Management",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports.Create",
|
"Name": "App.Reports.Management.Create",
|
||||||
"ParentName": "App.Reports",
|
"ParentName": "App.Reports.Management",
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports.Delete",
|
"Name": "App.Reports.Management.Delete",
|
||||||
"ParentName": "App.Reports",
|
"ParentName": "App.Reports.Management",
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports.Export",
|
"Name": "App.Reports.Management.Export",
|
||||||
"ParentName": "App.Reports",
|
"ParentName": "App.Reports.Management",
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports.Import",
|
"Name": "App.Reports.Management.Import",
|
||||||
"ParentName": "App.Reports",
|
"ParentName": "App.Reports.Management",
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Reports",
|
"GroupName": "App.Reports",
|
||||||
"Name": "App.Reports.Update",
|
"Name": "App.Reports.Management.Update",
|
||||||
"ParentName": "App.Reports",
|
"ParentName": "App.Reports.Management",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Reports.Categories",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories.Create",
|
||||||
|
"ParentName": "App.Reports.Categories",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories.Delete",
|
||||||
|
"ParentName": "App.Reports.Categories",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories.Export",
|
||||||
|
"ParentName": "App.Reports.Categories",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories.Import",
|
||||||
|
"ParentName": "App.Reports.Categories",
|
||||||
|
"DisplayName": "Import",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Reports",
|
||||||
|
"Name": "App.Reports.Categories.Update",
|
||||||
|
"ParentName": "App.Reports.Categories",
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 2
|
"MultiTenancySide": 2
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,7 @@ public static class PlatformConsts
|
||||||
public const string LanguageText = "list-languagetext";
|
public const string LanguageText = "list-languagetext";
|
||||||
public const string Menu = "list-menu";
|
public const string Menu = "list-menu";
|
||||||
public const string Listform = "list-listform";
|
public const string Listform = "list-listform";
|
||||||
|
public const string ListformField = "list-listformfield";
|
||||||
public const string SettingDefinition = "list-settingdefinition";
|
public const string SettingDefinition = "list-settingdefinition";
|
||||||
public const string Chart = "list-chart";
|
public const string Chart = "list-chart";
|
||||||
public const string DataSource = "list-datasource";
|
public const string DataSource = "list-datasource";
|
||||||
|
|
@ -367,7 +368,6 @@ public static class PlatformConsts
|
||||||
public const string InstallmentOption = "list-installmentoption";
|
public const string InstallmentOption = "list-installmentoption";
|
||||||
public const string PurchaseOrder = "list-purchaseorder";
|
public const string PurchaseOrder = "list-purchaseorder";
|
||||||
public const string ReportCategory = "list-reportcategory";
|
public const string ReportCategory = "list-reportcategory";
|
||||||
public const string ListformField = "list-listformfield";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Forms
|
public static class Forms
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.fu6htabtdto"
|
"revision": "0.9uf8m2a8h2o"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ import {
|
||||||
ChartSeriesDto,
|
ChartSeriesDto,
|
||||||
ChartValueAxisDto,
|
ChartValueAxisDto,
|
||||||
} from '@/proxy/charts/models'
|
} from '@/proxy/charts/models'
|
||||||
|
import { Container } from '@/components/shared'
|
||||||
|
|
||||||
const chartPanesValidationSchema = object().shape({
|
const chartPanesValidationSchema = object().shape({
|
||||||
name: string().required(),
|
name: string().required(),
|
||||||
|
|
@ -262,7 +263,7 @@ function ChartEdit() {
|
||||||
}, [chartCode])
|
}, [chartCode])
|
||||||
|
|
||||||
return chartValues && roleList && userList && permissionOptions ? (
|
return chartValues && roleList && userList && permissionOptions ? (
|
||||||
<div>
|
<Container>
|
||||||
<Helmet
|
<Helmet
|
||||||
titleTemplate="%s | Kurs Platform"
|
titleTemplate="%s | Kurs Platform"
|
||||||
title={chartCode}
|
title={chartCode}
|
||||||
|
|
@ -4402,7 +4403,7 @@ function ChartEdit() {
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</Container>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import { getRoles, getUsers } from '@/services/identity.service'
|
||||||
import { GridOptionsEditDto, ListFormCustomizationDto } from '@/proxy/form/models'
|
import { GridOptionsEditDto, ListFormCustomizationDto } from '@/proxy/form/models'
|
||||||
import { IdentityRoleDto, IdentityUserDto } from '@/proxy/admin/models'
|
import { IdentityRoleDto, IdentityUserDto } from '@/proxy/admin/models'
|
||||||
import { getListFormCustomizations } from '@/services/admin/list-form-customization.service'
|
import { getListFormCustomizations } from '@/services/admin/list-form-customization.service'
|
||||||
|
import { Container } from '@/components/shared'
|
||||||
|
|
||||||
export interface FormEditProps {
|
export interface FormEditProps {
|
||||||
onSubmit: (
|
onSubmit: (
|
||||||
|
|
@ -143,7 +144,7 @@ const FormEdit = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return listFormCode && listFormValues && customizations && roleList && userList ? (
|
return listFormCode && listFormValues && customizations && roleList && userList ? (
|
||||||
<>
|
<Container>
|
||||||
<Helmet
|
<Helmet
|
||||||
titleTemplate="%s | Kurs Platform"
|
titleTemplate="%s | Kurs Platform"
|
||||||
title={`${listFormCode} - ${translate(`::${listFormValues.title}`)}`}
|
title={`${listFormCode} - ${translate(`::${listFormValues.title}`)}`}
|
||||||
|
|
@ -245,7 +246,7 @@ const FormEdit = () => {
|
||||||
></FormCustomization>
|
></FormCustomization>
|
||||||
</TabContent>
|
</TabContent>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</>
|
</Container>
|
||||||
) : (
|
) : (
|
||||||
<></>
|
<></>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue