private void ResetPassword() { string old_pwd = this.txtOldPwd.Text.Trim(); string new_pwd = this.txtNewPwd.Text.Trim(); string confirm_pwd = this.txtConfirmPwd.Text.Trim(); if (string.IsNullOrEmpty(old_pwd)) { MsgBox.ShowInformation("Кв╩С╚внГ├▄┬в!"); return; } if (MD5.MD5Encrypt(old_pwd) != AppSetting.SysOption.UserPassword) { MsgBox.ShowInformation("нГ├▄┬в┤ь╬з!"); return; } if (string.IsNullOrEmpty(new_pwd)) { MsgBox.ShowInformation("Кв╩С╚вл┬├▄┬в"); return; } if (new_pwd != confirm_pwd) { MsgBox.ShowInformation("┴й┤╬╩С╚в├▄┬в▓╗Н§╚и!"); return; } Hi.BLL.User bll = new Hi.BLL.User();// HiBLL.HiInstanceBLL().UserBLL(); bool blFlag = bll.ResetPassword(AppSetting.SysOption.UserId, new_pwd); if (blFlag) { MsgBox.ShowInformation("опо├├▄┬в│╔╣д!"); this.Close(); } else { MsgBox.ShowInformation("опо├├▄┬в╩Д░▄!"); } }
private void ResetPassword() { string old_pwd= this.txtOldPwd.Text.Trim(); string new_pwd= this.txtNewPwd.Text.Trim(); string confirm_pwd= this.txtConfirmPwd.Text.Trim(); if(string.IsNullOrEmpty(old_pwd)) { MsgBox.ShowInformation("������ԭ����!"); return ; } if(MD5.MD5Encrypt(old_pwd)!=AppSetting.SysOption.UserPassword) { MsgBox.ShowInformation("ԭ�������!"); return ; } if(string.IsNullOrEmpty(new_pwd)) { MsgBox.ShowInformation("������������"); return ; } if(new_pwd!=confirm_pwd) { MsgBox.ShowInformation("�����������벻��ȷ!"); return ; } Hi.BLL.User bll = new Hi.BLL.User();// HiBLL.HiInstanceBLL().UserBLL(); bool blFlag = bll.ResetPassword(AppSetting.SysOption.UserId, new_pwd); if (blFlag) { MsgBox.ShowInformation("��������ɹ�!"); this.Close(); } else MsgBox.ShowInformation("��������ʧ��!"); }