Files
laatzen/LaaProductionWeb/LaaProduction.Console/Program.cs
T

61 lines
1.8 KiB
C#

namespace LaaProduction.Console
{
using System;
using System.Net.Http;
using System.Web;
public class Program
{
public static void Main(String[] args)
{
GetKitronProductionDate();
}
private static DateTime GetKitronProductionDate()
{
var requestURIBuilder = new UriBuilder("http://10.49.40.25");
requestURIBuilder.Path = "/MeterProcessState/api/FinalCheck/GetKitronProductionDate";
requestURIBuilder.Query = $"CheckPcbId=241610009";
using (var httpClient = new HttpClient())
{
using (var httpRequestMessage = new HttpRequestMessage())
{
httpRequestMessage.Method = HttpMethod.Get;
httpRequestMessage.RequestUri = requestURIBuilder.Uri;
using (var httpResponseMessage = httpClient.SendAsync(httpRequestMessage).Result)
{
var content = httpResponseMessage.Content.ReadAsStringAsync().Result;
}
}
}
return DateTime.Now;
}
}
}
////////////// 0. Unseal If Sealed
////////////// 1. View System Parameters
////////////// 2. Verify System Parameters
////////////// 3. View & Save Configuration Parameters
/// 4. Reboot Register
/// 5. Set Register Settings
/// 6. Set Configuration Parameters
/// 7. Remove Reading Unit & Resolution
/// 8. Set Leak Alarm
/// 9. Set High Flow Alarm
/// 10. Set Reverse Flow Alarm
/// 11. Clear Metrology Alarms
/// 12. Enable NFC
/// 13. Verify Register Settings
/// 14. Verify System Parameters
/// 15. Verify Configuration Parameters
/// 16. View Alarms State
/// 17. Verify Leak Alarm
/// 18. Verify High Flow Alarm
/// 19. Verify Reverse Flow Alarm
/// 20. Seal Register