コード例 #1
0
ファイル: Investor.cs プロジェクト: jsingh/DeepBlue
        private static DeepBlue.Models.Entity.Investor GetInvestorFromBlue(C7_20tblLPPaymentInstructions blueInvestor)
        {
            DeepBlue.Models.Entity.Investor investor = new DeepBlue.Models.Entity.Investor();
            investor.InvestorName = blueInvestor.FullName;
            investor.Notes = blueInvestor.Comments;
            investor.Alias = blueInvestor.Nameidentifier;
            // WARNING Blue has the following properties, but DeepBlue doesnt have these
            // investor.Reference;

            // WARNING: DeepBlue has the following properties, but Blue doesnt have, so we are using the default values
            investor.IsDomestic = true;
            investor.InvestorEntityTypeID = Globals.DefaultInvestorEntityTypeID;
            investor.ResidencyState = Globals.DefaultStateID;
            investor.Social = Guid.NewGuid().ToString("N").Substring(0,25);
            investor.Notes = Globals.DefaultString;

            investor.TaxID = 0;
            investor.FirstName = string.Empty;
            investor.LastName = "n/a";
            investor.ManagerName = string.Empty;
            investor.MiddleName = string.Empty;
            investor.PrevInvestorID = 0;
            investor.CreatedBy = Globals.CurrentUser.UserID;
            investor.CreatedDate = DateTime.Now;
            investor.LastUpdatedBy = Globals.CurrentUser.UserID;
            investor.LastUpdatedDate = DateTime.Now;
            investor.EntityID = Globals.DefaultEntityID;
            investor.TaxExempt = false;

            // Attempt to create new investor address.
            // WARNING: In Blue, there is no concept of an Investor Address, so we are setting default values here
            InvestorAddress investorAddress = new InvestorAddress();
            investorAddress.CreatedBy = Globals.CurrentUser.UserID;
            investorAddress.CreatedDate = DateTime.Now;
            investorAddress.EntityID = Globals.DefaultEntityID;
            investorAddress.LastUpdatedBy = Globals.CurrentUser.UserID;
            investorAddress.LastUpdatedDate = DateTime.Now;
            investorAddress.Address = new Address();
            investorAddress.Address.Address1 = Globals.DefaultString;
            investorAddress.Address.AddressTypeID = (int)DeepBlue.Models.Admin.Enums.AddressType.Work;
            investorAddress.Address.City = Globals.DefaultCity;
            investorAddress.Address.Country = Globals.DefaultCountryID;
            investorAddress.Address.CreatedBy = Globals.CurrentUser.UserID;
            investorAddress.Address.CreatedDate = DateTime.Now;
            investorAddress.Address.LastUpdatedBy = Globals.CurrentUser.UserID;
            investorAddress.Address.LastUpdatedDate = DateTime.Now;
            investorAddress.Address.EntityID = Globals.DefaultEntityID;
            investorAddress.Address.PostalCode = Globals.DefaultZip;
            investorAddress.Address.State = Globals.DefaultStateID;
            investor.InvestorAddresses.Add(investorAddress);
            return investor;
        }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the C7_20tblLPPaymentInstructions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToC7_20tblLPPaymentInstructions(C7_20tblLPPaymentInstructions c7_20tblLPPaymentInstructions)
 {
     base.AddObject("C7_20tblLPPaymentInstructions", c7_20tblLPPaymentInstructions);
 }
コード例 #3
0
ファイル: Investor.cs プロジェクト: jsingh/DeepBlue
        private static CreateModel GetCreateModelFromBlue(C7_20tblLPPaymentInstructions investor)
        {
            CreateModel model = new CreateModel();
            model.InvestorName = investor.FullName;
            model.Notes = investor.Comments;
            model.Alias = investor.Nameidentifier;
            // WARNING Blue has the following properties, but DeepBlue doesnt have these
            // investor.Reference;

            // WARNING: DeepBlue has the following properties, but Blue doesnt have, so we are using the default values
            model.DomesticForeign = true;
            model.EntityType = Globals.DefaultInvestorEntityTypeID;
            model.StateOfResidency = Globals.DefaultStateID;
            model.SocialSecurityTaxId = "123-23-1234";
            model.Notes = Globals.DefaultString;

            #region Investor Address
            // WARNING: In Blue, there is no concept of an Investor Address, so we are setting default values here
            Address investorAddress = new Address();
            investorAddress.Address1 = string.Empty;
            investorAddress.City = Globals.DefaultCity;
            investorAddress.Country = Globals.DefaultCountryID;
            investorAddress.PostalCode = Globals.DefaultZip;
            investorAddress.State = Globals.DefaultStateID;
            #endregion
            return model;
        }
コード例 #4
0
 /// <summary>
 /// Create a new C7_20tblLPPaymentInstructions object.
 /// </summary>
 /// <param name="fullName">Initial value of the FullName property.</param>
 /// <param name="nameidentifier">Initial value of the Nameidentifier property.</param>
 /// <param name="sSMA_TimeStamp">Initial value of the SSMA_TimeStamp property.</param>
 public static C7_20tblLPPaymentInstructions CreateC7_20tblLPPaymentInstructions(global::System.String fullName, global::System.String nameidentifier, global::System.Byte[] sSMA_TimeStamp)
 {
     C7_20tblLPPaymentInstructions c7_20tblLPPaymentInstructions = new C7_20tblLPPaymentInstructions();
     c7_20tblLPPaymentInstructions.FullName = fullName;
     c7_20tblLPPaymentInstructions.Nameidentifier = nameidentifier;
     c7_20tblLPPaymentInstructions.SSMA_TimeStamp = sSMA_TimeStamp;
     return c7_20tblLPPaymentInstructions;
 }