public Department(DateTime begin, DateTime end, long sectorID, long parentID, long storeID) { _begin = begin; _end = end; _parentID = parentID; _sectorID = sectorID; _storeID = storeID; _state = DepartState.Insert; _id = 0; }
public Department(IDepartment entity) { _entity = entity; _id = entity.ID; _state = DepartState.None; _begin = entity.BeginTime; _end = entity.EndTime; _sectorID = entity.SectorID; _parentID = entity.ParentID; _storeID = entity.StoreID; }