📄 rdlcnamespace.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace MSReport
{
public class RDLCNamespace:RDLCElement,IRDLCElement
{
public RDLCNamespace()
{
}
public string NamespaceName
{
get
{
return _NamespaceName;
}
set
{
_NamespaceName = value;
}
}
string _NamespaceName = "";
public SortedList<string, RDLCClass> ClassList = new SortedList<string, RDLCClass>();
public override string Create(XmlNode xnode)
{
RDLCClass rclass = new RDLCClass();;
this.ActXNode = xnode;
if (xnode.Name == @"ReportItems")
{
string xx = "xnode.Name";
}
if (ClassList.ContainsKey(this.GetName(xnode.Name)))
{
rclass = ClassList[this.GetName(xnode.Name)];
}
rclass.nsmgr = this.nsmgr;
string ns = @"
namespace " + _NamespaceName + @"
{
" + rclass.Create(xnode) + @"
}";
if (!ClassList.ContainsKey(this.GetName(xnode.Name)))
{
ClassList.Add(this.GetName(xnode.Name), rclass);
}
return ns;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -