Exemple #1
0
 private static void Validate(PostGraph graph, Ledger ledger)
 {
     while (RunningFlagScope <PostGraph> .IsRunning)
     {
     }
     using (new RunningFlagScope <GLHistoryValidate>())
     {
         graph.Clear();
         graph.IntegrityCheckProc(ledger);
     }
 }
        private static void Validate(PostGraph graph, Ledger ledger, GLIntegrityCheckFilter filter)
        {
            if (string.IsNullOrEmpty(filter.FinPeriodID))
            {
                throw new PXException(Messages.Prefix + ": " + Messages.ProcessingRequireFinPeriodID);
            }

            while (RunningFlagScope <PostGraph> .IsRunning)
            {
                System.Threading.Thread.Sleep(10);
            }

            using (new RunningFlagScope <GLHistoryValidate>())
            {
                graph.Clear();
                graph.IntegrityCheckProc(ledger, filter.FinPeriodID);
            }
        }