From 176ae6433be8dbd7fb10aec5a6715065dc4cee95 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Sun, 28 Apr 2024 14:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/DataShow/GJSX.aspx | 12 +++++- SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs | 28 +++++-------- .../DataShow/GJSX.aspx.designer.cs | 18 ++++++++ .../DataShow/QualityPerson.aspx.cs | 4 +- SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx | 42 +++++++++++++------ .../common/mainMenu_CQMS.aspx.cs | 21 ++++++---- .../FineUIPro.Web/common/mainProject2.aspx.cs | 3 +- SGGL/FineUIPro.Web/common/main_new.aspx | 7 +++- SGGL/WebAPI/WebAPI.csproj.user | 2 +- 10 files changed, 96 insertions(+), 43 deletions(-) diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx index f2e79433..6398c213 100644 --- a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx +++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx @@ -53,11 +53,21 @@ - + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs index 6cb52bff..a11485ee 100644 --- a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs @@ -188,14 +188,14 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true); + var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString() && x.State == "0"); if (datetime1.HasValue) { - getT = getT.Where(x => x.InspectionDate >= datetime1); + getT = getT.Where(x => x.CreateDate >= datetime1); } if (datetime2.HasValue) { - getT = getT.Where(x => x.InspectionDate <= datetime2); + getT = getT.Where(x => x.CreateDate <= datetime2); } cout1 = getT.Count(); @@ -203,32 +203,26 @@ namespace FineUIPro.Web.DataShow return cout1; } - protected string Count4(object projectId) + protected int Count3(object projectId) { - string rate = string.Empty; + int cout1 = 0; if (projectId != null) { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getALL = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString()); - + var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString() && x.State != "0"); if (datetime1.HasValue) { - getALL = getALL.Where(x => x.CheckDate >= datetime1); + getT = getT.Where(x => x.CreateDate >= datetime1); } if (datetime2.HasValue) { - getALL = getALL.Where(x => x.CheckDate >= datetime1); - } - var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true); - int coutall = getALL.Count(); - int cout0 = getT.Count(); - if (coutall > 0) - { - rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString(); + getT = getT.Where(x => x.CreateDate <= datetime2); } + + cout1 = getT.Count(); } - return rate; + return cout1; } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs index 6624542d..5d8d8b9d 100644 --- a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.designer.cs @@ -120,6 +120,24 @@ namespace FineUIPro.Web.DataShow { /// protected global::System.Web.UI.WebControls.Label Label2; + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + /// /// ToolbarSeparator1 控件。 /// diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs index 18591b30..878dadc8 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs @@ -42,7 +42,7 @@ namespace FineUIPro.Web.DataShow ,Person.IdentityCard,WorkPost.WorkPostName,Person.Telephone,Person.IsOnJob,Person.Remark, '' as ProjectName " + @" FROM Person_CompanyBranchPerson AS Person " + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId " - + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE WorkPost.IsCQMS=1 "; + + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE Person.IsOnJob=1 and WorkPost.IsCQMS=1 "; string UnitId = BLL.Const.UnitId_CWCEC; if (this.rbCom.SelectedValue == "1") { @@ -61,7 +61,7 @@ namespace FineUIPro.Web.DataShow FROM SitePerson_Person AS Person LEFT JOIN Base_Project AS Project ON Project.ProjectId=Person.ProjectId LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId - LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE WorkPost.IsCQMS=1 "; + LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE Person.IsUsed=1 and WorkPost.IsCQMS=1 "; if (this.drpProject.SelectedValue != Const._Null) { strSql += " AND Person.ProjectId = @ProjectId"; diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index 9e91deff..63ca13cc 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true false diff --git a/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx b/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx index f40f9d63..4e1a7268 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx +++ b/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx @@ -617,7 +617,7 @@ data: two2.series[0].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -635,7 +635,7 @@ data: two2.series[1].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -739,12 +739,30 @@ type: 'bar', barGap: 0, data: three.series[0].data, + label: { //柱体上显示数值 + show: true,//开启显示 + position: ['50%', '30%'],//在上方显示 + textStyle: {//数值样式 + fontSize: '20px', + color: '#fff' + }, + formatter: '{c}', + }, itemStyle: { normal: { color: 'rgba(43,155,176,1)' } } }, { name: '焊接一次拍片合格率', type: 'bar', data: three.series[1].data, + label: { //柱体上显示数值 + show: true,//开启显示 + position: ['50%', '30%'],//在上方显示 + textStyle: {//数值样式 + fontSize: '20px', + color: '#fff' + }, + formatter: '{c}', + }, barCategoryGap: 10, itemStyle: { normal: { color: 'rgba(140,202,214, 1)' } } }] @@ -909,7 +927,7 @@ data: two.series[0].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -926,7 +944,7 @@ data: two.series[1].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -949,7 +967,7 @@ data: two2.series[0].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -966,7 +984,7 @@ data: two2.series[1].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -990,7 +1008,7 @@ data: two3.series[0].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -1007,7 +1025,7 @@ data: two3.series[1].data, label: { //柱体上显示数值 show: true,//开启显示 - position: ['0%', '50%'],//在上方显示 + position: ['40%', '50%'],//在上方显示 textStyle: {//数值样式 fontSize: '20px', color: '#fff' @@ -1033,7 +1051,7 @@ itemStyle: { normal: { color: 'rgba(43,155,176,1)' } } }, { - name: '施工资料同步率', + name: '焊接一次拍片合格率', type: 'bar', data: three.series[1].data, itemStyle: { normal: { color: 'rgba(140,202,214, 1)' } } @@ -1048,7 +1066,7 @@ itemStyle: { normal: { color: 'rgba(43,155,176,1)' } } }, { - name: '施工资料同步率', + name: '焊接一次拍片合格率', type: 'bar', data: three2.series[1].data, itemStyle: { normal: { color: 'rgba(140,202,214, 1)' } } @@ -1065,7 +1083,7 @@ itemStyle: { normal: { color: 'rgba(43,155,176,1)' } } }, { - name: '施工资料同步率', + name: '焊接一次拍片合格率', type: 'bar', data: four.series[1].data, itemStyle: { normal: { color: 'rgba(140,202,214, 1)' } } @@ -1079,7 +1097,7 @@ itemStyle: { normal: { color: 'rgba(43,155,176,1)' } } }, { - name: '施工资料同步率', + name: '焊接一次拍片合格率', type: 'bar', data: four2.series[1].data, itemStyle: { normal: { color: 'rgba(140,202,214, 1)' } } diff --git a/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx.cs index d781c6c9..7024aa15 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_CQMS.aspx.cs @@ -24,8 +24,13 @@ namespace FineUIPro.Web { get { - List TotalCheckDetailOKLists = SpotCheckDetailService.GetTotalOKSpotCheckDetailListByTime1(CurrUser.LoginProjectId, DateTime.Now); - List TotalCheckDetailLists = SpotCheckDetailService.GetTotalAllSpotCheckDetailListByTime(CurrUser.LoginProjectId, DateTime.Now); + var db = new Model.SGGLDB(Funs.ConnString); + List TotalCheckDetailOKLists = (from x in db.ProcessControl_InspectionManagement + where x.ProjectId == this.CurrUser.LoginProjectId && x.IsOnceQualified == true + select x).ToList(); + List TotalCheckDetailLists = (from x in db.ProcessControl_InspectionManagement + where x.ProjectId == this.CurrUser.LoginProjectId + select x).ToList(); double result = 0; if (TotalCheckDetailOKLists.Count > 0 && TotalCheckDetailLists.Count > 0) { @@ -48,7 +53,7 @@ namespace FineUIPro.Web if (ndtList != null && !string.IsNullOrEmpty(ndtList.TotalRate)) { - result = Convert.ToDouble(ndtList.TotalRate) / 100; + result = Convert.ToDouble(ndtList.TotalRate); } return JsonConvert.SerializeObject(result); } @@ -60,12 +65,14 @@ namespace FineUIPro.Web { get { - List totalCheckLists = JointCheckDetailService.GetTotalJointCheckDetailListByTime(CurrUser.LoginProjectId, DateTime.Now); - int a = totalCheckLists.Where(x => x.OK == 1).Count(); + var checks = from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.ProjectId == CurrUser.LoginProjectId + select x; + int a = checks.Where(x => x.State == "7").Count(); double result = 0; - if (a > 0 && totalCheckLists.Count > 0) + if (a > 0 && checks.Count() > 0) { - var b = Convert.ToDouble(totalCheckLists.Count); + var b = Convert.ToDouble(checks.Count()); result = Convert.ToDouble(decimal.Round(decimal.Parse((a / b * 100).ToString()), 1)); } return JsonConvert.SerializeObject(result); diff --git a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs index 0536faf2..fedb045c 100644 --- a/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainProject2.aspx.cs @@ -105,7 +105,8 @@ namespace FineUIPro.Web.common divCqmsPxNum.InnerHtml = CqmsPxNum.ToString(); //施工审批量 - int sgspl = Funs.DB.Solution_CQMSConstructSolution.Where(x => x.ProjectId == ProjectId && x.State == Const.CQMSConstructSolution_Complete).Count(); + int sgspl = Funs.DB.Comprehensive_GeneralPlanApproval.Where(x => x.ProjectId == ProjectId && x.AuditMan != null && x.AuditMan != "" && x.ApprovalMan != null && x.ApprovalMan != "").Count() + + Funs.DB.Comprehensive_MajorPlanApproval.Where(x => x.ProjectId == ProjectId && x.AuditMan != null && x.AuditMan != "" && x.ApprovalMan != null && x.ApprovalMan != "").Count(); div_sgfaSpl.InnerHtml = sgspl.ToString(); GetJD(); //质量共检 diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx b/SGGL/FineUIPro.Web/common/main_new.aspx index e6d60849..5797a135 100644 --- a/SGGL/FineUIPro.Web/common/main_new.aspx +++ b/SGGL/FineUIPro.Web/common/main_new.aspx @@ -96,7 +96,7 @@
质量管理人员
0
-
+
质量培训累计人员
0
@@ -439,6 +439,11 @@ window.open("../DataShow/QualityPerson.aspx") title = '管理人员数据' + }else if (type == 'ManagerTrainData') { + // $('iframe').attr('src', '../InterfacePopup/CQMS/QualityTraining.aspx') //质量培训人员数据 + window.open("../DataShow/QualityTraining.aspx") + + title = '质量培训人员数据' } else if (type == 'ProjectData') { // $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据 window.open("../DataShow/Project.aspx") diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 5fe155da..bd497c6b 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true