|
Model.prototype.mainDataBeforeSave = function(event) {
var data = this.comp('mainData');
data.setValue('fSFZHM', data.getValue('fSFZHM').toLowerCase());
var sfz = data.getValue('fSFZHM');
var pxxm = data.getValue('fPXXM');
biz.Request.sendBizRequest({
"context" : this.getContext(),
"dataType" : "application/json",
"action" : "checksfzAction",
"parameters" : {
"pxxm" : pxxm,
"sfz" : sfz
},
"callback" : function(result) {
alert(result.response);
debugger;
event.cancel = true;
}
})
// if (rs == 1) {
// alert("本身份证号已报名过这期培训,不允许重复报名!");
// event.cancel = true;
// }
//alert("sadf2");
event.cancel = true;
};
data保存前查重后如何取消保存?不重复又如何正常保存? 自定义action执行正常,有重复返回1,无返回0
|
|