2023/10/31
This commit is contained in:
@@ -300,9 +300,18 @@ namespace FineUIPro.Web.common
|
||||
/// <returns></returns>
|
||||
public static int GetTotalFilmNum()
|
||||
{
|
||||
int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem
|
||||
join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
select x.CHT_TotalFilm).ToList().Sum());
|
||||
//int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem
|
||||
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
// select x.CHT_TotalFilm).ToList().Sum());
|
||||
int result = 0;
|
||||
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
result = Funs.GetNewIntOrZero(getD2.OneTimeFilmAmount.Split('.')[0]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -311,9 +320,14 @@ namespace FineUIPro.Web.common
|
||||
/// <returns></returns>
|
||||
public static int GetOKFilmNum()
|
||||
{
|
||||
int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem
|
||||
join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
select x.CHT_PassFilm).ToList().Sum());
|
||||
int result = 0;
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
result = Funs.GetNewIntOrZero(getD2.OneTimeFilmQualifiedAmount.Split('.')[0]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -393,8 +407,10 @@ namespace FineUIPro.Web.common
|
||||
private void getNcrInfo()
|
||||
{
|
||||
//闭环项 有完成日期的
|
||||
var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate != null).Count();
|
||||
var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate == null).Count();
|
||||
//var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate != null).Count();
|
||||
//var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate == null).Count();
|
||||
var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.Status=="3").Count();
|
||||
var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => !x.Status.Equals('3') ||x.Status ==null).Count();
|
||||
ncrZgbhx = num1.ToString();
|
||||
ncrwZgbhx = num2.ToString();
|
||||
if ((num1 + num2) >0)
|
||||
|
||||
Reference in New Issue
Block a user