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();
}
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();
}
Aggregations