dw_main.accepttext()
dw_item.accepttext()
if not(dw_main.modifiedcount()>0 or dw_main.deletedcount()>0 &
or dw_item.modifiedcount()>0 or dw_item.deletedcount()>0) then return//判断数据窗口中的数据是否被更改或删除
Net = MessageBox("提示", "是否真的保存?", Exclamation!, YESNO!, 2)
IF Net = 2 THEN return
r_rowcount=dw_item.rowcount()
//判断借贷金额是否相等
if dw_item.getitemdecimal(1,'jfhj') <> dw_item.getitemdecimal(1,'dfhj') then
messagebox('提示','借贷方金额不等,不能保存!')
return
end if
//删除科目论文范文http://www.chuibin.com/ 编码为空的所有行
for r_row=1 to r_rowcount
r_found = dw_item.Find("isnull(km_code)", r_found, r_rowcount)
if r_found>0 then
dw_item.deleterow(r_found)
end if
next
for r_row=1 to r_rowcount
r_found = dw_item.Find("km_code=''", r_found, r_rowcount)
if r_found>0 then
dw_item.deleterow(r_found)
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页