Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 24 → Rev 23

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