Add vehicle active/inactive state

This commit is contained in:
2015-06-18 10:59:07 -04:00
parent c7d7fa265e
commit 5d70617194
12 changed files with 155 additions and 19 deletions
+7 -1
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MileageTraker.Web.Attributes;
@@ -57,6 +58,11 @@ namespace MileageTraker.Web.Models
[FormatHint("mm/yy")]
public string PurDate { get; set; }
[DataType(DataType.DateTime)]
[DisplayFormat(NullDisplayText = "Currently Active", DataFormatString = @"{0:MM/dd/yyyy}")]
[FormatHint("mm/dd/yyyy")]
public DateTime? InactiveDate { get; set; }
[Required]
[Display(Name = "Tag#")]
[InputSize("small")]