ReportModel.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /// 创建人:LiuChengYi
  2. ///创建时间:2014/4/16
  3. ///创建用途:用作构建Rdlc数据源
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Data;
  9. namespace Models
  10. {
  11. public class ReportModel
  12. {
  13. //报表值
  14. private string num;
  15. public string Num
  16. {
  17. get { return num; }
  18. set { num = value; }
  19. }
  20. //报表类别
  21. private string category;
  22. public string Category
  23. {
  24. get { return category; }
  25. set { category = value; }
  26. }
  27. //报表序列
  28. private string sequence;
  29. public string Sequence
  30. {
  31. get { return sequence; }
  32. set { sequence = value; }
  33. }
  34. //public DataTable EntityTable()
  35. //{
  36. // DataTable dt = new DataTable("ReportDataSet");
  37. // DataColumn num = new DataColumn("Num",typeof(String));
  38. // DataColumn category = new DataColumn("Category", typeof(String));
  39. // DataColumn sequence = new DataColumn("Sequence", typeof(String));
  40. // dt.Columns.Add(num);
  41. // dt.Columns.Add(category);
  42. // dt.Columns.Add(sequence);
  43. // return dt;
  44. //}
  45. }
  46. }