839 lines
33 KiB
C#
839 lines
33 KiB
C#
using System;
|
|
using System.Configuration;
|
|
|
|
namespace Xylem.Common.CommonCore.Configuration
|
|
{
|
|
|
|
/// <summary>
|
|
/// Urls for data base accesses
|
|
/// </summary>
|
|
public static class ServiceUrls
|
|
|
|
{
|
|
|
|
private const String DefaultInspectCordonelRequirementInfoUrl =
|
|
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/";
|
|
|
|
// return code: 404 not found, 400 Error with text, 200 okay
|
|
private const String DefaultEolDataForSentinelServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/eolprogress/";
|
|
|
|
private const String DefaultGetPcbIdsFromSafeServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetPcbIdsFromSafe?ContainerDbId=";
|
|
|
|
private const String DefaultAddPcbIdsToSafeServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/AddPcbIdsToSafe?ContainerDbId=";
|
|
|
|
|
|
|
|
private const String DefaultDownloadFilesPartsServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetFileParts?ParentFileId=";
|
|
|
|
private const String DefaultGetLutUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetLutFiles";
|
|
|
|
private const String DefaultListAllFwPackagesServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=1";
|
|
|
|
private const String DefaultListAllSwPackagesServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=5";
|
|
|
|
private const String DefaultListAllConfigFilePackagesServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=6";
|
|
|
|
private const String DefaultListAllFwUpdateSafesServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetFwFiles?FileIsForDeveloperOnly=false&FileCategoryID=4";
|
|
|
|
private const String DefaultSetCordonelAppVersionServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/ProccesState/SetCordonelProgress?PcbId=";
|
|
|
|
private const String DefaultGetCordonelRequirementInfoUrl =
|
|
"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/pcbid/";
|
|
|
|
private const String DefaultGetCordonelAppVersionServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/ProccesState/GetCordonelAppVersion?PcbId=";
|
|
|
|
private const String DefaultListAllCordonelCustomersWithFilterServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Order/GetCordonelCustomers?FilterName=";
|
|
|
|
private const String DefaultListAllCordonelCustomerOrdersServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Order/GetCustomersCordonelOrders?CustomerNumber=";
|
|
|
|
private const String DefaultListCordonelOrderDetailsServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Order/GetCordonelOrderDetails?OrderNr=";
|
|
|
|
private const String DefaultListAllOrderCordonelsServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Order/GetCordonelOrderList?CustomerOrderNumber=";
|
|
|
|
private const String DefaultDownloadFwUpdateSafeServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetFWUpdateSafeContainerContent?SafeContainerId=";
|
|
|
|
private const String DefaultListAllFwUpdateSafesForUserServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetFWUpdateSafeContainers?UserId=";
|
|
|
|
private const String DefaultFileContentDownloadServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetFileContent?FileId=";
|
|
|
|
private const String DefaultFwUpdateReportUploadServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/PostFWUpdateReportFile";
|
|
|
|
private const String DefaultFwUpdateReportDownloadServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetFWUpdateReportFile?";
|
|
|
|
private const String DefaultFwUpdateSafeContainerUploadServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/PostFWUpdateSafeOdd";
|
|
|
|
private const String DefaultEditFwUpdateUserValidityServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/EditUserValidity?Id=";
|
|
|
|
private const String DefaultRefreshFwUpdateUsersHardwareIdServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/RefreshUsersHardwareId?Id=";
|
|
|
|
private const String DefaultRefreshFwUpdateUsersPasswordHashServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/RefreshUsersPasswordHash?Id=";
|
|
|
|
private const String DefaultCreateNewFwUpdateUserServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/AddNewUser?";
|
|
|
|
private const String DefaultListAllFwUpdateUsersServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetUserList";
|
|
|
|
private const String DefaultListAllFwUpdateBuilderOperatorsServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetAllBuilderOperator";
|
|
|
|
private const String DefaultGetFwUpdateUserByIdServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetUserList?Id=";
|
|
|
|
private const String DefaultGetFwUpdateUserByLoginNameServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/GetUserList?LogInName=";
|
|
|
|
private const String DefaultRegisterWatchServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/RegisterWatch/";
|
|
|
|
private const String DefaultGenesisGetOrderNumberServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/ordernumber?PcbId=";
|
|
|
|
private const String DefaultGenesisGetRadioAddressServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/radioadress?PcbId=";
|
|
|
|
private const String DefaultGenesisGetKeySetIdServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/getkeysetid?PcbId=";
|
|
|
|
private const String DefaultGenesisGetPasswordServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/GetPassword?PcbId=";
|
|
|
|
private const String DefaultGenesisSetPasswordServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/setpassword?PcbId=";
|
|
|
|
private const String DefaultGenesisPasswordContainerServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Password/GetPasswordHashFileContent?PcbId=";
|
|
|
|
private const String DefaultMarriageServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/Marriage/";
|
|
|
|
private const String DefaultMeterProcessStateUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/ProccesState/";
|
|
|
|
private const String DefaultGenesisFinalCheckServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FinalCheck/";
|
|
|
|
private const String DefaultGenesisRadioCheckServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/RadioCheck/";
|
|
|
|
private const String DefaultGetSoftwareStartUpAccessUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/SoftwareAccess/GetVersionIsValid";
|
|
|
|
private const String DefaultSetSoftwareLicenseUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/SoftwareAccess/SetVersionIsValid?Program=";
|
|
|
|
private const String DefaultGetSoftwareLicenseUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/SoftwareAccess/GetCurrentVersion?Program=";
|
|
|
|
private const String DefaultGenesisCalibrationResult =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/GenesisMeter/PostCalibrationResult";
|
|
|
|
private const String DefaultGetGenesisCalibrationResults =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FinalCheck/CalibrationResults/";
|
|
|
|
private const String DefaultGenesisMeter =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/GenesisMeter/";
|
|
|
|
private const String DefaultFileContentController =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/";
|
|
|
|
private const String DefaultKeyServerCustom =
|
|
"https://nodes.sms-esaap.com/keygenproxy/api/v3/custom/";
|
|
|
|
private const String DefaultMeterInfoForTestBench =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/TestBench/GetMeterInfoForTestBench?PcbID=";
|
|
|
|
private const String DefaultCordonelFwInfoUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/FileUpToDate/GetCordonelFw";
|
|
|
|
private const String DefaultDbDataAtEolServiceUrl =
|
|
"http://sla12iis01.emea.sensus.net/MeterProcessState/api/fwupdate/databaseateol/";
|
|
|
|
//private const String DefaultGenesisGetOrderNumberServiceUrl =
|
|
// "http://localhost:56011/api/Password/ordernumber?PcbId=";
|
|
|
|
//private const String DefaultGenesisGetRadioAdressServiceUrl =
|
|
// "http://localhost:56011/api/Password/radioadress?PcbId=";
|
|
|
|
//private const String DefaultGenesisGetKeySetIdServiceUrl =
|
|
// "http://localhost:56011/api/Password/getkeysetid?PcbId=";
|
|
|
|
//private const String DefaultGenesisGetPasswordServiceUrl =
|
|
// "http://localhost:56011/api/Password/GetPassword?PcbId=";
|
|
|
|
//private const String DefaultGenesisSetPasswordServiceUrl =
|
|
// "http://localhost:56011/api/Password/setpassword?PcbId=";
|
|
|
|
//private const String DefaultGenesisPasswordContainerServiceUrl =
|
|
// "http://localhost:56011/api/Password/GetPasswordHashFileContent?PcbId=";
|
|
|
|
//private const String DefaultMarriageServiceUrl =
|
|
// "http://localhost:56011/api/Marriage/";
|
|
|
|
//private const String DefaultMeterProcessStateUrl =
|
|
// "http://localhost:56011/api/ProccesState/";
|
|
|
|
|
|
//private const String DefaultGenesisFinalCheckServiceUrl =
|
|
// "http://localhost:56011/api/FinalCheck/";
|
|
|
|
|
|
//private const String DefaultGenesisRadioCheckServiceUrl =
|
|
// "http://localhost:56011/api/RadioCheck/";
|
|
|
|
//private const String DefaultGetSoftwareStartUpAccessUrl =
|
|
// "http://localhost:56011/api/SoftwareAccess/GetVersionIsValid";
|
|
|
|
|
|
private const String PressureSensorTestURL_GetTestSpec
|
|
= "http://sla12iis01.emea.sensus.net/MeterProcessState/api/CordonelPressureSensorTest/GetTestSpec";
|
|
|
|
private const String PressureSensorTestURL_PostTestResults
|
|
= "http://sla12iis01.emea.sensus.net/MeterProcessState/api/CordonelPressureSensorTest/PostTestResults";
|
|
|
|
/// <summary>
|
|
/// usage: string.Format(CordonelPressureSensorTestURL_GetTestResults, pcbId);
|
|
/// </summary>
|
|
private const String PressureSensorTestURL_GetTestResults
|
|
= "http://sla12iis01.emea.sensus.net/MeterProcessState/api/CordonelPressureSensorTest/GetTestResults/{0}";
|
|
|
|
public const String LaaProductionAPI
|
|
#if DEBUG == false // when false uses always the production url.
|
|
= "http://localhost:52822";
|
|
#else
|
|
= "http://sla12iis01.emea.sensus.net";
|
|
#endif
|
|
|
|
|
|
/// <summary>
|
|
/// GET: test specification for water meter with pressure sensor.
|
|
/// </summary>
|
|
public static string GetPressureSensorSpecificationURL
|
|
#if DEBUG
|
|
=> "http://localhost:56011/api/CordonelPressureSensorTest/GetTestSpec";
|
|
#else
|
|
=> ConfigurationManager.AppSettings[nameof(GetPressureSensorSpecificationURL)]
|
|
?? PressureSensorTestURL_GetTestSpec;
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// POST: test result for water meter with pressure sensor.
|
|
/// </summary>
|
|
public static string PostPressureSensorResultURL
|
|
#if DEBUG
|
|
=> "http://localhost:56011/api/CordonelPressureSensorTest/PostTestResults";
|
|
|
|
public static String Q3CalibrationResultURL { get; set; }
|
|
#else
|
|
=> ConfigurationManager.AppSettings[nameof(PostPressureSensorResultURL)]
|
|
?? PressureSensorTestURL_PostTestResults;
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// GET: a list of test results for the water meter with specified pcbId.
|
|
/// </summary>
|
|
public static string PressureSensorResultsURL<T>(this T pcbId)
|
|
{
|
|
#if DEBUG
|
|
var url = "http://localhost:56011/api/CordonelPressureSensorTest/GetTestResults/{0}";
|
|
#else
|
|
var url = ConfigurationManager.AppSettings[nameof(PressureSensorResultsURL)] ?? PressureSensorTestURL_GetTestResults;
|
|
#endif
|
|
|
|
return string.Format(url, pcbId);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// List all Cordonel FW packages.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetLutUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetLutUrl"] ??
|
|
DefaultGetLutUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// List all Cordonel FW packages.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllCordonelFwPackagesUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["CordonelFwInfoUrl"] ??
|
|
DefaultCordonelFwInfoUrl;
|
|
}
|
|
/// <summary>
|
|
/// List all PCB IDs from a safe. As the safe may be deleted, this information is still accessible.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String MeterInfoForTestBench()
|
|
{
|
|
return ConfigurationManager.AppSettings["MeterInfoForTestBenchServiceUrl"] ??
|
|
DefaultMeterInfoForTestBench;
|
|
}
|
|
|
|
/// <summary>
|
|
/// List all PCB IDs from a safe. As the safe may be deleted, this information is still accessible.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllPcbIdsFromSafe()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetPcbIdsFromSafeServiceUrl"] ??
|
|
DefaultGetPcbIdsFromSafeServiceUrl;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Add PCB IDs to a safe. As the safe may be deleted, this information is still accessible.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String AddPcbIdsToSafeServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["AddPcbIdsToSafeServiceUrl"] ??
|
|
DefaultAddPcbIdsToSafeServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all Cordonel FW package.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadFileParts()
|
|
{
|
|
return ConfigurationManager.AppSettings["DownloadFilePartsServiceUrl"] ??
|
|
DefaultDownloadFilesPartsServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update Safe container list for specific user
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllFwUpdateSafesForUserServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllFwUpdateSafesForUserServiceUrl"] ??
|
|
DefaultListAllFwUpdateSafesForUserServiceUrl;
|
|
}
|
|
/// <summary>
|
|
/// FW-Update Safe container
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadFwUpdateSafeServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["DownloadFwUpdateSafeServiceUrl"] ??
|
|
DefaultDownloadFwUpdateSafeServiceUrl;
|
|
}
|
|
/// <summary>
|
|
/// Download the EOL logging data for power correction of overestimated power consumption
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadDbDataAtEolServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["DownloadDbDataAtEolServiceUrl"] ??
|
|
DefaultDbDataAtEolServiceUrl;
|
|
}
|
|
/// <summary>
|
|
/// Get EOL data for sentinel
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String EolDataForSentinelServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["EolDataForSentinelServiceUrl"] ??
|
|
DefaultEolDataForSentinelServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all Cordonel safes description files.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllFwUpdateSafes()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllFwUpdateSafesServiceUrl"] ??
|
|
DefaultListAllFwUpdateSafesServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all Cordonel FW package description files.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllFwPackages()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllFwPackagesServiceUrl"] ??
|
|
DefaultListAllFwPackagesServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all Cordonel FW update SW package description files.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllSwPackages()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllSwPackagesServiceUrl"] ??
|
|
DefaultListAllSwPackagesServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all Cordonel FW update SW package description files.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllConfigurationFilePackages()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllConfigFilePackagesServiceUrl"] ??
|
|
DefaultListAllConfigFilePackagesServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set all applications versions installed to a specific Cordonel.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String UploadCordonelAppVersionServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["SetCordonelAppVersionServiceUrl"] ??
|
|
DefaultSetCordonelAppVersionServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Inspect a specific requirement (read only).
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String InspectCordonelRequirementInfoServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["InspectCordonelRequirementInfoServiceUrl"] ??
|
|
DefaultInspectCordonelRequirementInfoUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all production infos for skip process checks or limits for production like:
|
|
/// - Battery drained percentage upper limit,
|
|
/// - Production due date for a special register,
|
|
/// - Required life time for assembly line,
|
|
/// - Required life time for shipping line.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetCordonelRequirementInfoServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetCordonelRequirementInfoServiceUrl"] ??
|
|
DefaultGetCordonelRequirementInfoUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all production infos for skip process checks or limits for production like:
|
|
/// - Battery drained percentage upper limit,
|
|
/// - Production due date for a special register,
|
|
/// - Required life time for assembly line,
|
|
/// - Required life time for shipping line.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetCordonelRequirementByFANrInfoServiceUrl(string ponr)
|
|
{
|
|
return $"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/pono/{ponr}";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all production infos for skip process checks or limits for production like:
|
|
/// - Battery drained percentage upper limit,
|
|
/// - Production due date for a special register,
|
|
/// - Required life time for assembly line,
|
|
/// - Required life time for shipping line.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static string GetCordonelRequirementByMeterSizeInfoServiceUrl(int size)
|
|
{
|
|
return $"http://sla12iis01.emea.sensus.net/LaaProductionWeb/api/cordonel/requirements/isize/{size}";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get all applications versions installed to a specific Cordonel.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadCordonelAppVersionServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetCordonelAppVersionServiceUrl"] ??
|
|
DefaultGetCordonelAppVersionServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// List all Cordonel customers with search filter (e.g. %sus% where % is a filter for 0 to multiple
|
|
/// alphanumeric characters) to get the customer names and the order numbers.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllCordonelCustomersWithFilterServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllCordonelCustomersWithFilterServiceUrl"] ??
|
|
DefaultListAllCordonelCustomersWithFilterServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get Cordonel order details to capture the production order
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListCordonelOrderDetailsServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListCordonelOrderDetailsServiceUrl"] ??
|
|
DefaultListCordonelOrderDetailsServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// List all Cordonel orders of a selected customer
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllCordonelCustomerOrdersServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllCordonelCustomerOrdersServiceUrl"] ??
|
|
DefaultListAllCordonelCustomerOrdersServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// List all Cordonels of a specific order number to get the customer serial number and the Pcb ID.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllOrderCordonelsServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllOrderCordonelsServiceUrl"] ??
|
|
DefaultListAllOrderCordonelsServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Register watch service
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String RegisterWatchServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["RegisterWatchServiceUrl"] ??
|
|
DefaultRegisterWatchServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// File content download
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadFileContentServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["FileContentDownloadServiceUrl"] ??
|
|
DefaultFileContentDownloadServiceUrl;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// FW-Update report download as string
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String DownloadFwUpdateReportServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["FwUpdateReportDownloadServiceUrl"] ??
|
|
DefaultFwUpdateReportDownloadServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update report upload as string
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String UploadFwUpdateReportServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["FwUpdateReportUploadServiceUrl"] ??
|
|
DefaultFwUpdateReportUploadServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update Safe container upload
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String UploadFwUpdateSafeContainerServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["FwUpdateSafeContainerUploadServiceUrl"] ??
|
|
DefaultFwUpdateSafeContainerUploadServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update user validation url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String EditFwUpdateUserValidityServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["EditFwUpdateUserValidityServiceUrl"] ??
|
|
DefaultEditFwUpdateUserValidityServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update user HW-Id url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String RefreshFwUpdateUsersHardwareIdServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["RefreshFwUpdateUsersHardwareIdServiceUrl"] ??
|
|
DefaultRefreshFwUpdateUsersHardwareIdServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update user password hash for encryption url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String RefreshFwUpdateUsersPasswordHashServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["RefreshFwUpdateUsersPasswordHashServiceUrl"] ??
|
|
DefaultRefreshFwUpdateUsersPasswordHashServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update create new user url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String CreateNewFwUpdateUserServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["CreateNewFwUpdateUserServiceUrl"] ??
|
|
DefaultCreateNewFwUpdateUserServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update list all users url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllFwUpdateUsersServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllFwUpdateUsersServiceUrl"] ??
|
|
DefaultListAllFwUpdateUsersServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update list all users url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String ListAllFwUpdateBuilderOperatorsServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["ListAllFwUpdateBuilderOperatorsServiceUrl"] ??
|
|
DefaultListAllFwUpdateBuilderOperatorsServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update get user information by user Id url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetFwUpdateUserByIdServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetFwUpdateUserByIdServiceUrl"] ??
|
|
DefaultGetFwUpdateUserByIdServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// FW-Update get user information by user login name url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetFwUpdateUserByLoginNameServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetFwUpdateUserByLoginNameServiceUrl"] ??
|
|
DefaultGetFwUpdateUserByLoginNameServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis check radio parameter url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisRadioCheckServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisRadioCheckServiceUrl"] ??
|
|
DefaultGenesisRadioCheckServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis radio parameter get url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisFinalCheckServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisFinalCheckServiceUrl"] ??
|
|
DefaultGenesisFinalCheckServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Marriage service url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String MarriageServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["MarriageServiceUrl"] ??
|
|
DefaultMarriageServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis process status url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String MeterProcessStateUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["MeterProcessStateUrl"] ??
|
|
DefaultMeterProcessStateUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis get radio address url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisGetRadioAddressServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisGetRadioAddressServiceUrl"] ??
|
|
DefaultGenesisGetRadioAddressServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis get key set id url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisGetOrderNumberServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisGetOrderNumberServiceUrl"] ??
|
|
DefaultGenesisGetOrderNumberServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis get key set id url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisGetKeySetIdServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisGetKeySetIdServiceUrl"] ??
|
|
DefaultGenesisGetKeySetIdServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis get password url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisGetPasswordServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisGetPasswordServiceUrl"] ??
|
|
DefaultGenesisGetPasswordServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis get password url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisGetPasswordContainerServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisPasswordContainerServiceUrl"] ??
|
|
DefaultGenesisPasswordContainerServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Genesis set password url
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisSetPasswordServiceUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisSetPasswordServiceUrl"] ??
|
|
DefaultGenesisSetPasswordServiceUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the SW license
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String SetSoftwareLicenseUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["SetSoftwareLicenseUrl"] ??
|
|
DefaultSetSoftwareLicenseUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the SW license
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetSoftwareLicenseUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetSoftwareLicenseUrl"] ??
|
|
DefaultGetSoftwareLicenseUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Check the SW license with a given name and version
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetSoftwareStartUpAccessUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetSoftwareStartUpAccessUrl"] ??
|
|
DefaultGetSoftwareStartUpAccessUrl;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Get Genesis calibration results for final check if those have been correctly set
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GetGenesisCalibrationResultsUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GetGenesisCalibrationResults"] ??
|
|
DefaultGetGenesisCalibrationResults;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Post Genesis calibration results
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String PostGenesisCalibrationResultUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisCalibrationResult"] ??
|
|
DefaultGenesisCalibrationResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Post Genesis calibration results
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String FileContentControllerUrl()
|
|
{
|
|
return ConfigurationManager.AppSettings["DefaultFileContentController"] ??
|
|
DefaultFileContentController;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Root for all function regarding the BSI Key generation service
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String KeyServerCustom()
|
|
{
|
|
return ConfigurationManager.AppSettings["DefaultKeyServerCustom"] ??
|
|
DefaultKeyServerCustom;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Root for all function regarding the meter itself
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static String GenesisMeter()
|
|
{
|
|
return ConfigurationManager.AppSettings["GenesisMeter"] ??
|
|
DefaultGenesisMeter;
|
|
}
|
|
|
|
public static String GetQ3CalibrationsURI(String currentPcbId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
|
|
}
|