Ejemplo n.º 1
0
 public AbsentEvent(DateTime start, TimeSpan length)
     : base(start, length)
 {
     _payment    = WorkHourType.Unpaid;
     _level      = 3;
     _background = "LightCoral";
     _text       = "AbsentEvent";
     _isNeedSeat = false;
     _onService  = false;
 }
Ejemplo n.º 2
0
 public AbsentEvent(DateTime start, TimeSpan length)
     : base(start, length)
 {
     _payment = WorkHourType.Unpaid;
     _level = 3;
     _background = "LightCoral";
     _text = "AbsentEvent";
     _isNeedSeat = false;
     _onService = false;
 }
Ejemplo n.º 3
0
 static TimeOff()
 {
     _payment = WorkHourType.Paid;
     //_defaultStyle = new TermStyle
     //                    {
     //                        Background = "LightGray",
     //                        Name = "TimeOff",
     //                        OnService = false,
     //                        Occupied = false
     //                    };
 }
Ejemplo n.º 4
0
        //static TermStyle _defaultStyle;


        static DayOff()
        {
            _payment = WorkHourType.Unpaid;
            //_defaultStyle = new TermStyle
            //                    {
            //                        Background = "White",
            //                        Name = "DayOff",
            //                        Occupied = false,
            //                        OnService = false
            //                    };
        }
Ejemplo n.º 5
0
        //static TermStyle _defaultStyle;


        static DayOff()
        {
            _payment = WorkHourType.Unpaid;
            //_defaultStyle = new TermStyle
            //                    {
            //                        Background = "White",
            //                        Name = "DayOff",
            //                        Occupied = false,
            //                        OnService = false
            //                    };
        }
Ejemplo n.º 6
0
 static TimeOff()
 {
     _payment = WorkHourType.Paid;
     //_defaultStyle = new TermStyle
     //                    {
     //                        Background = "LightGray",
     //                        Name = "TimeOff",
     //                        OnService = false,
     //                        Occupied = false
     //                    };
 }
Ejemplo n.º 7
0
 static Shrink()
 {
     _typesOfRelyOn = new List<Type>(new Type[] { typeof(Assignment) });
     _payment = WorkHourType.Shrink;
     //_defaultStyle = new TermStyle
     //{
     //    Background = "LightGray",
     //    Name = "Shrink",
     //    Occupied = false,
     //    OnService = false
     //};
 }
Ejemplo n.º 8
0
 static Shrink()
 {
     _typesOfRelyOn = new List <Type>(new Type[] { typeof(Assignment) });
     _payment       = WorkHourType.Shrink;
     //_defaultStyle = new TermStyle
     //{
     //    Background = "LightGray",
     //    Name = "Shrink",
     //    Occupied = false,
     //    OnService = false
     //};
 }
Ejemplo n.º 9
0
 static UnlaboredSubEvent()
 {
     //any allowed types can cover on subevent but must in the range
     _canBeOverlapTypes = new List <Type>(new Type[] { typeof(RegularSubEvent), typeof(AbsentEvent), typeof(OvertimeSubEvent) });
     _typesOfRelyOn     = new List <Type>(new Type[] { typeof(Assignment), typeof(OvertimeAssignment) });
     _payment           = WorkHourType.Unpaid;
     //_defaultStyle = new TermStyle
     //{
     //    Background = "Green",
     //    Name = "UnlaboredSubEvent",
     //    OnService = false,
     //    Occupied = true
     //};
 }
Ejemplo n.º 10
0
 static UnlaboredSubEvent()
 {
     //any allowed types can cover on subevent but must in the range 
     _canBeOverlapTypes = new List<Type>(new Type[] { typeof(RegularSubEvent), typeof(AbsentEvent), typeof(OvertimeSubEvent) });
     _typesOfRelyOn = new List<Type>(new Type[] { typeof(Assignment), typeof(OvertimeAssignment) });
     _payment = WorkHourType.Unpaid;
     //_defaultStyle = new TermStyle
     //{
     //    Background = "Green",
     //    Name = "UnlaboredSubEvent",
     //    OnService = false,
     //    Occupied = true
     //};
 }
Ejemplo n.º 11
0
        //static TermStyle _defaultStyle;

        static Assignment()
        {
            //any allowed types can cover on assignment but must in the range 
            _canBeOverlapTypes = new List<Type>(new[] { typeof(RegularSubEvent), typeof(UnlaboredSubEvent), typeof(OvertimeSubEvent), typeof(AbsentEvent), typeof(Shrink) });
            _payment = WorkHourType.Paid;
            
            
            //_defaultStyle = new TermStyle
            //                    {
            //                        Background = "Blue",
            //                        Name = "RegularAssignment",
            //                        OnService = true,
            //                        Occupied = true
            //                    };
        }
Ejemplo n.º 12
0
        //static TermStyle _defaultStyle;

        static Assignment()
        {
            //any allowed types can cover on assignment but must in the range
            _canBeOverlapTypes = new List <Type>(new[] { typeof(RegularSubEvent), typeof(UnlaboredSubEvent), typeof(OvertimeSubEvent), typeof(AbsentEvent), typeof(Shrink) });
            _payment           = WorkHourType.Paid;


            //_defaultStyle = new TermStyle
            //                    {
            //                        Background = "Blue",
            //                        Name = "RegularAssignment",
            //                        OnService = true,
            //                        Occupied = true
            //                    };
        }
Ejemplo n.º 13
0
 static UnknowAssignment()
 {
     _canBeOverlapTypes = new List <Type>();
     _payment           = WorkHourType.Unpaid;
 }
Ejemplo n.º 14
0
        //static bool _isOcuppied;

        static OvertimeSubEvent()
        {
            _typesOfRelyOn = new List <Type>(new Type[] { typeof(Assignment), typeof(OvertimeAssignment), typeof(UnlaboredSubEvent) });
            _payment       = WorkHourType.ExtraPaid;
        }
Ejemplo n.º 15
0
        //static bool _isOcuppied;

        static OvertimeSubEvent()
        {
            _typesOfRelyOn = new List<Type>(new Type[] { typeof(Assignment), typeof(OvertimeAssignment), typeof(UnlaboredSubEvent) });
            _payment = WorkHourType.ExtraPaid;
        
        }
Ejemplo n.º 16
0
 static UnknowAssignment()
 {
     _canBeOverlapTypes = new List<Type>();
     _payment = WorkHourType.Unpaid;
 }
Ejemplo n.º 17
0
 static OvertimeAssignment()
 {
     _canBeOverlapTypes = new List <Type>(new [] { typeof(RegularSubEvent), typeof(OvertimeSubEvent), typeof(UnlaboredSubEvent) });
     _payment           = WorkHourType.ExtraPaid;
 }
Ejemplo n.º 18
0
 static OvertimeAssignment()
 {
     _canBeOverlapTypes = new List<Type>(new [] { typeof(RegularSubEvent), typeof(OvertimeSubEvent), typeof(UnlaboredSubEvent) });
     _payment = WorkHourType.ExtraPaid;
 }