Example #1
0
        //public ExcelMessage(int rowIndex, int columnIndex, string message = "", string detail = "", FileExcelTaskTypeInfo fileExcelTaskTypeInfo = null, ExcelMessageType excelMessageType = ExcelMessageType.Info)
        //{
        //    RowIndex = rowIndex;
        //    ColumnIndex = columnIndex;
        //    MessageType = excelMessageType;
        //    Message = message;
        //    Detail = detail;
        //    this.FileExcelTaskTypeInfo = fileExcelTaskTypeInfo;
        //}

        public ExcelMessage(int?rowIndex, int?columnIndex, string message = "", string detail = "", ExcelMessageType excelMessageType = ExcelMessageType.Info, FileExcelTaskTypeInfo fileExcelTaskTypeInfo = null)
        {
            RowIndex    = rowIndex.HasValue ? rowIndex.Value : 0;
            ColumnIndex = columnIndex.HasValue ? columnIndex.Value : 0;
            MessageType = excelMessageType;
            Message     = message;
            Detail      = detail;
            this.FileExcelTaskTypeInfo = fileExcelTaskTypeInfo;
        }
Example #2
0
 public ExcelMessage(string message, string detail = "", ExcelMessageType excelMessageType = ExcelMessageType.Info, FileExcelTaskTypeInfo fileExcelTaskTypeInfo = null)
     : this(rowIndex : 0, columnIndex : 0, message : message, detail : detail, fileExcelTaskTypeInfo : fileExcelTaskTypeInfo, excelMessageType : excelMessageType)
 {
     this.FileExcelTaskTypeInfo = fileExcelTaskTypeInfo;
 }
 public void AddRange(List <ExcelErrorMessage> errorMessages, ExcelMessageType excelMessageType, FileExcelTaskTypeInfo fileExcelTaskTypeInfo)
 {
     lock (lockObject)
     {
         foreach (ExcelErrorMessage errorMessage in errorMessages)
         {
             this.Add(errorMessage, excelMessageType, fileExcelTaskTypeInfo);
         }
     }
 }
 public void Add(ExcelErrorMessage excelErrorMessage, ExcelMessageType excelMessageType, FileExcelTaskTypeInfo fileExcelTaskTypeInfo)
 {
     lock (lockObject)
     {
         this.Add(new ExcelMessage(rowIndex: excelErrorMessage.RowIndex, columnIndex: excelErrorMessage.ColumnIndex, message: excelErrorMessage.Message, detail: excelErrorMessage.Detailed, excelMessageType: excelMessageType, fileExcelTaskTypeInfo: fileExcelTaskTypeInfo));
     }
 }
 //public void Add(int rowIndex, int columnIndex, string message, string detail, ExcelMessageType excelMessageType, FileExcelTaskTypeInfo fileExcelTaskTypeInfo)
 //{
 //    lock (lockObject)
 //    {
 //        this.Add(new ExcelMessage(rowIndex, columnIndex, message:message, detail, excelMessageType: excelMessageType, fileExcelTaskTypeInfo: fileExcelTaskTypeInfo));
 //    }
 //}
 public void Add(int?rowIndex, int?columnIndex, string message, string detail, ExcelMessageType excelMessageType, FileExcelTaskTypeInfo fileExcelTaskTypeInfo)
 {
     lock (lockObject)
     {
         this.Add(new ExcelMessage(rowIndex, columnIndex, message: message, detail, excelMessageType: excelMessageType, fileExcelTaskTypeInfo: fileExcelTaskTypeInfo));
     }
 }
 public void Add(string message, string detail, ExcelMessageType excelMessageType, FileExcelTaskTypeInfo fileExcelTaskTypeInfo)
 {
     lock (lockObject)
     {
         this.Add(new ExcelMessage(message: message, detail: detail, excelMessageType: excelMessageType, fileExcelTaskTypeInfo: fileExcelTaskTypeInfo));
     }
 }
 public TaskManagerInfoArg(FileExcelTaskTypeInfo fileExcelTaskTypeInfo, AggregateExcelMessage aggregateExcelMessage)
 {
     this.FileExcelTaskTypeInfo = fileExcelTaskTypeInfo;
     this.AggregateExcelMessage = aggregateExcelMessage;
 }