Esempio n. 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);
        }
Esempio n. 2
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();
            }
        }
Esempio n. 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);
        }
Esempio n. 4
0
 public FrmException(Exception ex)
     : this()
 {
     this.ExceptionEntity = this.ConvertException(ex);
 }
Esempio n. 5
0
 public FrmException(BaseExceptionEntity exceptionEntity)
     : this()
 {
     this.ExceptionEntity = exceptionEntity;
 }