This commit is contained in:
高飞 2022-09-19 10:58:28 +08:00
parent 951c54533d
commit 8b9e98193a
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ namespace FineUIPro.Web
{
if (!IsPostBack)
{
var oneOKRates = from x in Funs.DB.HJGL_FL_OneOKRate where x.ProjectId == this.CurrUser.LoginProjectId select x;
var oneOKRates = from x in Funs.DB.HJGL_FL_NdtList where x.ProjectId == this.CurrUser.LoginProjectId select x;
if (oneOKRates.Count() > 0)
{
int totalNum = 0, oKNum = 0;
@ -68,7 +68,7 @@ namespace FineUIPro.Web
Model.BusinessColumn businessColumn = new Model.BusinessColumn();
List<string> listCategories = new List<string>();
businessColumn.title = "一次合格率";
var views = (from x in Funs.DB.HJGL_FL_OneOKRate where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
var views = (from x in Funs.DB.HJGL_FL_NdtList where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
var units = views.Select(x => x.UnitName).Distinct().ToList();
for (int i = 0; i < units.Count; i++)
{
@ -117,7 +117,7 @@ namespace FineUIPro.Web
Model.BusinessColumn businessColumn = new Model.BusinessColumn();
List<string> listCategories = new List<string>();
businessColumn.title = "一次合格率";
var views = (from x in Funs.DB.HJGL_FL_OneOKRate where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
var views = (from x in Funs.DB.HJGL_FL_NdtList where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
var devices = views.Select(x => x.DeviceName).Distinct().ToList();
for (int i = 0; i < devices.Count; i++)
{