rpt_customize_cfg.js 891 B

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