12345678910111213141516171819202122232425262728293031323334 |
- /**
- * Created by Tony on 2018/4/18.
- * 用户自定义报表输出格式(如字体,边距,竖线,窄体,小数补0等)
- */
- // import mongoose from 'mongoose';
- let mongoose = require("mongoose");
- let Schema = mongoose.Schema;
- let CustomizeCfgSchema = new Schema({
- userId: String,
- fonts: [{
- "ID" : String,
- "CfgDispName" : String,
- "Name" : String,
- "FontHeight" : Number,
- "FontColor" : String,
- "FontBold" : String,
- "FontItalic" : String,
- "FontUnderline" : String,
- "FontStrikeOut" : String,
- "FontAngle" : Number
- }
- ],
- margins: {
- Left: Number,
- Right: Number,
- Top: Number,
- Bottom: Number
- },
- showVerticalLine: Boolean,
- isNarrow: Boolean,
- fillZero: Boolean
- });
- mongoose.model("rpt_customize_cfg", CustomizeCfgSchema, "rpt_customize_cfg");
|