|
|
|
@@ -23,7 +23,7 @@ namespace jdis_import |
|
|
|
{
|
|
|
|
private static string _exeDir;
|
|
|
|
private static bool _log = true;
|
|
|
|
private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;Persist Security Info=True;";
|
|
|
|
private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;Encrypt=Yes;TrustServerCertificate=true;Persist Security Info=True;";
|
|
|
|
private static string _workOrderNumber = string.Empty;
|
|
|
|
private static List<string> _sqlMessages = new List<string>();
|
|
|
|
private static bool _newMachine = false;
|
|
|
|
@@ -101,7 +101,7 @@ namespace jdis_import |
|
|
|
}
|
|
|
|
foreach (ToDo import in list)
|
|
|
|
{
|
|
|
|
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls11;
|
|
|
|
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls;
|
|
|
|
|
|
|
|
//Start Importing
|
|
|
|
BeginImport(import);
|
|
|
|
@@ -171,7 +171,7 @@ namespace jdis_import |
|
|
|
public static void GetInspectionTypes()
|
|
|
|
{
|
|
|
|
InspectionType = new Dictionary<string, int>();
|
|
|
|
SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;Persist Security Info=True;");
|
|
|
|
SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;Encrypt=Yes;TrustServerCertificate=true;Persist Security Info=True;");
|
|
|
|
con.Open();
|
|
|
|
SqlCommand cmd = con.CreateCommand();
|
|
|
|
cmd.CommandTimeout = 0;
|
|
|
|
|