//D public ResultMessage Delete(int id) { if (_da.IsInuse(id)) { return(new ResultMessage(false, "\r\n已经在单据中使用,不能删除。\r\n可以设为'停用'")); } else if (_da.Delete(id) <= 0) { return(new ResultMessage(false, "记录不存在")); } return(new ResultMessage(true, string.Empty)); }
public decimal Delete(decimal id) { decimal ck = -1; try { SupplierDA _da = new SupplierDA(); ck = _da.Delete(id); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(ck); }