企业信息
This commit is contained in:
parent
1ee90b9c40
commit
466383510b
@ -286,19 +286,25 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
||||
if (dtSubTypeSum != null && dtSubTypeSum.Rows.Count > 0)
|
||||
{
|
||||
string NameType = string.Empty;
|
||||
int PRODUCTION = 0;
|
||||
int CountRow = 0;
|
||||
foreach (DataRow item in dtSubTypeSum.Rows)
|
||||
{
|
||||
NameType = item["NAME"].ToString().Trim();
|
||||
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
||||
if (result.listSubTypeCount.ContainsKey(NameType))
|
||||
try
|
||||
{
|
||||
result.listSubTypeCount[NameType] += CountRow;
|
||||
}
|
||||
else
|
||||
{
|
||||
result.listSubTypeCount.Add(NameType, CountRow);
|
||||
PRODUCTION = int.Parse(item["PRODUCTION"].ToString().Trim());
|
||||
NameType = ((PRODUCTIONEnum)PRODUCTION).GetDescription();
|
||||
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
||||
if (result.listSubTypeCount.ContainsKey(NameType))
|
||||
{
|
||||
result.listSubTypeCount[NameType] += CountRow;
|
||||
}
|
||||
else
|
||||
{
|
||||
result.listSubTypeCount.Add(NameType, CountRow);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user