|
@@ -59,7 +59,7 @@ app.get('/template/bills', function (req, res) {
|
|
|
return true;
|
|
|
}
|
|
|
if (checkAdmin(req.session.userAccount)) {
|
|
|
- res.render('templates/html/bills.html',
|
|
|
+ res.render('maintain/templates/html/bills.html',
|
|
|
{userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID});
|
|
|
} else {
|
|
@@ -81,7 +81,7 @@ var billsTemplateRouter = require('./modules/templates/routes/bills_template_rou
|
|
|
app.use('/template/bills/api', billsTemplateRouter);
|
|
|
|
|
|
app.get('/pm', function(req, res){
|
|
|
- res.render('pm/html/project-management.html',
|
|
|
+ res.render('building_saas/pm/html/project-management.html',
|
|
|
{userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID});
|
|
|
});
|
|
@@ -93,7 +93,7 @@ app.get('/main', function(req, res) {
|
|
|
return true;
|
|
|
}
|
|
|
if (checkProjectRight(req.session.userID, req.query.project)) {
|
|
|
- res.render('main/html/main.html',
|
|
|
+ res.render('building_saas/main/html/main.html',
|
|
|
{
|
|
|
userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID
|
|
@@ -118,7 +118,7 @@ app.get('/report', function(req, res) {
|
|
|
res.redirect('/login');
|
|
|
}
|
|
|
else {
|
|
|
- res.render('report/html/RptHome.html',
|
|
|
+ res.render('maintain/report/html/RptHome.html',
|
|
|
{userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID});
|
|
|
}
|
|
@@ -130,23 +130,23 @@ app.use("/report_api", rpt_Router);
|
|
|
//var rations_Router = require("./modules/rationLibEditor/routes/rationLibEditor_route");
|
|
|
//app.use("/rationLibEditor",rations_Router);
|
|
|
|
|
|
-var rationRepository_Router = require("./modules/rationRepository/routes/rationRepRoutes");
|
|
|
+var rationRepository_Router = require("./modules/ration_repository/routes/ration_rep_routes");
|
|
|
app.get('/rationRepository/main', function(req, res) {
|
|
|
- res.render('rationRepository/main.html',
|
|
|
+ res.render('maintain/ration_repository/main.html',
|
|
|
{
|
|
|
userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID
|
|
|
});
|
|
|
});
|
|
|
app.get('/rationRepository/ration', function(req, res) {
|
|
|
- res.render('rationRepository/dinge.html',
|
|
|
+ res.render('maintain/ration_repository/dinge.html',
|
|
|
{
|
|
|
userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID
|
|
|
});
|
|
|
});
|
|
|
app.get('/rationRepository/lmm', function(req, res) {
|
|
|
- res.render('rationRepository/gongliao.html',
|
|
|
+ res.render('maintain/ration_repository/gongliao.html',
|
|
|
{
|
|
|
userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID
|
|
@@ -154,7 +154,7 @@ app.get('/rationRepository/lmm', function(req, res) {
|
|
|
});
|
|
|
|
|
|
app.get('/rationRepository/coeList', function(req, res) {
|
|
|
- res.render('rationRepository/fuzhu.html',
|
|
|
+ res.render('maintain/ration_repository/fuzhu.html',
|
|
|
{
|
|
|
userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID
|
|
@@ -168,21 +168,21 @@ app.get("/stdBillsmain", function(req, res){
|
|
|
res.redirect('/login');
|
|
|
}
|
|
|
else {
|
|
|
- res.render("billsLib/html/main.html",
|
|
|
+ res.render("maintain/bills_lib/html/main.html",
|
|
|
{userAccount: req.session.userAccount,
|
|
|
userID: req.session.userID});
|
|
|
}
|
|
|
});
|
|
|
app.get("/stdBills", function(req, res){
|
|
|
- res.render("billsLib/html/qingdan.html");
|
|
|
+ res.render("maintain/bills_lib/html/qingdan.html");
|
|
|
});
|
|
|
app.get('/stdJobs', function(req, res){
|
|
|
- res.render('billsLib/html/neirong.html');
|
|
|
+ res.render('maintain/bills_lib/html/neirong.html');
|
|
|
});
|
|
|
app.get('/stdItems', function(req, res){
|
|
|
- res.render('billsLib/html/tezheng.html');
|
|
|
+ res.render('maintain/bills_lib/html/tezheng.html');
|
|
|
});
|
|
|
-var billsLibRouter = require("./modules/billsLib/billsLibRoutes/billsLibRoutes");
|
|
|
+var billsLibRouter = require("./modules/bills_lib/routes/bills_lib_routes");
|
|
|
app.use("/stdBillsEditor", billsLibRouter);
|
|
|
//-----------------
|
|
|
|