📄 trkplancomp.java
字号:
package net.aetherial.gis.our.auto.check.Integritytrk;
import org.w3c.dom.Node;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.dataType.TrackType;
/**
* <p>Title: </p>
*
* <p>Description:建设里程,投资额,开工、完工年,路面、路基宽度,路面类型,相邻干线编号和距离未填写或填写不完整 </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author 王爱国
* @version 1.0
*/
public class TrkPlanComp {
Node[] alltrk = null;
private String n = "";
private int dataCount = 0;
private int errorCount = 0;
private String errorMessage = "";
public TrkPlanComp() {
}
public void checkAll() {
alltrk = ItemValue.getTracks();
if (alltrk != null) {
for (int i = 0; i < alltrk.length; i++) {
this.checkOne(alltrk[i]);
}
}
this.errorMessage ="";
this.errorCount = 0;
}
/**
* 检查某一条航迹
*/
private void checkOne(Node trk){
String Construct = ItemValue.getTracks_construct(trk);
if (Construct.equals(TrackType.Plan_NIJIAN)) {
this.isPlan_licheng_no_comp(trk);
this.isPlan_touzi_no_comp(trk);
this.isPlan_kaigong_no_comp(trk);
this.isPlan_wangong_no_comp(trk);
this.isPlan_lumian_no_comp(trk);
this.isPlan_luji_no_comp(trk);
this.isPlan_leixing_no_comp(trk);
this.isPlan_bianhao_no_comp(trk);
this.isPlan_juli_no_comp(trk);
if (this.errorCount>0) {
this.n = this.n +"\"\",\"\",\"\",\"\",文件 <"+ItemValue.fileName+">中 <"+ ItemValue.getTracksT3(trk) +">乡 航迹<" +ItemValue.getTracksName(trk)+">.计划信息不完整:" + this.errorMessage +"\r\n";
}
}
}
/**
* 里程没有填写
*/
private void isPlan_licheng_no_comp(Node trk){
String licheng = ItemValue.getTracks_jihua_licheng(trk).trim();
if (licheng.equals("")) {
this.errorMessage = this.errorMessage + "<里程未填写>";
this.errorCount ++;
}
}
/**
* 投资额没有填写
*/
private void isPlan_touzi_no_comp(Node trk){
String touzi = ItemValue.getTracks_jihua_touzi(trk).trim();
if (touzi.equals("")) {
this.errorMessage = this.errorMessage + "<投资额未填写>";
this.errorCount ++;
}
}
/**
* 开工年没有填写
*/
private void isPlan_kaigong_no_comp(Node trk){
String kaigong = ItemValue.getTracks_jihua_kaigong(trk).trim();
if (kaigong.equals("")) {
this.errorMessage = this.errorMessage + "<开工年未填写>";
this.errorCount ++;
}
}
/**
* 完工年没有填写
*/
private void isPlan_wangong_no_comp(Node trk){
String wangong = ItemValue.getTracks_jihua_wangong(trk).trim();
if (wangong.equals("")) {
this.errorMessage = this.errorMessage + "<完工年未填写>";
this.errorCount ++;
}
}
/**
* 路面宽度没有填写
*/
private void isPlan_lumian_no_comp(Node trk){
String lumian = ItemValue.getTracks_jihua_lumian(trk).trim();
if (lumian.equals("")) {
this.errorMessage = this.errorMessage + "<路面宽度未填写>";
this.errorCount ++;
}
}
/**
* 路基宽度没有填写
*/
private void isPlan_luji_no_comp(Node trk){
String luji = ItemValue.getTracks_jihua_luji(trk).trim();
if (luji.equals("")) {
this.errorMessage = this.errorMessage + "<路基宽度未填写>";
this.errorCount ++;
}
}
/**
* 路面类型没有填写
*/
private void isPlan_leixing_no_comp(Node trk){
String leixing = ItemValue.getTracks_jihua_leixing(trk).trim();
if (leixing.equals("")) {
this.errorMessage = this.errorMessage + "<路面类型未填写>";
this.errorCount ++;
}
}
/**
* 相邻干线编号没有填写
*/
private void isPlan_bianhao_no_comp(Node trk){
String bianhao = ItemValue.getTracks_jihua_bianhao(trk).trim();
if (bianhao.equals("")) {
this.errorMessage = this.errorMessage + "<相邻干线编号未填写>";
this.errorCount ++;
}
}
/**
* 相邻干线距离没有填写
*/
private void isPlan_juli_no_comp(Node trk){
String juli = ItemValue.getTracks_jihua_juli(trk).trim();
if (juli.equals("")) {
this.errorMessage = this.errorMessage + "<相邻干线编号未填写>";
this.errorCount ++;
}
}
public String getN() {
return this.n;
}
public void reset() {
this.n = "";
this.dataCount = 0;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -