当前位置: 首页>>代码示例>>Java>>正文


Java MessageInf.SGN_NOTICE属性代码示例

本文整理汇总了Java中com.openbravo.data.gui.MessageInf.SGN_NOTICE属性的典型用法代码示例。如果您正苦于以下问题:Java MessageInf.SGN_NOTICE属性的具体用法?Java MessageInf.SGN_NOTICE怎么用?Java MessageInf.SGN_NOTICE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.openbravo.data.gui.MessageInf的用法示例。


在下文中一共展示了MessageInf.SGN_NOTICE属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: deleteTicket

public void deleteTicket() {
    
    if (m_ticketCopy != null) {           
        // Para editar borramos el ticket anterior
        try {               
            m_dlSales.deleteTicket(m_ticketCopy, m_App.getInventoryLocation());
        } catch (BasicException eData) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.nosaveticket"), eData);
            msg.show(this);                
        }            
    }
    
    m_ticket = null;
    m_ticketCopy = null;
    resetToTicket(); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:JTicketsBagTicket.java

示例2: JPaymentCashPos

/** Creates new form JPaymentCash */
public JPaymentCashPos(JPaymentNotifier notifier, DataLogicSystem dlSystem) {
    
    m_notifier = notifier;
    
    initComponents();  
    
    m_jTendered.addPropertyChangeListener("Edition", new RecalculateState());
    m_jTendered.addEditorKeys(m_jKeys);
    
    String code = dlSystem.getResourceAsXML("payment.cash");
    if (code != null) {
        try {
            ScriptEngine script = ScriptFactory.getScriptEngine(ScriptFactory.BEANSHELL);
            script.put("payment", new ScriptPaymentCash(dlSystem));    
            script.eval(code);
        } catch (ScriptException e) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotexecute"), e);
            msg.show(this);
        }
    }
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:23,代码来源:JPaymentCashPos.java

示例3: refresh

public void refresh() {
    
    List a;
    
    try {
        a = m_sentcat.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    m_CategoryModel = new ComboBoxValModel(a);
    m_jCategory.setModel(m_CategoryModel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:CategoriesEditor.java

示例4: refresh

public void refresh() {
    
    List a;
    
    try {
        a = taxparentsent.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    taxparentmodel = new ComboBoxValModel(a);
    m_jTaxParent.setModel(taxparentmodel);    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:TaxEditor.java

示例5: deleteTicket

/**
 *
 */
@Override
public void deleteTicket() {
    
    if (m_ticketCopy != null) {           
        // Para editar borramos el ticket anterior
        try {               
            m_dlSales.deleteTicket(m_ticketCopy, m_App.getInventoryLocation());
        } catch (BasicException eData) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.nosaveticket"), eData);
            msg.show(this);                
        }            
    }
    
    m_ticket = null;
    m_ticketCopy = null;
    resetToTicket(); 
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:JTicketsBagTicket.java

示例6: refresh

/**
 *
 */
@Override
public void refresh() {
    
    List a;
    
    try {
        a = m_sentcat.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    m_CategoryModel = new ComboBoxValModel(a);
    m_jCategory.setModel(m_CategoryModel);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:CategoriesEditor.java

示例7: refresh

/**
 *
 */
@Override
public void refresh() {
    
    List a;
    
    try {
        a = taxparentsent.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    taxparentmodel = new ComboBoxValModel(a);
    m_jTaxParent.setModel(taxparentmodel);    
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:TaxEditor.java

示例8: save

private void save() {

        customerext.setNotes(txtNotes.getText());

        try {
            dlcustomers.updateCustomerExt(customerext);
            editCustomer(customerext);
        } catch (BasicException e) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.nosave"), e);
            msg.show(this);
        }

    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:CustomersPayment.java

示例9: deactivate

public boolean deactivate() {

        try {
            return bd.actionClosingForm(this);
        } catch (BasicException eD) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.CannotMove"), eD);
            msg.show(this);
            return false;
        }
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:JPanelTable.java

示例10: JPaymentCashPos

/** Creates new form JPaymentCash
     * @param notifier
     * @param dlSystem */
    public JPaymentCashPos(JPaymentNotifier notifier, DataLogicSystem dlSystem) {
        
        m_notifier = notifier;
        
        initComponents();  
        
        m_jTendered.addPropertyChangeListener("Edition", new RecalculateState());
        m_jTendered.addEditorKeys(m_jKeys);
        
// added JDL 11.05.13        
        AppConfig m_config =  new AppConfig(new File((System.getProperty("user.home")), AppLocal.APP_ID + ".properties"));        
        m_config.load();        
        priceWith00 =("true".equals(m_config.getProperty("till.pricewith00")));
        if (priceWith00) {
            // use '00' instead of '.'
            m_jKeys.dotIs00(true);
        }
//        m_config=null;
       
        String code = dlSystem.getResourceAsXML("payment.cash");
        if (code != null) {
            try {
                ScriptEngine script = ScriptFactory.getScriptEngine(ScriptFactory.BEANSHELL);
                script.put("payment", new ScriptPaymentCash(dlSystem));    
                script.eval(code);
            } catch (ScriptException e) {
                MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotexecute"), e);
                msg.show(this);
            }
        }
        
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:35,代码来源:JPaymentCashPos.java

示例11: saveData

private void saveData() {
    try {

        Date d = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
        MovementReason reason = (MovementReason) m_ReasonModel.getSelectedItem();

        if (reason == MovementReason.OUT_CROSSING) {
            // Es una doble entrada
            saveData(new InventoryRecord(
                    d, MovementReason.OUT_MOVEMENT,
                    (LocationInfo) m_LocationsModel.getSelectedItem(),
                    m_App.getAppUserView().getUser().getName(),
                    m_invlines.getLines()
                ));
            saveData(new InventoryRecord(
                    d, MovementReason.IN_MOVEMENT,
                    (LocationInfo) m_LocationsModelDes.getSelectedItem(),
                    m_App.getAppUserView().getUser().getName(),
                    m_invlines.getLines()
                ));                
        } else {  
            // Es un movimiento
            saveData(new InventoryRecord(
                    d, reason,
                    (LocationInfo) m_LocationsModel.getSelectedItem(),
                    m_App.getAppUserView().getUser().getName(),
                    m_invlines.getLines()
                ));
        }
        
        stateToInsert();  
    } catch (BasicException eData) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotsaveinventorydata"), eData);
        msg.show(this);
    }             
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:36,代码来源:StockManagement.java


注:本文中的com.openbravo.data.gui.MessageInf.SGN_NOTICE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。