IDEMPIERE-1905 Add feedback to time-consuming processes
This commit is contained in:
parent
bd8bdb6cc9
commit
3f0f694709
|
@ -36,6 +36,7 @@ import org.compiere.util.CLogger;
|
|||
import org.compiere.util.DB;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Trx;
|
||||
import org.compiere.util.ValueNamePair;
|
||||
|
||||
|
@ -91,6 +92,7 @@ public class UUIDGenerator extends SvrProcess {
|
|||
while(rs.next()) {
|
||||
int AD_Table_ID = rs.getInt(1);
|
||||
String cTableName = rs.getString(2);
|
||||
statusUpdate(Msg.getMsg(getCtx(), "Processing") + " " + cTableName);
|
||||
|
||||
String columnName = PO.getUUIDColumnName(cTableName);
|
||||
int AD_Column_ID = DB.getSQLValue(null, "SELECT AD_Column_ID FROM AD_Column Where AD_Table_ID = ? AND ColumnName = ?", AD_Table_ID, columnName);
|
||||
|
|
|
@ -508,7 +508,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
|||
String uidColumn = po.getUUIDColumnName();
|
||||
String[] keys = po.get_KeyColumns();
|
||||
if (Util.isEmpty((String)po.get_Value(uidColumn)) && (keys == null || keys.length != 1 || po.get_ID() > MTable.MAX_OFFICIAL_ID)) {
|
||||
throw new IllegalStateException("2Pack doesn't work with record without official Id and UUID");
|
||||
throw new IllegalStateException("2Pack doesn't work with record without official Id and UUID -> " + po.getUUIDColumnName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue