◆ afterCompose()
void org.turro.erp.purchase.ReceiptsGrid.afterCompose |
( |
| ) |
|
Definition at line 101 of file purchase/ReceiptsGrid.java.
103 setRowRenderer(
new ReceiptItemRowRenderer(
this));
104 setModel(
new ReceiptItemModel(
new ArrayList<ReceiptItem>(),
this));
◆ deleteReceipt()
void org.turro.erp.purchase.ReceiptsGrid.deleteReceipt |
( |
ReceiptItem |
dro | ) |
|
Definition at line 172 of file purchase/ReceiptsGrid.java.
173 new ErpPU().deleteObject(dro);
174 ((ReceiptItemModel) ReceiptsGrid.this.getGroupsModel()).removeItem(dro);
◆ getEditBox()
Component org.turro.erp.purchase.ReceiptsGrid.getEditBox |
( |
final Row |
row, |
|
|
final ReceiptItem |
dr |
|
) |
| |
Definition at line 142 of file purchase/ReceiptsGrid.java.
143 Vlayout vbox =
new Vlayout();
144 Button edit =
new Button(Application.getString(
"lEdit"), Images.getImage(dr.getOrderItem().getType()));
145 edit.addEventListener(Events.ON_CLICK,
new EventListener() {
147 public void onEvent(Event event)
throws Exception {
148 doEdit(dr,
new Command() {
150 public Object execute(Context context) {
152 new ErpPU().deleteObject(dr);
155 row.getChildren().clear();
156 ((ReceiptItemModel) ReceiptsGrid.this.getGroupsModel()).replaceItem(
new ErpPU().saveObject(dr));
157 lastDate = dr.getDocumentDate();
164 vbox.appendChild(edit);
165 LabelExtended le =
new LabelExtended();
166 le.setResourceValue(dr.getStatus().toString());
167 le.setSclass(
"softLabel");
168 vbox.appendChild(le);
◆ importReceipt()
void org.turro.erp.purchase.ReceiptsGrid.importReceipt |
( |
| ) |
|
Definition at line 72 of file purchase/ReceiptsGrid.java.
73 final List<OrderItem> l =
new ArrayList<>();
74 HashMap<String, Object> map =
new HashMap<>();
75 map.put(
"orderList", l);
76 ElephantMenu.showModalZulFile(
"lSelect",
"/WEB-INF/_zul/erp/purchase/orderSelector.zul", map,
new Command() {
78 public Object execute(Context context) {
79 for(OrderItem oi : l) {
80 ReceiptItem ri = oi.startReceipt(lastDate);
84 ((ReceiptItemModel) ReceiptsGrid.this.getGroupsModel()).addItem(
new ErpPU().saveObject(ri));
90 ((ReceiptItemModel) ReceiptsGrid.this.getGroupsModel()).addItem(
new ErpPU().saveObject(ri));
Rows getRows(boolean create)
◆ newReceipt()
void org.turro.erp.purchase.ReceiptsGrid.newReceipt |
( |
| ) |
|
Definition at line 52 of file purchase/ReceiptsGrid.java.
53 final ReceiptItem dr =
new ReceiptItem();
54 if(lastDate ==
null) {
55 lastDate =
new CheckDate().setHour(8).setMinute(0).setSecond(0).getDate();
57 dr.setStartWorking(lastDate);
58 dr.setDedication(1.0);
59 doEdit(dr,
new Command() {
61 public Object execute(Context context) {
65 ((ReceiptItemModel) ReceiptsGrid.this.getGroupsModel()).addItem(
new ErpPU().saveObject(dr));
◆ refresh()
void org.turro.erp.purchase.ReceiptsGrid.refresh |
( |
| ) |
|
The documentation for this class was generated from the following file: