public Wlst.client.HolidaySchduleTimeItem   BackToSchdule()
        {
            var rtn = new Wlst.client.HolidaySchduleTimeItem()
            {
                DayEnd     = this.DayEnd,
                DayStart   = this.DayStart,
                Id         = this.Id,
                MonthEnd   = this.MonthEnd,
                MonthStart = this.MonthStart,

                //K1HourEnd = this.K1HourEnd,
                //K1HourStart = this.K1HourStart,
                //K1MinuteEnd = this.K1MinutEnd,
                //K1MinuteStart = this.K1MinutStart,

                //K2HourEnd = this.K2HourEnd,
                //K2HourStart = this.K2HourStart,
                //K2MinuteEnd = this.K2MinutEnd,
                //K2MinuteStart = this.K2MinutStart,

                //K3HourEnd = this.K3HourEnd,
                //K3HourStart = this.K3HourStart,
                //K3MinuteEnd = this.K3MinutEnd,
                //K3MinuteStart = this.K3MinutStart,

                //K4HourEnd = this.K4HourEnd,
                //K4HourStart = this.K4HourStart,
                //K4MinuteEnd = this.K4MinutEnd,
                //K4MinuteStart = this.K4MinutStart,

                //K5HourEnd = this.K5HourEnd,
                //K5HourStart = this.K5HourStart,
                //K5MinuteEnd = this.K5MinutEnd,
                //K5MinuteStart = this.K5MinutStart,

                //K6HourEnd = this.K6HourEnd,
                //K6HourStart = this.K6HourStart,
                //K6MinuteEnd = this.K6MinutEnd,
                //K6MinuteStart = this.K6MinutStart,
            };

            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K1HourEnd * 60 + K1MinutEnd,
                OpenTime  = K1HourStart * 60 + K1MinutStart,
                Kx        = 1
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K3HourEnd * 60 + K3MinutEnd,
                OpenTime  = K3HourStart * 60 + K3MinutStart,
                Kx        = 3
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K2HourEnd * 60 + K2MinutEnd,
                OpenTime  = K2HourStart * 60 + K2MinutStart,
                Kx        = 2
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K4HourEnd * 60 + K4MinutEnd,
                OpenTime  = K4HourStart * 60 + K4MinutStart,
                Kx        = 4
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K5HourEnd * 60 + K5MinutEnd,
                OpenTime  = K5HourStart * 60 + K5MinutStart,
                Kx        = 5
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K6HourEnd * 60 + K6MinutEnd,
                OpenTime  = K6HourStart * 60 + K6MinutStart,
                Kx        = 6
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K7HourEnd * 60 + K7MinutEnd,
                OpenTime  = K7HourStart * 60 + K7MinutStart,
                Kx        = 7
            });
            rtn.SwitchOutTimeItem.Add(new HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime()
            {
                CloseTime = K8HourEnd * 60 + K8MinutEnd,
                OpenTime  = K8HourStart * 60 + K8MinutStart,
                Kx        = 8
            });
            return(rtn);
        }
        public TimeSchduleItemItme(Wlst.client.HolidaySchduleTimeItem info)
        {
            Id            = info.Id;
            MonthEnd      = info.MonthEnd;
            MonthStart    = info.MonthStart;
            this.DayEnd   = info.DayEnd;
            this.DayStart = info.DayStart;

            var idc = new Dictionary <int, client.HolidaySchduleTimeItem.HolidaySchduleTimeItemOneOutTime>();

            foreach (var f in info.SwitchOutTimeItem)
            {
                if (!idc.ContainsKey(f.Kx))
                {
                    idc.Add(f.Kx, f);
                }
            }

            foreach (var f in info.SwitchOutTimeItem)
            {
                int hourstart   = f.OpenTime / 60;
                int minutestart = f.OpenTime % 60;

                int hourend   = f.CloseTime / 60;
                int minuteend = f.CloseTime % 60;

                if (f.Kx == 1)
                {
                    this.K1HourEnd    = hourend;
                    this.K1HourStart  = hourstart;
                    this.K1MinutEnd   = minuteend;
                    this.K1MinutStart = minutestart;
                }
                if (f.Kx == 2)
                {
                    this.K2HourEnd    = hourend;
                    this.K2HourStart  = hourstart;
                    this.K2MinutEnd   = minuteend;
                    this.K2MinutStart = minutestart;
                }
                if (f.Kx == 3)
                {
                    this.K3HourEnd    = hourend;
                    this.K3HourStart  = hourstart;
                    this.K3MinutEnd   = minuteend;
                    this.K3MinutStart = minutestart;
                }
                if (f.Kx == 4)
                {
                    this.K4HourEnd    = hourend;
                    this.K4HourStart  = hourstart;
                    this.K4MinutEnd   = minuteend;
                    this.K4MinutStart = minutestart;
                }
                if (f.Kx == 5)
                {
                    this.K5HourEnd    = hourend;
                    this.K5HourStart  = hourstart;
                    this.K5MinutEnd   = minuteend;
                    this.K5MinutStart = minutestart;
                }
                if (f.Kx == 6)
                {
                    this.K6HourEnd    = hourend;
                    this.K6HourStart  = hourstart;
                    this.K6MinutEnd   = minuteend;
                    this.K6MinutStart = minutestart;
                }
                if (f.Kx == 7)
                {
                    this.K7HourEnd    = hourend;
                    this.K7HourStart  = hourstart;
                    this.K7MinutEnd   = minuteend;
                    this.K7MinutStart = minutestart;
                }
                if (f.Kx == 8)
                {
                    this.K8HourEnd    = hourend;
                    this.K8HourStart  = hourstart;
                    this.K8MinutEnd   = minuteend;
                    this.K8MinutStart = minutestart;
                }
            }
        }