示例#1
0
 internal override void Load(XmlNode node)
 {
     base.Load(node);
     this.m_comment = Utils.GetXmlNodeAttribute(node, "Comment");
     this.m_type    = ((Utils.GetXmlNodeAttribute(node, "VarType") == "1") ? RdFieldType.gfNumeric : RdFieldType.gfString);
     this.m_formula = Utils.GetXmlNodeAttribute(node, "Formula");
 }
示例#2
0
        public void AddField(string fieldId, string fieldName, RdFieldType fieldType)
        {
            bool flag = string.IsNullOrEmpty(fieldId) || string.IsNullOrEmpty(fieldName) || string.IsNullOrEmpty(fieldId.Trim()) || string.IsNullOrEmpty(fieldName.Trim());

            if (!flag)
            {
                RdDataSetField dataSetField = new RdDataSetField();
                dataSetField.Id   = fieldId.Trim();
                dataSetField.Name = fieldName.Trim();
                dataSetField.Type = fieldType;
                bool flag2 = !this.m_fields.ContainsKey(dataSetField.Id);
                if (flag2)
                {
                    this.m_fieldCount++;
                    this.m_fields.Add(dataSetField.Id, dataSetField);
                }
            }
        }