Update: Support Ajax and Form Post for Finance

This commit is contained in:
Gary Sharp
2013-03-26 14:42:58 +11:00
parent e422bf163d
commit 9eaae3193f
27 changed files with 495 additions and 368 deletions
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Disco.BI.Extensions;
namespace Disco.Web.Areas.API.Models.Job
{
@@ -10,5 +11,19 @@ namespace Disco.Web.Areas.API.Models.Job
public int Id { get; set; }
public string Result { get; set; }
public string UserDescription { get; set; }
public string DateTimeFull { get; set; }
public string DateTimeFriendly { get; set; }
public string DateTimeJavascript { get; set; }
public long DateTimeSortable { get; set; }
public _DateChangeModel SetDateTime(DateTime? date)
{
this.DateTimeFriendly = date.ToFuzzy(null);
this.DateTimeJavascript = date.ToJavascriptDateTime();
this.DateTimeSortable = date.ToSortableDateTime();
this.DateTimeFull = date.ToFullDateTime(null);
return this;
}
}
}