@using IwbZero.ToolCommon.StringModel @using Abp.Extensions @using ContractService.Views.Shared.Modals @model ContractService.Views.Shared.Modals.Input @{ string sm = Model.IsSm ? "input-group-sm" : "", search = string.IsNullOrEmpty(Model.SearchModalId) ? "" : "search-input", divId = string.IsNullOrEmpty(Model.DivId) ? "" : "id=\"" + Model.DivId + "\""; Model.Styles = Model.Styles.IsNullOrEmpty()|| !Model.Styles.Contains("width") ? "width:100%" : Model.Styles; }
@if (Model.InputType == InputTypes.List) { var ajax = ""; if (Model.IsAjaxSelect) { ajax += "data-table-key=\"" + Model.TableKey + "\""; ajax += "data-column-key=\"" + Model.ColumnKey + "\""; ajax += "data-take-count=\"" + Model.TakeCount + "\""; ajax += string.IsNullOrEmpty(Model.FunResultTemplateName) ? "" : "data-fun-result-template-name=\"" + Model.FunResultTemplateName + "\""; Model.Class += " ajax-select"; } var multiple = Model.IsMultiple ? "multiple" : ""; if (!string.IsNullOrEmpty(Model.SearchModalId)) {
@if (Model.Clear.NotEmpty()) {
}
} } else if (Model.InputType == InputTypes.Textarea) { } else if (Model.InputType == InputTypes.WangEditor) {
} else if (Model.InputType == InputTypes.File) {
@{ string infoId = Model.Id, nameId = Model.Id + "_name", extId = Model.Id + "_ext", isImage = "false", maxSize = ""; if (Model.FileOption != null) { infoId = Model.FileOption.FileInfoField; nameId = Model.FileOption.FileNameField; extId = Model.FileOption.FileExtField; isImage = Model.FileOption.IsImage ? "true" : "false"; maxSize = Model.FileOption.MaxSize + ""; } } @* ReSharper disable once Html.IdNotResolved *@
} else { if (!string.IsNullOrEmpty(Model.SearchModalId)) {
@if (Model.Clear.NotEmpty()) {
}
} }