本文解答了关于《江西二级建造师增项详情信息》相关内容,同时关于1、江西二建增项报名,2、江西二级建造师增项注册,3、江西省 二级建造师,4、江西省二建,5、江西二级建造师信息网,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
二级建造师增项详情信息
exports.editEjjsAddlistdo = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editAddlistdoSqlParams([fields.xuanxiang2,fields.grade2,fields.bili2,fields.desc2,fields.addlistid],function(result){
res.json({status:200,msg:result});
});
});
};
//保存修改三级建造师增项详情信息
exports.editSjjsAddlistdo = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editAddlistdoSqlParams([fields.xuanxiang3,fields.grade3,fields.bili3,fields.desc3,fields.addlistid],function(result){
res.json({status:200,msg:result});
});
});
};
//查询所有的组状态
exports.queryGroupById = function(req,res){
dbHelper.queryGroupById(function(result){
res.json({status:200,msg:result});
});
};
//保存新建组
exports.addGroup = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.addGroup([fields.groupname],function(result){
res.json({status:200,msg:result});
});
});
};
//保存修改“我的考试组”
exports.editGroupById = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editGroupById([fields.groupname,fields.groupid],function(result){
res.json({status:200,msg:result});
});
});
};
//查询单一组状态
exports.queryGroupSingle = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.queryGroupSingle(fields.groupid,function(result){
res.json({status:200,msg:result});
});
});
};
//添加考试科目
exports.addKemu = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.addKemu([fields.kemuname,fields.groupid,fields.bili],function(result){
res.json({status:200,msg:result});
});
});
};
//更新考试科目
exports.editKemu = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editKemu([fields.kemuname,fields.bili,fields.id],function(result){
res.json({status:200,msg:result});
});
});
};
//查询考试科目信息
exports.queryKemuListCount = function(req,res){
dbHelper.queryKemuListCount(function(result){
res.json({status:200,msg:result});
});
};
//查询考试科目信息
exports.queryKemuList = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.queryKemuList(fields.groupid,function(result){
res.json({status:200,msg:result});
});
});
};
//显示考试科目详情
exports.showKemuDetail = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
//查询科目
dbHelper.queryKemuById(fields.kId,function(result){
console.log(result);
//查询科目大题
dbHelper.queryKemuParentById(fields.kId,function(result1){
console.log(result1);
//查询所有子题
dbHelper.queryKemuChildById(fields.kId,function(result2){
res.json({status:200,msg1:result,msg2:result1,msg3:result2});
//console.log(result2);
});
});
});
});
};
//显示父题详情
exports.showKemuParentById = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
//查询科目大题
dbHelper.queryKemuParentById2(fields.dId,function(result1){
console.log(result1);
//同时去查询子试题答案
dbHelper.queryKemuChildById2(fields.dId,function(result2){
res.json({status:200,msg:result1,msg1:result2});
//console.log(result2);
});
});
});
};
//更新考试科目大题
exports.editKemuParent = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editKemuParent([fields.title,fields.bigbili,fields.bigid],function(result){
res.json({status:200,msg:result});
});
});
};
//更新考试科目子题
exports.editKemuChild = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.editKemuChild([fields.title,fields.bigdesc,fields.bili,fields.bigid],function(result){
res.json({status:200,msg:result});
});
});
};
//增添考试科目子题
exports.addKemuChild = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
dbHelper.addKemuChild([fields.parentid,fields.title,fields.bigdesc,fields.bili],function(result){
res.json({status:200,msg:result});
});
});
};
//查询考试科目题目
exports.queryKemuxuanzeList = function(req,res){
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields);
//查询科目题目
dbHelper.queryKemuxuanzeList(fields.subjectId,function(result){
res.json({status:200,msg:result});
});
});
};
总结:以上是编辑:【荞】整理及AI智能原创关于《江西二级建造师增项详情信息
》优质内容解答希望能帮助到您。