예제 #1
0
        public NameValueCollection ToQueryString()
        {
            NameValueCollection tor = DocumentInfo.ToQueryString();

            tor.Add("DocType", DocType);
            tor.Add("Description", Description);
            tor.Add("IdOwner", IdOwner);
            tor.Add("Mandatory", Mandatory.ToString());
            tor.Add("MandatorySelectable", MandatorySelectable.ToString());
            tor.Add("GroupCode", GroupCode);
            tor.Add("EffectiveSigner", EffectiveSigner);
            return(tor);
        }
        public XmlNode ToXml(XmlDocument xd)
        {
            XmlNode f = umbraco.xmlHelper.addTextNode(xd, "field", string.Empty);

            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "id", Id.ToString()));
            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "caption", Caption));
            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "sortorder", SortOrder.ToString()));

            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "mandatory", Mandatory.ToString()));
            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "form", Form.ToString()));
            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "fieldset", FieldSet.ToString()));
            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "regex", RegEx));

            f.AppendChild(umbraco.xmlHelper.addTextNode(xd, "fieldtype", FieldType.Id.ToString()));

            return(f);
        }