2023-10-8

This commit is contained in:
2023-10-08 15:32:21 +08:00
parent f4173186a0
commit 2343cca1fa
7 changed files with 149 additions and 88 deletions
@@ -96,8 +96,9 @@ namespace FineUIPro.Web.CQMS.ManageReport
}
else
{
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(this.txtStartDate.Text).AddMonths(1).AddDays(-1));
this.txtStartDate.Text = string.IsNullOrEmpty(Request.Params["startdate"])? string.Format("{0:yyyy-MM-dd}", DateTime.Now): Request.Params["startdate"];
this.txtEndDate.Text = string.IsNullOrEmpty(Request.Params["enddate"]) ? string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(this.txtStartDate.Text).AddMonths(1).AddDays(-1)): Request.Params["enddate"];
//this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", "2022-11-02 01:01:00");
//this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", "2023-10-18 01:01:00");
}
@@ -1272,19 +1273,26 @@ namespace FineUIPro.Web.CQMS.ManageReport
{
if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim()))
{
CheckLotBindStatisc("CV");//检验批统计:土建
CheckLotBindStatisc("EQ");//检验批统计:设备
CheckLotBindStatisc("PP");//检验批统计:管道
CheckLotBindStatisc("EL");//检验批统计:电气
CheckLotBindStatisc("IN");//检验批统计:仪表
CheckLotBindStatisc("FF");//检验批统计:反腐
CheckLotBindStatisc("XF");//检验批统计:消防
GetComprehensive();//综合管理
BindStatisc();//无损检测统计
NCRBindStatisc();//NCR统计
DesignChangeOrderBindStatisc();//设计变更统计
PassWelderBindStatisc();//合格焊工统计
ConstructionStatisticsr();//施工方案统计
//CheckLotBindStatisc("CV");//检验批统计:土建
//CheckLotBindStatisc("EQ");//检验批统计:设备
//CheckLotBindStatisc("PP");//检验批统计:管道
//CheckLotBindStatisc("EL");//检验批统计:电气
//CheckLotBindStatisc("IN");//检验批统计:仪表
//CheckLotBindStatisc("FF");//检验批统计:反腐
//CheckLotBindStatisc("XF");//检验批统计:消防
//GetComprehensive();//综合管理
//BindStatisc();//无损检测统计
//NCRBindStatisc();//NCR统计
//DesignChangeOrderBindStatisc();//设计变更统计
//PassWelderBindStatisc();//合格焊工统计
//ConstructionStatisticsr();//施工方案统计
//Response.AddHeader("Refresh", "0");
string url = Request.Url.ToString();
if (url.Contains("?"))
{
url = Request.Url.ToString().Substring(0, Request.Url.ToString().LastIndexOf('?'));
}
Response.Redirect(url + "?startdate="+txtStartDate.Text+"&enddate="+txtEndDate.Text);
}
}
#endregion