diff --git a/api/src/Sozsoft.Platform.Application/AiBots/AiBotMappers.cs b/api/src/Sozsoft.Platform.Application/AiBots/AiBotMappers.cs index 64474d8..b6ba584 100644 --- a/api/src/Sozsoft.Platform.Application/AiBots/AiBotMappers.cs +++ b/api/src/Sozsoft.Platform.Application/AiBots/AiBotMappers.cs @@ -7,7 +7,7 @@ namespace Sozsoft.Platform.AiBots; [Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)] public partial class AiBotToAiBotDtoMapper : TwoWayMapperBase { -public override partial AiBotDto Map(AiBot source); + public override partial AiBotDto Map(AiBot source); public override partial void Map(AiBot source, AiBotDto destination); diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index 9de8700..0a45dd8 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -3108,6 +3108,12 @@ "en": "Lockout Settings", "tr": "Kilit Ayarları" }, + { + "resourceName": "Platform", + "key": "Abp.Identity.User.LockoutManagement.ConnectionsTimes", + "en": "Connections Times", + "tr": "Bağlantı Süreleri" + }, { "resourceName": "Platform", "key": "Abp.Identity.User.UserInformation.Name", diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs b/api/src/Sozsoft.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs index af79237..d8f7c6a 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs @@ -4168,7 +4168,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep EditingFormJson = JsonSerializer.Serialize(new List() { new() { - Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group", Items = + Order = 1, ColCount = 4, ColSpan = 1, ItemType = "group", Items = [ new EditingFormItemDto { Order = 1, DataField = "CategoryId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 2, DataField = "TypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, @@ -4176,9 +4176,9 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep new EditingFormItemDto { Order = 4, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 5, DataField = "Place", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 6, DataField = "UserId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 7, DataField = "Description", ColSpan = 2, EditorType2 = EditorTypes.dxTextArea }, - new EditingFormItemDto { Order = 8, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 9, DataField = "ParticipantsCount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, + new EditingFormItemDto { Order = 7, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 8, DataField = "ParticipantsCount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, + new EditingFormItemDto { Order = 9, DataField = "Description", ColSpan = 2, EditorType2 = EditorTypes.dxTextArea }, new EditingFormItemDto { Order = 10, DataField = "Photos", ColSpan = 1, EditorType2 = EditorTypes.dxImageUpload, EditorOptions = EditorOptionValues.ImageUploadOptions }, ]} }), @@ -4474,7 +4474,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false), EditingFormJson = JsonSerializer.Serialize(new List() { new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[ - new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 1, DataField = "UserId", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox }, ]} }), InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), diff --git a/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs b/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs index 0c251d1..0535e01 100644 --- a/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs +++ b/api/src/Sozsoft.Platform.Domain.Shared/PlatformConsts.cs @@ -76,7 +76,7 @@ public static class PlatformConsts public static class Branches { public const string BranchCode = "DEMO"; - public const string BranchName = "Demo Şube"; + public const string BranchName = "Demo"; public const long BranchVknTckn = 52849619172; public const string BranchTaxOffice = "Sarıgazi"; public const string BranchMobileNumber = "5449476346"; diff --git a/ui/src/views/admin/organization-unit/OrganizationUnits.tsx b/ui/src/views/admin/organization-unit/OrganizationUnits.tsx index 6757e8f..7aa327b 100644 --- a/ui/src/views/admin/organization-unit/OrganizationUnits.tsx +++ b/ui/src/views/admin/organization-unit/OrganizationUnits.tsx @@ -59,13 +59,11 @@ import { FaMinusCircle, FaPlusCircle, FaTrash, - FaSitemap, - FaCogs, FaTrashAlt, FaEdit, FaUsers, FaUserPlus, - FaUserShield, + FaUserFriends, } from 'react-icons/fa' import { object, string } from 'yup' import { ROUTES_ENUM } from '@/routes/route.constant' @@ -389,8 +387,8 @@ const OrganizationUnits = () => { return (
{ {node.isInternal && (node.isOpen ? : )}
- + {node.isEditing ? ( @@ -431,17 +429,23 @@ const OrganizationUnits = () => {
@@ -469,7 +473,7 @@ const OrganizationUnits = () => { -
+ ) }} @@ -479,7 +477,7 @@ function UserDetails() { return (
-
+
{/* Şube Management */} @@ -549,7 +547,7 @@ function UserDetails() {
-
+
@@ -601,9 +599,9 @@ function UserDetails() { return ( -
+
-
+
@@ -680,7 +680,9 @@ function UserDetails() { field={field} form={form} value={field.value ? dayjs(field.value).toDate() : null} - placeholder={translate('::Abp.Identity.User.UserInformation.HireDate')} + placeholder={translate( + '::Abp.Identity.User.UserInformation.HireDate', + )} onChange={(date) => { form.setFieldValue( field.name, @@ -695,7 +697,9 @@ function UserDetails() {
{({ field, form }: FieldProps) => ( @@ -703,7 +707,9 @@ function UserDetails() { field={field} form={form} value={field.value ? dayjs(field.value).toDate() : null} - placeholder={translate('::Abp.Identity.User.UserInformation.TerminationDate')} + placeholder={translate( + '::Abp.Identity.User.UserInformation.TerminationDate', + )} onChange={(date) => { form.setFieldValue( field.name, @@ -719,11 +725,9 @@ function UserDetails() {
-
- -
+ ) }} @@ -774,265 +778,295 @@ function UserDetails() { return (
-
- -
-
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - {({ field, form }: FieldProps) => ( - { - form.setFieldValue( - field.name, - date ? dayjs(date).format('YYYY-MM-DDTHH:mm:ss') : null, - ) - }} - /> - )} - - -
- -
- - - -
- -
- - - {({ field, form }: FieldProps) => ( - { - form.setFieldValue( - field.name, - date ? dayjs(date).format('YYYY-MM-DDTHH:mm:ss') : null, - ) - }} - /> - )} - - -
- -
- - - -
- -
- - - -
- -
- - - {({ field, form }: FieldProps) => ( - o.value === values.maritalStatus, + )} + onChange={(option) => + form.setFieldValue(field.name, option?.value ?? null) + } + /> + )} + + +
+ +
+ + + {({ field, form }: FieldProps) => ( + { + form.setFieldValue( + field.name, + date ? dayjs(date).format('YYYY-MM-DDTHH:mm:ss') : null, + ) + }} + /> + )} + + +
+
+
+ + ) }} @@ -1073,256 +1107,262 @@ function UserDetails() { return (
-
- -
- {/* Account Status */} -
-
- {translate('::Abp.Identity.User.LockoutManagement.AccountStatus')} -
- - - + +
+ {/* Account Status */} +
+
+ {translate('::Abp.Identity.User.LockoutManagement.AccountStatus')} +
+ + + - + - - + component={Checkbox} + /> + - + - - + component={Checkbox} + /> + - + - - + component={Checkbox} + /> + - + - - -
+ component={Checkbox} + /> + +
- {/* Login & Lockout Settings */} -
-
- {translate( - '::Abp.Identity.User.LockoutManagement.LoginAndLockoutSettings', - )} -
- - - {({ field, form }: FieldProps) => ( - option.value === values.workHour, + )} + onChange={(option) => + form.setFieldValue(field.name, option?.value) + } + /> + )} + + + + + + {({ field, form }: FieldProps) => ( + { + form.setFieldValue( + field.name, + date ? dayjs(date).format('YYYY-MM-DDTHH:mm:ss') : null, + ) + }} + /> + )} + + +
+
+ + + ) }} @@ -1331,7 +1371,7 @@ function UserDetails() { -
+