public FormComponentFieldManageModel() { _formComponentService = HostContainer.GetInstance <IFormComponentService>(); FormComponents = _formComponentService.GetFormComponents(); Attributes = new FormComponentFieldAttributeModel(); }
public FormComponentFieldManageModel(FormComponentField formComponentField) : this() { Id = formComponentField.Id; Name = formComponentField.Name; Attributes = SerializeUtilities.Deserialize <FormComponentFieldAttributeModel>(formComponentField.Attributes); FormComponentId = formComponentField.FormComponentId; FormComponents = _formComponentService.GetFormComponents(formComponentField.FormComponentId); RecordOrder = formComponentField.RecordOrder; }