diff --git a/INT69DB_2A/Forms/FormInformation.cs b/INT69DB_2A/Forms/FormInformation.cs index 850edff..4186edd 100644 --- a/INT69DB_2A/Forms/FormInformation.cs +++ b/INT69DB_2A/Forms/FormInformation.cs @@ -107,7 +107,7 @@ namespace INT69DB_2A.Forms } private void DefaultSetting() { - this.labelDisplayVer.Text = "5.1.0"; + this.labelDisplayVer.Text = "5.2.0"; this.labelUserMgerVer.Text = ""; this.labelAes128Ver.Text = ""; this.labelSerialNo.Text = this.ParentForm.SystemConfig.SerialNumber; diff --git a/INT69DB_2A/Forms/FormMenu.cs b/INT69DB_2A/Forms/FormMenu.cs index 48dede9..54f7d4c 100644 --- a/INT69DB_2A/Forms/FormMenu.cs +++ b/INT69DB_2A/Forms/FormMenu.cs @@ -410,20 +410,20 @@ namespace INT69DB_2A.Forms this.buttonOption.Visible = true; break; case DataStore.UserGroup.NotLogin: - this.buttonInformation.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuInformation; - this.buttonDataBackup.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuDataBackup; - this.buttonConfiguration.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuConfiguration; - this.buttonCommunication.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuCommunication; - this.buttonCalibration.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuCalibration; + this.buttonInformation.Enabled = true; + this.buttonDataBackup.Enabled = true; + this.buttonConfiguration.Enabled = true; + this.buttonCommunication.Enabled = true; + this.buttonCalibration.Enabled = true; - this.buttonSystem.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuSystem; - this.buttonMotor.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuMotor; - this.buttonUpdate.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuUpdate; - this.buttonInitialization.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuInitialization; - this.buttonIOTest.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuIOTest; + this.buttonSystem.Enabled = true; + this.buttonMotor.Enabled = true; + this.buttonUpdate.Enabled = true; + this.buttonInitialization.Enabled = true; + this.buttonIOTest.Enabled = true; - this.buttonEquipment.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuEquipment; - this.buttonTime.Enabled = this.ParentForm.CurrentUserGroup.NotLogin.IsMenuTime; + this.buttonEquipment.Enabled = true; + this.buttonTime.Enabled = true; this.buttonDataViewer.Visible = false; this.buttonDataStatistics.Visible = false; diff --git a/INT69DB_2A/Forms/FormUserEditor.cs b/INT69DB_2A/Forms/FormUserEditor.cs index c5e0d03..4a24cdf 100644 --- a/INT69DB_2A/Forms/FormUserEditor.cs +++ b/INT69DB_2A/Forms/FormUserEditor.cs @@ -338,6 +338,15 @@ namespace INT69DB_2A.Forms else return Color.DarkGray; } + private string PasswordToAsterisk(string sValue) + { + string temp = ""; + + for (int i = 0; i < sValue.Length; i++) + temp += "*"; + + return temp; + } private void CheckBoxCheckedAsLevel(DataStore.UserGroup level) { switch (level) @@ -475,6 +484,7 @@ namespace INT69DB_2A.Forms this.labelExpiryDateOfPassword2.Text = "yyyy.mm.DD"; this.comboBoxAccessRight.Visible = true; + this.comboBoxAccessRight.Enabled = true; this.comboBoxAccessRight.BringToFront(); this.UpdateAccessRightComboBoxDisplay(); this.comboBoxAccessRight.SelectedIndexChanged -= new EventHandler(this.comboBoxAccessRight_SelectedIndexChanged); @@ -587,8 +597,14 @@ namespace INT69DB_2A.Forms { this.SetEnableID(false); + // ID this.labelID.Text = item.ID; - this.labelPassword.Text = item.Password; + // Password + if(item.Password == this.SelectedUserItem.ResetPW) + this.labelPassword.Text = item.Password; + else + this.labelPassword.Text = this.PasswordToAsterisk(item.Password); + this.UpdateAccessRightDisplay(item.ActiveLevel); this.buttonSave.Visible = false; @@ -1035,7 +1051,7 @@ namespace INT69DB_2A.Forms private void labelPassword_Click(object sender, EventArgs e) { string value = ""; - DialogFormUserEditorKeyboard keyboard = new DialogFormUserEditorKeyboard(this.labelPassword.Text); + DialogFormUserEditorKeyboard keyboard = new DialogFormUserEditorKeyboard(this.SelectedUserItem.Password); if (keyboard.ShowDialog() == DialogResult.OK) { @@ -1233,21 +1249,23 @@ namespace INT69DB_2A.Forms private void listBoxUserList_SelectedIndexChanged(object sender, EventArgs e) { int index = this.listBoxUserList.SelectedIndex; - + if (index == 0) { - this.SetEnablePassword(true); - UserManager.UserManager_GetUserListID(this.listBoxUserList.SelectedItem.ToString()); } else if (index > 0) { - this.SetEnablePassword(false); - if (this.ParentForm.SystemConfig.CurrentUser.ID == this.listBoxUserList.Items[index].ToString()) - this.buttonDelete.Visible = false; + { + this.SetEnablePassword(true); + this.buttonResetPW.Visible = false; + } else - this.buttonDelete.Visible = true; + { + this.SetEnablePassword(false); + this.buttonResetPW.Visible = true; + } UserManager.UserManager_GetUserListID(this.listBoxUserList.SelectedItem.ToString()); } diff --git a/INT69DB_2A/Version.txt b/INT69DB_2A/Version.txt index 2764cb2..ebd0066 100644 --- a/INT69DB_2A/Version.txt +++ b/INT69DB_2A/Version.txt @@ -14,6 +14,17 @@ ¸ÖƼÇü 2~6¿­ ½ºÆ½ °è·®±â */ +@ Ver 5.2.0 by CJY + - 2024.08.20 + - Ver 5.1.0 Modify + - Framework : SmartX Framework V3.1.1(update: 2019.03.21) + - FormMenu + UpdateDisplayMenuAccess() + NotLogin ¼öÁ¤ + - À¯Àú¼³Á¤ + Level3 º»Àο¡ ÇÑÇؼ­ ºñ¹Ð¹øÈ£ º¯°æ °¡´ÉÇϵµ·Ï ¼öÁ¤ + adminÀ» Á¦¿ÜÇÑ ´Ù¸¥ À¯Àú´Â Reset¸¸ °¡´É + @ Ver 5.1.0 by LSJ - 2023.12.28 - Ver 5.0.1 Modify diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.dll b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.dll deleted file mode 100644 index 9602a54..0000000 Binary files a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.dll and /dev/null differ diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.pdb b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.pdb deleted file mode 100644 index b5a7f84..0000000 Binary files a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/bin/Debug/INT69DB_2A_ImageDll.pdb and /dev/null differ diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.FileListAbsolute.txt b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.FileListAbsolute.txt deleted file mode 100644 index 4b7105a..0000000 --- a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,14 +0,0 @@ -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\bin\Debug\INT69DB_2A_ImageDll.dll -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\bin\Debug\INT69DB_2A_ImageDll.pdb -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\ResolveAssemblyReference.cache -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.Resource1.resources -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.csproj.GenerateResource.Cache -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.dll -D:\Git\INT69DB_2A(2-10 임펠러)\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.pdb -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\bin\Debug\INT69DB_2A_ImageDll.dll -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\bin\Debug\INT69DB_2A_ImageDll.pdb -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\ResolveAssemblyReference.cache -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.Resource1.resources -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.csproj.GenerateResource.Cache -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.dll -C:\Users\CJY\Desktop\INT69DB_2A_V4.2.0\INT69DB_2A_ImageDll\INT69DB_2A_ImageDll\obj\Debug\INT69DB_2A_ImageDll.pdb diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.GenerateResource.Cache b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.GenerateResource.Cache deleted file mode 100644 index e0a6aa8..0000000 Binary files a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.csproj.GenerateResource.Cache and /dev/null differ diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.dll b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.dll deleted file mode 100644 index 9602a54..0000000 Binary files a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.dll and /dev/null differ diff --git a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.pdb b/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.pdb deleted file mode 100644 index b5a7f84..0000000 Binary files a/INT69DB_2A_ImageDll/INT69DB_2A_ImageDll/obj/Debug/INT69DB_2A_ImageDll.pdb and /dev/null differ