Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 23 → Rev 24

/trunk/src/org/tela_botanica/client/EntryPanel.java
64,7 → 64,6
import com.google.gwt.user.client.ResponseTextHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ChangeListener;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Grid;
196,8 → 195,14
public void onKeyDown(Widget arg0, char arg1, int arg2) {
if(arg1 == KEY_ENTER)
{
mediator.onAddInventoryItem();
date.setText("");
if (ordre==null) {
mediator.onAddInventoryItem();
date.setText("");
}
else {
mediator.onModifyInventoryItem(ordre);
ordre=null;
}
}
}
222,8 → 227,14
public void onKeyDown(Widget arg0, char arg1, int arg2) {
if(arg1 == KEY_ENTER)
{
mediator.onAddInventoryItem();
complementLocation.setText("");
if (ordre==null) {
mediator.onAddInventoryItem();
complementLocation.setText("");
}
else {
mediator.onModifyInventoryItem(ordre);
ordre=null;
}
}
 
}
249,8 → 260,14
public void onKeyDown(Widget arg0, char arg1, int arg2) {
if(arg1 == KEY_ENTER)
{
mediator.onAddInventoryItem();
comment.setText("");
if (ordre==null) {
mediator.onAddInventoryItem();
comment.setText("");
}
else {
mediator.onModifyInventoryItem(ordre);
ordre=null;
}
}
 
}
389,8 → 406,11
String ann=((JSONString) jsonArray .get(3)).stringValue();
if (ann.compareTo("0")!=0) {
nameAssistant.setValue(ann);
nameAssistant.setValue(null);
}
else {
nameAssistant.setValue(null);
}
// Commune
String aloc=((JSONString) jsonArray .get(6)).stringValue();
448,6 → 468,9
}
 
/* +--Fin du code ---------------------------------------------------------------------------------------+
* $Log$
* $Log$
* Revision 1.4 2007-05-21 21:01:35 ddelon
* Modification comportement boutons
*
*
*/
/trunk/src/org/tela_botanica/client/Mediator.java
12,7 → 12,6
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.HTTPRequest;
import com.google.gwt.user.client.ResponseTextHandler;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
 
public class Mediator {
/trunk/src/org/tela_botanica/client/InventoryItemList.java
161,8 → 161,6
private String search = "all";
private String station = "all";
 
private boolean add=false;
public InventoryItemList(Mediator med) {
 
mediator=med;
212,7 → 210,7
public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
if (table.getWidget(row, 0)!=null) {
if ((table.getWidget(row, 0)!=null) && (cell>0)){
selectRow(row);
// Numero d'ordre
mediator.onInventoryItemSelected(table.getText(row, 5));
426,7 → 424,6
if (location.compareTo("")==0) {
location="000null";
}
add=true;
mediator.onInventoryUpdated(location);
updateCount();
}
466,7 → 463,6
new ResponseTextHandler() {
 
public void onCompletion(String str) {
add=false;
mediator.onInventoryUpdated(location);
update();
}
862,6 → 858,7
table.setText(row, 5, aordre);
 
/*
if (add){
if (i ==(arraySize -1)) {
selectRow(row);
874,6 → 871,7
selectRow(row);
}
}
*/
 
table.getCellFormatter().setVisible(row, 5, false);
 
895,8 → 893,6
table.getCellFormatter().setVisible(j, 5, false);
table.getRowFormatter().removeStyleName(j, "inventoryItem-SelectedRow");
}
add=false;
 
setStatusEnabled();