private CiExceptionEntity ConvertException(Exception ex)
 {
     exceptionEntity                  = new CiExceptionEntity();
     exceptionEntity.Message          = ex.Message;
     exceptionEntity.FormattedMessage = ex.StackTrace;
     exceptionEntity.CreateOn         = BusinessLogic.ConvertToNullableDateTime(System.DateTime.Now.ToString(SystemInfo.DateTimeFormat));
     exceptionEntity.CreateUserId     = UserInfo.Id;
     exceptionEntity.CreateBy         = UserInfo.RealName;
     return(exceptionEntity);
 }
        private void ViewExceptionDetail()
        {
            if (dgvInfo.Rows.Count <= 0 || dgvInfo.CurrentCell == null)
            {
                return;
            }
            var exceptionEntity = new CiExceptionEntity
            {
                Message          = dgvInfo.CurrentRow.Cells[CiExceptionTable.FieldMessage].Value.ToString(),
                FormattedMessage = dgvInfo.CurrentRow.Cells[CiExceptionTable.FieldFormattedMessage].Value.ToString(),
                CreateOn         = BusinessLogic.ConvertToNullableDateTime(dgvInfo.CurrentRow.Cells[CiExceptionTable.FieldCreateOn].Value),
                CreateBy         = dgvInfo.CurrentRow.Cells[CiExceptionTable.FieldCreateBy].Value.ToString()
            };
            var frmException = new FrmException(exceptionEntity);

            frmException.ShowDialog();
        }
 public FrmException(Exception ex)
     : this()
 {
     this.exceptionEntity = this.ConvertException(ex);
 }
 public FrmException(CiExceptionEntity exceptionEntity)
     : this()
 {
     this.exceptionEntity = exceptionEntity;
 }