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; })