Archived
0

Create repository

This commit is contained in:
iMoHax
2014-07-16 16:38:48 +04:00
committed by iMoHax
commit 15bfe2e0f3
79 changed files with 5741 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.cell.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.control.*?>
<?import ru.trader.view.support.cells.DoubleCell?>
<?import ru.trader.view.support.cells.OfferCellValueImpl?>
<?import ru.trader.view.support.cells.OfferTableCell?>
<HBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ru.trader.controllers.OrdersController">
<TableView fx:id="tblOrders" editable="true">
<columns>
<TableColumn minWidth="200.0" prefWidth="200.0" text="Товар">
<cellValueFactory>
<PropertyValueFactory property="name"/>
</cellValueFactory>
</TableColumn>
<TableColumn minWidth="80.0" prefWidth="80.0" text="Цена">
<cellFactory>
<DoubleCell/>
</cellFactory>
<cellValueFactory>
<PropertyValueFactory property="price"/>
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="count" minWidth="80.0" prefWidth="80.0" text="Кол-во">
<cellValueFactory>
<PropertyValueFactory property="count"/>
</cellValueFactory>
</TableColumn>
<TableColumn minWidth="120.0" prefWidth="120.0" text="Покупатель">
<cellValueFactory>
<OfferCellValueImpl property="buyer"/>
</cellValueFactory>
</TableColumn>
<TableColumn minWidth="80.0" prefWidth="80.0" text="Прибыль">
<cellFactory>
<DoubleCell/>
</cellFactory>
<cellValueFactory>
<PropertyValueFactory property="profit"/>
</cellValueFactory>
</TableColumn>
<TableColumn resizable="false" text="Максимум">
<columns>
<TableColumn fx:id="maxCount" minWidth="80.0" prefWidth="80.0" text="Кол-во">
<cellValueFactory>
<PropertyValueFactory property="max"/>
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="bestProfit" minWidth="80.0" prefWidth="80.0" text="Прибыль"
sortType="DESCENDING">
<cellFactory>
<DoubleCell/>
</cellFactory>
<cellValueFactory>
<PropertyValueFactory property="bestProfit"/>
</cellValueFactory>
</TableColumn>
</columns>
</TableColumn>
</columns>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
</columnResizePolicy>
<sortOrder>
<fx:reference source="bestProfit"/>
</sortOrder>
</TableView>
<TableView fx:id="tblBuyers">
<columns>
<TableColumn minWidth="120.0" prefWidth="120.0" text="Покупатель">
<cellFactory>
<OfferTableCell/>
</cellFactory>
<cellValueFactory>
<PropertyValueFactory property="price"/>
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="curProfit" minWidth="80.0" prefWidth="80.0" text="Прибыль" sortType="DESCENDING">
<cellFactory>
<DoubleCell/>
</cellFactory>
<cellValueFactory>
<PropertyValueFactory property="profit"/>
</cellValueFactory>
</TableColumn>
</columns>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
</columnResizePolicy>
<sortOrder>
<fx:reference source="curProfit"/>
</sortOrder>
</TableView>
</HBox>