Просмотр исходного кода

Исправление ошибок

phoenix.XLIX 2 лет назад
Родитель
Сommit
edb66e3e30

+ 3 - 1
ImpulseVision/FormAutorize.cs

@@ -81,6 +81,9 @@ values ('{LblUserID.Text.Trim()}',GETDATE())";
                 Notify.Visible = true;
                 TbxLogin.Text = string.Empty;
                 TbxPassword.Text = string.Empty;
+
+                this.staffsTableAdapter.Fill(this.impulseVisionAppDataSet1.Staffs);
+
                 GetLastTimeLogin();
             }
         }
@@ -161,7 +164,6 @@ from HistoryLogin";
         {
             if (!Directory.Exists(Application.StartupPath + "\\Source\\log"))
             {
-                MessageBox.Show("Файлы журнала не обнаружены!", "ImpulseVision", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 return;
             }
             DirectoryInfo Dir = new DirectoryInfo(Application.StartupPath + "\\Source\\log\\");

+ 6 - 0
ImpulseVision/FormMain.cs

@@ -1052,6 +1052,12 @@ from UserTraffic ut join Users on ut.UserID = Users.ID
         private void GetUserListJournal()
         {
             TabCard.Controls.Clear();
+
+            if (!Directory.Exists(Application.StartupPath + "\\Source\\log\\"))
+            {
+                Directory.CreateDirectory(Application.StartupPath + "\\Source\\log\\");
+            }
+
             DirectoryInfo Dir = new DirectoryInfo(Application.StartupPath + "\\Source\\log\\");
             FileInfo[] Files = Dir.GetFiles();
             if(Files.Length == 0)

BIN
ImpulseVision/bin/Debug/ImpulseVision.exe