| Line 104... |
Line 104... |
| 104 |
header.getColumnFormatter().setWidth(6, "256px");
|
104 |
header.getColumnFormatter().setWidth(6, "256px");
|
| 105 |
|
105 |
|
| 106 |
acceptOrder.setText("Accept");
|
106 |
acceptOrder.setText("Accept");
|
| 107 |
notAvailable.setText("Out Of Stock");
|
107 |
notAvailable.setText("Out Of Stock");
|
| 108 |
addBillingInfo.setText("Bill");
|
108 |
addBillingInfo.setText("Bill");
|
| - |
|
109 |
addBillingInfo.setVisible(false);
|
| 109 |
printInvoice.setText("Print Invoice");
|
110 |
printInvoice.setText("Print Invoice");
|
| 110 |
receiveReturn.setText("Receive Return");
|
111 |
receiveReturn.setText("Receive Return");
|
| 111 |
validateDOA.setText("Validate DOA");
|
112 |
validateDOA.setText("Validate DOA");
|
| 112 |
|
113 |
|
| 113 |
header.setWidget(0, 0, acceptOrder);
|
114 |
header.setWidget(0, 0, acceptOrder);
|
| Line 156... |
Line 157... |
| 156 |
@Override
|
157 |
@Override
|
| 157 |
public void onClick(ClickEvent event) {
|
158 |
public void onClick(ClickEvent event) {
|
| 158 |
if(!printInvoice.isEnabled())
|
159 |
if(!printInvoice.isEnabled())
|
| 159 |
return;
|
160 |
return;
|
| 160 |
if(order.getJacketNumber()==0){
|
161 |
if(order.getJacketNumber()==0){
|
| 161 |
JacketInfoBox box = new JacketInfoBox(eventbus, order);
|
162 |
JacketInfoBox box = new JacketInfoBox(eventbus, order, user);
|
| 162 |
//box.clean();
|
163 |
//box.clean();
|
| 163 |
box.center();
|
164 |
box.center();
|
| 164 |
}else{
|
165 |
}else{
|
| 165 |
String invoiceGenerationUrl = "http://" + Window.Location.getHost() + "/Support/invoice/";
|
166 |
String invoiceGenerationUrl = "http://" + Window.Location.getHost() + "/Support/invoice/";
|
| 166 |
invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
|
167 |
invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
|
| Line 194... |
Line 195... |
| 194 |
switch(mask){
|
195 |
switch(mask){
|
| 195 |
case NEW:
|
196 |
case NEW:
|
| 196 |
maskButtonsForWE(true, true, true, false, false, false, false);
|
197 |
maskButtonsForWE(true, true, true, false, false, false, false);
|
| 197 |
break;
|
198 |
break;
|
| 198 |
case ACCEPT:
|
199 |
case ACCEPT:
|
| 199 |
maskButtonsForWE(false, false, false, false, true, false, false);
|
200 |
maskButtonsForWE(false, false, false, true, true, false, false);
|
| 200 |
break;
|
201 |
break;
|
| 201 |
case REJECT:
|
202 |
case REJECT:
|
| 202 |
maskButtonsForWE(false, false, false, false, false, false, false);
|
203 |
maskButtonsForWE(false, false, false, false, false, false, false);
|
| 203 |
break;
|
204 |
break;
|
| 204 |
case BILL:
|
205 |
case BILL:
|
| Line 364... |
Line 365... |
| 364 |
orderDetails3.add(getHorizontalPanel("TOTAL AMOUNT(Rs): ", transaction.getTotalAmount()+""));
|
365 |
orderDetails3.add(getHorizontalPanel("TOTAL AMOUNT(Rs): ", transaction.getTotalAmount()+""));
|
| 365 |
|
366 |
|
| 366 |
orderDetails4.add(getHorizontalPanel("AIRWAY BILL NO: ", transaction.getAirwayBillNo()));
|
367 |
orderDetails4.add(getHorizontalPanel("AIRWAY BILL NO: ", transaction.getAirwayBillNo()));
|
| 367 |
orderDetails4.add(getHorizontalPanel("INVOICE NUMBER: ", transaction.getInvoiceNumber()));
|
368 |
orderDetails4.add(getHorizontalPanel("INVOICE NUMBER: ", transaction.getInvoiceNumber()));
|
| 368 |
orderDetails4.add(getHorizontalPanel("JACKET NUMBER: ", transaction.getJacketNumber() + ""));
|
369 |
orderDetails4.add(getHorizontalPanel("JACKET NUMBER: ", transaction.getJacketNumber() + ""));
|
| - |
|
370 |
orderDetails4.add(getHorizontalPanel("ITEM NO: ", getDisplayNameForNullableString(transaction.getItemNumber())));
|
| - |
|
371 |
orderDetails4.add(getHorizontalPanel("IMEI NO: ", transaction.getImeiNumber() + ""));
|
| - |
|
372 |
|
| 369 |
orderDetails4.add(getHorizontalPanel("BILLED BY: ", transaction.getBilledBy()));
|
373 |
orderDetails4.add(getHorizontalPanel("BILLED BY: ", transaction.getBilledBy()));
|
| 370 |
}
|
374 |
}
|
| 371 |
|
375 |
|
| 372 |
private HorizontalPanel getHorizontalPanel(String labelText, String valueText) {
|
376 |
private HorizontalPanel getHorizontalPanel(String labelText, String valueText) {
|
| 373 |
HorizontalPanel hpanel = new HorizontalPanel();
|
377 |
HorizontalPanel hpanel = new HorizontalPanel();
|
| Line 398... |
Line 402... |
| 398 |
displayAddress.append(order.getCustomerAddress2() + "\n");
|
402 |
displayAddress.append(order.getCustomerAddress2() + "\n");
|
| 399 |
displayAddress.append(order.getCustomerCity() + "\n");
|
403 |
displayAddress.append(order.getCustomerCity() + "\n");
|
| 400 |
displayAddress.append(order.getCustomerState() + " PIN - " + order.getCustomerPincode());
|
404 |
displayAddress.append(order.getCustomerState() + " PIN - " + order.getCustomerPincode());
|
| 401 |
return displayAddress.toString();
|
405 |
return displayAddress.toString();
|
| 402 |
}
|
406 |
}
|
| - |
|
407 |
|
| - |
|
408 |
private String getDisplayNameForNullableString(String s) {
|
| - |
|
409 |
if (s == null)
|
| - |
|
410 |
return "";
|
| - |
|
411 |
return s;
|
| - |
|
412 |
}
|
| 403 |
}
|
413 |
}
|