public DisbursementBE GetDisbursement() { if (myDisbursement == null) { myDisbursement = new DisbursementBE(this); } return(myDisbursement); }
private void DisbUpdate(bool encounteredError) { if (encounteredError) { fms.Clear(); throw new AtriumException(Resources.SRPDisbErr); } else { try { foreach (FileManager fmCur in fms.Values) { if (!fmCur.DB.HasErrors) { atriumBE.DisbursementBE disbBE = fmCur.GetDisbursement(); atriumBE.ActivityBE activityBE = fmCur.GetActivity(); BusinessProcess bp = fmCur.GetBP(); bp.AddForUpdate(activityBE); bp.AddForUpdate(disbBE); bp.Update(); } else { throw new AtriumException(Resources.SRPDisbErr); } } fms.Clear(); } catch (Exception x) { fms.Clear(); throw x; } } }