📄 createqsd.java
字号:
package net.aetherial.gis.jiaotongbu.output.publicuse;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.jiaotongbu.output.type.ScanAll;
import net.aetherial.gis.our.FrameOur;
import java.io.File;
import net.aetherial.gis.jiaotongbu.output.tocheck.ScanToData;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class CreateQSD {
private String inputPath = "";
private String outputPath ="";
public CreateQSD() {
}
public void setXian(String xian){
if (!(xian.equals(""))) {
Item.setXianName(xian);
}
}
public void setShi(String shi){
if (!(shi.equals(""))) {
Item.setShiNameOnly(shi);
}
}
private String getSplashPath(String path) {
if (path.endsWith("\\")) {
return path;
}
else if (path.endsWith("/")) {
return path;
}
else {
return path + "\\";
}
}
public void create(){
ScanToData sa = new ScanToData(new FrameOur());
ItemValue.setShowDialogMessage(false);
inputPath = getSplashPath(inputPath);
ItemValue.setArrayPath(getSplashPath(inputPath + "array\\"));
sa.setInputAllDirectory(inputPath);
// System.out.println(inputPath);
sa.setOutputDirectory(this.outputPath);
sa.scanAllFile(inputPath);
}
public static void main(String[] args) {
Item.isAdd = true;
CreateQSD createqsd = new CreateQSD();
createqsd.setShi(args[0]);
createqsd.setXian(args[1]);
createqsd.setInputPath(args[2]);
createqsd.setOutputPath(args[3]);
createqsd.create();
System.exit(0);
}
public void setOutputPath(String outputPath) {
// File direct = new File(outputPath);
// direct.mkdir();
this.outputPath = getSplashPath(outputPath) + "年报核对表\\程序输出信息\\";
}
public void setInputPath(String InputPath) {
this.inputPath = InputPath;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -