UNPKG

kpiplus

Version:

KPI+

1 lines 463 B
var model=require("../../models/kbm_tkgtgt"),controller=require("../../controllers/controller");module.exports=function(t){this.contr=new controller(t,model,"kbmtkgtgt",{sort:{stt:1,ma_so:1},unique:["ma_so"],onCreating:function(t,o,n){"1"==o.cach_tinh?(o.ma_thue=[],o.ma_tc=[],o.tk=""):o.cong_thuc="",n(null,o)},onUpdating:function(t,o,n,c){"1"==o.cach_tinh&&(o.ma_thue=[],o.ma_tc=[],o.tk=""),"2"==o.cach_tinh&&(o.cong_thuc=""),c(null,o,n)}}),this.contr.route()};