企业信息
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)
|
if (dtSubTypeSum != null && dtSubTypeSum.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
string NameType = string.Empty;
|
string NameType = string.Empty;
|
||||||
|
int PRODUCTION = 0;
|
||||||
int CountRow = 0;
|
int CountRow = 0;
|
||||||
foreach (DataRow item in dtSubTypeSum.Rows)
|
foreach (DataRow item in dtSubTypeSum.Rows)
|
||||||
{
|
{
|
||||||
NameType = item["NAME"].ToString().Trim();
|
try
|
||||||
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
|
||||||
if (result.listSubTypeCount.ContainsKey(NameType))
|
|
||||||
{
|
{
|
||||||
result.listSubTypeCount[NameType] += CountRow;
|
PRODUCTION = int.Parse(item["PRODUCTION"].ToString().Trim());
|
||||||
}
|
NameType = ((PRODUCTIONEnum)PRODUCTION).GetDescription();
|
||||||
else
|
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
||||||
{
|
if (result.listSubTypeCount.ContainsKey(NameType))
|
||||||
result.listSubTypeCount.Add(NameType, CountRow);
|
{
|
||||||
|
result.listSubTypeCount[NameType] += CountRow;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.listSubTypeCount.Add(NameType, CountRow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user