Browse Source

修改收购综合报表。

master
yibo 7 years ago
parent
commit
fe365d5b27
1 changed files with 13 additions and 13 deletions
  1. +13
    -13
      B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Reports/ComprehensiveReport.cs

+ 13
- 13
B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Reports/ComprehensiveReport.cs View File

@ -43,7 +43,8 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
ResetTable(table);
}
protected override bool AllDataMode {
protected override bool AllDataMode
{
get { return true; }
}
@ -59,14 +60,18 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
var = (Money<>?)(objToDecimal() + objToDecimal());
row["皮肉重量"] = ;
sum皮肉重量 += ( ?? 0);
var = objToDecimal(row["到厂毛重"]);
row["皮肉比"] = Math.Round((double)( / * 100), 2);
}
catch { }
}
try
{
table.SumRow["皮肉重量"] = sum皮肉重量;
}
catch { }
SetCommonDivSumTable(table, "毛重单价", "应付金额", "到厂毛重");
SetCommonDivSumTable(table, "实付单价", "实付金额", "到厂毛重");
SetCommonDivSumTable(table, "单头盈亏", "盈亏", "收购头数");
@ -87,11 +92,6 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
}
// Set占比(table,);
try
{
table.SumRow["皮肉重量"] = sum皮肉重量;
}
catch { }
}
private void Set占比(DFDataTable table)
@ -136,15 +136,15 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
}
}
void SetCommonDivSumTable(DFDataTable table, string sumname,string chu, string chuyi,bool mul100=false)
void SetCommonDivSumTable(DFDataTable table, string sumname, string chu, string chuyi, bool mul100 = false)
{
try
{
var value = (Money<>?) (objToDecimal(table.SumRow[chu]) / objToDecimal(table.SumRow[chuyi]));
var m100 = 1;
if (mul100)
{
value = value * 100;
}
m100 = 100;
var value = (Money<>?)(objToDecimal(table.SumRow[chu]) / objToDecimal(table.SumRow[chuyi]) * m100);
table.SumRow[sumname] = value;
}
catch { }


Loading…
Cancel
Save