Initiate InventoyTypes from a xlxs

Arrival mostly working
This commit is contained in:
2016-08-22 11:03:00 -04:00
parent 7e4d8a6d2a
commit 53ed1b3af9
40 changed files with 798 additions and 208 deletions
@@ -35,9 +35,12 @@ namespace InventoryTraker.Web.Helpers
/// Converts a lambda expression into a camel-cased AngularJS binding expression, ie:
/// {{vm.model.parentProperty.childProperty}}
/// </summary>
public IHtmlString BindingFor<TProp>(Expression<Func<TModel, TProp>> property)
public IHtmlString BindingFor<TProp>(Expression<Func<TModel, TProp>> property, string filter = "")
{
return MvcHtmlString.Create("{{" + ExpressionForInternal(property) + "}}");
return MvcHtmlString.Create("{{"
+ ExpressionForInternal(property)
+ (!string.IsNullOrEmpty(filter) ? " | " + filter : string.Empty)
+ "}}");
}
/// <summary>
@@ -120,7 +123,7 @@ namespace InventoryTraker.Web.Helpers
{
//input.Attr("type", "date");
input.Attr("bs-datepicker");
input.Attr("data-date-format", "dd/MM/yyyy");
input.Attr("data-date-format", "d/M/yyyy");
}
if (metadata.DataTypeName == "PhoneNumber")