123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- //
- // MonthModel.h
- // BJTResearch
- //
- // Created by yunlong on 17/5/12.
- // Copyright © 2017年 yunlong. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- typedef enum : NSUInteger {
- DayModelStateNormal = 0,
- DayModelStateStart,
- DayModelStateEnd,
- DayModelStateSelected,
- DayModelStatePast,
- } DayModelState;
- typedef enum : NSUInteger {
- Sunday = 1,
- Monday,
- Tuesday,
- Wednesday,
- Thursday,
- Friday,
- Saturday,
- } DayModelOfTheWeek;
- @interface DayModel : NSObject
- /**
- * 年
- */
- @property(nonatomic,assign)NSInteger year;
- /**
- * 月
- */
- @property(nonatomic,assign)NSInteger month;
- /**
- * 日
- */
- @property(nonatomic,assign)NSInteger day;
- /**
- * 日期
- */
- @property(nonatomic,strong)NSDate *dayDate;
- /**
- * 星期
- */
- @property(nonatomic,assign)DayModelOfTheWeek dayOfTheWeek;
- /**
- * 日期的状态
- */
- @property(nonatomic,assign)DayModelState state;
- /**
- * 日期是不是今天
- */
- @property(nonatomic,assign)BOOL isToday;
- /**
- * 第几天
- */
- @property(nonatomic,assign)int Daysort;
- /**
- * 都选好了
- */
- @property(nonatomic,assign)BOOL isEndTimeOK;
- /**
- * 是否是过去时间
- */
- @property(nonatomic,assign)BOOL isStatePast;
- @end
- @interface MonthModel : NSObject
- /**
- * 年
- */
- @property(nonatomic,assign)NSInteger year;
- /**
- * 月
- */
- @property(nonatomic,assign)NSInteger month;
- /**
- * 一个月中UICollectionViewCell的个数
- */
- @property(nonatomic,assign)NSInteger cellNum;
- /**
- * 月UITableViewCell的高度
- */
- @property(nonatomic,assign)CGFloat cellHight;
- /**
- * UICollectionViewCell开始的位置
- */
- @property(nonatomic,assign)NSInteger cellStartNum;
- /**
- * 月UITableViewCell的高度
- */
- @property(nonatomic,strong)NSArray<DayModel *> * days;
- @end
|