유저설정 수정

main
Seonjae 2023-04-07 15:00:57 +09:00
parent 6f347ea714
commit b8fc4fee66
6 changed files with 30 additions and 20 deletions

View File

@ -111,7 +111,6 @@ namespace INT_PT002.Controls
this.labelExpiryDateOfAccount.Enabled = true; this.labelExpiryDateOfAccount.Enabled = true;
this.labelExpiryDateOfPassword.Enabled = true; this.labelExpiryDateOfPassword.Enabled = true;
this.labelAutomaticLogoutTime.Enabled = true;
this.SetEnableID(true); this.SetEnableID(true);
this.SetEnablePassword(true); this.SetEnablePassword(true);
} }
@ -285,6 +284,9 @@ namespace INT_PT002.Controls
this.buttonLevel2.ButtonUp(); this.buttonLevel2.ButtonUp();
this.buttonLevel3.ButtonUp(); this.buttonLevel3.ButtonUp();
this.buttonLevel1.ButtonDown(); this.buttonLevel1.ButtonDown();
this.buttonLevel1.Enabled = true;
this.buttonLevel2.Enabled = true;
this.buttonLevel3.Enabled = true;
this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL1_NAME; this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL1_NAME;
@ -306,6 +308,9 @@ namespace INT_PT002.Controls
this.buttonLevel1.ButtonUp(); this.buttonLevel1.ButtonUp();
this.buttonLevel3.ButtonUp(); this.buttonLevel3.ButtonUp();
this.buttonLevel2.ButtonDown(); this.buttonLevel2.ButtonDown();
this.buttonLevel1.Enabled = true;
this.buttonLevel2.Enabled = true;
this.buttonLevel3.Enabled = true;
this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL2_NAME; this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL2_NAME;
@ -327,6 +332,9 @@ namespace INT_PT002.Controls
this.buttonLevel1.ButtonUp(); this.buttonLevel1.ButtonUp();
this.buttonLevel2.ButtonUp(); this.buttonLevel2.ButtonUp();
this.buttonLevel3.ButtonDown(); this.buttonLevel3.ButtonDown();
this.buttonLevel1.Enabled = true;
this.buttonLevel2.Enabled = true;
this.buttonLevel3.Enabled = true;
this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL3_NAME; this.labelAccessRight.Text = this.ParentForm.ParentForm.SystemConfig.LEVEL3_NAME;
@ -348,6 +356,9 @@ namespace INT_PT002.Controls
this.buttonLevel1.ButtonUp(); this.buttonLevel1.ButtonUp();
this.buttonLevel2.ButtonUp(); this.buttonLevel2.ButtonUp();
this.buttonLevel3.ButtonUp(); this.buttonLevel3.ButtonUp();
this.buttonLevel1.Enabled = false;
this.buttonLevel2.Enabled = false;
this.buttonLevel3.Enabled = false;
this.labelAccessRight.Text = "Admin"; this.labelAccessRight.Text = "Admin";
@ -369,6 +380,9 @@ namespace INT_PT002.Controls
this.buttonLevel1.ButtonUp(); this.buttonLevel1.ButtonUp();
this.buttonLevel2.ButtonUp(); this.buttonLevel2.ButtonUp();
this.buttonLevel3.ButtonUp(); this.buttonLevel3.ButtonUp();
this.buttonLevel1.Enabled = true;
this.buttonLevel2.Enabled = true;
this.buttonLevel3.Enabled = true;
this.labelAccessRight.Text = ""; this.labelAccessRight.Text = "";
@ -596,8 +610,6 @@ namespace INT_PT002.Controls
this.labelExpiryDateOfAccount.BackColor = Color.Silver; this.labelExpiryDateOfAccount.BackColor = Color.Silver;
this.labelExpiryDateOfPassword.Enabled = false; this.labelExpiryDateOfPassword.Enabled = false;
this.labelExpiryDateOfPassword.BackColor = Color.Silver; this.labelExpiryDateOfPassword.BackColor = Color.Silver;
this.labelAutomaticLogoutTime.Enabled = false;
this.labelAutomaticLogoutTime.BackColor = Color.Silver;
this.buttonDelete.Enabled = true; this.buttonDelete.Enabled = true;
DialogFormMessage dlg = new DialogFormMessage(Define.E_MessageBoxIcon.Asterisk, code, message1, message2, 0); DialogFormMessage dlg = new DialogFormMessage(Define.E_MessageBoxIcon.Asterisk, code, message1, message2, 0);

View File

@ -439,12 +439,12 @@ namespace INT_PT002.DataStore
{ {
this.IsUpdate = false; this.IsUpdate = false;
this.ID = "-"; this.ID = "";
this.Password = "-"; this.Password = "";
this.PreviousPassword1 = "-"; this.PreviousPassword1 = "";
this.PreviousPassword2 = "-"; this.PreviousPassword2 = "";
this.PreviousPassword3 = "-"; this.PreviousPassword3 = "";
this.ExpireAccount = 0; this.ExpireAccount = 0;
this.ExpirePassword = 0; this.ExpirePassword = 0;

View File

@ -724,7 +724,7 @@ namespace INT_PT002.DialogForms
this.Location = new Point(x, y); this.Location = new Point(x, y);
this.Size = new Size(450, 155); this.Size = new Size(452, 157);
} }
private void PictureBoxVisible(bool bValue) private void PictureBoxVisible(bool bValue)
@ -742,7 +742,6 @@ namespace INT_PT002.DialogForms
base.OnLoad(e); base.OnLoad(e);
this.InitializeControl(); this.InitializeControl();
this.Size = new Size(450, 155);
} }
#endregion #endregion

View File

@ -678,6 +678,11 @@ namespace INT_PT002.DialogForms
else else
this.UpdateMainBoardFail(this.Language); this.UpdateMainBoardFail(this.Language);
} }
private void smartTimerReboot_Tick(object sender, EventArgs e)
{
this.smartTimerReboot.Stop();
SmartX.SmartConfigs.ReBoot();
}
private void buttonOK_Click(object sender, EventArgs e) private void buttonOK_Click(object sender, EventArgs e)
{ {
@ -686,11 +691,5 @@ namespace INT_PT002.DialogForms
this.Close(); this.Close();
} }
#endregion #endregion
private void smartTimerReboot_Tick(object sender, EventArgs e)
{
this.smartTimerReboot.Stop();
SmartX.SmartConfigs.ReBoot();
}
} }
} }

View File

@ -330,6 +330,7 @@ namespace INT_PT002.DialogForms
y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2; y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2;
this.Location = new Point(x, y); this.Location = new Point(x, y);
this.Size = new Size(452, 157);
} }
#endregion #endregion
@ -339,7 +340,6 @@ namespace INT_PT002.DialogForms
base.OnLoad(e); base.OnLoad(e);
this.InitializeControl(); this.InitializeControl();
this.Size = new Size(450, 155);
} }
#endregion #endregion

View File

@ -347,11 +347,11 @@ namespace INT_PT002.Part11_UserManager
[MarshalAs(UnmanagedType.Struct)] [MarshalAs(UnmanagedType.Struct)]
public DateTime_t expire_account_date; public DateTime_t expire_account_date;
[MarshalAs(UnmanagedType.Struct)]
public MenuID_t menuID;
[MarshalAs(UnmanagedType.I4)] [MarshalAs(UnmanagedType.I4)]
public Int32 active_level; public Int32 active_level;
[MarshalAs(UnmanagedType.Struct)]
public MenuID_t menuID;
} }
#endregion #endregion