public void actionRemove_actionPerformed(ActionEvent e) throws Exception {
if (!(confirmRemove()))
return;

String contractNo=this.prmtcontractNo.getValue().toString();
String sql="UPDATE T_DUC_BreedingContract SET CFBALANCE=0 WHERE fnumber ='"+contractNo+"'";
boolean exeSQL = SQLFacadeFactory.getRemoteInstance().exeSQL(sql);
IObjectPK pk = new ObjectUuidPK(this.editData.getId());
removeByPK(pk);

}
public void actionRemove_actionPerformed(ActionEvent e)
throws Exception
{

if (!(confirmRemove())) {
return;
}
List ids = getSelectedIdValues();
if ((ids != null) && (ids.size() > 0)) {
for (int i = 0; i < ids.size(); i++)
{
String id = (String)ids.get(i);
CheckOrderInfo info = CheckOrderFactory.getRemoteInstance().getCheckOrderInfo(new ObjectUuidPK(id));
if ((info != null) && ((info.getBillStatus().equals(BillStatus.processed)) || (info.getBillStatus().equals(BillStatus.approved))))
{
MsgBox.showInfo("单据编号为" + info.getNumber() + "的单据已审核,不允许删除!");
SysUtil.abort();
}else{
String sqlfx = " update T_IM_PurInWarehsEntry set CFISCHECKW='未检验' where FParentID =(select FID from T_IM_PurInWarehsBill where FNumber='" +
info.getPurchaseOrderNumber() + "') ";
boolean bool = SQLFacadeFactory.getRemoteInstance().exeSQL(sqlfx);
}
}
}

Remove();
saveCurrentLocation();
refresh(e);
restoreCurrentLocation();
}