Beispiel #1
0
        public ViewableFileCollection(SymanticForm form)
        {
            this.EncapsulatedForm = form;

            //pre-populate all the fields, along with any existing records
            FormfieldCollection allFields = new FormfieldCollection().Where(Formfield.Columns.Formid, this.EncapsulatedForm.Form.Id).Load();

            ///get the related fields
            this.relatedFields = new List <SymanticField>();
            for (int i = 0; i < allFields.Count; i++)
            {
                EditableField field = new EditableField(allFields[i]);
                this.relatedFields.Add(field);
            }
            /// Sort the fields in field order
            this.relatedFields = this.relatedFields.OrderBy(field => field.Metadata.FieldOrder).ToList();
        }
Beispiel #2
0
 public SymanticFile(Formfile formFile, SymanticForm form)
 {
     this.SymanticForm = form;
     this.FormFile = formFile;
 }
Beispiel #3
0
 public SymanticFile(Formfile formFile, SymanticForm form)
 {
     this.SymanticForm = form;
     this.FormFile     = formFile;
 }