24 lines
473 B
JavaScript
24 lines
473 B
JavaScript
/*~[Describe=保存前校验方法;InputParam=无;OutPutParam=无;]~*/
|
|
function beforeSave(){
|
|
var transDate = getItemValue(0,getRow(),"TransDate");
|
|
if(transDate < businessDate){
|
|
alert("生效日期不能早于当前日期");
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
/*~[Describe=保存后续逻辑;InputParam=无;OutPutParam=无;]~*/
|
|
function afterSave(){
|
|
|
|
}
|
|
|
|
|
|
|
|
/*~[Describe=初始化;InputParam=无;OutPutParam=无;]~*/
|
|
function initRow(){
|
|
if (getRowCount(0)==0) {
|
|
as_add("myiframe0");//新增记录
|
|
}
|
|
} |