导出的文件夹改为“工程测量导出文件”

main
chenglifeng 6 months ago
parent 2c1b5e5c4c
commit a86f7ef9f3
  1. 2
      app/src/main/java/com/project/survey/ui/instrument/setupstation/ControlPointsActivity.java
  2. 2
      app/src/main/java/com/project/survey/ui/instrument/setupstation/ControlPointsNewActivity.java
  3. 6
      app/src/main/java/com/project/survey/ui/lofting/pointlofting/record/util/KnownPointRecordExporter.java
  4. 2
      app/src/main/java/com/project/survey/ui/lofting/pointlofting/record/util/RecordsActivityExportUtils.java

@ -397,7 +397,7 @@ public class ControlPointsActivity extends ColorfulActivity {
private void showExportOverDialog(final File file) {
new MaterialDialog.Builder(this).title(R.string.export_successful)
.content(R.string.exported_file_save_at_surveyor_exported_files)
.content("导出文件保存在手机根目录的[工程测量导出文件]文件夹内")
.positiveText(R.string.send_to)
.negativeText(R.string.open)
.neutralText(R.string.close)

@ -671,7 +671,7 @@ public class ControlPointsNewActivity extends ColorfulActivity {
private void showExportOverDialog(final File file) {
new MaterialDialog.Builder(this).title(R.string.export_successful)
.content(R.string.exported_file_save_at_surveyor_exported_files)
.content("导出文件保存在手机根目录的[工程测量导出文件]文件夹内")
.positiveText(R.string.send_to)
.negativeText(R.string.open)
.neutralText(R.string.close)

@ -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);

@ -128,7 +128,7 @@ public class RecordsActivityExportUtils extends ContextProviderUtils {
void showExportSuccessDialog(final File file) {
new MaterialDialog.Builder(context()).title(R.string.export_successful)
.content(R.string.exported_file_save_at_surveyor_exported_files)
.content("导出文件保存在手机根目录的[工程测量导出文件]文件夹内")
.positiveText(R.string.send_to)
.negativeText(R.string.open)
.neutralText(R.string.close)

Loading…
Cancel
Save