/// <summary> /// Deprecated Method for adding a new object to the C2_10tblDistFromAmberbrookCash EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToC2_10tblDistFromAmberbrookCash(C2_10tblDistFromAmberbrookCash c2_10tblDistFromAmberbrookCash) { base.AddObject("C2_10tblDistFromAmberbrookCash", c2_10tblDistFromAmberbrookCash); }
private static CapitalDistribution GetCapitalDistributionFromBlue(C2_10tblDistFromAmberbrookCash blueCapitalDist, BlueEntities context, CookieCollection cookies, out string resp) { resp = string.Empty; CapitalDistribution deepBlueCD = new CapitalDistribution(); deepBlueCD.CapitalDistributionDate = blueCapitalDist.NoticeDate.Date; deepBlueCD.CapitalDistributionDueDate = blueCapitalDist.EffectiveDate.Date; deepBlueCD.DistributionAmount = (decimal)blueCapitalDist.TotalCashDistribution; deepBlueCD.IsManual = true; if (blueCapitalDist.TotalCarry.HasValue) { deepBlueCD.PreferredReturn = (decimal)blueCapitalDist.TotalCarry.Value; } if (blueCapitalDist.TotalRepayment.HasValue) { deepBlueCD.ReturnManagementFees = (decimal)blueCapitalDist.TotalRepayment.Value; } // Distribution#.. The server automatically assign this.. so we dont need to provider this // WARNING: The following fields are present in DeepBlue but are absent from blue //deepBlueCD.CapitalDistributionProfit; //deepBlueCD.CapitalReturn; //deepBlueCD.LPProfits; //deepBlueCD.PreferredCatchUp; //deepBlueCD.Profits; //deepBlueCD.ReturnFundExpenses; // The following fields is present in blue but absent from DeepBlue //blueCapitalDist.TotalUnusedCapital; int? fundId = GetFundID(blueCapitalDist.AmberbrookFundNo, context, cookies); if (fundId.HasValue) { deepBlueCD.FundID = fundId.Value; } else { resp = "cannot find fund with AmberbrookFundNo: " + blueCapitalDist.AmberbrookFundNo; } return deepBlueCD; }
/// <summary> /// Create a new C2_10tblDistFromAmberbrookCash object. /// </summary> /// <param name="transactionID">Initial value of the TransactionID property.</param> /// <param name="noticeDate">Initial value of the NoticeDate property.</param> /// <param name="amberbrookFundNo">Initial value of the AmberbrookFundNo property.</param> /// <param name="effectiveDate">Initial value of the EffectiveDate property.</param> /// <param name="totalCashDistribution">Initial value of the TotalCashDistribution property.</param> /// <param name="sSMA_TimeStamp">Initial value of the SSMA_TimeStamp property.</param> public static C2_10tblDistFromAmberbrookCash CreateC2_10tblDistFromAmberbrookCash(global::System.Int32 transactionID, global::System.DateTime noticeDate, global::System.String amberbrookFundNo, global::System.DateTime effectiveDate, global::System.Double totalCashDistribution, global::System.Byte[] sSMA_TimeStamp) { C2_10tblDistFromAmberbrookCash c2_10tblDistFromAmberbrookCash = new C2_10tblDistFromAmberbrookCash(); c2_10tblDistFromAmberbrookCash.TransactionID = transactionID; c2_10tblDistFromAmberbrookCash.NoticeDate = noticeDate; c2_10tblDistFromAmberbrookCash.AmberbrookFundNo = amberbrookFundNo; c2_10tblDistFromAmberbrookCash.EffectiveDate = effectiveDate; c2_10tblDistFromAmberbrookCash.TotalCashDistribution = totalCashDistribution; c2_10tblDistFromAmberbrookCash.SSMA_TimeStamp = sSMA_TimeStamp; return c2_10tblDistFromAmberbrookCash; }