|
@ -14,17 +14,17 @@ |
|
|
@switch (Model.DisplayMethod) |
|
|
@switch (Model.DisplayMethod) |
|
|
{ |
|
|
{ |
|
|
case 1: |
|
|
case 1: |
|
|
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" }) |
|
|
|
|
|
|
|
|
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" }) |
|
|
break; |
|
|
break; |
|
|
case 2: |
|
|
case 2: |
|
|
@Html.TextArea(paramId) |
|
|
@Html.TextArea(paramId) |
|
|
break; |
|
|
break; |
|
|
case 3: |
|
|
case 3: |
|
|
/* validator bezar baraye numeric gereftan */ |
|
|
/* validator bezar baraye numeric gereftan */ |
|
|
@Html.TextBox(paramId, string.Empty, new { @class = "form-control" }) |
|
|
|
|
|
|
|
|
@Html.TextBox(paramId, Model.StringValue, new { @class = "form-control" }) |
|
|
break; |
|
|
break; |
|
|
case 4: |
|
|
case 4: |
|
|
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2"), "انتخاب کنید ...", new { @class = "form-control" }) |
|
|
|
|
|
|
|
|
@Html.DropDownList(paramId, new SelectList(Model.ParameterValues, "item1", "item2", Model.StringValue), "انتخاب کنید ...", new { @class = "form-control" }) |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
@MvcHtmlString.Empty |
|
|
@MvcHtmlString.Empty |
|
@ -34,7 +34,7 @@ |
|
|
<div class="col-md-3 pull-right"> |
|
|
<div class="col-md-3 pull-right"> |
|
|
@if (Model.HasMoscow) |
|
|
@if (Model.HasMoscow) |
|
|
{ |
|
|
{ |
|
|
@Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1", "2"), new { @class = "form-control" }) |
|
|
|
|
|
|
|
|
@Html.DropDownList(muscowId, new SelectList(MuSCoWList, "item2", "item1", string.IsNullOrWhiteSpace(Model.StringValue) ? "2" : Model.StringValue), new { @class = "form-control" }) |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |