|
|
@@ -23,7 +23,7 @@ namespace jdis_import |
|
|
{
|
|
|
{
|
|
|
private static string _exeDir;
|
|
|
private static string _exeDir;
|
|
|
private static bool _log = true;
|
|
|
private static bool _log = true;
|
|
|
private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;";
|
|
|
|
|
|
|
|
|
private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;";
|
|
|
private static string _workOrderNumber = string.Empty;
|
|
|
private static string _workOrderNumber = string.Empty;
|
|
|
private static List<string> _sqlMessages = new List<string>();
|
|
|
private static List<string> _sqlMessages = new List<string>();
|
|
|
private static bool _newMachine = false;
|
|
|
private static bool _newMachine = false;
|
|
|
@@ -122,7 +122,7 @@ namespace jdis_import |
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
msgToSend.Subject = sendMsg.FileName;
|
|
|
|
|
|
|
|
|
msgToSend.Subject = sendMsg.FileName.Substring(sendMsg.FileName.LastIndexOf("/") + 1);
|
|
|
msgToSend.ToRecipients.Add(new EmailAddress(sendMsg.Sender));
|
|
|
msgToSend.ToRecipients.Add(new EmailAddress(sendMsg.Sender));
|
|
|
msgToSend.CcRecipients.Add(new EmailAddress("mcarman@rpmindustries.com"));
|
|
|
msgToSend.CcRecipients.Add(new EmailAddress("mcarman@rpmindustries.com"));
|
|
|
msgToSend.Body = body;
|
|
|
msgToSend.Body = body;
|
|
|
@@ -170,7 +170,7 @@ namespace jdis_import |
|
|
public static void GetInspectionTypes()
|
|
|
public static void GetInspectionTypes()
|
|
|
{
|
|
|
{
|
|
|
InspectionType = new Dictionary<string, int>();
|
|
|
InspectionType = new Dictionary<string, int>();
|
|
|
SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;");
|
|
|
|
|
|
|
|
|
SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;");
|
|
|
con.Open();
|
|
|
con.Open();
|
|
|
SqlCommand cmd = con.CreateCommand();
|
|
|
SqlCommand cmd = con.CreateCommand();
|
|
|
cmd.CommandTimeout = 0;
|
|
|
cmd.CommandTimeout = 0;
|
|
|
|