本文整理汇总了Java中com.openbravo.pos.customers.CustomerInfo类的典型用法代码示例。如果您正苦于以下问题:Java CustomerInfo类的具体用法?Java CustomerInfo怎么用?Java CustomerInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomerInfo类属于com.openbravo.pos.customers包,在下文中一共展示了CustomerInfo类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: writeValueEOF
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
public void writeValueEOF() {
m_sID = null;
m_dCreated = null;
m_timereservation.setDate(null);
assignCustomer(new CustomerInfo(null));
m_jtxtChairs.reset();
m_bReceived = false;
m_jtxtDescription.reset();
m_timereservation.setEnabled(false);
txtCustomer.setEnabled(false);
m_jtxtChairs.setEnabled(false);
m_jtxtDescription.setEnabled(false);
m_jKeys.setEnabled(false);
m_jbtnReceive.setEnabled(false);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:JTicketsBagRestaurantRes.java
示例2: writeValueInsert
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
public void writeValueInsert() {
m_sID = null;
m_dCreated = null;
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate(m_dcurrentday);
assignCustomer(new CustomerInfo(null));
m_jtxtChairs.setValueInteger(2);
m_bReceived = false;
m_jtxtDescription.reset();
m_timereservation.setEnabled(true);
txtCustomer.setEnabled(true);
m_jtxtChairs.setEnabled(true);
m_jtxtDescription.setEnabled(true);
m_jKeys.setEnabled(true);
m_jbtnReceive.setEnabled(true);
txtCustomer.activate();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:JTicketsBagRestaurantRes.java
示例3: writeValueDelete
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
public void writeValueDelete(Object value) {
Object[] res = (Object[]) value;
m_sID = res[0];
m_dCreated = (Date) res[1];
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate((Date) res[2]);
CustomerInfo c = new CustomerInfo((String) res[3]);
c.setTaxid((String) res[4]);
c.setSearchkey((String) res[5]);
c.setName((String) res[6]);
assignCustomer(c);
m_jtxtChairs.setValueInteger(((Integer)res[7]).intValue());
m_bReceived = ((Boolean)res[8]).booleanValue();
m_jtxtDescription.setText(Formats.STRING.formatValue(res[9]));
m_timereservation.setEnabled(false);
txtCustomer.setEnabled(false);
m_jtxtChairs.setEnabled(false);
m_jtxtDescription.setEnabled(false);
m_jKeys.setEnabled(false);
m_jbtnReceive.setEnabled(false);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:23,代码来源:JTicketsBagRestaurantRes.java
示例4: writeValueEdit
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
public void writeValueEdit(Object value) {
Object[] res = (Object[]) value;
m_sID = res[0];
m_dCreated = (Date) res[1];
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate((Date) res[2]);
CustomerInfo c = new CustomerInfo((String) res[3]);
c.setTaxid((String) res[4]);
c.setSearchkey((String) res[5]);
c.setName((String) res[6]);
assignCustomer(c);
m_jtxtChairs.setValueInteger(((Integer)res[7]).intValue());
m_bReceived = ((Boolean)res[8]).booleanValue();
m_jtxtDescription.setText(Formats.STRING.formatValue(res[9]));
m_timereservation.setEnabled(true);
txtCustomer.setEnabled(true);
m_jtxtChairs.setEnabled(true);
m_jtxtDescription.setEnabled(true);
m_jKeys.setEnabled(true);
m_jbtnReceive.setEnabled(!m_bReceived); // se habilita si no se ha recibido al cliente
txtCustomer.activate();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JTicketsBagRestaurantRes.java
示例5: writeValueEOF
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/**
*
*/
@Override
public void writeValueEOF() {
m_sID = null;
m_dCreated = null;
m_timereservation.setDate(null);
assignCustomer(new CustomerInfo(null));
m_jtxtChairs.reset();
m_bReceived = false;
m_jtxtDescription.reset();
m_timereservation.setEnabled(false);
txtCustomer.setEnabled(false);
m_jtxtChairs.setEnabled(false);
m_jtxtDescription.setEnabled(false);
m_jKeys.setEnabled(false);
m_jbtnReceive.setEnabled(false);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:JTicketsBagRestaurantRes.java
示例6: writeValueInsert
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/**
*
*/
public void writeValueInsert() {
m_sID = null;
m_dCreated = null;
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate(m_dcurrentday);
assignCustomer(new CustomerInfo(null));
m_jtxtChairs.setValueInteger(2);
m_bReceived = false;
m_jtxtDescription.reset();
m_timereservation.setEnabled(true);
txtCustomer.setEnabled(true);
m_jtxtChairs.setEnabled(true);
m_jtxtDescription.setEnabled(true);
m_jKeys.setEnabled(true);
m_jbtnReceive.setEnabled(true);
txtCustomer.activate();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:23,代码来源:JTicketsBagRestaurantRes.java
示例7: writeValueDelete
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/**
*
* @param value
*/
@Override
public void writeValueDelete(Object value) {
Object[] res = (Object[]) value;
m_sID = res[0];
m_dCreated = (Date) res[1];
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate((Date) res[2]);
CustomerInfo c = new CustomerInfo((String) res[3]);
c.setTaxid((String) res[4]);
c.setSearchkey((String) res[5]);
c.setName((String) res[6]);
assignCustomer(c);
m_jtxtChairs.setValueInteger(((Integer)res[7]).intValue());
m_bReceived = ((Boolean)res[8]).booleanValue();
m_jtxtDescription.setText(Formats.STRING.formatValue(res[9]));
m_timereservation.setEnabled(false);
txtCustomer.setEnabled(false);
m_jtxtChairs.setEnabled(false);
m_jtxtDescription.setEnabled(false);
m_jKeys.setEnabled(false);
m_jbtnReceive.setEnabled(false);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:28,代码来源:JTicketsBagRestaurantRes.java
示例8: writeValueEdit
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/**
*
* @param value
*/
@Override
public void writeValueEdit(Object value) {
Object[] res = (Object[]) value;
m_sID = res[0];
m_dCreated = (Date) res[1];
m_timereservation.setCheckDates(m_dcurrentday, new Date(m_dcurrentday.getTime() + 3600000L));
m_timereservation.setDate((Date) res[2]);
CustomerInfo c = new CustomerInfo((String) res[3]);
c.setTaxid((String) res[4]);
c.setSearchkey((String) res[5]);
c.setName((String) res[6]);
assignCustomer(c);
m_jtxtChairs.setValueInteger(((Integer)res[7]).intValue());
m_bReceived = ((Boolean)res[8]).booleanValue();
m_jtxtDescription.setText(Formats.STRING.formatValue(res[9]));
m_timereservation.setEnabled(true);
txtCustomer.setEnabled(true);
m_jtxtChairs.setEnabled(true);
m_jtxtDescription.setEnabled(true);
m_jKeys.setEnabled(true);
m_jbtnReceive.setEnabled(!m_bReceived); // se habilita si no se ha recibido al cliente
txtCustomer.activate();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:30,代码来源:JTicketsBagRestaurantRes.java
示例9: jButton1ActionPerformed
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
finder.search(customer);
finder.setVisible(true);
CustomerInfo c = finder.getSelectedCustomer();
if (c == null) {
assignCustomer(new CustomerInfo(null));
} else {
assignCustomer(c);
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:JTicketsBagRestaurantRes.java
示例10: viewTables
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
public boolean viewTables(CustomerInfo c) {
// deberiamos comprobar si estamos en reservations o en tables...
if (m_jreservations.deactivate()) {
showView("map"); // arrancamos en la vista de las mesas.
m_PlaceClipboard = null;
customer = c;
printState();
return true;
} else {
return false;
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:JTicketsBagRestaurantMap.java
示例11: viewTables
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/**
*
* @param c
* @return
*/
public boolean viewTables(CustomerInfo c) {
// deberiamos comprobar si estamos en reservations o en tables...
if (m_jreservations.deactivate()) {
showView("map"); // arrancamos en la vista de las mesas.
m_PlaceClipboard = null;
customer = c;
printState();
return true;
} else {
return false;
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:JTicketsBagRestaurantMap.java
示例12: JTicketsBagRestaurantRes
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/** Creates new form JPanelReservations */
public JTicketsBagRestaurantRes(AppView oApp, JTicketsBagRestaurantMap restaurantmap) {
m_restaurantmap = restaurantmap;
dlCustomers = (DataLogicCustomers) oApp.getBean("com.openbravo.pos.customers.DataLogicCustomers");
m_dcurrentday = null;
initComponents();
m_datepanel = new JCalendarPanel();
jPanelDate.add(m_datepanel, BorderLayout.CENTER);
m_datepanel.addPropertyChangeListener("Date", new DateChangeCalendarListener());
m_timepanel = new JTimePanel(null, JTimePanel.BUTTONS_HOUR);
m_timepanel.setPeriod(3600000L); // Los milisegundos que tiene una hora.
jPanelTime.add(m_timepanel, BorderLayout.CENTER);
m_timepanel.addPropertyChangeListener("Date", new DateChangeTimeListener());
m_timereservation = new JTimePanel(null, JTimePanel.BUTTONS_MINUTE);
m_jPanelTime.add(m_timereservation, BorderLayout.CENTER);
txtCustomer.addEditorKeys(m_jKeys);
m_jtxtChairs.addEditorKeys(m_jKeys);
m_jtxtDescription.addEditorKeys(m_jKeys);
m_Dirty = new DirtyManager();
m_timereservation.addPropertyChangeListener("Date", m_Dirty);
txtCustomer.addPropertyChangeListener("Text", m_Dirty);
txtCustomer.addPropertyChangeListener("Text", new PropertyChangeListener(){
public void propertyChange(PropertyChangeEvent evt) {
customer = new CustomerInfo(null);
customer.setTaxid(null);
customer.setSearchkey(null);
customer.setName(txtCustomer.getText());
}
});
m_jtxtChairs.addPropertyChangeListener("Text", m_Dirty);
m_jtxtDescription.addPropertyChangeListener("Text", m_Dirty);
writeValueEOF();
ListProvider lpr = new ListProviderCreator(dlCustomers.getReservationsList(), new MyDateFilter());
SaveProvider spr = new SaveProvider(dlCustomers.getReservationsUpdate(), dlCustomers.getReservationsInsert(), dlCustomers.getReservationsDelete());
m_bd = new BrowsableEditableData(lpr, spr, new CompareReservations(), this, m_Dirty);
JListNavigator nl = new JListNavigator(m_bd, true);
nl.setCellRenderer(new JCalendarItemRenderer());
m_jPanelList.add(nl, BorderLayout.CENTER);
// La Toolbar
m_jToolbar.add(new JLabelDirty(m_Dirty));
m_jToolbar.add(new JCounter(m_bd));
m_jToolbar.add(new JNavigator(m_bd));
m_jToolbar.add(new JSaver(m_bd));
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:59,代码来源:JTicketsBagRestaurantRes.java
示例13: assignCustomer
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
private void assignCustomer(CustomerInfo c) {
txtCustomer.setText(c.getName());
customer = c;
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:6,代码来源:JTicketsBagRestaurantRes.java
示例14: JTicketsBagRestaurantRes
import com.openbravo.pos.customers.CustomerInfo; //导入依赖的package包/类
/** Creates new form JPanelReservations
* @param oApp
* @param restaurantmap */
public JTicketsBagRestaurantRes(AppView oApp, JTicketsBagRestaurantMap restaurantmap) {
m_restaurantmap = restaurantmap;
dlCustomers = (DataLogicCustomers) oApp.getBean("com.openbravo.pos.customers.DataLogicCustomers");
m_dcurrentday = null;
initComponents();
m_datepanel = new JCalendarPanel();
jPanelDate.add(m_datepanel, BorderLayout.CENTER);
m_datepanel.addPropertyChangeListener("Date", new DateChangeCalendarListener());
m_timepanel = new JTimePanel(null, JTimePanel.BUTTONS_HOUR);
m_timepanel.setPeriod(3600000L); // Los milisegundos que tiene una hora.
jPanelTime.add(m_timepanel, BorderLayout.CENTER);
m_timepanel.addPropertyChangeListener("Date", new DateChangeTimeListener());
m_timereservation = new JTimePanel(null, JTimePanel.BUTTONS_MINUTE);
m_jPanelTime.add(m_timereservation, BorderLayout.CENTER);
txtCustomer.addEditorKeys(m_jKeys);
m_jtxtChairs.addEditorKeys(m_jKeys);
m_jtxtDescription.addEditorKeys(m_jKeys);
m_Dirty = new DirtyManager();
m_timereservation.addPropertyChangeListener("Date", m_Dirty);
txtCustomer.addPropertyChangeListener("Text", m_Dirty);
txtCustomer.addPropertyChangeListener("Text", new PropertyChangeListener(){
@Override
public void propertyChange(PropertyChangeEvent evt) {
customer = new CustomerInfo(null);
customer.setTaxid(null);
customer.setSearchkey(null);
customer.setName(txtCustomer.getText());
}
});
m_jtxtChairs.addPropertyChangeListener("Text", m_Dirty);
m_jtxtDescription.addPropertyChangeListener("Text", m_Dirty);
writeValueEOF();
ListProvider lpr = new ListProviderCreator(dlCustomers.getReservationsList(), new MyDateFilter());
SaveProvider spr = new SaveProvider(dlCustomers.getReservationsUpdate(), dlCustomers.getReservationsInsert(), dlCustomers.getReservationsDelete());
m_bd = new BrowsableEditableData(lpr, spr, new CompareReservations(), this, m_Dirty);
JListNavigator nl = new JListNavigator(m_bd, true);
nl.setCellRenderer(new JCalendarItemRenderer());
m_jPanelList.add(nl, BorderLayout.CENTER);
// La Toolbar
m_jToolbar.add(new JLabelDirty(m_Dirty));
m_jToolbar.add(new JCounter(m_bd));
m_jToolbar.add(new JNavigator(m_bd));
m_jToolbar.add(new JSaver(m_bd));
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:62,代码来源:JTicketsBagRestaurantRes.java
注:本文中的com.openbravo.pos.customers.CustomerInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论