Exemplo n.º 1
0
        protected void ProcessGlobalCaculating(object sender, MCS.Web.WebControls.PostProgressDoPostedDataEventArgs e)
        {
            Util.EnsureOperationSafe();

            AUConditionCalculator calc = new AUConditionCalculator(calcProgressAll.Tag);

            calc.GenerateAllItemAndContainerSnapshot();

            SCCacheHelper.InvalidateAllCache();

            e.Result.DataChanged = true;
            e.Result.CloseWindow = false;
            e.Result.ProcessLog  = ProcessProgress.Current.GetDefaultOutput();
        }
Exemplo n.º 2
0
        protected void ProcessCaculating(object sender, MCS.Web.WebControls.PostProgressDoPostedDataEventArgs e)
        {
            var scope = DbUtil.GetEffectiveObject <AU.AUAdminScope>(this.calcProgress.Tag);
            AUConditionCalculator calc = new AUConditionCalculator(scope.ScopeSchemaType);

            AU.AUCommon.DoDbAction(() =>
            {
                calc.GenerateItemAndContainerSnapshot(new[] { scope });
            });

            SCCacheHelper.InvalidateAllCache();

            e.Result.DataChanged = true;
            e.Result.CloseWindow = false;
            e.Result.ProcessLog  = ProcessProgress.Current.GetDefaultOutput();
        }