@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(); recalculateMaterialValue_{0}(this);", id)
}
)
@Html.ValidationMessage(String.Format("CraftMaterials[{0}].MaterialId", id), new { @class = "text-danger" })
@if (Model != null && Model.Index > 0)
{
}