Merge 10a791d0c143
This commit is contained in:
commit
f3e6c16dcd
|
@ -0,0 +1,33 @@
|
||||||
|
-- Mar 7, 2013 5:39:23 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_Column SET DefaultValue='SYSDATE',Updated=TO_DATE('2013-03-07 17:39:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208572
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:39:58 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
ALTER TABLE AD_CtxHelpMsg_Trl MODIFY Created DATE DEFAULT SYSDATE
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:40:04 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_CtxHelpMsg_Trl SET Created=SYSDATE WHERE Created IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:45:58 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_Column SET DefaultValue='SYSDATE',Updated=TO_DATE('2013-03-07 17:45:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208578
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:46:09 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
ALTER TABLE AD_CtxHelpMsg_Trl MODIFY Updated DATE DEFAULT SYSDATE
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:46:09 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_CtxHelpMsg_Trl SET Updated=SYSDATE WHERE Updated IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201303071741_IDEMPIERE-626.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
-- Mar 7, 2013 5:39:23 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_Column SET DefaultValue='SYSDATE',Updated=TO_TIMESTAMP('2013-03-07 17:39:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208572
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:39:58 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
INSERT INTO t_alter_column values('ad_ctxhelpmsg_trl','Created','TIMESTAMP',null,'now()')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:40:04 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_CtxHelpMsg_Trl SET Created=now() WHERE Created IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:45:58 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_Column SET DefaultValue='SYSDATE',Updated=TO_TIMESTAMP('2013-03-07 17:45:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208578
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:46:09 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
INSERT INTO t_alter_column values('ad_ctxhelpmsg_trl','Updated','TIMESTAMP',null,'now()')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 7, 2013 5:46:09 PM COT
|
||||||
|
-- IDEMPIERE-626 Zk: Ticket #1002211: Context help pane
|
||||||
|
UPDATE AD_CtxHelpMsg_Trl SET Updated=now() WHERE Updated IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201303071741_IDEMPIERE-626.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class ColumnSync extends SvrProcess
|
||||||
String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR);
|
String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR);
|
||||||
for (int i = 0; i < statements.length; i++)
|
for (int i = 0; i < statements.length; i++)
|
||||||
{
|
{
|
||||||
int count = DB.executeUpdate(statements[i], false, get_TrxName());
|
int count = DB.executeUpdateEx(statements[i], get_TrxName());
|
||||||
addLog (0, null, new BigDecimal(count), statements[i]);
|
addLog (0, null, new BigDecimal(count), statements[i]);
|
||||||
no += count;
|
no += count;
|
||||||
}
|
}
|
||||||
|
|
|
@ -467,7 +467,7 @@ public class Viewer extends CFrame
|
||||||
}
|
}
|
||||||
// IDEMPIERE-297 - Check for Table Access and Window Access for New Report
|
// IDEMPIERE-297 - Check for Table Access and Window Access for New Report
|
||||||
if ( MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false)
|
if ( MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false)
|
||||||
&& (MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT) == Boolean.TRUE))
|
&& (Boolean.TRUE.equals(MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT))))
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(m_ctx, "NewReport")).append(" **");
|
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(m_ctx, "NewReport")).append(" **");
|
||||||
KeyNamePair pp = new KeyNamePair(-1, sb.toString());
|
KeyNamePair pp = new KeyNamePair(-1, sb.toString());
|
||||||
|
|
|
@ -31,7 +31,6 @@ import org.adempiere.webui.component.Tab;
|
||||||
import org.adempiere.webui.component.Tabbox;
|
import org.adempiere.webui.component.Tabbox;
|
||||||
import org.adempiere.webui.component.Tabpanels;
|
import org.adempiere.webui.component.Tabpanels;
|
||||||
import org.adempiere.webui.component.Tabs;
|
import org.adempiere.webui.component.Tabs;
|
||||||
import org.adempiere.webui.component.ToolBarButton;
|
|
||||||
import org.adempiere.webui.component.Window;
|
import org.adempiere.webui.component.Window;
|
||||||
import org.adempiere.webui.panel.ADForm;
|
import org.adempiere.webui.panel.ADForm;
|
||||||
import org.adempiere.webui.panel.CustomForm;
|
import org.adempiere.webui.panel.CustomForm;
|
||||||
|
@ -91,9 +90,9 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
private Label selectAll;
|
private Label selectAll;
|
||||||
private Label deselectAll;
|
private Label deselectAll;
|
||||||
private Label pipeSeparator;
|
private Label pipeSeparator;
|
||||||
private ToolBarButton bExport = new ToolBarButton();
|
private Button bExport = new Button();
|
||||||
private Button bnext ;
|
private Button bnext ;
|
||||||
private ToolBarButton btnSave;
|
private Button btnSave;
|
||||||
private Tabbox tabbox = new Tabbox();
|
private Tabbox tabbox = new Tabbox();
|
||||||
private Tabs tabs = new Tabs();
|
private Tabs tabs = new Tabs();
|
||||||
private Tabpanels tabpanels = new Tabpanels();
|
private Tabpanels tabpanels = new Tabpanels();
|
||||||
|
@ -264,39 +263,31 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
Foot f=new Foot();
|
Foot f=new Foot();
|
||||||
|
|
||||||
Grid grid=new Grid();
|
Grid grid=new Grid();
|
||||||
btnSave = new ToolBarButton();
|
btnSave = new Button();
|
||||||
btnSave.setAttribute("name","btnSave");
|
btnSave.setName("btnSave");
|
||||||
btnSave.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Save")));
|
btnSave.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Save")));
|
||||||
btnSave.setImage("/images/Save24.png");
|
btnSave.setImage("/images/Save24.png");
|
||||||
if(fm.getAD_Client_ID()== 0 || !isChange)
|
if(fm.getAD_Client_ID()== 0 || !isChange)
|
||||||
{
|
{
|
||||||
btnSave.setDisabled(true);
|
btnSave.setDisabled(true);
|
||||||
}
|
}
|
||||||
btnSave.addEventListener(Events.ON_CLICK, this);
|
|
||||||
|
|
||||||
foot.appendChild(btnSave);
|
confirmPanelMain.addComponentsLeft(btnSave);
|
||||||
foot.appendChild(new Separator("vertical"));
|
|
||||||
|
|
||||||
if (m_isCanExport)
|
if (m_isCanExport)
|
||||||
{
|
{
|
||||||
bExport.setImage("/images/ExportX24.png");
|
bExport.setImage("/images/ExportX24.png");
|
||||||
bExport.setAttribute("name","btnExport");
|
bExport.setName("btnExport");
|
||||||
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
||||||
bExport.addEventListener(Events.ON_CLICK, this);
|
confirmPanelMain.addComponentsLeft(bExport);
|
||||||
|
|
||||||
foot.appendChild(bExport);
|
|
||||||
foot.appendChild(new Separator("vertical"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bnext=new Button();
|
bnext=new Button();
|
||||||
bnext.setLabel(Msg.getMsg(Env.getCtx(), "NextPage"));
|
bnext.setLabel(Msg.getMsg(Env.getCtx(), "NextPage"));
|
||||||
bnext.setName("Next");
|
bnext.setName("Next");
|
||||||
bnext.addEventListener(Events.ON_CLICK, this);
|
confirmPanelMain.addComponentsLeft(bnext);
|
||||||
foot.appendChild(bnext);
|
|
||||||
Vbox vb = new Vbox();
|
foot.appendChild(confirmPanelMain);
|
||||||
vb.setWidth("50%");
|
|
||||||
foot.appendChild(vb);
|
|
||||||
vb.appendChild(confirmPanelMain);
|
|
||||||
confirmPanelMain.addActionListener(this);
|
confirmPanelMain.addActionListener(this);
|
||||||
confirmPanelMain.setVflex("0");
|
confirmPanelMain.setVflex("0");
|
||||||
|
|
||||||
|
@ -309,16 +300,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
if (Events.ON_CLICK.equals(event.getName())) {
|
if (Events.ON_CLICK.equals(event.getName())) {
|
||||||
if (event.getTarget() instanceof ToolBarButton) {
|
if (event.getTarget() instanceof Label) {
|
||||||
((WRCTabPanel) tabbox.getSelectedTabpanel()).updatePFI();
|
|
||||||
ToolBarButton button = (ToolBarButton)event.getTarget();
|
|
||||||
if ("btnSave".equals(button.getAttribute("name").toString())) {
|
|
||||||
onSave();
|
|
||||||
}
|
|
||||||
if ("btnExport".equals(button.getAttribute("name").toString())) {
|
|
||||||
cmd_export();
|
|
||||||
}
|
|
||||||
} else if (event.getTarget() instanceof Label) {
|
|
||||||
if (tabbox.getSelectedIndex() == 0) {
|
if (tabbox.getSelectedIndex() == 0) {
|
||||||
Label lb = (Label)event.getTarget();
|
Label lb = (Label)event.getTarget();
|
||||||
if ("SelectAll".equals(lb.getAttribute("name").toString())) {
|
if ("SelectAll".equals(lb.getAttribute("name").toString())) {
|
||||||
|
@ -337,6 +319,14 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
((WRCTabPanel) tabbox.getTabpanel(oldtabidx)).refresh();
|
((WRCTabPanel) tabbox.getTabpanel(oldtabidx)).refresh();
|
||||||
tabbox.setSelectedIndex(oldtabidx);
|
tabbox.setSelectedIndex(oldtabidx);
|
||||||
}
|
}
|
||||||
|
else if ("btnSave".equals(bt.getName())) {
|
||||||
|
((WRCTabPanel) tabbox.getSelectedTabpanel()).updatePFI();
|
||||||
|
onSave();
|
||||||
|
}
|
||||||
|
else if ("btnExport".equals(bt.getName())) {
|
||||||
|
((WRCTabPanel) tabbox.getSelectedTabpanel()).updatePFI();
|
||||||
|
cmd_export();
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
if("NewPrintFormat".equals(bt.getName())){
|
if("NewPrintFormat".equals(bt.getName())){
|
||||||
copyFormat();
|
copyFormat();
|
||||||
|
|
|
@ -404,7 +404,7 @@ public class ReportAction implements EventListener<Event>
|
||||||
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false) && MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT) == Boolean.TRUE)
|
if (MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false) && Boolean.TRUE.equals(MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT)))
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(Env.getCtx(), "NewReport")).append(" **");
|
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(Env.getCtx(), "NewReport")).append(" **");
|
||||||
pp = new KeyNamePair(-1, sb.toString());
|
pp = new KeyNamePair(-1, sb.toString());
|
||||||
|
|
|
@ -606,7 +606,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
||||||
}
|
}
|
||||||
// IDEMPIERE-297 - Check for Table Access and Window Access for New Report
|
// IDEMPIERE-297 - Check for Table Access and Window Access for New Report
|
||||||
if ( MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false)
|
if ( MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false)
|
||||||
&& MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT) == Boolean.TRUE)
|
&& Boolean.TRUE.equals(MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT)))
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(Env.getCtx(), "NewReport")).append(" **");
|
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(Env.getCtx(), "NewReport")).append(" **");
|
||||||
KeyNamePair pp = new KeyNamePair(-1, sb.toString());
|
KeyNamePair pp = new KeyNamePair(-1, sb.toString());
|
||||||
|
|
|
@ -63,11 +63,11 @@ public final class ConvertMap_PostgreSQL {
|
||||||
s_pg.put("\\bBITMAP INDEX\\b", "INDEX");
|
s_pg.put("\\bBITMAP INDEX\\b", "INDEX");
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
s_pg.put("\\bSYSDATE\\b", "CURRENT_TIMESTAMP"); // alternative: NOW()
|
s_pg.put("\\bSYSDATE\\b", "now()");
|
||||||
//begin vpj-cd e-evolution 03/11/2005 PostgreSQL
|
//begin vpj-cd e-evolution 03/11/2005 PostgreSQL
|
||||||
s_pg.put("\\bDUMP\\b", "MD5");
|
s_pg.put("\\bDUMP\\b", "MD5");
|
||||||
s_pg.put("END CASE", "END");
|
s_pg.put("END CASE", "END");
|
||||||
s_pg.put("\\bgetDate\\b\\(\\)", "CURRENT_TIMESTAMP"); // alternative: NOW()
|
s_pg.put("\\bgetDate\\b\\(\\)", "now()");
|
||||||
//end vpj-cd e-evolution 03/11/2005 PostgreSQL
|
//end vpj-cd e-evolution 03/11/2005 PostgreSQL
|
||||||
s_pg.put("\\bNVL\\b", "COALESCE");
|
s_pg.put("\\bNVL\\b", "COALESCE");
|
||||||
s_pg.put("\\bTO_DATE\\b", "TO_TIMESTAMP");
|
s_pg.put("\\bTO_DATE\\b", "TO_TIMESTAMP");
|
||||||
|
|
Loading…
Reference in New Issue