Esempio n. 1
0
        void clientFBA_OutFileMonthlyBudgetAnalysisListCompleted(object sender, OutFileMonthlyBudgetAnalysisListCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                byte[] byExport = e.Result;

                if (this.stream != null)
                {
                    this.stream.Write(byExport, 0, byExport.Length);
                    this.stream.Close();
                    this.stream.Dispose();
                    this.stream = null;
                }
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESS"), "导出月度预算分析数据完毕!");
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "导出月度预算分析数据失败!" + e.Error.Message);
            }
        }
Esempio n. 2
0
        void clientFBA_OutFileMonthlyBudgetAnalysisListCompleted(object sender, OutFileMonthlyBudgetAnalysisListCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                byte[] byExport = e.Result;

                if (this.stream != null)
                {
                    this.stream.Write(byExport, 0, byExport.Length);
                    this.stream.Close();
                    this.stream.Dispose();
                    this.stream = null;
                }
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESS"), "导出月度预算分析数据完毕!");
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "导出月度预算分析数据失败!" + e.Error.Message);
            }
        }