cfg_font.js 710 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Created by Tony on 2016/12/23.
  3. */
  4. let mongoose = require('mongoose');
  5. let dbm = require("../../../config/db/db_manager");
  6. let smartcostdb = dbm.getCfgConnection("Reports");
  7. let Schema = mongoose.Schema;
  8. let FontSchema = new Schema({
  9. "ID" : String,
  10. "Name" : String,
  11. "FontHeight" : String,
  12. "FontColor" : String,
  13. "FontBold" : String,
  14. "FontItalic" : String,
  15. "FontUnderline" : String,
  16. "FontStrikeOut" : String,
  17. "FontAngle" : String
  18. });
  19. let Font = smartcostdb.model("com_fonts", FontSchema, "com_fonts");
  20. let cfgCommonClass = require('./cfg_common');
  21. class FontDAO extends cfgCommonClass{
  22. constructor(){
  23. super(Font);
  24. };
  25. };
  26. module.exports = new FontDAO();