@model GreenTree.Strohrmann.ERP.Web.Models.Business.CraftMaterialModel @{ var id = Model != null && !String.IsNullOrEmpty(Model.DictIdentifier) ? Model.DictIdentifier : Html.RandomId(); }
@if (Model == null || (Model != null && (!Model.Index.HasValue || Model.Index == 0))) { } @Html.SearchFor( m => m.MaterialId, m => m.MaterialText, Url.Action("Search", "Material"), new { name = String.Format("CraftMaterials[{0}].MaterialId", id) }, new { name = String.Format("CraftMaterials[{0}].MaterialText", id), onblur = String.Format("calculateMaterialAggregation(); getMaterialUnit_{0}(); recalculateMaterialValue_{0}(this);", id) } ) @Html.ValidationMessage(String.Format("CraftMaterials[{0}].MaterialId", id), new { @class = "text-danger" })
@if (Model == null || (Model != null && (!Model.Index.HasValue || Model.Index == 0))) { }
@(Model == null ? "Stck." : Model.Material.DefaultUnit.ShortName)
@Html.ValidationMessage(String.Format("CraftMaterials[{0}].Amount", id), new { @class = "text-danger" })
@if (Model == null || (Model != null && (!Model.Index.HasValue || Model.Index == 0))) { }
%
@Html.ValidationMessage(String.Format("CraftMaterials[{0}].CalculationFactor", id), new { @class = "text-danger" })
@if (Model == null || (Model != null && (!Model.Index.HasValue || Model.Index == 0))) { }
@CultureInfo.CurrentCulture.NumberFormat.CurrencySymbol
@Html.ValidationMessage(String.Format("CraftMaterials[{0}].Value", id), new { @class = "text-danger" })
@if (Model != null && Model.Index > 0) { }