防止删除已过账记录,删除按钮灰化
prodJournalTable_ds.allowDelete(!prodJournalTable.Posted);
从逻辑层面控制
public boolean validateDelete(){ boolean ret; ret = super(); ret = journalFormTable.datasourceValidateDeletePost(ret); // Added by Danze 2020/3/24 if(prodJournalTable.Posted){ error("Posted records cannot be deleted!"); return false; } // Added by Danze 2020/3/24 end return ret;}
留言评论
暂无留言