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