Exemplo n.º 1
0
        public override string Get()
        {
            if (this.FieldConfig.IsSerial)
            {
                this.FieldConfig.IsDisabled = true;
            }


            if (string.IsNullOrWhiteSpace(this.FieldConfig.ColumnName))
            {
                return(string.Empty);
            }

            ILayout layout = string.IsNullOrWhiteSpace(this.FieldConfig.ParentTableColumn)
                ? ScrudTypes.GetLayout(this.FieldConfig.DataType, this.Config, this.FieldConfig)
                : new Select(this.Config, this.FieldConfig);

            FormField field = new FormField(this.Config, this.FieldConfig, layout.Get());

            return(field.Get());
        }