Subversion Repositories SmartDukaan

Rev

Rev 14491 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14491 Rev 14821
Line 13... Line 13...
13
import in.shop2020.warehouse.InventoryItem;
13
import in.shop2020.warehouse.InventoryItem;
14
import in.shop2020.warehouse.Scan;
14
import in.shop2020.warehouse.Scan;
15
import in.shop2020.warehouse.ScanType;
15
import in.shop2020.warehouse.ScanType;
16
import in.shop2020.warehouse.WarehouseService.Client;
16
import in.shop2020.warehouse.WarehouseService.Client;
17
 
17
 
-
 
18
import java.text.SimpleDateFormat;
18
import java.util.ArrayList;
19
import java.util.ArrayList;
19
import java.util.Date;
20
import java.util.Date;
20
import java.util.List;
21
import java.util.List;
21
 
22
 
22
import org.apache.commons.logging.Log;
23
import org.apache.commons.logging.Log;
Line 29... Line 30...
29
public class DoaOutController extends BaseController {
30
public class DoaOutController extends BaseController {
30
    private Log logger = LogFactory.getLog(DoaOutController.class);
31
    private Log logger = LogFactory.getLog(DoaOutController.class);
31
    private String id;
32
    private String id;
32
    private String creditNote;
33
    private String creditNote;
33
    List<DoaOutInventoryItem> inventoryItems;
34
    List<DoaOutInventoryItem> inventoryItems;
-
 
35
    private SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
34
 
36
 
35
    public String index() {
37
    public String index() {
36
        try {
38
        try {
37
        	//List<InventoryItem> tobeRemovedInventoryItems = new ArrayList<InventoryItem>();
39
        	//List<InventoryItem> tobeRemovedInventoryItems = new ArrayList<InventoryItem>();
38
            Client warehouseClient = new WarehouseClient().getClient();
40
            Client warehouseClient = new WarehouseClient().getClient();
Line 133... Line 135...
133
                    .getItem(itemId));
135
                    .getItem(itemId));
134
        } catch (Exception e) {
136
        } catch (Exception e) {
135
            return "N/A";
137
            return "N/A";
136
        }
138
        }
137
    }
139
    }
-
 
140
    
-
 
141
    public String getDoaOutDateTime(long doaOutTimeStamp){
-
 
142
    	return sdf.format(new Date(doaOutTimeStamp));
-
 
143
    }
138
 
144
 
139
    public String getId() {
145
    public String getId() {
140
        return id;
146
        return id;
141
    }
147
    }
142
 
148