| | |
| | | { |
| | | public partial class EasyRptDesign : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | private string _reportType; |
| | | public EasyRptDesign(string reportType) |
| | | private string _rptParameter; |
| | | public EasyRptDesign(string rptParameter) |
| | | { |
| | | _reportType = reportType; |
| | | _rptParameter = rptParameter; |
| | | InitializeComponent(); |
| | | this.Text = (_reportType + "报表设计:请参考字段说明,z开头为主表,m开头为明细表"); |
| | | this.Text = (_rptParameter + "报表设计:设计时请参考字段说明,建议z开头为主表,m开头为明细表"); |
| | | Report report = new Report(); |
| | | DataTable RptRow = new DataTable(); |
| | | var _obj = new |
| | | { |
| | | reportType = _reportType, |
| | | rptParameter = _rptParameter, |
| | | }; |
| | | try |
| | | { |
| | |
| | | { |
| | | report.Load(Stream); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | report.Load((Application.StartupPath+@"\templeEasyCode\report\RptDemo.frx")); |
| | | } |
| | | var d = dy.colDec; |
| | | foreach (var a in d) |
| | | { |
| | | listBox1.Items.Add(a); |
| | | var d = dy.reportCol; |
| | | foreach (var a in d) |
| | | { |
| | | listBox1.Items.Add(a); |
| | | } |
| | | } |
| | | } |
| | | else |
| | |
| | | byte[] dddd = ms.ToArray(); |
| | | var _obj = new |
| | | { |
| | | rptType = _reportType, |
| | | rptParameter = _rptParameter, |
| | | rptData = dddd, |
| | | }; |
| | | try |