// @Bind #updateTrade.beforeExecute
!function(self, arg, dsTrade) {
var currentData = dsTrade.get("data:#");
if (currentData != undefined) {
var context = {};
//校验时传入一个context 打印的时候能把校验出错的字段打印出来
var state = currentData.validate({context: context});
alert("validateRes:"+context);
console.log(context);
if (state != 'ok') {
arg.processDefault = false;
}
}
};