コード例 #1
0
        public Container(IContainer container)
        {
            _context = new ChcDBEntities();

            this.ContainerID   = container.ContainerID;
            this.ContainerName = container.ContainerName;
        }
コード例 #2
0
        public Carrier(ICarrier carrier)
        {
            _context = new ChcDBEntities();

            this.CarrierID   = carrier.CarrierID;
            this.CarrierName = carrier.CarrierName;
        }
コード例 #3
0
        public DisposalLocation(IDisposalLocation container)
        {
            _context = new ChcDBEntities();

            this.DisposalLocationID   = container.DisposalLocationID;
            this.DisposalLocationName = container.DisposalLocationName;
        }
コード例 #4
0
        public ScheduleFrequency(IScheduleFrequency scheduleFrequency)
        {
            _context = new ChcDBEntities();

            this.ScheduleFrequencyID = scheduleFrequency.ScheduleFrequencyID;
            this.FrequencyName       = scheduleFrequency.FrequencyName;
        }
コード例 #5
0
ファイル: UserAudit.cs プロジェクト: Crisp771/Chc
 public UserAudit(IChcDBEntities context, IUserAudit userAudit)
 {
     _context = context;
     this.CarriedOutByUserID = userAudit.CarriedOutByUserID;
     this.Event         = userAudit.Event;
     this.EventDateTime = userAudit.EventDateTime;
     this.UserAuditID   = userAudit.UserAuditID;
     this.UserID        = userAudit.UserID;
 }
コード例 #6
0
 public SICLookup(ISICLookup siclookup)
 {
     _context           = new ChcDBEntities();
     this.Description   = siclookup.Description;
     this.Division      = siclookup.Division;
     this.IndustryGroup = siclookup.IndustryGroup;
     this.MajorGroup    = siclookup.MajorGroup;
     this.SIC           = siclookup.SIC;
 }
コード例 #7
0
ファイル: User.cs プロジェクト: Crisp771/Chc
        public User(IChcDBEntities context, IUser user)
        {
            _context = new ChcDBEntities();

            this.Password = user.Password;
            this.RoleID   = user.RoleID;
            this.UserID   = user.UserID;
            this.Username = user.Username;
            this.Deleted  = user.Deleted;
        }
コード例 #8
0
ファイル: SiteAudit.cs プロジェクト: Crisp771/Chc
        public SiteAudit(IChcDBEntities context, ISiteAudit siteAudit)
        {
            _context = context;

            this.Event         = siteAudit.Event;
            this.EventDateTime = siteAudit.EventDateTime;
            this.SiteAuditID   = siteAudit.SiteAuditID;
            this.SiteID        = siteAudit.SiteID;
            this.UserID        = siteAudit.UserID;
        }
コード例 #9
0
        public EWC(IEwc ewc)
        {
            _context = new ChcDBEntities();

            this.Chapter     = ewc.Chapter;
            this.SubChapter  = ewc.SubChapter;
            this.WasteType   = ewc.WasteType;
            this.Description = ewc.Description;
            this.IsHazardous = ewc.IsHazardous;
            this.EWCode      = ewc.EWCode;
        }
コード例 #10
0
ファイル: SiteAudit.cs プロジェクト: Crisp771/Chc
        public SiteAudit(int id)
        {
            _context = new ChcDBEntities();

            var siteAudit = _context.tblSiteAudits.Find(id);

            this.Event         = siteAudit.Event;
            this.EventDateTime = siteAudit.EventDateTime;
            this.SiteAuditID   = siteAudit.SiteAuditID;
            this.SiteID        = siteAudit.SiteID;
            this.UserID        = siteAudit.UserID;
        }
コード例 #11
0
ファイル: User.cs プロジェクト: Crisp771/Chc
        public User(IChcDBEntities context, int id)
        {
            _context = context;

            var user = _context.tblUsers.Find(id);

            this.Password = user.Password;
            this.RoleID   = user.RoleID;
            this.UserID   = user.UserID;
            this.Username = user.Username;
            this.Deleted  = user.Deleted;
        }
コード例 #12
0
        public SICLookup(int id)
        {
            _context = new ChcDBEntities();

            var siclookup = _context.tblSICLookups.Find(id);

            this.Description   = siclookup.Description;
            this.Division      = siclookup.Division;
            this.IndustryGroup = siclookup.IndustryGroup;
            this.MajorGroup    = siclookup.MajorGroup;
            this.SIC           = siclookup.SIC;
        }
コード例 #13
0
ファイル: Site.cs プロジェクト: Crisp771/Chc
        public Site(IChcDBEntities context, ISite site)
        {
            _context = context;

            this.ActionDetails  = site.ActionDetails;
            this.Address        = site.Address;
            this.ContactDetails = site.ContactDetails;
            this.SICcode        = site.SICcode;
            this.SiteID         = site.SiteID;
            this.SiteName       = site.SiteName;
            this.Deleted        = site.Deleted;
        }
コード例 #14
0
        public Booking(IChcDBEntities context, IBooking booking)
        {
            _context = context;

            this.BookingID   = booking.BookingID;
            this.Deleted     = booking.Deleted;
            this.InPrice     = booking.InPrice;
            this.OutPrice    = booking.OutPrice;
            this.ServiceDate = booking.ServiceDate;
            this.ServiceID   = booking.ServiceID;
            this.SiteID      = booking.SiteID;
        }
コード例 #15
0
ファイル: Site.cs プロジェクト: Crisp771/Chc
        public Site(int id)
        {
            _context = new ChcDBEntities();

            var site = _context.tblSites.Find(id);

            this.ActionDetails  = site.ActionDetails;
            this.Address        = site.Address;
            this.ContactDetails = site.ContactDetails;
            this.SICcode        = site.SICcode;
            this.SiteID         = site.SiteID;
            this.SiteName       = site.SiteName;
            this.Deleted        = site.Deleted;
        }
コード例 #16
0
ファイル: Service.cs プロジェクト: Crisp771/Chc
 public Service(IChcDBEntities context, IService service)
 {
     _context                 = context;
     this.ServiceID           = service.ServiceID;
     this.SiteID              = service.SiteID;
     this.StartDate           = service.StartDate;
     this.ContractNumber      = service.ContractNumber;
     this.ContainerID         = service.ContainerID;
     this.EWC                 = service.EWC;
     this.ScheduleFrequencyID = service.ScheduleFrequencyID;
     this.ScheduleDay         = service.ScheduleDay;
     this.InPrice             = service.InPrice;
     this.OutPrice            = service.OutPrice;
     this.CarrierID           = service.CarrierID;
     this.DisposalLocationID  = service.DisposalLocationID;
     this.IsRecurring         = service.IsRecurring;
 }
コード例 #17
0
ファイル: Service.cs プロジェクト: Crisp771/Chc
        public Service(int id)
        {
            _context = new ChcDBEntities();
            var service = _context.tblServices.Find(id);

            this.ServiceID           = service.ServiceID;
            this.SiteID              = service.SiteID;
            this.StartDate           = service.StartDate;
            this.ContractNumber      = service.ContractNumber;
            this.ContainerID         = service.ContainerID;
            this.EWC                 = service.EWC;
            this.ScheduleFrequencyID = service.ScheduleFrequencyID;
            this.ScheduleDay         = service.ScheduleDay;
            this.InPrice             = service.InPrice;
            this.OutPrice            = service.OutPrice;
            this.CarrierID           = service.CarrierID;
            this.DisposalLocationID  = service.DisposalLocationID;
            this.IsRecurring         = service.IsRecurring;
        }
コード例 #18
0
ファイル: User.cs プロジェクト: Crisp771/Chc
 public User()
 {
     _context = new ChcDBEntities();
 }
コード例 #19
0
ファイル: User.cs プロジェクト: Crisp771/Chc
 public User(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #20
0
 public DisposalLocation(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #21
0
ファイル: Service.cs プロジェクト: Crisp771/Chc
 public Service(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #22
0
ファイル: Site.cs プロジェクト: Crisp771/Chc
 public Site(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #23
0
 public DisposalLocation()
 {
     _context = new ChcDBEntities();
 }
コード例 #24
0
 public Container(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #25
0
ファイル: Site.cs プロジェクト: Crisp771/Chc
 public Site()
 {
     _context = new ChcDBEntities();
 }
コード例 #26
0
 public Carrier(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #27
0
 public Booking()
 {
     _context = new ChcDBEntities();
 }
コード例 #28
0
 public Booking(IChcDBEntities context)
 {
     _context = context;
 }
コード例 #29
0
 public Container()
 {
     _context = new ChcDBEntities();
 }
コード例 #30
0
ファイル: Service.cs プロジェクト: Crisp771/Chc
 public Service()
 {
     _context = new ChcDBEntities();
 }