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


Loading…
Cancel
Save