rpt_customize_cfg.js 857 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Created by Tony on 2018/4/18.
  3. * 用户自定义报表输出格式(如字体,边距,竖线,窄体,小数补0等)
  4. */
  5. const mongoose = require('mongoose');
  6. let Schema = mongoose.Schema;
  7. let CustomizeCfgSchema = new Schema({
  8. userId: String,
  9. fonts: [{
  10. "ID" : String,
  11. "CfgDispName" : String,
  12. "Name" : String,
  13. "FontHeight" : Number,
  14. "FontColor" : String,
  15. "FontBold" : String,
  16. "FontItalic" : String,
  17. "FontUnderline" : String,
  18. "FontStrikeOut" : String,
  19. "FontAngle" : Number
  20. }
  21. ],
  22. margins: {
  23. Left: Number,
  24. Right: Number,
  25. Top: Number,
  26. Bottom: Number
  27. },
  28. showVerticalLine: Boolean,
  29. isNarrow: Boolean,
  30. fillZero: Boolean
  31. });
  32. mongoose.model("rpt_customize_cfg", CustomizeCfgSchema, "rpt_customize_cfg");