⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readanhui.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
/*
 * 创建日期 Sep 2, 2006
 *
 * TODO 要更改此生成的文件的模板,请转至
 * 窗口 - 首选项 - Java - 代码样式 - 代码模板
 */
package net.aetherial.gis.baobu.TotalQiaoLiang;

import java.io.File;

public class readanhui {
	String shi = "";

	readqianlian biao;

	int i = 0;

	public void showDirectiory(String file1) throws Exception {

		File n = new File(file1);
		File[] file = null;
		if (n.isDirectory()) {
			if (n.getName().equals("年报核对表")) {
				biao = new readqianlian();
				shi = n.getParentFile().getName();
			}

			file = n.listFiles();
			for (int i = 0; i < file.length; i++) {
				if ((!file[i].getName().equals("array")))
					if ((!file[i].getName().equals(".svn")))
						if ((!file[i].getName().equals("上报表格")))
							if ((!file[i].getName().equals("整理完毕")))
								if ((!file[i].getName().equals("异型路路线示意图")))
									this.showDirectiory(file[i]
											.getAbsolutePath());
			}
		} else {
			if (n.getName().equals("2_桥梁比较表.xls")
					|| n.getName().equals("8_桥梁信息汇总表(各地市、县填写).xls")) {
				biao.setInputPath(n.getAbsolutePath());
//				System.out.println("正在读取表2或表8");
				biao.Readqiaolianshuxi();
				i++;
				if (n.getParentFile().getParentFile().getName().equals(shi)
						&& i == 2) {
					i = 0;
					System.out.println(n.getParentFile().getParentFile()
							.getParentFile().getName()
							+ "\t"
							+ n.getParentFile().getParentFile().getName()
							+ "\t"
							+ biao.getGdq()
							+ "\t"
							+ biao.getGzq()
							+ "\t"
							+ biao.getGxq()
							+ "\t"
							+ biao.getDaqiao()
							+ "\t"
							+ biao.getZhongqiao()
							+ "\t"
							+ biao.getXiaoqiao()
							+ "\t"
							+ biao.getB8daqiao()
							+ "\t" + biao.b8zhongqiao + "\t" + biao.b8xiaoqiao);
				}

			}
		}

	}

	public static void main(String args[]) throws Exception {
		String url1 = "E:/核对工作/数据/操作数据/六安市";
		readanhui n = new readanhui();
		n.showDirectiory(url1);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -