Exemple #1
0
        private static void LoginToCsv(String[] args)
        {
            String rdrId         = args[1];
            String ipAddr        = args[2];
            String macAddr       = args[3];
            String calledStation = args[4];

            Logger.WriteLog($"Start: {rdrId} {ipAddr} {macAddr} {calledStation}");
            Record record = _dbClient.GetRecordById(rdrId);

            String[] values = CreateValuesForCsv("Вход", ipAddr, macAddr, "0", record);
            SaveToCsv.Save(calledStation, values);
        }
Exemple #2
0
        private static void LogoutToCsv(String[] args)
        {
            String rdrId         = args[1];
            String ipAddr        = args[2];
            String macAddr       = args[3];
            String calledStation = args[4];
            String sessionTime   = args[5];

            Logger.WriteLog($"Stop: {rdrId}, Time {sessionTime} sec");
            Record record = _dbClient.GetRecordById(rdrId);

            String[] values = CreateValuesForCsv("Выход", ipAddr, macAddr, sessionTime, record);
            SaveToCsv.Save(calledStation, values);
        }