记账需求脚本
同一般的主题域的脚本,参数和结构(param,result)为ObjParamIds 类型的同一个实例对象。
<SCRIPT>
<PROCESS>
记账脚本
<BEF>
script.returnValue = 1;
script.message = '前数据查询' + request.info().operation + request.db().getValue('select count(*) from t_chrk where chrkid in ( ' + param.idSQLStr() + ') ',null) .toString();
</BEF>
<AFT>
script.returnValue = 1;
script.message = '后数据查询' + request.info().operation + request.db().getValue('select count(*) from t_chrk where chrkid in ( ' + param.idSQLStr() + ') ',null) .toString();
</AFT>
</PROCESS>
<UNPROCESS>
撤销记账脚本
<BEF>
script.returnValue = 1;
script.message = '数据查询' + request.info().operation + request.db().getValue('select count(*) from t_chrk where chrkid in ( ' + param.idSQLStr() + ') ',null) .toString();
</BEF>
<AFT>
script.returnValue = -1;
script.message = '后数据查询' + request.info().operation + request.db().getValue('select count(*) from t_chrk where chrkid in ( ' + param.idSQLStr() + ') ',null) .toString();
</AFT>
</UNPROCESS>
</SCRIPT>
Created with the Personal Edition of HelpNDoc: Easily create EBooks