Esempio n. 1
0
        /// <summary>
        /// 部门的执行一览(统计)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientFBA_OutFileExecutionListCompleted(object sender, OutFileExecutionListCompletedEventArgs 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
        /// <summary>
        /// 部门的执行一览(统计)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientFBA_OutFileExecutionListCompleted(object sender, OutFileExecutionListCompletedEventArgs 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);
            }
        }