Search in sources :

Example 6 with GudongRateInfo

use of com.kendy.entity.GudongRateInfo in project financial by greatkendy123.

the class GDController method setDynamicTableData_gudong_kaixiao_part.

/**
 * 设置单个动态表的数据(股东开销部分)
 *
 * @time 2018年2月21日
 * @param table
 * @param gudong
 */
private void setDynamicTableData_gudong_kaixiao_part(TableView<GudongRateInfo> table, String gudong) {
    // *(-1);
    Double gudongKaixiao = getKaixiaoByGudong(gudong);
    Double gudongKaixiao_Double = NumUtil.getNumDivide(gudongKaixiao, getComputeTotalProfit());
    String gudongKaixiaoStr = NumUtil.getPercentStr(gudongKaixiao_Double);
    table.getItems().add(new GudongRateInfo("累计开销", gudongKaixiaoStr, gudongKaixiao + ""));
    table.refresh();
}
Also used : GudongRateInfo(com.kendy.entity.GudongRateInfo)

Example 7 with GudongRateInfo

use of com.kendy.entity.GudongRateInfo in project financial by greatkendy123.

the class GDController method setDataToSumTable.

/**
 * 设置主表数据
 * 每生成一个动态表就往左边的股东表中添加记录
 *
 * @time 2018年1月20日
 */
public void setDataToSumTable(TableView<GudongRateInfo> dynamicTable) {
    String gudongName = dynamicTable.getColumns().get(0).getText();
    String gudongValue = dynamicTable.getColumns().get(2).getText();
    String gudongRate = dynamicTable.getColumns().get(1).getText();
    tableGDSum.getItems().add(new GudongRateInfo(gudongName, gudongValue, gudongRate));
    tableGDSum.refresh();
}
Also used : GudongRateInfo(com.kendy.entity.GudongRateInfo)

Aggregations

GudongRateInfo (com.kendy.entity.GudongRateInfo)7 KaixiaoInfo (com.kendy.entity.KaixiaoInfo)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ObservableList (javafx.collections.ObservableList)1 Insets (javafx.geometry.Insets)1 TableColumn (javafx.scene.control.TableColumn)1