diff --git a/JSONParser/Logger/Logger.cs b/JSONParser/Logger/Logger.cs
index f19e323..b16eb32 100644
--- a/JSONParser/Logger/Logger.cs
+++ b/JSONParser/Logger/Logger.cs
@@ -1,5 +1,4 @@
-using System.ComponentModel.DataAnnotations;
-using System.Text;
+using System.Text;
namespace JSONParser.Logger
{
diff --git a/JSONParser/Program.cs b/JSONParser/Program.cs
index 5723590..cc73789 100644
--- a/JSONParser/Program.cs
+++ b/JSONParser/Program.cs
@@ -119,6 +119,8 @@ public static class Program
catch (Exception)
{
logger.Error($"{employee.Type} - {employee.Sid} - Failed to create");
+ var errorLogger = new Logger($"{logger.Name}_Error", logger.DirectoryPath);
+ errorLogger.Error(employee.Serialize());
}
}
diff --git a/JSONParser/Properties/Resources.Designer.cs b/JSONParser/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..695f5f8
--- /dev/null
+++ b/JSONParser/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace JSONParser.Properties {
+ using System;
+
+
+ ///
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
+ ///
+ // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+ // с помощью такого средства, как ResGen или Visual Studio.
+ // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+ // с параметром /str или перестройте свой проект VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("JSONParser.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/JSONParser/Properties/Resources.resx b/JSONParser/Properties/Resources.resx
new file mode 100644
index 0000000..4fdb1b6
--- /dev/null
+++ b/JSONParser/Properties/Resources.resx
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 1.3
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/JSONParser/config.json b/JSONParser/config.json
index b7f95f4..4f41173 100644
--- a/JSONParser/config.json
+++ b/JSONParser/config.json
@@ -4,14 +4,14 @@
"UserName": "erp",
"Password": "Z!1;Q5#GE4v",
"VirtualHost": "erp",
- "ChannelName": "hrm"
- //"ChannelName": "hrm_test"
+ //"ChannelName": "hrm"
+ "ChannelName": "hrm_test"
},
"QDocSettings": {
- //"IntegrationServiceUrl": "https://astsrvqtest.solidcore-resources.com/Integration/odata/",
- "IntegrationServiceUrl": "https://qdoc.solidcore-resources.com/Integration/odata/",
+ "IntegrationServiceUrl": "https://astsrvqtest.solidcore-resources.com/Integration/odata/",
+ //"IntegrationServiceUrl": "https://qdoc.solidcore-resources.com/Integration/odata/",
"Login": "Administrator",
- //"Password": "D3cTXol8Se"
- "Password": "MQVuEw9avO"
+ "Password": "D3cTXol8Se"
+ //"Password": "MQVuEw9avO"
}
}
\ No newline at end of file