611
社区成员
发帖
与我相关
我的任务
分享
事件名:item_changed
string ls_itemcode // 物品编码
string ls_itemowner // 所属部门
double ldb_change // 差值
long ll_findrow // 查找到的其它部门的行号
ls_itemcode = this.object.item_code[row]
ls_itemowner = this.object.item_owner[row]
ldb_change = double(data) - this.object.item_count[row] // 计算变更的值
ll_findrow = this.find("item_code = '" + ls_itemcode + "' and item_owner <> '" + ls_owner + "'")
if ll_findrow > 0 then
this.object.item_count[ll_findrow] = this.object.item_count[ll_findrow] - ldb_change
end if