コード例 #1
0
        public bool Insert(ref int ConferenceId, int SiteId, string ConferenceName, string ConferenceLogo, DateTime StartDate, DateTime EndDate, bool IsActive, string Location, string LocationName, string LocationLogo, decimal LocationLongitude, decimal LocationLatitude, string ConferenceDomain, string ConferenceCode, string ConferenceAlias, int ConferenceVenueID, bool IsDefault, DateTime AbstractSubmissionStartDate, DateTime AbstractSubmissionEndDate, int AbstractSubmissionEndMessagePageID, int AbstractSubmissionNotStartedPageID)
        {
            ConferencesDAC conferencesComponent = new ConferencesDAC();
            SiteLogic      siteLogic            = new ContentManagement.SiteLogic();
            Site           site = new Site()
            {
                Name = ConferenceName, IsActive = true
            };

            siteLogic.Insert(site);
            SiteId = site.SiteId;
            return(conferencesComponent.InsertNewConferences(ref ConferenceId, SiteId, ConferenceName, ConferenceLogo, StartDate, EndDate, IsActive, Location, LocationName, LocationLogo, LocationLongitude, LocationLatitude, ConferenceDomain, ConferenceCode, ConferenceAlias, ConferenceVenueID, IsDefault, AbstractSubmissionStartDate, AbstractSubmissionEndDate, AbstractSubmissionEndMessagePageID, AbstractSubmissionNotStartedPageID));
        }
コード例 #2
0
        public bool Insert(Conferences conferences)
        {
            int            autonumber           = 0;
            ConferencesDAC conferencesComponent = new ConferencesDAC();
            SiteLogic      siteLogic            = new ContentManagement.SiteLogic();
            Site           site = new Site()
            {
                Name = conferences.ConferenceName, IsActive = true
            };

            siteLogic.Insert(site);
            conferences.SiteId = site.SiteId;
            bool endedSuccessfuly = conferencesComponent.InsertNewConferences(ref autonumber, conferences.SiteId, conferences.ConferenceName, conferences.ConferenceLogo, conferences.StartDate, conferences.EndDate, conferences.IsActive, conferences.Location, conferences.LocationName, conferences.LocationLogo, conferences.LocationLongitude, conferences.LocationLatitude, conferences.ConferenceDomain, conferences.ConferenceCode, conferences.ConferenceAlias, conferences.ConferenceVenueID, conferences.IsDefault, conferences.AbstractSubmissionStartDate, conferences.AbstractSubmissionEndDate, conferences.AbstractSubmissionEndMessagePageID, conferences.AbstractSubmissionNotStartedPageID);

            if (endedSuccessfuly)
            {
                conferences.ConferenceId = autonumber;
            }
            return(endedSuccessfuly);
        }
コード例 #3
0
ファイル: ConferencesLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(int SiteId, string ConferenceName, string ConferenceLogo, DateTime StartDate, DateTime EndDate, bool IsActive, string Location, string LocationName, string LocationLogo, decimal LocationLongitude, decimal LocationLatitude, string ConferenceDomain, string ConferenceCode, string ConferenceAlias, int ConferenceVenueID, bool IsDefault, DateTime AbstractSubmissionStartDate, DateTime AbstractSubmissionEndDate, int AbstractSubmissionEndMessagePageID, int AbstractSubmissionNotStartedPageID)
 {
     ConferencesDAC conferencesComponent = new ConferencesDAC();
     int ConferenceId = 0;
     SiteLogic siteLogic = new ContentManagement.SiteLogic();
     Site site = new Site() { Name = ConferenceName, IsActive = true };
     siteLogic.Insert(site);
     SiteId = site.SiteId;
     return conferencesComponent.InsertNewConferences(ref ConferenceId, SiteId, ConferenceName, ConferenceLogo, StartDate, EndDate, IsActive, Location, LocationName, LocationLogo, LocationLongitude, LocationLatitude, ConferenceDomain, ConferenceCode,ConferenceAlias,ConferenceVenueID,IsDefault,AbstractSubmissionStartDate,AbstractSubmissionEndDate,AbstractSubmissionEndMessagePageID,AbstractSubmissionNotStartedPageID);
 }
コード例 #4
0
ファイル: ConferencesLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(Conferences conferences)
 {
     int autonumber = 0;
     ConferencesDAC conferencesComponent = new ConferencesDAC();
     SiteLogic siteLogic = new ContentManagement.SiteLogic();
     Site site = new Site() { Name = conferences.ConferenceName, IsActive = true };
     siteLogic.Insert(site);
     conferences.SiteId = site.SiteId;
     bool endedSuccessfuly = conferencesComponent.InsertNewConferences(ref autonumber, conferences.SiteId, conferences.ConferenceName, conferences.ConferenceLogo, conferences.StartDate, conferences.EndDate, conferences.IsActive, conferences.Location, conferences.LocationName, conferences.LocationLogo, conferences.LocationLongitude, conferences.LocationLatitude, conferences.ConferenceDomain, conferences.ConferenceCode,conferences.ConferenceAlias,conferences.ConferenceVenueID,conferences.IsDefault,conferences.AbstractSubmissionStartDate,conferences.AbstractSubmissionEndDate,conferences.AbstractSubmissionEndMessagePageID,conferences.AbstractSubmissionNotStartedPageID);
     if (endedSuccessfuly)
     {
         conferences.ConferenceId = autonumber;
     }
     return endedSuccessfuly;
 }