Exemplo n.º 1
0
        private void UpdateAttributes(XmlWriter w)
        {
            UpdateIdValues();

            w.WriteAttr("Id", m.Selected.Id.ToString());
            w.WriteAttr("Order", m.Selected.Order.ToString());
            w.WriteAttr("Field", m.ConditionName);
            w.WriteAttr("Comparison", m.Comparison, "AllTrue");
            w.WriteAttr("Description", m.Description, "scratchpad");
            w.WriteAttr("PreviousName", m.Description, "scratchpad");
            w.WriteAttr("TextValue", m.TextValue);
            w.WriteAttr("DateValue", m.DateValue);
            w.WriteAttr("CodeIdValue", m.CodeIdValue);
            w.WriteAttr("StartDate", m.StartDate);
            w.WriteAttr("EndDate", m.EndDate);
            w.WriteAttr("Program", m.Program);
            w.WriteAttr("Division", m.Division);
            w.WriteAttr("Organization", m.Organization);
            w.WriteAttr("OrgType", m.OrgType);
            w.WriteAttr("Days", m.Days);
            w.WriteAttr("Quarters", m.Quarters);
            w.WriteAttr("Tags", m.Tags);
            w.WriteAttr("Schedule", m.Schedule);
            w.WriteAttr("Campus", m.Campus);
            if (m.ConditionName == "FamilyHasChildrenAged")
                w.WriteAttr("Age", m.Age ?? 0, 12);
            w.WriteAttr("SavedQueryIdDesc", m.SavedQuery, "scratchpad");
            w.WriteAttr("OnlineReg", m.OnlineReg);
            w.WriteAttr("OrgStatus", m.OrgStatus);
            w.WriteAttr("OrgType2", m.OrgType2);
            w.WriteAttr("OrgName", m.OrgName);
        }
Exemplo n.º 2
0
        private void WriteAttributes(XmlWriter w, bool newGuids = false, bool noGuids = false)
        {
            w.WriteAttr("Id", newGuids
                ? Guid.NewGuid().ToString() : Id.ToString());

            w.WriteAttr("Order", Order.ToString());
            w.WriteAttr("Field", ConditionName);
            w.WriteAttr("Comparison", Comparison, "AllTrue");
            w.WriteAttr("Description", Description, "scratchpad");
            w.WriteAttr("PreviousName", Description, "scratchpad");
            w.WriteAttr("TextValue", TextValue);
            w.WriteAttr("DateValue", DateValue);
            w.WriteAttr("CodeIdValue", CodeIdValue);
            w.WriteAttr("StartDate", StartDate);
            w.WriteAttr("EndDate", EndDate);
            w.WriteAttr("Program", Program);
            w.WriteAttr("Ministry", Ministry);
            w.WriteAttr("Division", Division);
            w.WriteAttr("Organization", Organization);
            w.WriteAttr("OrgType", OrgType);
            w.WriteAttr("Days", Days);
            w.WriteAttr("Quarters", Quarters);
            w.WriteAttr("Tags", Tags);
            w.WriteAttr("Schedule", Schedule);
            w.WriteAttr("Campus", Campus);
            if (ConditionName == "FamilyHasChildrenAged")
                w.WriteAttr("Age", Age ?? 0, 12);
            w.WriteAttr("SavedQueryIdDesc", SavedQuery, "scratchpad");
            w.WriteAttr("OnlineReg", OnlineReg);
            w.WriteAttr("OrgStatus", OrgStatus);
            w.WriteAttr("OrgType2", OrgType2);
            w.WriteAttr("OrgName", OrgName);
        }