Beispiel #1
0
        public FormDefaultComponentFieldManageModel()
        {
            _formDefaultComponentService = HostContainer.GetInstance <IFormDefaultComponentService>();

            FormDefaultComponents = _formDefaultComponentService.GetFormDefaultComponents();
            Attributes            = new FormComponentFieldAttributeModel();
        }
Beispiel #2
0
        public FormDefaultComponentFieldManageModel(FormDefaultComponentField formDefaultComponentField)
            : this()
        {
            Id         = formDefaultComponentField.Id;
            Name       = formDefaultComponentField.Name;
            Attributes = SerializeUtilities.Deserialize <FormComponentFieldAttributeModel>(formDefaultComponentField.Attributes);

            FormDefaultComponentId = formDefaultComponentField.FormDefaultComponentId;
            FormDefaultComponents  = _formDefaultComponentService.GetFormDefaultComponents(formDefaultComponentField.FormDefaultComponentId);

            RecordOrder = formDefaultComponentField.RecordOrder;
        }