Пример #1
0
        /// <summary>
        /// Calls the procedures needed to populate the ICM event tables (2521 and 2524).  Does not read the tables.
        /// </summary>
        /// <returns>The result of the procedure calls</returns>
        //  Revision History
        //  MM/DD/YY Who Version ID Issue# Description
        //  -------- --- ------- -- ------ -------------------------------------------
        //  03/14/14 AF  3.50.49 WR 464163 Created so that we can populate the event table without reading it
        //
        public ProcedureResultCodes SetUpForICMEvents()
        {
            ProcedureResultCodes Result    = ProcedureResultCodes.UNRECOGNIZED_PROC;
            ICSCommModule        ICSModule = CommModule as ICSCommModule;

            byte[] commandResponse;

            if (ICSModule != null)
            {
                if (ICSModule.FilterICSEvents() == ProcedureResultCodes.COMPLETED)
                {
                    Result = ICSModule.UpdateEventTables(new DateTime(1970, 1, 1), DateTime.MaxValue, out commandResponse);
                }
            }

            return(Result);
        }