12345678910111213141516171819202122232425262728 |
- /**
- * Created by Tony on 2016/12/23.
- */
- let mongoose = require('mongoose');
- let dbm = require("../../../config/db/db_manager");
- let smartcostdb = dbm.getCfgConnection("Reports");
- let Schema = mongoose.Schema;
- let FontSchema = new Schema({
- "ID" : String,
- "Name" : String,
- "FontHeight" : String,
- "FontColor" : String,
- "FontBold" : String,
- "FontItalic" : String,
- "FontUnderline" : String,
- "FontStrikeOut" : String,
- "FontAngle" : String
- });
- let Font = smartcostdb.model("com_fonts", FontSchema, "com_fonts");
- let cfgCommonClass = require('./cfg_common');
- class FontDAO extends cfgCommonClass{
- constructor(){
- super(Font);
- };
- };
- module.exports = new FontDAO();
|