Exemplo n.º 1
0
        public bool SetOutOperDateRealIni(COPSDate date)
        {
            trace.Write(TraceLevel.Debug, "CDatM1::SetOutOperDateRealIni");
            bool fnResult = true;

            try
            {
                if (date == null)
                {
                    throw new ArgumentNullException(nameof(date), "Parameter NULL");
                }

                if (!date.IsValid())
                {
                    throw new ArgumentOutOfRangeException(nameof(date), "Not a valid Date");
                }

                m_dtOutOperDateRealIni = date.Copy();
            }
            catch (Exception error)
            {
                trace.Write(TraceLevel.Error, error.ToLogString());
                fnResult = false;
            }

            return(fnResult);
        }
Exemplo n.º 2
0
        public bool SetDate(COPSDate pDate)
        {
            bool result = true;

            trace.Write(TraceLevel.Debug, "CDatM::SetDate");

            try
            {
                m_dtHdDate = pDate.Copy() ?? throw new ArgumentNullException(nameof(pDate), "Parameter NULL");
            }
            catch (Exception error)
            {
                trace.Write(TraceLevel.Error, error.ToLogString());
                result = false;
            }

            return(result);
        }
 public void SetLastDate(COPSDate pdt)
 {
     m_dtLast = pdt.Copy();
 }
Exemplo n.º 4
0
 public void SetOutMinOperDate(COPSDate pdtOperDate)
 {
     m_dtOutMinOperDate = pdtOperDate.Copy();
 }
Exemplo n.º 5
0
 public void SetOutOperDateEnd(COPSDate dtOper)
 {
     m_dtOutOperDateEnd = dtOper.Copy();
 }