企业信息
This commit is contained in:
parent
1ee90b9c40
commit
466383510b
@ -286,10 +286,14 @@ 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
|
||||||
|
{
|
||||||
|
PRODUCTION = int.Parse(item["PRODUCTION"].ToString().Trim());
|
||||||
|
NameType = ((PRODUCTIONEnum)PRODUCTION).GetDescription();
|
||||||
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
CountRow = int.Parse(item["cdCount"].ToString().Trim());
|
||||||
if (result.listSubTypeCount.ContainsKey(NameType))
|
if (result.listSubTypeCount.ContainsKey(NameType))
|
||||||
{
|
{
|
||||||
@ -300,6 +304,8 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
|||||||
result.listSubTypeCount.Add(NameType, CountRow);
|
result.listSubTypeCount.Add(NameType, CountRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user