12345678910111213141516171819202122232425 |
- /**
- * 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 CtrlSchema = new Schema({
- "ID" : String,
- "Shrink" : String,
- "ShowZero" : String,
- "Horizon" : String,
- "Vertical" : String,
- "Wrap" : String
- });
- let Control = smartcostdb.model("com_ctrls", CtrlSchema, "com_ctrls");
- let cfgCommonClass = require('./cfg_common');
- class CtrlDAO extends cfgCommonClass{
- constructor(){
- super(Control);
- };
- };
- module.exports = new CtrlDAO();
|