/// <summary>
 /// 获取实体
 /// </summary>
 /// <param name="id">主键</param>
 public BaseExceptionEntity GetEntity(string id)
 {
     DataTable dataTable = this.GetDataTableById(id);
     BaseExceptionEntity exceptionEntity = new BaseExceptionEntity(dataTable);
     return exceptionEntity;
 }
Exemple #2
0
 public FrmException(Exception ex)
     : this()
 {
     this.ExceptionEntity = this.ConvertException(ex);
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public FrmException(BaseExceptionEntity exceptionEntity)
     : this()
 {
     this.ExceptionEntity = 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();
     }
 }