/// <summary> /// 获取实体 /// </summary> /// <param name="id">主键</param> public BaseExceptionEntity GetEntity(string id) { DataTable dataTable = this.GetDataTableById(id); BaseExceptionEntity exceptionEntity = new BaseExceptionEntity(dataTable); return(exceptionEntity); }
private void grdExceptionAdmin_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataRow dataRow = BaseInterfaceLogic.GetDataGridViewEntity(this.grdExceptionAdmin); if (dataRow != null) { BaseExceptionEntity exceptionEntity = new BaseExceptionEntity(dataRow); FrmException frmException = new FrmException(exceptionEntity); frmException.ShowDialog(); } }
private BaseExceptionEntity ConvertException(Exception ex) { BaseExceptionEntity exceptionEntity = new BaseExceptionEntity(); exceptionEntity.Message = ex.Message; exceptionEntity.FormattedMessage = ex.Source; exceptionEntity.CreateOn = System.DateTime.Now.ToString(BaseSystemInfo.DateTimeFormat); exceptionEntity.CreateUserId = UserInfo.Id; exceptionEntity.CreateBy = UserInfo.RealName; return(exceptionEntity); }
public FrmException(Exception ex) : this() { this.ExceptionEntity = this.ConvertException(ex); }
public FrmException(BaseExceptionEntity exceptionEntity) : this() { this.ExceptionEntity = exceptionEntity; }