📄 gljsuidao.java
字号:
package net.aetherial.gis.jiaotongbu.output.tocheck.type;
import jxl.Cell;
import net.aetherial.gis.jiaotongbu.output.publicuse.Item;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class GljSuidao {
private String guanlidanwei = "";
private String lxBianma = "";
private String sdBianma = "";
private String zhuanghao = "";
private String changdu = "";
private String kuandu = "";
private String gaodu = "";
private String name = "";
private String shijian = "";
public GljSuidao() {
}
public String getZhuanghao() {
return zhuanghao;
}
public String getShijian() {
return shijian;
}
public String getSdBianma() {
return sdBianma;
}
public String getName() {
return name;
}
public String getLxBianma() {
return lxBianma;
}
public String getKuandu() {
return kuandu;
}
public String getGuanlidanwei() {
return guanlidanwei;
}
public String getGaodu() {
return gaodu;
}
public String getChangdu() {
return changdu;
}
public boolean isThisXian(){
String geidingxian = Item.xianName.trim();
if (geidingxian.length() >2) {
geidingxian = geidingxian.substring(0,2);
}
if (this.getGuanlidanwei().indexOf(geidingxian) != -1 || geidingxian.indexOf(this.getGuanlidanwei()) != -1) {
return true;
}else{
return false;
}
}
public void setData(Cell[] rowData){
if (rowData == null || rowData.length < 10) {
return;
}
try {
this.guanlidanwei = rowData[1].getContents().trim();
this.lxBianma = rowData[2].getContents().trim();
this.name = rowData[4].getContents().trim();
this.sdBianma = rowData[5].getContents().trim();
this.shijian = rowData[6].getContents().trim();
this.zhuanghao = rowData[7].getContents().trim();
this.changdu = rowData[8].getContents().trim();
this.gaodu = rowData[9].getContents().trim();
this.kuandu = rowData[10].getContents().trim();
}catch (Exception ex) {
System.err.println("Error in gis.jiaotongbu.output.tocheck.type.GljSuidao.setData(Cell[] rowData):" + ex.getMessage());
}
}
public String toString(){
String n = "年报";
n = n + "\t" + this.lxBianma;
n = n + "\t" + this.name;
n = n + "\t" + this.zhuanghao;
n = n + "\t" + this.changdu;
n = n + "\t" + this.gaodu;
n = n + "\t" + this.kuandu;
n = n + "\t" + this.shijian ;
n = n + "\t" + " ";
n = n + "\t" + " ";
return n;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -