コード例 #1
0
ファイル: PersonLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(int BusinessEntityId, bool NameStyle, int EmailPromotion, Guid RowGuid, DateTime ModifiedDate, DateTime CreatedDate, string NationalityCode, string Gender, DateTime DateofBirth, string PersonImage)
 {
     PersonDAC personComponent = new PersonDAC();
     int id = 0;
     Common.BusinessEntityLogic.Insert(ref id, new Guid(), DateTime.Now);
     return personComponent.InsertNewPerson( id,  NameStyle,  EmailPromotion,  new Guid(),  DateTime.Now,  DateTime.Now,  NationalityCode,Gender,DateofBirth,PersonImage);
 }
コード例 #2
0
ファイル: PersonLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(ref int BusinessEntityId, bool NameStyle, int EmailPromotion, Guid RowGuid, DateTime ModifiedDate, DateTime CreatedDate, string NationalityCode, string Title, string FirstName, string MiddleName, string LastName, string DisplayName, string Suffix, string Gender, DateTime DateofBirth, string PersonImage)
 {
     PersonDAC personComponent = new PersonDAC();
      Common.BusinessEntityLogic.Insert(ref BusinessEntityId, new Guid(), DateTime.Now);
      personComponent.InsertNewPerson(BusinessEntityId, NameStyle, EmailPromotion, new Guid(), DateTime.Now, DateTime.Now, NationalityCode,Gender,DateofBirth,PersonImage);
      PersonLanguagesDAC plangComponent = new PersonLanguagesDAC();
      int plangId = 0;
      return plangComponent.InsertNewPersonLanguages(ref plangId, BusinessEntityId, Common.DefaultLanguage.LanguageId, Title, FirstName, MiddleName, LastName, Suffix, DisplayName);
 }
コード例 #3
0
ファイル: PersonLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(Person person)
 {
     PersonDAC personComponent = new PersonDAC();
     if (person.PersonDefaultLanguage != null)
     {
         int id = 0;
         Common.BusinessEntityLogic.Insert(ref id, new Guid(), DateTime.Now);
         personComponent.InsertNewPerson(id, person.NameStyle, person.EmailPromotion, new Guid(), DateTime.Now, DateTime.Now, person.NationalityCode,person.Gender,person.DateofBirth,person.PersonImage);
         Common.PersonLanguagesLogic.Insert(id, Common.DefaultLanguage.LanguageId, person.Title, person.FirstName, person.MiddleName, person.LastName, person.Suffix, person.DisplayName);
         person.BusinessEntityId = id;
         return true;
     }
     return false;
 }