| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- /**
 
-  * Created by Tony on 2017/7/24.
 
-  */
 
- let mongoose = require('mongoose');
 
- let dbm = require("../../../config/db/db_manager");
 
- let smartcostdb = dbm.getCfgConnection("scConstruct");
 
- let Schema = mongoose.Schema;
 
- let rptTplPrjSchema = new Schema({
 
-     "ID": Number,
 
-     "ParentID": Number,
 
-     "NextSiblingID": Number,
 
-     "name": String,         //项目名称
 
-     "location": String,     //工程地点
 
-     "constructor": String,  //建设单位
 
-     "supervisor": String,   //监理
 
-     "auditor": String       //审核
 
- });
 
- let rptTplBillsSchema = new Schema({
 
- });
 
- let rptTplRationSchema = new Schema({
 
- });
 
- let tplPrjData = smartcostdb.model("temp_tpl_data", rptTplPrjSchema, "projects");
 
- let tplBillsData = smartcostdb.model("temp_tpl_data", rptTplBillsSchema, "bills");
 
- let tplRationData = smartcostdb.model("temp_tpl_data", rptTplRationSchema, "ration");
 
- module.exports = {
 
-     prjMdl: tplPrjData,
 
-     billsMdl: tplBillsData,
 
-     rationMdl: tplRationData
 
- };
 
 
  |