chore: add app settings for transfer, photos, delete batch, and timeouts

Enable portal photos, delete batch size, HTTP timeout, shutdown wait, transfer mode.

Compile all new planning/photo/delete/summary sources.
main
SYED MUSTUFA AHMED NAQVI 2026-09-04 12:44:38 +05:00
parent 6b2d980c8a
commit b99c55a807
2 changed files with 71 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<configuration>
<connectionStrings>
<add name="HrmsDb"
connectionString="SERVER=192.168.90.147;PORT=3306;DATABASE=hrms;UID=utopia;PASSWORD=Utopia01;Connection Timeout=60;"
connectionString="SERVER=utopia-industries-rr.c5qech8o9lgg.us-east-1.rds.amazonaws.com;DATABASE=hrms;UID=uind_hrms_user;PASSWORD=UINDHRMS01;"
providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<appSettings>
@ -12,7 +12,7 @@
<add key="TEMPLATE_JOB_INTERVAL_MINUTES" value="240" />
<add key="TEMPLATE_SYNC_ENABLED" value="true" />
<add key="TRANSFER_MODE" value="DEVICE_TO_DB" />
<!-- <add key="TRANSFER_MODE" value="DB_TO_DEVICE" /> -->
<add key="TRANSFER_MODE" value="DB_TO_DEVICE" />
<add key="DEVICE_SETTINGS_PATH" value="DeviceSettings.xml" />
<add key="TEMPLATE_VERIFY_AFTER_PUSH" value="true" />
<add key="TEMPLATE_DEVICE_DELAY_MS" value="0" />
@ -22,6 +22,8 @@
<!-- F710X uses HTTP web API (port 80). Set HDCP only for classic FaceID devices on 9922. -->
<add key="DEVICE_PROTOCOL" value="HTTP" />
<add key="DEVICE_HTTP_PORT" value="80" />
<add key="DEVICE_HTTP_TIMEOUT_MS" value="120000" />
<add key="DEVICE_DELETE_BATCH_SIZE" value="20" />
<add key="DEVICE_FACE_BACKUPNUM" value="50" />
<!-- Hanvon HDCP device type string used in DeviceInfo(...) when DEVICE_PROTOCOL=HDCP -->
<add key="DEVICE_TYPE" value="HW_HDCP" />
@ -29,9 +31,12 @@
<add key="DEVICE_USERNAME" value="admin" />
<add key="DEVICE_PASSWORD" value="12345678" />
<!-- Remove attendance from device only after successful DB batch insert -->
<add key="SERVICE_SHUTDOWN_WAIT_SECONDS" value="300" />
<add key="ATTENDANCE_DELETE_AFTER_INSERT" value="true" />
<add key="DB_CONNECTION_RETRY_ATTEMPTS" value="3" />
<add key="DB_CONNECTION_RETRY_DELAY_MS" value="2000" />
<add key="EnableEmployeePhotoSource" value="true" />
<add key="EmployeePhotoBaseUrl" value="https://portal.utopiaindustries.pk/uind/employee-photo/" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />

View File

@ -12,6 +12,24 @@
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>\\192.168.2.15\Edata\Deployments-by-DotNet-Team\Deployment-By-Mustafa\Hanvon_Att_Service\</PublishUrl>
<Install>true</Install>
<InstallFrom>Unc</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.htm</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -35,6 +53,18 @@
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>AA58AFA5D821853F31625FE5CB9C07A28BCE1E6B</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>HanvonF710XAttendanceService_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto, Version=1.8.5.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
<HintPath>packages\BouncyCastle.1.8.5\lib\BouncyCastle.Crypto.dll</HintPath>
@ -82,6 +112,7 @@
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.ServiceProcess" />
@ -94,6 +125,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ApplicationPaths.cs" />
<Compile Include="Attendance.cs" />
<Compile Include="AttendanceDAO.cs" />
<Compile Include="AttendanceMachine.cs" />
@ -101,7 +133,18 @@
<Compile Include="AttendanceMachineFaceTemplateDAO.cs" />
<Compile Include="AttendanceMachineUser.cs" />
<Compile Include="AttendanceMachineUserDAO.cs" />
<Compile Include="DbToDeviceFaceErrors.cs" />
<Compile Include="DbToDeviceFaceErrorsTests.cs" />
<Compile Include="DbToDeviceSummary.cs" />
<Compile Include="DbToDeviceSummaryTests.cs" />
<Compile Include="DbToDevicePlanning.cs" />
<Compile Include="DbToDevicePlanningTests.cs" />
<Compile Include="DeviceSettingsConfig.cs" />
<Compile Include="EmployeePhotoSourceSettings.cs" />
<Compile Include="HrmsEmployeeDAO.cs" />
<Compile Include="HrmsEmployeeMappingTests.cs" />
<Compile Include="HrmsEmployeePhotoClient.cs" />
<Compile Include="HrmsEmployeePhotoClientTests.cs" />
<Compile Include="LogService.cs" />
<Compile Include="ProjectInstaller.cs">
<SubType>Component</SubType>
@ -110,13 +153,21 @@
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</Compile>
<Compile Include="HanvonHttpApiClient.cs" />
<Compile Include="HanvonHttpDiagnostics.cs" />
<Compile Include="HanvonF710XWindowsService.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="HanvonF710XWindowsService.Designer.cs">
<DependentUpon>HanvonF710XWindowsService.cs</DependentUpon>
</Compile>
<Compile Include="MachineUserDeleteBatcher.cs" />
<Compile Include="MachineUserDeleteSettings.cs" />
<Compile Include="MachineUserDeleteSync.cs" />
<Compile Include="MachineUserDeleteSyncTests.cs" />
<Compile Include="MachineScope.cs" />
<Compile Include="NedoTemplateConverter.cs" />
<Compile Include="NedoTemplateConverterTests.cs" />
<Compile Include="NedoPhotoPreprocessor.cs" />
<Compile Include="TemplateParser.cs" />
<Compile Include="TemplateTransferRunner.cs" />
<Compile Include="Program.cs" />
@ -127,6 +178,7 @@
<None Include="DeviceSettings.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="HanvonF710XAttendanceService_TemporaryKey.pfx" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
@ -134,5 +186,17 @@
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>