You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

4 years ago
define(function (require, exports, module) {
var FUNCODE = 'FRD004';
var SQLS = {
FUNCOPBYTPL: '000001',
TEMPLATELIST: '000002',
FUNCOBJBYTPL: '000003',
FUNCRESBYTPL: '000004'
};
var utils = {
getFuncOpByTpl: function (tplCode, callback) {
var queryParams = {
FuncCode: tplCode
};
Store.bizDao.getData(SQLS.FUNCOPBYTPL, queryParams, function (isOk, data) {
if (isOk && callback) {
callback(data);
}
}, FUNCODE);
},
getFuncObjByTpl: function (tplCode, callback) {
var queryParams = {
FuncCode: tplCode
};
Store.bizDao.getData(SQLS.FUNCOBJBYTPL, queryParams, function (isOk, data) {
if (isOk && callback) {
callback(data);
}
}, FUNCODE);
},
getFuncResByTpl: function (tplCode, callback) {
var queryParams = {
FuncCode: tplCode
};
Store.bizDao.getData(SQLS.FUNCRESBYTPL, queryParams, function (isOk, data) {
if (isOk && callback) {
callback(data);
}
}, FUNCODE);
},
getTemplateList: function (callback) {
Store.bizDao.getData(SQLS.TEMPLATELIST, null, function (isOk, data) {
if (isOk && callback) {
callback(data);
}
}, FUNCODE);
}
}
return utils;
})