Clean up reports
This commit is contained in:
@@ -62,5 +62,28 @@ namespace MileageTraker.Web.ViewModels.Log
|
||||
!string.IsNullOrEmpty(EmployeeName) ||
|
||||
!string.IsNullOrEmpty(VehicleId);
|
||||
}
|
||||
|
||||
public LogQueryViewModel Clone()
|
||||
{
|
||||
return new LogQueryViewModel
|
||||
{
|
||||
EmployeeName = EmployeeName,
|
||||
LogType = LogType,
|
||||
Month = Month,
|
||||
MonthRange = MonthRange,
|
||||
VehicleId = VehicleId,
|
||||
Year = Year
|
||||
};
|
||||
}
|
||||
|
||||
public LogQueryViewModel CloneSet(string vehicleId = null, string employeeName = null)
|
||||
{
|
||||
var clone = Clone();
|
||||
if (vehicleId != null)
|
||||
clone.VehicleId = vehicleId;
|
||||
if (employeeName != null)
|
||||
clone.EmployeeName = employeeName;
|
||||
return clone;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user