fixed Maersk Excel export (sorting and Remark)

This commit is contained in:
Daniel Schick 2023-04-06 09:58:51 +02:00
parent 3010d783f1
commit ae0f6cae51
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ namespace ENI2.Excel
ws.Cells[i + 2, 11] = md.ColK;
ws.Cells[i + 2, 12] = md.ColL;
ws.Cells[i + 2, 13] = md.ColM ;
// ws.Cells[i + 2, 14] = md.Remark;
ws.Cells[i + 2, 14] = md.Remark;
if((md.MessageCore != null) && (md.MessageCore.Cancelled ?? false))
{

View File

@ -258,9 +258,9 @@ namespace bsmd.database
/// </summary>
public int CompareTo(MaerskData other)
{
if (this.ColA == null) return 0;
if (other == null) return 0;
return this.ColA.CompareTo(other.ColA);
if (this.ETA == null) return 0;
if ((other == null) || (other.ETA == null)) return 0;
return this.ETA.Value.CompareTo(other.ETA.Value);
}
public bool Update(MaerskData md)