📄 td_report_para.java
字号:
package com.doone.fj1w.fjmgr.rpt;
import com.doone.data.DacClient;
import com.doone.data.DataRow;
import com.doone.data.DataTable;
import com.doone.data.ObjectEntity;
import com.doone.util.FileLogger;
public class TD_Report_para extends ObjectEntity {
private static DataTable _entityStruct = null;
private static String _fieldNames = null;
private static String _tableName = "TD_Report_para";
protected DataTable get_entityStruct() {
return _entityStruct;
}
protected void set_entityStruct(DataTable struct) {
_entityStruct = struct;
}
protected String get_fieldNames() {
return _fieldNames;
}
protected void set_fieldNames(String names) {
_fieldNames = names;
}
protected String get_tableName() {
return _tableName;
}
protected void set_tableName(String name) {
_tableName = name;
}
protected TD_Report_para() {
super();
}
public TD_Report_para(DacClient db, long objId) {
super(db, objId);
}
public TD_Report_para(DacClient db) {
super(db);
try {
this.setReport_para_id(db.getSequence("seq_report_para_id"));
} catch (Exception ex) {
FileLogger.getLogger().warn(ex);
throw new RuntimeException(ex);
}
}
public TD_Report_para(DataRow dr) {
super(dr);
}
public DataRow getDataRow() {
return entityRow;
}
public static TD_Report_para getInstanceByBoardId(DacClient db, long lReportId) {
TD_Report_para td_Report_para = null;
try {
StringBuffer sql = new StringBuffer();
sql.append("select ");
if (_fieldNames != null) {
sql.append(_fieldNames);
}
else {
sql.append("*");
}
sql.append(" from ");
sql.append(_tableName);
sql.append(" where REPORTID = ?");
Object ap[] = new Object[1];
ap[0] = new Long(lReportId);
DataTable dt = db.executeQuery(sql.toString(), ap);
if ( dt != null && dt.getRows().getCount() > 0 ) {
td_Report_para = new TD_Report_para(dt.getRow(0));
}
} catch (Exception e) {
FileLogger.getLogger().warn(e.getMessage(), e);
}
return td_Report_para;
}
public static TD_Report_para[] getReport_para(TF_Reports tf_Reports){
try {
StringBuffer sql = new StringBuffer();
sql.append("select ");
if (_fieldNames != null)
sql.append(_fieldNames);
else
sql.append("*");
sql.append("from TD_Report_para where ReportID=?");
Object aInput[] = new Object[1];
aInput[0] = String.valueOf(tf_Reports.getReportID());
DataTable dt = tf_Reports.getDBClient().executeQuery(sql.toString(), aInput);
if (dt == null) throw new Exception("找不到对应的环节信息。");
TD_Report_para report_para[] = new TD_Report_para[dt.getRows().getCount()];
for (int i = 0; i < dt.getRows().getCount(); i++) {
report_para[i] = new TD_Report_para(dt.getRow(i));
}
return report_para;
} catch (Exception ex) {
FileLogger.getLogger().info("读取环节配置息出错:" + ex.getMessage(), ex);
}
return null;
}
public static TD_Report_para getInstanceByBoardId(long lReportId) {
return getInstanceByBoardId(new DacClient(), lReportId);
}
private void setReport_para_id(long lReport_para_id) {
entityRow.setValue("REPORT_PARA_ID", new Long(lReport_para_id));
}
public long getReport_para_id() {
return entityRow.getLong("REPORT_PARA_ID");
}
public void setReportId(long lReportId) {
entityRow.setValue("REPORTID", new Long(lReportId));
}
public long getReportId() {
return entityRow.getLong("REPORTID");
}
public void setPara_sn(String lPara_sn) {
entityRow.setValue("PARA_SN", new Long(lPara_sn));
}
public long getPara_sn() {
return entityRow.getLong("PARA_SN");
}
public void setPara_name(String sPara_name) {
entityRow.setValue("PARA_NAME", sPara_name);
}
public long getPara_name() {
return entityRow.getLong("PARA_NAME");
}
public void setPara_cname(String sPara_cname) {
entityRow.setValue("PARA_CNAME", sPara_cname);
}
public long getPara_cname() {
return entityRow.getLong("PARA_CNAME");
}
public void setControlType(String sControlType) {
entityRow.setValue("CONTROLTYPE", sControlType);
}
public long getControlType() {
return entityRow.getLong("CONTROLTYPE");
}
public void setDataType(String sDataType) {
entityRow.setValue("DATATYPE", sDataType);
}
public long getDataType() {
return entityRow.getLong("DATATYPE");
}
public void setHiml_class(String sHtml_class) {
entityRow.setValue("HTML_CLASS", sHtml_class);
}
public long getHiml_class() {
return entityRow.getLong("HTML_CLASS");
}
public void setDataClass(String sDataClass) {
entityRow.setValue("DATACLASS", sDataClass);
}
public long getDataClass() {
return entityRow.getLong("DATACLASS");
}
public void setDataMethod(String sDataMethod) {
entityRow.setValue("DATAMETHOD", sDataMethod);
}
public long getDataMethod() {
return entityRow.getLong("DATAMETHOD");
}
public void setTextField(String sTextField) {
entityRow.setValue("TEXTFIELD", sTextField);
}
public long getTextField() {
return entityRow.getLong("TEXTFIELD");
}
public void setValueField(String sValueField) {
entityRow.setValue("VALUEFIELD", sValueField);
}
public long getValueField() {
return entityRow.getLong("VALUEFIELD");
}
public void setDefaultValue(String sDefaultValue) {
entityRow.setValue("DEFAULTVALUE", sDefaultValue);
}
public long getDefaultValue() {
return entityRow.getLong("DEFAULTVALUE");
}
public void setDefaultValueType(String sDefaultValueType) {
entityRow.setValue("DEFAULTVALUETYPE", sDefaultValueType);
}
public long getDefaultValueType() {
return entityRow.getLong("DEFAULTVALUETYPE");
}
public void setIsReadonly(String sIsReadonly) {
entityRow.setValue("ISREADONLY", sIsReadonly);
}
public long getIsReadonly() {
return entityRow.getLong("ISREADONLY");
}
public void setIsDisabled(String sIsDisabled) {
entityRow.setValue("ISDISABLED", sIsDisabled);
}
public long getIsDisabled() {
return entityRow.getLong("ISDISABLED");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -