暂时把下面的想法变成代码 其他更多更大的想法下一版本再说吧
navigator.pageInfo=grid.pageInfo
ok
PAGE_MSG_BEFORE ... PAGE_MSG_AFTER
ok
if (respone.recordType!=grid.dataset.recordType){....}
ok
load send data:
{
pageInfo : { },
filterInfo : [ {} ,{} ...],
sortInfo : [ {} ,{} ...],
parameter : { key1 : value ,key2 :value ...}
}
load receive data:
{
pageInfo : { },
data : [ ],
recordType : '',
exception : ''
}
save send data:
{
insertRecords : [],
updateRecords : [],
udeleteRecords : [],
nochangeRecords : [],
recordType : '',
parameter : { key1 : value ,key2 :value ... }
}
save receive data:
{
success : boolean,
succeedData : [],
failedData : [],
exception : ''
}
before/after + load/save
addParameter