Esempio n. 1
0
    /// <summary>
    /// 初始化是否需要做过期判断
    /// </summary>
    /// <param name="endType"></param>
    private void InitIsNeedPastDue(ActivityEndTypePB endType)
    {
        switch (endType)
        {
        case ActivityEndTypePB.EndLong:
            IsNeedPastDue = false;
            break;

        case ActivityEndTypePB.EndRule:
        case ActivityEndTypePB.EndUser:
            IsNeedPastDue = true;
            break;
        }
    }
Esempio n. 2
0
 public ActivityVo(ActivityPB pb)
 {
     ActivityId        = pb.ActivityId;
     Name              = pb.Name;
     BackgroundPicture = pb.BackgroundPicture;
     Desc              = pb.Desc;
     StarTime          = pb.StartTime;
     EndTime           = pb.EndTime;
     ShowEndTime       = pb.ShowEndTime;
     Sort              = pb.Sort;
     EndType           = pb.EndType;
     IsDisplay         = pb.IsDisplay;
     OverdueTime       = pb.OverdueTime;
     UniqueIdentify    = pb.UniqueIdentify;
     BaseActivityType  = pb.Type;
     ActivityExtra     = pb.ActivityExtra;
     InitActivityType(pb.Type, pb.ActivityId);
     InitIsNeedPastDue(pb.EndType);
     InitIsNeedRechargeSwitchController(pb.Type);
     InitTexturePath();
     JumpId = "Activity" + "T" + (int)BaseActivityType + "I" + ActivityId;
 }