kpiplus
Version:
KPI+
1 lines • 395 B
JavaScript
var model=require("../../models/dmdvt"),controller=require("../../controllers/controller");module.exports=function(t){var d=this.contr=new controller(t,model,"dmdvt",{sort:{ma_dvt:1},unique:["ma_dvt"],codeSync:"list/dmdvt",keySync:"ma_dvt"});d.creating=function(t,d,e){d.ma_dvt||(d.ma_dvt=d.ten_dvt),e(null,d)},d.updating=function(t,d,e,n){d.ma_dvt||(d.ma_dvt=d.ten_dvt),n(null,d,e)},d.route()};