private static void CreateLine(FormItem fi, StringBuilder sb) { sb.Append(fi.Name); sb.Append(";"); sb.Append(fi.CreatedBy.Name); sb.Append(";"); var c = SNC.Content.Create(fi); foreach (KeyValuePair<string, Field> kvp in c.Fields) { Field f = kvp.Value; if (!f.Name.StartsWith("#")) continue; foreach (string b in f.FieldSetting.Bindings) sb.Append(GetPropertyValue(fi[b])).Append(";"); } sb.Append("\n"); }
private static void CreateHeader(FormItem fi, StringBuilder sb) { sb.Append("Name;CreatedBy;"); var c = SNC.Content.Create(fi); foreach (KeyValuePair<string, Field> kvp in c.Fields) { Field f = kvp.Value; if (!f.Name.StartsWith("#")) continue; sb.Append(f.DisplayName); sb.Append(";"); } sb.Append("\n\n"); }