本文整理汇总了Java中com.openbravo.format.Formats.TIMESTAMP属性的典型用法代码示例。如果您正苦于以下问题:Java Formats.TIMESTAMP属性的具体用法?Java Formats.TIMESTAMP怎么用?Java Formats.TIMESTAMP使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.openbravo.format.Formats
的用法示例。
在下文中一共展示了Formats.TIMESTAMP属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
public void init(Session s){
this.s = s;
tcustomers = new TableDefinition(s
, "CUSTOMERS"
, new String[] { "ID", "TAXID", "SEARCHKEY", "NAME", "NOTES", "VISIBLE", "CARD", "MAXDEBT", "CURDATE", "CURDEBT"
, "FIRSTNAME", "LASTNAME", "EMAIL", "PHONE", "PHONE2", "FAX"
, "ADDRESS", "ADDRESS2", "POSTAL", "CITY", "REGION", "COUNTRY"
, "TAXCATEGORY" }
, new String[] { "ID", AppLocal.getIntString("label.taxid"), AppLocal.getIntString("label.searchkey"), AppLocal.getIntString("label.name"), AppLocal.getIntString("label.notes"), "VISIBLE", "CARD", AppLocal.getIntString("label.maxdebt"), AppLocal.getIntString("label.curdate"), AppLocal.getIntString("label.curdebt")
, AppLocal.getIntString("label.firstname"), AppLocal.getIntString("label.lastname"), AppLocal.getIntString("label.email"), AppLocal.getIntString("label.phone"), AppLocal.getIntString("label.phone2"), AppLocal.getIntString("label.fax")
, AppLocal.getIntString("label.address"), AppLocal.getIntString("label.address2"), AppLocal.getIntString("label.postal"), AppLocal.getIntString("label.city"), AppLocal.getIntString("label.region"), AppLocal.getIntString("label.country")
, "TAXCATEGORY"}
, new Datas[] { Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.BOOLEAN, Datas.STRING, Datas.DOUBLE, Datas.TIMESTAMP, Datas.DOUBLE
, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING
, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING
, Datas.STRING}
, new Formats[] { Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.BOOLEAN, Formats.STRING, Formats.CURRENCY, Formats.TIMESTAMP, Formats.CURRENCY
, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING
, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING
, Formats.STRING}
, new int[] {0}
);
}
示例2: getTableTaxes
public final TableDefinition getTableTaxes() {
return new TableDefinition(s,
"TAXES"
, new String[] {"ID", "NAME", "CATEGORY", "VALIDFROM", "CUSTCATEGORY", "PARENTID", "RATE", "RATECASCADE", "RATEORDER"}
, new String[] {"ID", AppLocal.getIntString("Label.Name"), AppLocal.getIntString("label.taxcategory"), AppLocal.getIntString("Label.ValidFrom"), AppLocal.getIntString("label.custtaxcategory"), AppLocal.getIntString("label.taxparent"), AppLocal.getIntString("label.dutyrate"), AppLocal.getIntString("label.cascade"), AppLocal.getIntString("label.order")}
, new Datas[] {Datas.STRING, Datas.STRING, Datas.STRING, Datas.TIMESTAMP, Datas.STRING, Datas.STRING, Datas.DOUBLE, Datas.BOOLEAN, Datas.INT}
, new Formats[] {Formats.STRING, Formats.STRING, Formats.STRING, Formats.TIMESTAMP, Formats.STRING, Formats.STRING, Formats.PERCENT, Formats.BOOLEAN, Formats.INT}
, new int[] {0}
);
}
示例3: setType
public void setType(Formats format) {
if (Formats.INT == format) {
setType(format, Datas.INT);
} else if (Formats.DOUBLE == format || Formats.CURRENCY == format || Formats.PERCENT == format) {
setType(format, Datas.DOUBLE);
} else if (Formats.DATE == format || Formats.TIME == format || Formats.TIMESTAMP == format) {
setType(format, Datas.TIMESTAMP);
} else if (Formats.BOOLEAN == format) {
setType(format, Datas.BOOLEAN);
} else { // if (Formats.STRING == format) {
setType(format, Datas.STRING);
}
}
示例4: setDefaultCompare
private void setDefaultCompare() {
if (Formats.INT == formatsvalue) {
comparevalue = QBFCompareEnum.COMP_LESSOREQUALS;
} else if (Formats.DOUBLE == formatsvalue || Formats.CURRENCY == formatsvalue || Formats.PERCENT == formatsvalue) {
comparevalue = QBFCompareEnum.COMP_LESSOREQUALS;
} else if (Formats.DATE == formatsvalue || Formats.TIME == formatsvalue || Formats.TIMESTAMP == formatsvalue) {
comparevalue = QBFCompareEnum.COMP_GREATEROREQUALS;
} else if (Formats.BOOLEAN == formatsvalue) {
comparevalue = QBFCompareEnum.COMP_EQUALS;
} else { // if (Formats.STRING == formatsvalue) {
comparevalue = QBFCompareEnum.COMP_RE;
}
}