private void data_employee() { // String date = lb_date_baptism.getText(); String name = tf_search.getText(); if (name.isEmpty()) { return; } String year = "" + dp_year.getYear(); System.out.println(year); if (System.getProperty("version", "resto").equals("resto")) { loadData_baptism(S2_customers.ret_guest(name, year)); } else { loadData_baptism(S2_customers.ret_customers(name, year)); } }
private void myInit() { // MyDB.setNames("db_pos_restaurant"); if (System.getProperty("version", "resto").equals("resto")) { ds_title.setText("Customers"); } // if (System.getProperty("os.name").equalsIgnoreCase("linux")) { // // this.setUndecorated(true); // } else { //// JOptionPane.showMessageDialog(null, System.getProperty("os.name")); // this.setUndecorated(false); // } tf_search.grabFocus(); init_long_press(); init_key(); init_tbl_baptism(); // init_auto_scroll(); init_tbl_charges(); hiden(false); action_year(); }