|
|
|
@ -113,7 +113,7 @@ public class KnownPointRecordExporter { |
|
|
|
|
exportResult.add(rowResult); |
|
|
|
|
} |
|
|
|
|
if (!exportResult.isEmpty()) { |
|
|
|
|
File exportFolder = new File(FileUtil.getSDPath(), context.getString(R.string.surveyor_exported_file) |
|
|
|
|
File exportFolder = new File(FileUtil.getSDPath(), "工程测量导出文件" |
|
|
|
|
+ "/" + context.getString(R.string.record) + "/" + context.getString(R.string.known_point_staking)); |
|
|
|
|
//过滤重名文件,如果有重名,添加后缀
|
|
|
|
|
String exportFileName = ExportPathUtils.filterDuplicateFileName(exportFolder, name, "xls"); |
|
|
|
@ -121,7 +121,7 @@ public class KnownPointRecordExporter { |
|
|
|
|
new ExcelExportHelper().exportExcelForBigDataAndSave(headers, exportResult, |
|
|
|
|
context.getString(R.string.known_point_staking), |
|
|
|
|
ExcelExportHelper.MORE_SHEET_FLAG, |
|
|
|
|
FileUtil.getSDPath() + "/" + context.getString(R.string.surveyor_exported_file) |
|
|
|
|
FileUtil.getSDPath() + "/" + "工程测量导出文件" |
|
|
|
|
+ "/" + context.getString(R.string.record) + "/" + context.getString(R.string.known_point_staking), |
|
|
|
|
exportFileName); |
|
|
|
|
hideLoading(context, exportFileName, callback); |
|
|
|
@ -135,7 +135,7 @@ public class KnownPointRecordExporter { |
|
|
|
|
mUiThreadPoster.post(() -> { |
|
|
|
|
mProgressDialog.dismiss(); |
|
|
|
|
File path = |
|
|
|
|
new File(FileUtil.getSDPath() + "/" + activity.getString(R.string.surveyor_exported_file) |
|
|
|
|
new File(FileUtil.getSDPath() + "/" + "工程测量导出文件" |
|
|
|
|
+ "/" + activity.getString(R.string.record) + "/" + activity.getString(R.string.known_point_staking) + "/" + name + ".xls"); |
|
|
|
|
if (path.exists()) { |
|
|
|
|
callback.onSuccess(path); |
|
|
|
|