Esempio n. 1
0
        /// <summary>
        /// Set SHD Times.
        /// </summary>
        private void SetSHDTimes()
        {
            SHDDataGridView.Rows.Clear();
            var shdTimes = CurTimes.FindAll(t => t.LimitId == EnmLimitID.SHD);

            foreach (var time in shdTimes)
            {
                var rowIndex = SHDDataGridView.Rows.Add(1);
                SHDDataGridView.Rows[rowIndex].Cells["SHDColumn"].Value = Common.GetDateValue(time.StartTime1, 2).ToString("MM-dd");
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Set IRTM Times.
 /// </summary>
 private void SetIRTMTimes()
 {
     IRTMTime = CurTimes.Find(t => t.LimitId == EnmLimitID.IRTM);
     if (IRTMTime != null)
     {
         IRTMBeginTimeDTP1.Value = Common.GetDateValue(IRTMTime.StartTime1, 1);
         IRTMEndTimeDTP1.Value   = Common.GetDateValue(IRTMTime.EndTime1, 1);
         IRTMBeginTimeDTP2.Value = Common.GetDateValue(IRTMTime.StartTime2, 1);
         IRTMEndTimeDTP2.Value   = Common.GetDateValue(IRTMTime.EndTime2, 1);
         IRTMBeginTimeDTP3.Value = Common.GetDateValue(IRTMTime.StartTime3, 1);
         IRTMEndTimeDTP3.Value   = Common.GetDateValue(IRTMTime.EndTime3, 1);
         IRTMBeginTimeDTP4.Value = Common.GetDateValue(IRTMTime.StartTime4, 1);
         IRTMEndTimeDTP4.Value   = Common.GetDateValue(IRTMTime.EndTime4, 1);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Set DTM Times.
        /// </summary>
        private void SetDTMTimes()
        {
            var dtm      = DTMRB1.Checked ? EnmLimitID.NDTM : EnmLimitID.DTM;
            var dtmTimes = CurTimes.FindAll(t => t.LimitId == dtm);

            if (dtmTimes.Count > 0)
            {
                DTMTime = dtmTimes.Find(t => t.LimitIndex == DTMLimitIndex);
                if (DTMTime != null)
                {
                    DTMBeginTimeDTP1.Value = Common.GetDateValue(DTMTime.StartTime1, 1);
                    DTMEndTimeDTP1.Value   = Common.GetDateValue(DTMTime.EndTime1, 1);
                    DTMBeginTimeDTP2.Value = Common.GetDateValue(DTMTime.StartTime2, 1);
                    DTMEndTimeDTP2.Value   = Common.GetDateValue(DTMTime.EndTime2, 1);
                    DTMBeginTimeDTP3.Value = Common.GetDateValue(DTMTime.StartTime3, 1);
                    DTMEndTimeDTP3.Value   = Common.GetDateValue(DTMTime.EndTime3, 1);
                    DTMBeginTimeDTP4.Value = Common.GetDateValue(DTMTime.StartTime4, 1);
                    DTMEndTimeDTP4.Value   = Common.GetDateValue(DTMTime.EndTime4, 1);
                }
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Set WTMG Times.
        /// </summary>
        private void SetWTMGTimes()
        {
            var dtmTimes = CurTimes.FindAll(t => t.LimitId == EnmLimitID.WTMG);

            if (dtmTimes.Count > 0)
            {
                WTMGTime = dtmTimes.Find(t => t.LimitIndex == WTMGLimitIndex && t.WeekIndex == WTMGWeekIndex);
                if (WTMGTime != null)
                {
                    WTMGBeginTimeDTP1.Value = Common.GetDateValue(WTMGTime.StartTime1, 1);
                    WTMGEndTimeDTP1.Value   = Common.GetDateValue(WTMGTime.EndTime1, 1);
                    WTMGBeginTimeDTP2.Value = Common.GetDateValue(WTMGTime.StartTime2, 1);
                    WTMGEndTimeDTP2.Value   = Common.GetDateValue(WTMGTime.EndTime2, 1);
                    WTMGBeginTimeDTP3.Value = Common.GetDateValue(WTMGTime.StartTime3, 1);
                    WTMGEndTimeDTP3.Value   = Common.GetDateValue(WTMGTime.EndTime3, 1);
                    WTMGBeginTimeDTP4.Value = Common.GetDateValue(WTMGTime.StartTime4, 1);
                    WTMGEndTimeDTP4.Value   = Common.GetDateValue(WTMGTime.EndTime4, 1);
                    WTMGBeginTimeDTP5.Value = Common.GetDateValue(WTMGTime.StartTime5, 1);
                    WTMGEndTimeDTP5.Value   = Common.GetDateValue(WTMGTime.EndTime5, 1);
                    WTMGBeginTimeDTP6.Value = Common.GetDateValue(WTMGTime.StartTime6, 1);
                    WTMGEndTimeDTP6.Value   = Common.GetDateValue(WTMGTime.EndTime6, 1);
                }
            }
        }