Compare commits

..

No commits in common. "d2f5b6e1608ddccb61e43ae2b7b58b6ac895739c" and "b65513deb21da21753356a722cd1714da1dc2ea2" have entirely different histories.

7 changed files with 162 additions and 169 deletions

View File

@ -103,8 +103,8 @@ namespace INT69DC_7C.Controls
this.labelID.Text = item.ID;
this.labelPassword.Text = item.Password;
this.labelExpireAccountDate.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DatePasswordLogin, item.DateIdExpire);
this.labelExpirePasswordDate.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateIdRegister, item.DatePasswordExpire);
this.labelExpireAccountDate.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateRegister, item.DateExpireRegister);
this.labelExpirePasswordDate.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateLogin, item.DateExpireLogin);
this.labelStatusExpireAccount.Visible = item.IsLockAccount;
this.labelStatusExpirePassword.Visible = item.IsLockPassword;
}

View File

@ -164,20 +164,20 @@ namespace INT69DC_7C.DialogForms
this.ParentForm.SystemConfig.CurrentUser.ID = userInfo.user_id;
this.ParentForm.SystemConfig.CurrentUser.Password = userInfo.user_pw;
this.ParentForm.SystemConfig.CurrentUser.ExpireId = userInfo.id_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.password_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpireAccount = userInfo.expire_period_account;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.expire_period_pw;
DateTime time = DateTime.ParseExact(userInfo.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordLogin = time;
time = DateTime.ParseExact(userInfo.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdRegister = time;
time = DateTime.ParseExact(userInfo.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = time;
time = DateTime.ParseExact(userInfo.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(userInfo.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateRegister = time;
time = DateTime.ParseExact(userInfo.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateLogin = time;
time = DateTime.ParseExact(userInfo.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = time;
time = DateTime.ParseExact(userInfo.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = time;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.id_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.password_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.flock_status_account == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.flock_status_password == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsAdmin = userInfo.fadmin == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.ActiveLevel = userInfo.active_level;
#endregion
@ -271,20 +271,20 @@ namespace INT69DC_7C.DialogForms
this.ParentForm.SystemConfig.CurrentUser.ID = userInfo.user_id;
this.ParentForm.SystemConfig.CurrentUser.Password = userInfo.user_pw;
this.ParentForm.SystemConfig.CurrentUser.ExpireId = userInfo.id_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.password_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpireAccount = userInfo.expire_period_account;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.expire_period_pw;
DateTime time = DateTime.ParseExact(userInfo.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordLogin = time;
time = DateTime.ParseExact(userInfo.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdRegister = time;
time = DateTime.ParseExact(userInfo.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = time;
time = DateTime.ParseExact(userInfo.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(userInfo.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateRegister = time;
time = DateTime.ParseExact(userInfo.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateLogin = time;
time = DateTime.ParseExact(userInfo.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = time;
time = DateTime.ParseExact(userInfo.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = time;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.id_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.password_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.flock_status_account == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.flock_status_password == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsAdmin = userInfo.fadmin == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.ActiveLevel = userInfo.active_level;
#endregion

View File

@ -244,38 +244,38 @@ namespace INT69DC_7C.DialogForms
this.ParentForm.SystemConfig.CurrentUser.ID = user.user_id;
this.ParentForm.SystemConfig.CurrentUser.Password = user.user_pw;
this.ParentForm.SystemConfig.CurrentUser.ExpireId = user.id_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = user.password_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpireAccount = user.expire_period_account;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = user.expire_period_pw;
// console
Console.WriteLine(user.password_login_date.GetDateTime());
DateTime time = DateTime.ParseExact(user.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordLogin = time;
Console.WriteLine(user.register_date.GetDateTime());
DateTime time = DateTime.ParseExact(user.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateRegister = time;
// console
Console.WriteLine(user.id_register_date.GetDateTime());
time = DateTime.ParseExact(user.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdRegister = time;
Console.WriteLine(user.login_date.GetDateTime());
time = DateTime.ParseExact(user.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateLogin = time;
if (this.ParentForm.SystemConfig.CurrentUser.Group == DataStore.UserGroup.Admin
|| this.ParentForm.SystemConfig.CurrentUser.Group == DataStore.UserGroup.Developer)
{
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = DateTime.Now;
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = DateTime.Now;
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = DateTime.Now;
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = DateTime.Now;
}
else
{
// console
Console.WriteLine(user.id_expire_date.GetDateTime());
time = DateTime.ParseExact(user.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = time;
Console.WriteLine(user.expire_account_date.GetDateTime());
time = DateTime.ParseExact(user.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = time;
// console
Console.WriteLine(user.password_expire_date.GetDateTime());
time = DateTime.ParseExact(user.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = time;
Console.WriteLine(user.expire_register_date.GetDateTime());
time = DateTime.ParseExact(user.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = time;
}
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = user.id_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = user.password_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = user.flock_status_account == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = user.flock_status_password == 0 ? false : true;
if (this.ParentForm.SystemConfig.IsPart11 == true)
this.ParentForm.SystemConfig.CurrentUser.IsAdmin = user.fadmin == 0 ? false : true;

View File

@ -956,25 +956,25 @@ namespace INT69DC_7C.Forms
this.ParentForm.SystemConfig.CurrentUser.ID = userInfo.user_id;
this.ParentForm.SystemConfig.CurrentUser.Password = userInfo.user_pw;
this.ParentForm.SystemConfig.CurrentUser.ExpireId = userInfo.id_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.password_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpireAccount = userInfo.expire_period_account;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.expire_period_pw;
Console.WriteLine(userInfo.password_login_date.GetDateTime());
Console.WriteLine(userInfo.id_register_date.GetDateTime());
Console.WriteLine(userInfo.id_expire_date.GetDateTime());
Console.WriteLine(userInfo.password_expire_date.GetDateTime());
Console.WriteLine(userInfo.register_date.GetDateTime());
Console.WriteLine(userInfo.login_date.GetDateTime());
Console.WriteLine(userInfo.expire_account_date.GetDateTime());
Console.WriteLine(userInfo.expire_register_date.GetDateTime());
DateTime time = DateTime.ParseExact(userInfo.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordLogin = time;
time = DateTime.ParseExact(userInfo.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdRegister = time;
time = DateTime.ParseExact(userInfo.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = time;
time = DateTime.ParseExact(userInfo.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(userInfo.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateRegister = time;
time = DateTime.ParseExact(userInfo.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateLogin = time;
time = DateTime.ParseExact(userInfo.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = time;
time = DateTime.ParseExact(userInfo.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = time;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.id_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.password_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.flock_status_account == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.flock_status_password == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsAdmin = userInfo.fadmin == 0 ? false : true;
@ -2415,20 +2415,20 @@ namespace INT69DC_7C.Forms
this.ParentForm.SystemConfig.CurrentUser.ID = userInfo.user_id;
this.ParentForm.SystemConfig.CurrentUser.Password = userInfo.user_pw;
this.ParentForm.SystemConfig.CurrentUser.ExpireId = userInfo.id_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.password_expire_period;
this.ParentForm.SystemConfig.CurrentUser.ExpireAccount = userInfo.expire_period_account;
this.ParentForm.SystemConfig.CurrentUser.ExpirePassword = userInfo.expire_period_pw;
DateTime time = DateTime.ParseExact(userInfo.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordLogin = time;
time = DateTime.ParseExact(userInfo.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdRegister = time;
time = DateTime.ParseExact(userInfo.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateIdExpire = time;
time = DateTime.ParseExact(userInfo.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(userInfo.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateRegister = time;
time = DateTime.ParseExact(userInfo.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateLogin = time;
time = DateTime.ParseExact(userInfo.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireRegister = time;
time = DateTime.ParseExact(userInfo.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.ParentForm.SystemConfig.CurrentUser.DateExpireLogin = time;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.id_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.password_flock_status == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockAccount = userInfo.flock_status_account == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsLockPassword = userInfo.flock_status_password == 0 ? false : true;
this.ParentForm.SystemConfig.CurrentUser.IsAdmin = userInfo.fadmin == 0 ? false : true;

View File

@ -265,7 +265,7 @@ namespace INT69DC_7C.Forms
item.ID = this.labelID.Text;
item.Password = this.labelPassword.Text;
item.ExpireId = int.Parse(this.labelExpiryDateOfAccount.Text);
item.ExpireAccount = int.Parse(this.labelExpiryDateOfAccount.Text);
item.ExpirePassword = int.Parse(this.labelExpiryDateOfPassword.Text);
//item.IsAdmin = this.cbAdministrator.Checked;
@ -287,13 +287,13 @@ namespace INT69DC_7C.Forms
if (isNewReg == true)
{
#region 신규 등록
UserManager.UserManager_UserNew(item.ID, item.Password, item.IsAdmin == false ? 0 : 1, item.ExpirePassword, item.ExpireId, item.ActiveLevel, menuId);
UserManager.UserManager_UserNew(item.ID, item.Password, item.IsAdmin == false ? 0 : 1, item.ExpirePassword, item.ExpireAccount, item.ActiveLevel, menuId);
#endregion
}
else
{
#region 유저 수정
UserManager.UserManager_UserModify(item.ID, item.Password, item.IsAdmin == false ? 0 : 1, item.ExpirePassword, item.ExpireId, item.ActiveLevel, menuId);
UserManager.UserManager_UserModify(item.ID, item.Password, item.IsAdmin == false ? 0 : 1, item.ExpirePassword, item.ExpireAccount, item.ActiveLevel, menuId);
#endregion
}
@ -514,8 +514,8 @@ namespace INT69DC_7C.Forms
this.SelectedUserItem.ID = item.user_id;
this.SelectedUserItem.Password = item.user_pw;
this.SelectedUserItem.ExpireId = item.id_expire_period;
this.SelectedUserItem.ExpirePassword = item.password_expire_period;
this.SelectedUserItem.ExpireAccount = item.expire_period_account;
this.SelectedUserItem.ExpirePassword = item.expire_period_pw;
this.SelectedUserItem.ActiveLevel = item.active_level;
if (this.SelectedUserItem.ActiveLevel == 1)
@ -535,29 +535,29 @@ namespace INT69DC_7C.Forms
if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin
|| this.SelectedUserItem.Group == DataStore.UserGroup.Developer)
{
Console.WriteLine(item.password_login_date.GetDateTime());
Console.WriteLine(item.id_register_date.GetDateTime());
Console.WriteLine(item.id_expire_date.GetDateTime());
Console.WriteLine(item.password_expire_date.GetDateTime());
Console.WriteLine(item.register_date.GetDateTime());
Console.WriteLine(item.login_date.GetDateTime());
Console.WriteLine(item.expire_account_date.GetDateTime());
Console.WriteLine(item.expire_register_date.GetDateTime());
this.SelectedUserItem.DatePasswordLogin = DateTime.Now;
this.SelectedUserItem.DateIdRegister = DateTime.Now;
this.SelectedUserItem.DateIdExpire = DateTime.Now;
this.SelectedUserItem.DatePasswordExpire = DateTime.Now;
this.SelectedUserItem.DateRegister = DateTime.Now;
this.SelectedUserItem.DateLogin = DateTime.Now;
this.SelectedUserItem.DateExpireRegister = DateTime.Now;
this.SelectedUserItem.DateExpireLogin = DateTime.Now;
}
else
{
DateTime time = DateTime.ParseExact(item.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DatePasswordLogin = time;
time = DateTime.ParseExact(item.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateIdRegister = time;
time = DateTime.ParseExact(item.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateIdExpire = time;
time = DateTime.ParseExact(item.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(item.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateRegister = time;
time = DateTime.ParseExact(item.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateLogin = time;
time = DateTime.ParseExact(item.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateExpireRegister = time;
time = DateTime.ParseExact(item.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateExpireLogin = time;
}
this.SelectedUserItem.IsLockAccount = item.id_flock_status == 0 ? false : true;
this.SelectedUserItem.IsLockAccount = item.flock_status_account == 0 ? false : true;
this.SelectedUserItem.IsLockPassword = item.flock_status_password == 0 ? false : true;
this.SelectedUserItem.IsAdmin = item.fadmin == 0 ? false : true;
@ -568,8 +568,8 @@ namespace INT69DC_7C.Forms
this.SelectedUserItem.ID = item.user_id;
this.SelectedUserItem.Password = item.user_pw;
this.SelectedUserItem.ExpireId = item.id_expire_period;
this.SelectedUserItem.ExpirePassword = item.password_expire_period;
this.SelectedUserItem.ExpireAccount = item.expire_period_account;
this.SelectedUserItem.ExpirePassword = item.expire_period_pw;
this.SelectedUserItem.ActiveLevel = item.active_level;
if (item.active_level == 1)
@ -586,36 +586,35 @@ namespace INT69DC_7C.Forms
if (this.SelectedUserItem.Group == DataStore.UserGroup.Admin
|| this.SelectedUserItem.Group == DataStore.UserGroup.Developer)
{
Console.WriteLine(item.password_login_date.GetDateTime());
Console.WriteLine(item.id_register_date.GetDateTime());
Console.WriteLine(item.id_expire_date.GetDateTime());
Console.WriteLine(item.password_expire_date.GetDateTime());
Console.WriteLine(item.register_date.GetDateTime());
Console.WriteLine(item.login_date.GetDateTime());
Console.WriteLine(item.expire_account_date.GetDateTime());
Console.WriteLine(item.expire_register_date.GetDateTime());
this.SelectedUserItem.DatePasswordLogin = DateTime.Now;
this.SelectedUserItem.DateIdRegister = DateTime.Now;
this.SelectedUserItem.DateIdExpire = DateTime.Now;
this.SelectedUserItem.DatePasswordExpire = DateTime.Now;
this.SelectedUserItem.DateRegister = DateTime.Now;
this.SelectedUserItem.DateLogin = DateTime.Now;
this.SelectedUserItem.DateExpireRegister = DateTime.Now;
this.SelectedUserItem.DateExpireLogin = DateTime.Now;
}
else
{
DateTime time = DateTime.ParseExact(item.password_login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DatePasswordLogin = time;
time = DateTime.ParseExact(item.id_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateIdRegister = time;
time = DateTime.ParseExact(item.id_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateIdExpire = time;
time = DateTime.ParseExact(item.password_expire_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DatePasswordExpire = time;
DateTime time = DateTime.ParseExact(item.register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateRegister = time;
time = DateTime.ParseExact(item.login_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateLogin = time;
time = DateTime.ParseExact(item.expire_account_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateExpireRegister = time;
time = DateTime.ParseExact(item.expire_register_date.GetDateTime(), "yyyyMMddHHmmss", null);
this.SelectedUserItem.DateExpireLogin = time;
}
this.SelectedUserItem.IsLockAccount = item.id_flock_status == 0 ? false : true;
this.SelectedUserItem.IsLockPassword = item.password_flock_status == 0 ? false : true;
this.SelectedUserItem.IsLockAccount = item.flock_status_account == 0 ? false : true;
this.SelectedUserItem.IsLockPassword = item.flock_status_password == 0 ? false : true;
this.SelectedUserItem.IsAdmin = item.fadmin == 0 ? false : true;
}
private void UpdateSelectUserDisplay(UserItem item)
{
this.SetEnableID(false);
@ -646,10 +645,10 @@ namespace INT69DC_7C.Forms
}
else
{
this.labelExpiryDateOfAccount.Text = item.ExpireId.ToString();
this.labelExpiryDateOfAccount.Text = item.ExpireAccount.ToString();
this.labelExpiryDateOfPassword.Text = item.ExpirePassword.ToString();
this.labelExpiryDateOfAccount2.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateIdRegister, item.DateIdExpire);
this.labelExpiryDateOfPassword2.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DatePasswordLogin, item.DatePasswordExpire);
this.labelExpiryDateOfAccount2.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateLogin, item.DateExpireRegister);
this.labelExpiryDateOfPassword2.Text = string.Format("{0:yyyy/MM/dd} ~ {1:yyyy/MM/dd}", item.DateRegister, item.DateExpireLogin);
this.labelStatusExpiryAccount.Visible = item.IsLockAccount;
this.labelStatusExpiryPassword.Visible = item.IsLockPassword;

View File

@ -13,16 +13,16 @@ namespace INT69DC_7C.Part11_UserManager
private string m_ID;
private string m_Password;
private int m_ExpireId;
private int m_ExpireAccount;
private int m_ExpirePassword;
private bool m_IsLockAccount;
private bool m_IsLockPassword;
private DateTime m_DatePasswordLogin;
private DateTime m_DateIdRegister;
private DateTime m_DateIdExpire;
private DateTime m_DatePasswordExpire;
private DateTime m_DateRegister;
private DateTime m_DateLogin;
private DateTime m_DateExpireRegister;
private DateTime m_DateExpireLogin;
private DataStore.UserGroup m_Group;
@ -50,10 +50,10 @@ namespace INT69DC_7C.Part11_UserManager
set { this.m_Password = value; }
}
public int ExpireId
public int ExpireAccount
{
get { return this.m_ExpireId; }
set { this.m_ExpireId = value; }
get { return this.m_ExpireAccount; }
set { this.m_ExpireAccount = value; }
}
public int ExpirePassword
{
@ -72,25 +72,25 @@ namespace INT69DC_7C.Part11_UserManager
set { this.m_IsLockPassword = value; }
}
public DateTime DatePasswordLogin
public DateTime DateRegister
{
get { return this.m_DatePasswordLogin; }
set { this.m_DatePasswordLogin = value; }
get { return this.m_DateRegister; }
set { this.m_DateRegister = value; }
}
public DateTime DateIdRegister
public DateTime DateLogin
{
get { return this.m_DateIdRegister; }
set { this.m_DateIdRegister = value; }
get { return this.m_DateLogin; }
set { this.m_DateLogin = value; }
}
public DateTime DateIdExpire
public DateTime DateExpireRegister
{
get { return this.m_DateIdExpire; }
set { this.m_DateIdExpire = value; }
get { return this.m_DateExpireRegister; }
set { this.m_DateExpireRegister = value; }
}
public DateTime DatePasswordExpire
public DateTime DateExpireLogin
{
get { return this.m_DatePasswordExpire; }
set { this.m_DatePasswordExpire = value; }
get { return this.m_DateExpireLogin; }
set { this.m_DateExpireLogin = value; }
}
public DataStore.UserGroup Group
@ -118,13 +118,13 @@ namespace INT69DC_7C.Part11_UserManager
this.ID = "-";
this.Password = "-";
this.ExpireId = 0;
this.ExpireAccount = 0;
this.ExpirePassword = 0;
this.DatePasswordLogin = DateTime.Now;
this.DateIdRegister = DateTime.Now;
this.DateIdExpire = DateTime.Now;
this.DatePasswordExpire = DateTime.Now;
this.DateRegister = DateTime.Now;
this.DateLogin = DateTime.Now;
this.DateExpireRegister = DateTime.Now;
this.DateExpireLogin = DateTime.Now;
this.Group = DataStore.UserGroup.None;
@ -143,7 +143,7 @@ namespace INT69DC_7C.Part11_UserManager
ret = 9999;
else
{
dayDiff = timeNow.Date - this.DatePasswordExpire.Date;
dayDiff = timeNow.Date - this.DateExpireLogin.Date;
ret = dayDiff.Days;
}

View File

@ -212,37 +212,34 @@ namespace INT69DC_7C.Part11_UserManager
public Int32 fadmin;
[MarshalAs(UnmanagedType.I4)]
public Int32 password_expire_period; // password lock date
public Int32 expire_period_pw; // password lock
[MarshalAs(UnmanagedType.I4)]
public Int32 id_expire_period; // id lock date
public Int32 expire_period_account; // account lock
[MarshalAs(UnmanagedType.I4)]
public Int32 id_flock_status; // user ID (account) lock status
public Int32 flock_status_account; // user ID (account) lock
[MarshalAs(UnmanagedType.I4)]
public Int32 password_flock_status; // password lock status (need to change password)
public Int32 flock_status_password; // password lock (need to change password)
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t password_login_date; // date/time when the user password was registered or changed
public DateTime_t register_date; // date/time when the user password was registered or changed
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t id_register_date; // date/time when the user was login
public DateTime_t login_date; // date/time when the user was login
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t password_expire_date; // Password Expiration Date
public DateTime_t expire_register_date;
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t id_expire_date; // Account Expiration Date
public DateTime_t expire_account_date;
[MarshalAs(UnmanagedType.Struct)]
public MenuID_t menuID; // flag of Menu IDs
public MenuID_t menuID;
[MarshalAs(UnmanagedType.I4)]
public Int32 active_level; // menu active level : max : MAX_ACTIVE_LEVEL
[MarshalAs(UnmanagedType.I4)]
public Int32 fFirstPW; // [1] First (request to modify), [0] Next (not request)
public Int32 active_level;
}
#endregion
@ -327,37 +324,34 @@ namespace INT69DC_7C.Part11_UserManager
public Int32 fadmin;
[MarshalAs(UnmanagedType.I4)]
public Int32 password_expire_period; // password lock
public Int32 expire_period_pw; // password lock
[MarshalAs(UnmanagedType.I4)]
public Int32 id_expire_period; // account lock
public Int32 expire_period_account; // account lock
[MarshalAs(UnmanagedType.I4)]
public Int32 id_flock_status; // user ID (account) lock
public Int32 flock_status_account; // user ID (account) lock
[MarshalAs(UnmanagedType.I4)]
public Int32 flock_status_password; // password lock (need to change password)
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t password_login_date; // date/time when the user password was registered or changed
public DateTime_t register_date; // date/time when the user password was registered or changed
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t id_register_date; // date/time when the user was login
public DateTime_t login_date; // date/time when the user was login
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t password_expire_date; // Password Expiration Date
public DateTime_t expire_register_date;
[MarshalAs(UnmanagedType.Struct)]
public DateTime_t id_expire_date; // Account Expiration Date
public DateTime_t expire_account_date;
[MarshalAs(UnmanagedType.I4)]
public Int32 active_level; // menu active level : max : MAX_ACTIVE_LEVEL
public Int32 active_level;
[MarshalAs(UnmanagedType.Struct)]
public MenuID_t menuID; // flag of Menu IDs
[MarshalAs(UnmanagedType.I4)]
public Int32 fFirstPW; // flag first password
public MenuID_t menuID;
}
#endregion