E
engahmedbarbary
Guest
Problem
the following i collection I get all rows
ICollection<MachineInfo> lstMachineInfo = manipulator.GetLogData(objZkeeper, int.Parse(tbxMachineNumber.Text.Trim()));
I need to get lastrow or max row based on field
DateTimeRecord
public class MachineInfo
{
public int MachineNumber { get; set; }
public int IndRegID { get; set; }
public string DateTimeRecord { get; set; }
public DateTime DateOnlyRecord
{
get { return DateTime.Parse(DateTime.Parse(DateTimeRecord).ToString("yyyy-MM-dd")); }
}
public DateTime TimeOnlyRecord
{
get { return DateTime.Parse(DateTime.Parse(DateTimeRecord).ToString("hh:mm:ss tt")); }
}
}
so that how to get last row from machine
Continue reading...
the following i collection I get all rows
ICollection<MachineInfo> lstMachineInfo = manipulator.GetLogData(objZkeeper, int.Parse(tbxMachineNumber.Text.Trim()));
I need to get lastrow or max row based on field
DateTimeRecord
public class MachineInfo
{
public int MachineNumber { get; set; }
public int IndRegID { get; set; }
public string DateTimeRecord { get; set; }
public DateTime DateOnlyRecord
{
get { return DateTime.Parse(DateTime.Parse(DateTimeRecord).ToString("yyyy-MM-dd")); }
}
public DateTime TimeOnlyRecord
{
get { return DateTime.Parse(DateTime.Parse(DateTimeRecord).ToString("hh:mm:ss tt")); }
}
}
so that how to get last row from machine
Continue reading...