public static byte[] Export(IDataExportPortal portal, ExportParams parameters, IDataExportProvider provider)
        {
            int totalCount;
            IDictionary<string, String> dict = null;

            //获取参数的索引及名称
            if (parameters != null && parameters.ExportFields != null)
            {
                dict = portal.GetExportFieldAndName(parameters.ExportFields);
            }
            return
                provider.Export(
                    portal.GetShemalAndData(parameters == null ? null : parameters.Parameters, out totalCount), dict);
        }
        public static byte[] Export(IDataExportPortal portal, ExportParams parameters, IDataExportProvider provider)
        {
            int totalCount;
            IDictionary <string, String> dict = null;

            //获取参数的索引及名称
            if (parameters != null && parameters.ExportFields != null)
            {
                dict = portal.GetExportFieldAndName(parameters.ExportFields);
            }
            return
                (provider.Export(
                     portal.GetShemalAndData(parameters == null ? null : parameters.Parameters, out totalCount), dict));
        }