private void btnChange_Click(object sender, EventArgs e) { if (CheckShield() == ResultStatus.Success) { bool result = daoUPF.UpdatePasswordByUserId(lblUserId.Text, txtPassword.Text, "N"); if (result == false) { MessageDisplay.Error("密碼變更失敗"); } else { SingletonLogger.Instance.Info(GlobalInfo.USER_ID, _ProgramID, "變更密碼", "I"); COMPLETE(); } } }
private void btnSetting_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ddlUserId.EditValue.AsString())) { MessageDisplay.Warning("請選擇使用者代號!"); } else { bool result = daoUPF.UpdatePasswordByUserId(ddlUserId.EditValue.AsString(), txtPassword.Text); if (result) { _IsPreventFlowPrint = false; base.ProcessSaveFlow(); SingletonLogger.Instance.Info(GlobalInfo.USER_ID, _ProgramID, "使用者起始設定", "I"); } else { MessageDisplay.Error("密碼變更失敗!"); } } }
public bool UpdatePasswordByUserId(string UPF_USER_ID, string UPF_PASSWORD, string UPF_CHANGE_FLAG) { return(daoUPF.UpdatePasswordByUserId(UPF_USER_ID, UPF_PASSWORD, UPF_CHANGE_FLAG)); }