20240625 质量月报

This commit is contained in:
毕文静 2024-06-25 22:54:12 +08:00
parent 197b55e6bd
commit 15252bd16e
5 changed files with 20 additions and 50 deletions

View File

@ -1365,12 +1365,12 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
c.ProjectId, c.ProjectId,
u.UnitId, u.UnitId,
u.UnitName, u.UnitName,
c.CompileDate c.InspectionDate
}; };
var AllList = query.ToList(); var AllList = query.ToList();
var monethCount = query var monethCount = query
.Where(x => (x.CompileDate >= Convert.ToDateTime(startDate) && x.CompileDate <= Convert.ToDateTime(endDate))); .Where(x => (x.InspectionDate >= Convert.ToDateTime(startDate) && x.InspectionDate <= Convert.ToDateTime(endDate)));
Model.Report_Construction_Plan model = new Model.Report_Construction_Plan(); Model.Report_Construction_Plan model = new Model.Report_Construction_Plan();
@ -1517,8 +1517,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
CheckLotBindStatisc("PP");//检验批统计:管道 CheckLotBindStatisc("PP");//检验批统计:管道
CheckLotBindStatisc("EL");//检验批统计:电气 CheckLotBindStatisc("EL");//检验批统计:电气
CheckLotBindStatisc("IN");//检验批统计:仪表 CheckLotBindStatisc("IN");//检验批统计:仪表
CheckLotBindStatisc("FF");//检验批统计:反腐 CheckLotBindStatisc("AC");//检验批统计:反腐
CheckLotBindStatisc("XF");//检验批统计:消防 CheckLotBindStatisc("FF");//检验批统计:消防
#region #region
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim()); DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
@ -1548,7 +1548,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
from u in unitJoin.DefaultIfEmpty() from u in unitJoin.DefaultIfEmpty()
select new select new
{ {
c.CheckDate, c.InspectionDate,
c.ProjectId, c.ProjectId,
u.UnitId, u.UnitId,
u.UnitName, u.UnitName,
@ -1560,7 +1560,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == item.UnitId where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == item.UnitId
select new select new
{ {
x.CheckDate, x.InspectionDate,
x.ProjectId, x.ProjectId,
x.UnitId, x.UnitId,
x.UnitName, x.UnitName,
@ -1568,7 +1568,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
}; };
var AllList = query.ToList(); var AllList = query.ToList();
var monethCount = query var monethCount = query
.Where(x => (x.CheckDate >= Convert.ToDateTime(startDate) && x.CheckDate <= Convert.ToDateTime(endDate))); .Where(x => (x.InspectionDate >= Convert.ToDateTime(startDate) && x.InspectionDate <= Convert.ToDateTime(endDate)));
Model.CheckStatisc checkStatisc = new Model.CheckStatisc(); Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
@ -1841,7 +1841,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
GvYb.SummaryData = summary; GvYb.SummaryData = summary;
} }
//检验批统计:防腐 //检验批统计:防腐
if (cNProfessionalCode == "FF") if (cNProfessionalCode == "AC")
{ {
this.GvFf.DataSource = StatisticsList; this.GvFf.DataSource = StatisticsList;
this.GvFf.DataBind(); this.GvFf.DataBind();
@ -1860,7 +1860,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
GvFf.SummaryData = summary; GvFf.SummaryData = summary;
} }
//检验批统计:消防 //检验批统计:消防
if (cNProfessionalCode == "XF") if (cNProfessionalCode == "FF")
{ {
this.GvXf.DataSource = StatisticsList; this.GvXf.DataSource = StatisticsList;
this.GvXf.DataBind(); this.GvXf.DataBind();

View File

@ -69,15 +69,15 @@ namespace FineUIPro.Web.CQMS.ProcessControl
strSql += " AND P.CNProfessionalId=@CNProfessionalId"; strSql += " AND P.CNProfessionalId=@CNProfessionalId";
listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue)); listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue));
} }
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) if (!string.IsNullOrEmpty(txtStarTime.Text))
{ {
strSql += " AND P.InspectionDate >= @InspectionDate"; strSql += " AND P.InspectionDate >= @startTime";
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text)));
} }
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) if (!string.IsNullOrEmpty(txtEndTime.Text))
{ {
strSql += " AND P.InspectionDate <= @InspectionDate"; strSql += " AND P.InspectionDate <= @endTime";
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text)));
} }
SqlParameter[] parameter = listStr.ToArray(); SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);

View File

@ -71,13 +71,13 @@ namespace FineUIPro.Web.CQMS.ProcessControl
} }
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
{ {
strSql += " AND P.InspectionDate >= @InspectionDate"; strSql += " AND P.InspectionDate >= @startTime";
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
} }
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
{ {
strSql += " AND P.InspectionDate <= @InspectionDate"; strSql += " AND P.InspectionDate <= @endTime";
listStr.Add(new SqlParameter("@InspectionDate", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
} }
SqlParameter[] parameter = listStr.ToArray(); SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);

View File

@ -1,30 +0,0 @@
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.APIGetHttpService.Http(String url, String method, String contenttype, Hashtable header, String data) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\API\APIGetHttpService.cs:行号 62
在 BLL.CNCECHSSEWebService.UpCheck_CheckRectify(String checkRectifyId, Sys_User CurrUser) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1302
出错时间:06/21/2024 15:57:07
出错时间:06/21/2024 15:57:07
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.APIGetHttpService.Http(String url, String method, String contenttype, Hashtable header, String data) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\API\APIGetHttpService.cs:行号 62
在 BLL.CNCECHSSEWebService.UpCheck_CheckRectify(String checkRectifyId, Sys_User CurrUser) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1302
出错时间:06/21/2024 16:03:12
出错时间:06/21/2024 16:03:12
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.APIGetHttpService.Http(String url, String method, String contenttype, Hashtable header, String data) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\API\APIGetHttpService.cs:行号 62
在 BLL.CNCECHSSEWebService.UpCheck_CheckRectify(String checkRectifyId, Sys_User CurrUser) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1302
出错时间:06/21/2024 16:04:10
出错时间:06/21/2024 16:04:10

View File

@ -12,7 +12,7 @@
<appSettings> <appSettings>
<!--连接字符串--> <!--连接字符串-->
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>--> <!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/> <add key="ConnectionString" value="Server=.\SQL2012;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
<!--系统名称--> <!--系统名称-->
<add key="SystemName" value="智慧施工管理信息系统V1.0"/> <add key="SystemName" value="智慧施工管理信息系统V1.0"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/> <add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>