This commit is contained in:
2024-09-04 08:50:30 +08:00
117 changed files with 14139 additions and 430 deletions
Binary file not shown.
@@ -0,0 +1,79 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\\u6570\u636E\\\u8BFA\u5FC5\u8FBE\\\u4E94\u73AF\\CNCEC_SUBQHSE_WUHUAN\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 1,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedHeight": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
},
{
"$type": "Bookmark",
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:132:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:133:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:134:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
},
{
"$type": "Bookmark",
"Name": "ST:131:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{13b12e3e-c1b4-4539-9371-4fe9a0d523fc}"
},
{
"$type": "Bookmark",
"Name": "ST:2:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
},
{
"$type": "Bookmark",
"Name": "ST:3:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
},
{
"$type": "Bookmark",
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1a46fd64-28d5-434c-8eb3-17a02d419b53}"
},
{
"$type": "Bookmark",
"Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
}
]
}
]
}
]
}
@@ -0,0 +1,62 @@
ALTER VIEW [dbo].[View_Check_JointCheckDetail]
AS
SELECT d.JointCheckDetailId,d.JointCheckId, d.UnitWorkId, d.CNProfessionalCode, d.QuestionDef, d.QuestionType,d.CheckSite,
d.Standard,d.RectifyOpinion,d.LimitDate,d.AttachUrl,d.HandleWay,d.RectifyDate,d.ReAttachUrl,d.Feedback,d.IsOK,
c.ProjectId,c.CheckType,c.UnitId,u.UnitName,c.CheckDate,d.State,d.CreateDate,d.HandleMan,SaveHandleMan,
case d.State when '6' then 1
else 0 end as OK,
case c.CheckType when '1' then '周检查'
when '2' then '月检查'
when '3' then '不定期检查'
when '4' then '专业检查'
else '' end as CheckTypeStr,
--case d.QuestionType when '1' then '质量不合格'
-- when '2' then '质量缺陷'
-- else '' end as QuestionTypeStr,
qqt.QualityQuestionType as QuestionTypeStr,
pu.UnitName as ProposeUnitName,
ppu.UnitType as ProposeUnitType,
(select top 1 ApproveDate from dbo.Check_JointCheckApprove jca where jca.JointCheckDetailId=d.JointCheckDetailId
order by ApproveDate desc) as OKDate,
uw.UnitWorkName,cn.ProfessionalName
FROM dbo.Check_JointCheckDetail AS d
LEFT JOIN dbo.Check_JointCheck AS c ON c.JointCheckId = d.JointCheckId
LEFT JOIN dbo.Base_Unit AS u ON u.UnitId = c.UnitId
LEFT JOIN dbo.WBS_UnitWork as uw on uw.UnitWorkId=d.UnitWorkId
LEFT JOIN dbo.Base_CNProfessional as cn on cn.CNProfessionalId=d.CNProfessionalCode
LEFT JOIN dbo.Base_Unit AS pu ON pu.UnitId = c.ProposeUnitId
LEFT JOIN dbo.Project_ProjectUnit AS ppu ON ppu.UnitId = c.ProposeUnitId and ppu.ProjectId=c.ProjectId
LEFT JOIN dbo.Base_QualityQuestionType AS qqt ON qqt.QualityQuestionTypeId = d.QuestionType
union
(SELECT d.CheckControlCode,'', d.UnitWorkId, d.CNProfessionalCode, d.QuestionDef, d.QuestionType,d.CheckSite,
'',d.RectifyOpinion,d.LimitDate,d.AttachUrl,d.HandleWay,d.RectifyDate,d.ReAttachUrl,null,null,
d.ProjectId,'5',d.UnitId,u.UnitName,d.CheckDate,d.State,d.CheckDate,'','',
case d.State when '7' then 1
else 0 end as OK,
'质量巡检' as CheckTypeStr,
--case d.QuestionType when '1' then '质量不合格'
-- when '2' then '质量缺陷'
-- else '' end as QuestionTypeStr,
qqt.QualityQuestionType as QuestionTypeStr,
pu.UnitName as ProposeUnitName,
ppu.UnitType as ProposeUnitType,
(select top 1 ApproveDate from dbo.Check_CheckControlApprove cca where cca.CheckControlCode=d.CheckControlCode
order by ApproveDate desc) as OKDate,
uw.UnitWorkName,cn.ProfessionalName
FROM dbo.Check_CheckControl AS d
LEFT JOIN dbo.Base_Unit AS u ON u.UnitId = d.UnitId
LEFT JOIN dbo.WBS_UnitWork as uw on uw.UnitWorkId=d.UnitWorkId
LEFT JOIN dbo.Base_CNProfessional as cn on cn.CNProfessionalId=d.CNProfessionalCode
LEFT JOIN dbo.Base_Unit AS pu ON pu.UnitId = d.ProposeUnitId
LEFT JOIN dbo.Project_ProjectUnit AS ppu ON ppu.UnitId = d.ProposeUnitId and ppu.ProjectId=d.ProjectId
LEFT JOIN dbo.Base_QualityQuestionType AS qqt ON qqt.QualityQuestionTypeId = d.QuestionType
)
GO
@@ -0,0 +1,21 @@
--新增管理月报新菜单
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
values('9E4B28DF-8C8E-49F8-AB15-270BBDC73449','HSE管理月报(新)','HSSE/Manager/ManagerMonthCNew.aspx',4,'03235B30-960D-4FCF-99F7-97773A2EE108','Menu_HSSE',0,1,1)
;
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('9C646F93-1748-44E7-83B9-392415442AD9','9E4B28DF-8C8E-49F8-AB15-270BBDC73449','增加',1);
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('BD82E934-B195-4A31-A357-DC2FBD3441EF','9E4B28DF-8C8E-49F8-AB15-270BBDC73449','修改',2);
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('6F77EA4D-1D58-4617-A07F-78F2DECF07BB','9E4B28DF-8C8E-49F8-AB15-270BBDC73449','删除',3);
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('63209F98-49D2-49BB-9FF7-46C5A6C9BD53','9E4B28DF-8C8E-49F8-AB15-270BBDC73449','保存',4);
alter table Manager_MonthReportC
add StartDate datetime null;
alter table Manager_MonthReportC
add EndDate datetime null;
alter table Manager_MonthReportC
add TotalHseManhoursYear int null;
@@ -0,0 +1,16 @@
--增加索引
CREATE NONCLUSTERED INDEX [t_d_EmployInOutRecord_ProjectId_Index]
ON [dbo].[t_d_EmployInOutRecord] ([ProjectId])
INCLUDE ([ManHours]);
CREATE NONCLUSTERED INDEX [SitePerson_Person_Pid_Wid_IsUsed_Intime_Index]
ON [dbo].[SitePerson_Person] ([ProjectId],[WorkPostId],[IsUsed],[InTime],[OutTime]);
CREATE NONCLUSTERED INDEX [Sys_CodeRecords_ProjectId_MenuId_Index]
ON [dbo].[Sys_CodeRecords] ([ProjectId],[MenuId])
INCLUDE ([DataId],[UnitId],[CompileDate],[SortIndex],[RuleCodes],[Digit],[Code],[OwnerRuleCodes],[OwerDigit],[OwnerCode]);
CREATE NONCLUSTERED INDEX [Sys_FlowOperate_OperaterId_IsClosed_Index]
ON [dbo].[Sys_FlowOperate] ([OperaterId],[IsClosed])
INCLUDE ([DataId]);
@@ -0,0 +1,22 @@
--安全月报增加本月隐患总数、年度隐患总数
alter table Manager_MonthReportC
add MonthHdangerCount int null;
alter table Manager_MonthReportC
add YearHdangerCount int null;
--增加Manager_HiddenDanger表本月隐患整改情况
CREATE TABLE [dbo].[Manager_HiddenDanger](
[Id] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[UnitId] [nvarchar](50) NULL,
[CommonlyNum] [int] NULL,
[MajorNum] [int] NULL,
[ReRate] [nvarchar](50) NULL,
[SortIndex] [int] NULL,
CONSTRAINT [PK_Manager_HiddenDanger] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];
@@ -0,0 +1,88 @@
--Manager_ProjectAssignment新增月报项目作业许可管理数据
CREATE TABLE [dbo].[Manager_ProjectAssignment](
[Id] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[FireWorkCount] [int] NULL,
[BreakGroundCount] [int] NULL,
[LimitedSpaceCount] [int] NULL,
[ElectricityCount] [int] NULL,
[HeightWorkCount] [int] NULL,
[RadialWork] [int] NULL,
[LiftingWorkCount] [int] NULL,
[NightWork] [int] NULL,
[MonthCount] [int] NULL,
[YearCount] [int] NULL,
[ProCount] [int] NULL,
CONSTRAINT [PK_Manager_ProjectAssignment] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];
--增加经专家论证的超危大工程数量
alter table Manager_MonthReportC
add MonthExpertCount int null;
--增加非经专家论证的危大工程数量
alter table Manager_MonthReportC
add MonthExpertNoCount int null;
--增加应急预案发布情况Manager_EmergencyPlan
CREATE TABLE [dbo].[Manager_EmergencyPlan](
[Id] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[CaType] [nvarchar](50) NULL,
[MonthCount] [int] NULL,
[YearCount] [int] NULL,
[ProCount] [int] NULL,
[SortIndex] [int] NULL,
CONSTRAINT [PK_Manager_EmergencyPlan] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];
--应急演练工作情况说明
CREATE TABLE [dbo].[Manager_DrillRecordList](
[Id] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[Dname] [nvarchar](100) NULL,
[Ddate] [datetime] NULL,
[DrillRecordTypeName] [nvarchar](50) NULL,
[PersonNum] [int] NULL,
[DrillCost] [decimal](18, 2) NULL,
[SortIndex] [int] NULL,
CONSTRAINT [PK_Manager_DrillRecordList] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
--未遂事件统计
CREATE TABLE [dbo].[Manager_Attempted](
[Id] [nvarchar](50) NOT NULL,
[MonthReportId] [nvarchar](50) NULL,
[WhMonthNum] [int] NULL,
[WhYearNum] [int] NULL,
[FbsMonthNum] [int] NULL,
[FbsYearNum] [int] NULL,
[ProNum] [int] NULL,
CONSTRAINT [PK_Manager_Attempted] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];
--增加HSE目标实现情况 3个
alter table Manager_MonthReportC
add Goalach1 [decimal](18, 2) NULL;
alter table Manager_MonthReportC
add Goalach2 [decimal](18, 2) NULL;
alter table Manager_MonthReportC
add Goalach3 [decimal](18, 2) NULL;
--月报类型 1是新
alter table Manager_MonthReportC
add MonthReportType nvarchar(20) NULL;
@@ -0,0 +1,6 @@
CREATE NONCLUSTERED INDEX EduTrain_TrainRecordDetail_TrainingId_Index
ON [dbo].[EduTrain_TrainRecordDetail] ([TrainingId]);
CREATE NONCLUSTERED INDEX Sys_CodeRecords_DataId_Index
ON [dbo].[Sys_CodeRecords] ([DataId])
INCLUDE ([Code]);
@@ -0,0 +1,4 @@
--隐藏没用的菜单
update sys_menu set IsUsed='0' where menuid='CD167198-1667-4552-9876-E768C2542C30';
update sys_menu set IsUsed='0' where menuid='DA7D64F8-A107-4DBC-B7E4-5C79409EB9FA';
update sys_menu set IsUsed='0' where menuid='B87413D8-4EFB-42F3-A4F6-9D21C0CD3DFE';
@@ -0,0 +1,6 @@
alter table Transfer_RotatingEquipment
add Lubricatefilling nvarchar(50) null;
alter table Transfer_Instrumentation
add Calibration nvarchar(50) null;
@@ -0,0 +1,6 @@
ALTER TABLE Manager_Month_InjuryAccidentC
add LossCount int null;
ALTER TABLE Manager_Month_InjuryAccidentC
add DeathCount int null;
+142
View File
@@ -0,0 +1,142 @@
@echo off
REM ---------------
REM 发布包生成工具
REM 执行此文件前请先用Release生成publisher项目
REM --------------
REM --------------
REM 环境变量设置 Project_Src为如PUBLISHER4_CODING这样的分支
REM --------------
set PROJECT_SRC=%CD%
REM 源代码publisher项目文件夹
set PUBLISHER_SRC_ROOT=%PROJECT_SRC%\SGGL\FineUIPro.Web
REM 源代码版本日志文件夹
set VerLog_SRC_ROOT=%PROJECT_SRC%\database\版本日志
REM 包文件夹名
SET ReleasePack=PackFile
REM 发布程序包文件夹
SET ReleasePackFolder=%PROJECT_SRC%\SGGL%ReleasePack%
REM 发布包publisher文件所在文件夹
SET RELEASE_PUBLISHER_ROOT=%PROJECT_SRC%\SGGL%ReleasePack%\%ReleasePack%
REM 发布包版本日志文件所在文件夹
SET RELEASE_VerLog_ROOT=%PROJECT_SRC%\SGGL%ReleasePack%\版本日志
REM --------------
REM 发布程序包文件夹相关
REM --------------
IF exist %ReleasePackFolder%\nul.ext (
@echo 删除已存在的发布程序包文件夹
@echo.
rd %ReleasePackFolder% /S /Q
)
mkdir %ReleasePackFolder%
IF exist %RELEASE_VerLog_ROOT%\nul.ext (
rd %RELEASE_VerLog_ROOT% /S /Q
)
mkdir %RELEASE_VerLog_ROOT%
IF errorlevel 1 goto delReleasePackError
@echo 设置.net控制台环境
@echo.
@call "D:\Visual Studio 2022\Common7\Tools\VsDevCmd.bat"
IF errorlevel 1 goto netEnvironmentError
@echo 开始预编译...
@echo.
aspnet_compiler -p %PUBLISHER_SRC_ROOT% %RELEASE_PUBLISHER_ROOT% -u -v /
IF errorlevel 1 goto aspnet_compilerError
@echo 预编译完成
@echo.
@echo 开始合并程序集...
@echo.
Aspnet_merge %RELEASE_PUBLISHER_ROOT% -o UI
IF errorlevel 1 goto Aspnet_mergeError
@echo 合并程序集完成
@echo.
REM --------------
REM 删除不必要的文件
REM --------------
@echo 开始清理垃圾文件...
@echo.
del %RELEASE_PUBLISHER_ROOT%\*.cs /s /f
del %RELEASE_PUBLISHER_ROOT%\*.designer.cs /s /f
del %RELEASE_PUBLISHER_ROOT%\*.csproj /s /f
del %RELEASE_PUBLISHER_ROOT%\*.csproj.* /s /f
del %RELEASE_PUBLISHER_ROOT%\*.pdb /s /f
del %RELEASE_PUBLISHER_ROOT%\*.resx /s /f
del %RELEASE_PUBLISHER_ROOT%\*.db /s /f
del %RELEASE_PUBLISHER_ROOT%\*.bak /s /f
del %RELEASE_PUBLISHER_ROOT%\*.*.bak /s /f
del %RELEASE_PUBLISHER_ROOT%\*.sln /s /f
del %RELEASE_PUBLISHER_ROOT%\*.suo /s /f
del %RELEASE_PUBLISHER_ROOT%\*.scc /s /f
rd %RELEASE_PUBLISHER_ROOT%\obj /s /q
del %RELEASE_PUBLISHER_ROOT%\ReadMe.txt /s /f
del %RELEASE_PUBLISHER_ROOT%\*.pfx /s /f
del %RELEASE_PUBLISHER_ROOT%\*.StyleCop /s /f
@echo 清理完成
@echo.
REM --------------
REM 拷贝版本日志
REM --------------
@echo 拷贝版本日志...
@echo.
copy %VerLog_SRC_ROOT%\*.* %RELEASE_VerLog_ROOT% /Y
@echo 发布包已生成,存放路径为%ReleasePackFolder%
@echo.
goto END
:delReleasePackError
@echo.
@echo 删除包存储文件夹失败!
goto END
:netEnvironmentError
@echo.
@echo .net环境设置失败!
goto END
:aspnet_compilerError
@echo.
@echo 预编译失败!
goto END
:Aspnet_mergeError
@echo.
@echo 合并程序集失败!
goto END
:END
pause
+4
View File
@@ -763,6 +763,10 @@ namespace BLL
{ {
newPerson.TeamGroupId = person.TeamGroupId; newPerson.TeamGroupId = person.TeamGroupId;
} }
if (!string.IsNullOrEmpty(person.WorkPostName))
{
person.WorkPostId = WorkPostService.AddWorkPostByName(person.WorkPostName);
}
if (!string.IsNullOrEmpty(person.WorkPostId)) if (!string.IsNullOrEmpty(person.WorkPostId))
{ {
newPerson.WorkPostId = person.WorkPostId; newPerson.WorkPostId = person.WorkPostId;
+12
View File
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
public static class AnBangService
{
}
}
+1
View File
@@ -85,6 +85,7 @@
<Reference Include="WindowsBase" /> <Reference Include="WindowsBase" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="AnBang\AnBangService.cs" />
<Compile Include="API\APIBaseInfoService.cs" /> <Compile Include="API\APIBaseInfoService.cs" />
<Compile Include="API\APICommonService.cs" /> <Compile Include="API\APICommonService.cs" />
<Compile Include="API\APIDoorServerService.cs" /> <Compile Include="API\APIDoorServerService.cs" />
+29
View File
@@ -45,7 +45,36 @@ namespace BLL
db.Base_WorkPost.InsertOnSubmit(newWorkPost); db.Base_WorkPost.InsertOnSubmit(newWorkPost);
db.SubmitChanges(); db.SubmitChanges();
} }
public static string AddWorkPostByName(string workPostName)
{
string workpostid = String.Empty;
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var model = db.Base_WorkPost.FirstOrDefault(e => e.WorkPostName == workPostName);
if (model != null)
{
workpostid = model.WorkPostId;
}
else
{
Model.Base_WorkPost newWorkPost = new Model.Base_WorkPost
{
WorkPostId = SQLHelper.GetNewID(),
WorkPostCode = "",
WorkPostName = workPostName,
IsHsse = false,
IsCQMS = false,
CNCodes = "",
};
db.Base_WorkPost.InsertOnSubmit(newWorkPost);
db.SubmitChanges();
workpostid = newWorkPost.WorkPostId;
}
return workpostid;
}
}
/// <summary> /// <summary>
/// 修改 /// 修改
/// </summary> /// </summary>
+10
View File
@@ -3359,6 +3359,11 @@ namespace BLL
/// </summary> /// </summary>
public const string ConExperienceSummaryTemUrl = "File\\Excel\\DataIn\\类似项目施工经验总结清单导入模板.xls"; public const string ConExperienceSummaryTemUrl = "File\\Excel\\DataIn\\类似项目施工经验总结清单导入模板.xls";
/// <summary>
/// 新项目安全月报模板文件原始虚拟路径
/// </summary>
public const string HseMonthReportNewTemplateUrl = "File\\Word\\HSSE\\项目安全月报.doc";
#region #region
/// <summary> /// <summary>
/// 质量专项检查模板文件原始虚拟路径 /// 质量专项检查模板文件原始虚拟路径
@@ -6061,5 +6066,10 @@ namespace BLL
/// 检查表尾项管理 /// 检查表尾项管理
/// </summary> /// </summary>
public const string InspectTailTerm = "B6A6EA7D-EDAB-40C8-920D-A106731D0E08"; public const string InspectTailTerm = "B6A6EA7D-EDAB-40C8-920D-A106731D0E08";
/// <summary>
/// HSSE管理月报新
/// </summary>
public const string ManagerMonthCNewMenuId = "9E4B28DF-8C8E-49F8-AB15-270BBDC73449";
} }
} }
@@ -102,5 +102,33 @@ namespace BLL
var result = Funs.DB.CostGoods_HseExpense.FirstOrDefault(a => a.Id == newId); var result = Funs.DB.CostGoods_HseExpense.FirstOrDefault(a => a.Id == newId);
return result; return result;
} }
/// <summary>
/// 根据时间、项目获取五环安全费用投入登记信息
/// </summary>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.CostGoods_HseExpense> GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId, string unitId)
{
return (from x in Funs.DB.CostGoods_HseExpense where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId && x.UnitId == unitId select x).ToList();
}
/// <summary>
/// 根据时间、项目获取施工分包商安全费用投入登记信息
/// </summary>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.CostGoods_HseExpense> GetConPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId)
{
return (from x in Funs.DB.CostGoods_HseExpense
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId
&& y.UnitTypeId == BLL.Const.UnitId_Con
select x).ToList();
}
} }
} }
@@ -159,5 +159,15 @@ namespace BLL
{ {
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate >= startTime && x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum(); return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate >= startTime && x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum();
} }
public static List<Model.EduTrain_TrainRecord> GetTrainingsByTrainDate(DateTime endTime, string projectId)
{
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate <= endTime && x.ProjectId == projectId select x).ToList();
}
public static int? GetTrainPersonCount(DateTime endTime, string projectId)
{
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum();
}
} }
} }
@@ -86,6 +86,14 @@ namespace BLL
BLL.CommonService.DeleteAttachFileById(EmergencyTeamAndTrain.FileId); BLL.CommonService.DeleteAttachFileById(EmergencyTeamAndTrain.FileId);
////删除流程表 ////删除流程表
BLL.CommonService.DeleteFlowOperateByID(EmergencyTeamAndTrain.FileId); BLL.CommonService.DeleteFlowOperateByID(EmergencyTeamAndTrain.FileId);
//删除子表
var list = db.Emergency_EmergencyTeamItem.Where(x => x.FileId == FileId).ToList();
if (list.Count>0)
{
db.Emergency_EmergencyTeamItem.DeleteAllOnSubmit(list);
}
db.Emergency_EmergencyTeamAndTrain.DeleteOnSubmit(EmergencyTeamAndTrain); db.Emergency_EmergencyTeamAndTrain.DeleteOnSubmit(EmergencyTeamAndTrain);
db.SubmitChanges(); db.SubmitChanges();
} }
@@ -90,8 +90,12 @@ namespace BLL
public static void DeleteAccidentSortsByMonthReportId(string monthReportId) public static void DeleteAccidentSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_AccidentSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_AccidentSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_AccidentSortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_AccidentSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -54,8 +54,12 @@ namespace BLL
public static void DeleteCheckDetailSortsByMonthReportId(string monthReportId) public static void DeleteCheckDetailSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_CheckDetailSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_CheckDetailSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_CheckDetailSortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_CheckDetailSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -49,8 +49,10 @@ namespace BLL
public static void DeleteDrillSortsByMonthReportId(string monthReportId) public static void DeleteDrillSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_DrillSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_DrillSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_DrillSortC.DeleteAllOnSubmit(q); if (q.Count > 0) {
db.SubmitChanges(); db.Manager_DrillSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -49,8 +49,9 @@ namespace BLL
public static void DeleteEmergencySortsByMonthReportId(string monthReportId) public static void DeleteEmergencySortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_EmergencySortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_EmergencySortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_EmergencySortC.DeleteAllOnSubmit(q); if (q.Count > 0) {
db.SubmitChanges(); db.Manager_EmergencySortC.DeleteAllOnSubmit(q);
db.SubmitChanges();}
} }
} }
} }
@@ -49,8 +49,13 @@ namespace BLL
public static void DeleteHazardSortsByMonthReportId(string monthReportId) public static void DeleteHazardSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_HazardSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_HazardSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_HazardSortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_HazardSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -78,8 +78,11 @@ namespace BLL
public static void DeleteHseCostsByMonthReportId(string monthReportId) public static void DeleteHseCostsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_HseCostC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_HseCostC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_HseCostC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_HseCostC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -68,8 +68,11 @@ namespace BLL
public static void DeleteIncentiveSortsByMonthReportId(string monthReportId) public static void DeleteIncentiveSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_IncentiveSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_IncentiveSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_IncentiveSortC.DeleteAllOnSubmit(q); if (q.Count > 0)
db.SubmitChanges(); {
db.Manager_IncentiveSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -36,9 +36,11 @@ namespace BLL
FirstAidDressing = injuryAccident.FirstAidDressing, FirstAidDressing = injuryAccident.FirstAidDressing,
MedicalTreatment = injuryAccident.MedicalTreatment, MedicalTreatment = injuryAccident.MedicalTreatment,
WorkLimitation = injuryAccident.WorkLimitation, WorkLimitation = injuryAccident.WorkLimitation,
LossCount = injuryAccident.LossCount,
LossPerson = injuryAccident.LossPerson, LossPerson = injuryAccident.LossPerson,
LossWorkTime = injuryAccident.LossWorkTime, LossWorkTime = injuryAccident.LossWorkTime,
LossEconomy = injuryAccident.LossEconomy, LossEconomy = injuryAccident.LossEconomy,
DeathCount=injuryAccident.DeathCount,
DeathPerson = injuryAccident.DeathPerson, DeathPerson = injuryAccident.DeathPerson,
DeathWorkTime = injuryAccident.DeathWorkTime, DeathWorkTime = injuryAccident.DeathWorkTime,
DeathEconomy = injuryAccident.DeathEconomy DeathEconomy = injuryAccident.DeathEconomy
@@ -56,8 +56,12 @@ namespace BLL
public static void DeleteMeetingSortsByMonthReportId(string monthReportId) public static void DeleteMeetingSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_MeetingSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_MeetingSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_MeetingSortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_MeetingSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -227,6 +227,21 @@ namespace BLL
Question = monthReport.Question, Question = monthReport.Question,
SubcontractManHours = monthReport.SubcontractManHours, SubcontractManHours = monthReport.SubcontractManHours,
AccidentDef = monthReport.AccidentDef, AccidentDef = monthReport.AccidentDef,
StartDate=monthReport.StartDate,
EndDate=monthReport.EndDate,
TotalHseManhoursYear = monthReport.TotalHseManhoursYear,
EmergencyManagementWorkDef=monthReport.EmergencyManagementWorkDef,
MonthHdangerCount=monthReport.MonthHdangerCount,
YearHdangerCount=monthReport.YearHdangerCount,
MonthExpertCount=monthReport.MonthExpertCount,
MonthExpertNoCount=monthReport.MonthExpertNoCount,
Goalach1=monthReport.Goalach1,
Goalach2=monthReport.Goalach2,
Goalach3=monthReport.Goalach3,
MonthReportType=monthReport.MonthReportType
}; };
db.Manager_MonthReportC.InsertOnSubmit(newMonthReport); db.Manager_MonthReportC.InsertOnSubmit(newMonthReport);
@@ -245,7 +260,7 @@ namespace BLL
Model.Manager_MonthReportC newMonthReport = db.Manager_MonthReportC.First(e => e.MonthReportId == monthReport.MonthReportId); Model.Manager_MonthReportC newMonthReport = db.Manager_MonthReportC.First(e => e.MonthReportId == monthReport.MonthReportId);
newMonthReport.MonthReportCode = monthReport.MonthReportCode; newMonthReport.MonthReportCode = monthReport.MonthReportCode;
newMonthReport.ProjectId = monthReport.ProjectId; newMonthReport.ProjectId = monthReport.ProjectId;
newMonthReport.Months = monthReport.Months; //newMonthReport.Months = monthReport.Months;
newMonthReport.MonthReportDate = monthReport.MonthReportDate; newMonthReport.MonthReportDate = monthReport.MonthReportDate;
newMonthReport.ReportMan = monthReport.ReportMan; newMonthReport.ReportMan = monthReport.ReportMan;
newMonthReport.HseManhours = monthReport.HseManhours; newMonthReport.HseManhours = monthReport.HseManhours;
@@ -298,6 +313,19 @@ namespace BLL
newMonthReport.SubcontractManHours = monthReport.SubcontractManHours; newMonthReport.SubcontractManHours = monthReport.SubcontractManHours;
newMonthReport.AccidentDef = monthReport.AccidentDef; newMonthReport.AccidentDef = monthReport.AccidentDef;
newMonthReport.StartDate = monthReport.StartDate;
newMonthReport.EndDate = monthReport.EndDate;
newMonthReport.TotalHseManhoursYear = monthReport.TotalHseManhoursYear;
newMonthReport.EmergencyManagementWorkDef = monthReport.EmergencyManagementWorkDef;
newMonthReport.MonthHdangerCount = monthReport.MonthHdangerCount;
newMonthReport.YearHdangerCount = monthReport.YearHdangerCount;
newMonthReport.MonthExpertCount = monthReport.MonthExpertCount;
newMonthReport.MonthExpertNoCount = monthReport.MonthExpertNoCount;
newMonthReport.Goalach1 = monthReport.Goalach1;
newMonthReport.Goalach2 = monthReport.Goalach2;
newMonthReport.Goalach3 = monthReport.Goalach3;
newMonthReport.MonthReportType = monthReport.MonthReportType;
db.SubmitChanges(); db.SubmitChanges();
} }
@@ -315,5 +343,31 @@ namespace BLL
db.Manager_MonthReportC.DeleteOnSubmit(monthReport); db.Manager_MonthReportC.DeleteOnSubmit(monthReport);
db.SubmitChanges(); db.SubmitChanges();
} }
#region 4.6.1
public static void AddManager_EmergencyPlan(Model.Manager_EmergencyPlan model) {
Model.SGGLDB db = Funs.DB;
db.Manager_EmergencyPlan.InsertOnSubmit(model);
db.SubmitChanges();
}
#endregion
#region 4.6.2
public static void AddManager_DrillRecordList(Model.Manager_DrillRecordList model)
{
Model.SGGLDB db = Funs.DB;
db.Manager_DrillRecordList.InsertOnSubmit(model);
db.SubmitChanges();
}
#endregion
#region 6.1
public static void AddManager_Attempted(Model.Manager_Attempted model)
{
Model.SGGLDB db = Funs.DB;
db.Manager_Attempted.InsertOnSubmit(model);
db.SubmitChanges();
}
#endregion
} }
} }
@@ -48,8 +48,11 @@ namespace BLL
public static void DeleteOtherActiveSortsByMonthReportId(string monthReportId) public static void DeleteOtherActiveSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_OtherActiveSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_OtherActiveSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_OtherActiveSortC.DeleteAllOnSubmit(q); if (q.Count > 0)
db.SubmitChanges(); {
db.Manager_OtherActiveSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -58,5 +58,77 @@ namespace BLL
db.Manager_PersonSortC.DeleteAllOnSubmit(q); db.Manager_PersonSortC.DeleteAllOnSubmit(q);
db.SubmitChanges(); db.SubmitChanges();
} }
/// <summary>
/// 根据月报告主键删除对应的所有月报告HSE人力投入信息
/// </summary>
/// <param name="monthReportId">月报告主键</param>
public static void DeleteManager_HiddenDanger(string monthReportId)
{
var q = (from x in db.Manager_HiddenDanger where x.MonthReportId == monthReportId select x).ToList();
if (q.Count>0)
{
db.Manager_HiddenDanger.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
/// <summary>
/// 删除月报项目作业许可管理数据
/// </summary>
/// <param name="monthReportId"></param>
public static void DeleteManager_ProjectAssignment(string monthReportId)
{
var q = (from x in db.Manager_ProjectAssignment where x.MonthReportId == monthReportId select x).ToList();
if (q.Count > 0)
{
db.Manager_ProjectAssignment.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
/// <summary>
/// 删除月报应急预案发布情况
/// </summary>
/// <param name="monthReportId"></param>
public static void DeleteManager_EmergencyPlan(string monthReportId)
{
var q = (from x in db.Manager_EmergencyPlan where x.MonthReportId == monthReportId select x).ToList();
if (q.Count > 0)
{
db.Manager_EmergencyPlan.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
/// <summary>
/// 删除月报应急演练工作情况说明
/// </summary>
/// <param name="monthReportId"></param>
public static void DeleteManager_DrillRecordList(string monthReportId)
{
var q = (from x in db.Manager_DrillRecordList where x.MonthReportId == monthReportId select x).ToList();
if (q.Count > 0)
{
db.Manager_DrillRecordList.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
/// <summary>
/// 删除月报未遂事件
/// </summary>
/// <param name="monthReportId"></param>
public static void DeleteManager_Attempted(string monthReportId)
{
var q = (from x in db.Manager_Attempted where x.MonthReportId == monthReportId select x).ToList();
if (q.Count > 0)
{
db.Manager_Attempted.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
} }
} }
@@ -49,8 +49,12 @@ namespace BLL
public static void DeletePromotionalActiviteSortsByMonthReportId(string monthReportId) public static void DeletePromotionalActiviteSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_PromotionalActiviteSortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_PromotionalActiviteSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_PromotionalActiviteSortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_PromotionalActiviteSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -48,8 +48,12 @@ namespace BLL
public static void DeleteTrainActivitySortsByMonthReportId(string monthReportId) public static void DeleteTrainActivitySortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_TrainActivitySortC where x.MonthReportId == monthReportId select x).ToList(); var q = (from x in db.Manager_TrainActivitySortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_TrainActivitySortC.DeleteAllOnSubmit(q); if (q.Count>0)
db.SubmitChanges(); {
db.Manager_TrainActivitySortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
} }
} }
} }
@@ -51,9 +51,20 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param> /// <param name="monthReportId">月报告主键</param>
public static void DeleteTrainSortsByMonthReportId(string monthReportId) public static void DeleteTrainSortsByMonthReportId(string monthReportId)
{ {
var q = (from x in db.Manager_TrainSortC where x.MonthReportId == monthReportId select x).ToList(); try
db.Manager_TrainSortC.DeleteAllOnSubmit(q); {
db.SubmitChanges(); var q = (from x in Funs.DB.Manager_TrainSortC where x.MonthReportId == monthReportId select x).ToList();
if (q.Count > 0)
{
Funs.DB.Manager_TrainSortC.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog($"删除数据失败,原因:{ex.Message}");
}
} }
} }
} }
@@ -276,7 +276,7 @@ namespace BLL
} }
else else
{ {
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId select x).ToList();//装置条件为空时获取对应操作表中所有的装置 List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") select x).ToList();//装置条件为空时获取对应操作表中所有的装置
foreach (Model.WBS_UnitWork item in InstallationList) foreach (Model.WBS_UnitWork item in InstallationList)
{ {
Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault(); Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault();
@@ -289,7 +289,7 @@ namespace BLL
} }
else else
{ {
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId==projectId select x).ToList(); List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId==projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") select x).ToList();
foreach (Model.WBS_UnitWork item in InstallationList) foreach (Model.WBS_UnitWork item in InstallationList)
{ {
Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault(); Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault();
+3 -3
View File
@@ -402,7 +402,7 @@ namespace BLL
string[] type = null; string[] type = null;
if (!string.IsNullOrEmpty(projectType)) if (!string.IsNullOrEmpty(projectType))
type = projectType.Split(','); type = projectType.Split(',');
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (type == null || type.Contains(x.ProjectType)) orderby x.UnitWorkCode select x; var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") && (type == null || type.Contains(x.ProjectType)) orderby x.UnitWorkCode select x;
return unitWorks.ToList(); return unitWorks.ToList();
} }
/// <summary> /// <summary>
@@ -454,12 +454,12 @@ namespace BLL
{ {
if (ProjectType == "1") if (ProjectType == "1")
{ {
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "1" && x.ProjectId == ProjectId orderby x.UnitWorkCode select x).ToList(); List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "1" && x.ProjectId == ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x).ToList();
return lis; return lis;
} }
else if (ProjectType == "2") else if (ProjectType == "2")
{ {
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "2" && x.ProjectId == ProjectId orderby x.UnitWorkCode select x).ToList(); List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "2" && x.ProjectId == ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x).ToList();
return lis; return lis;
} }
else else
@@ -702,7 +702,7 @@ namespace BLL
public static int GetUnitProjectNum(string projectid) public static int GetUnitProjectNum(string projectid)
{ {
int result = (from x in Funs.DB.WBS_UnitWork int result = (from x in Funs.DB.WBS_UnitWork
where x.ProjectId == projectid where x.ProjectId == projectid && (x.SuperUnitWork == null || x.SuperUnitWork == "0")
select x).Count(); select x).Count();
return result; return result;
} }
@@ -109,7 +109,7 @@ namespace FineUIPro.Web.CQMS.Check
string strSql = @"SELECT chec.CheckControlCode,chec.CheckSite,chec.ProjectId,chec.unitId,cNProfessional.ProfessionalName," string strSql = @"SELECT chec.CheckControlCode,chec.CheckSite,chec.ProjectId,chec.unitId,cNProfessional.ProfessionalName,"
+ @" QualityQuestionType.QualityQuestionType as QuestionType,chec.LimitDate," + @" QualityQuestionType.QualityQuestionType as QuestionType,chec.LimitDate,"
+ @" chec.checkman,chec.CheckDate,chec.DocCode,chec.submitman,chec.state,chec.CNProfessionalCode," + @" chec.checkman,chec.CheckDate,chec.DocCode,chec.submitman,chec.state,chec.CNProfessionalCode,"
+ @" unit.UnitName,unitWork.UnitWorkName+(case unitWork.ProjectType when '1' then '(建筑)' else '(安装)' end) as UnitWorkName,u.userName " + @" unit.UnitName,unitWork.UnitWorkName,u.userName "
+ @" FROM Check_CheckControl chec" + @" FROM Check_CheckControl chec"
+ @" left join Base_Unit unit on unit.unitId=chec.unitId" + @" left join Base_Unit unit on unit.unitId=chec.unitId"
+ @" left join Base_CNProfessional cNProfessional on cNProfessional.CNProfessionalId=chec.CNProfessionalCode" + @" left join Base_CNProfessional cNProfessional on cNProfessional.CNProfessionalId=chec.CNProfessionalCode"
@@ -388,7 +388,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
select x; select x;
var cns = from x in Funs.DB.Base_CNProfessional select x; var cns = from x in Funs.DB.Base_CNProfessional select x;
var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x; var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") select x;
var oldViewInfos = from x in Funs.DB.Comprehensive_DesignChangeOrder var oldViewInfos = from x in Funs.DB.Comprehensive_DesignChangeOrder
where x.ProjectId == this.CurrUser.LoginProjectId where x.ProjectId == this.CurrUser.LoginProjectId
select x; select x;
@@ -17,6 +17,9 @@
color: Red; color: Red;
font-size: small; font-size: small;
} }
.f-grid-row.Gray {
background-color: gray;
}
</style> </style>
</head> </head>
<body> <body>
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.Comprehensive
{ {
string strSql = @"select InspectionMachineId, InspectionMachineCode, U.UnitName,CN.ProfessionalName ,Status, string strSql = @"select InspectionMachineId, InspectionMachineCode, U.UnitName,CN.ProfessionalName ,Status,
InspectionMachineName, SpecificationModel, NextTestDate, TestCycle, C.InspectionDate, InspectionMachineName, SpecificationModel, NextTestDate, TestCycle, C.InspectionDate,
InspectionDate CompileDate, (CASE WHEN IsVerification=1 THEN '是' WHEN IsVerification=0 THEN '否' ELSE '' END) AS IsVerification, InspectionType, LeaveDate, UnitsCount,C.RemarkCode InspectionDate CompileDate, (CASE WHEN IsVerification=1 THEN '是' WHEN IsVerification=0 THEN '否' ELSE '' END) AS IsVerification, InspectionType, LeaveDate, UnitsCount,C.RemarkCode,C.IsOnSite
from Comprehensive_InspectionMachine C from Comprehensive_InspectionMachine C
left join Base_Unit U on C.UnitId=U.UnitId left join Base_Unit U on C.UnitId=U.UnitId
left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId
@@ -106,7 +106,7 @@ namespace FineUIPro.Web.Comprehensive
DataRowView row = e.DataItem as DataRowView; DataRowView row = e.DataItem as DataRowView;
string IsVerification = row["IsVerification"].ToString(); string IsVerification = row["IsVerification"].ToString();
string NextTestDate = row["NextTestDate"].ToString(); string NextTestDate = row["NextTestDate"].ToString();
string InspectionType= row["InspectionType"].ToString(); string InspectionType = row["InspectionType"].ToString();
if (InspectionType == "计量") if (InspectionType == "计量")
{ {
if (IsVerification == "是" && !string.IsNullOrEmpty(NextTestDate)) //在校验期内 if (IsVerification == "是" && !string.IsNullOrEmpty(NextTestDate)) //在校验期内
@@ -126,6 +126,13 @@ namespace FineUIPro.Web.Comprehensive
} }
} }
//离场为灰色
string LeaveDate = row["LeaveDate"].ToString();
string IsOnSite = row["IsOnSite"].ToString();
if (!string.IsNullOrEmpty(LeaveDate) || IsOnSite == "False")
{
e.RowCssClass = "Gray";
}
} }
#region #region
@@ -17,6 +17,9 @@
color: Red; color: Red;
font-size: small; font-size: small;
} }
.f-grid-row.Gray {
background-color: gray;
}
</style> </style>
</head> </head>
<body> <body>
@@ -301,25 +301,27 @@ namespace FineUIPro.Web.Comprehensive
{ {
DataRowView row = e.DataItem as DataRowView; DataRowView row = e.DataItem as DataRowView;
string ValidityDate = row["ValidityDate"].ToString(); string ValidityDate = row["ValidityDate"].ToString();
if (!string.IsNullOrEmpty(ValidityDate)) if (!string.IsNullOrEmpty(ValidityDate))
{ {
if (DateTime.Compare(DateTime.Parse(ValidityDate).AddDays(-15), DateTime.Now) < 0) if (DateTime.Compare(DateTime.Parse(ValidityDate).AddDays(-15), DateTime.Now) < 0)
{ {
// Grid1.Rows[e.RowIndex].RowCssClass = "Red"; // Grid1.Rows[e.RowIndex].RowCssClass = "Red";
//过期为红色 //过期为红色
e.RowCssClass = "Red"; e.RowCssClass = "Red";
} }
} }
else else
{ {
e.RowCssClass = "Yellow"; e.RowCssClass = "Yellow";
} }
//离场人员为灰色
string DepartureTime = row["DepartureTime"].ToString();
string IsOnSite = row["IsOnSite"].ToString();
if (!string.IsNullOrEmpty(DepartureTime) || IsOnSite == "False")
{
e.RowCssClass = "Gray";
}
} }
/// <summary> /// <summary>
/// Grid行点击事件 /// Grid行点击事件
@@ -2287,7 +2287,7 @@ namespace FineUIPro.Web.CQMS.DataBase
private void WBSDataBind(string cNProfessionalCode) private void WBSDataBind(string cNProfessionalCode)
{ {
this.tvWBS.Nodes.Clear(); this.tvWBS.Nodes.Clear();
var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x; var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x;
foreach (var q in installations) foreach (var q in installations)
{ {
TreeNode newNode = new TreeNode(); TreeNode newNode = new TreeNode();
@@ -2362,7 +2362,7 @@ namespace FineUIPro.Web.CQMS.DataBase
private void WBSDataBind2(string cNProfessionalCode) private void WBSDataBind2(string cNProfessionalCode)
{ {
this.tvWBS2.Nodes.Clear(); this.tvWBS2.Nodes.Clear();
var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x; var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x;
foreach (var q in installations) foreach (var q in installations)
{ {
TreeNode newNode = new TreeNode(); TreeNode newNode = new TreeNode();
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Foreign
this.tvControlItem.AutoScroll = true; this.tvControlItem.AutoScroll = true;
this.tvControlItem.EnableSingleClickExpand = true; this.tvControlItem.EnableSingleClickExpand = true;
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x; var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x;
foreach (var item in unitWorks) foreach (var item in unitWorks)
{ {
TreeNode rootNode1 = new TreeNode(); TreeNode rootNode1 = new TreeNode();
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Foreign
this.tvControlItem.AutoScroll = true; this.tvControlItem.AutoScroll = true;
this.tvControlItem.EnableSingleClickExpand = true; this.tvControlItem.EnableSingleClickExpand = true;
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x; var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x;
foreach (var item in unitWorks) foreach (var item in unitWorks)
{ {
TreeNode rootNode1 = new TreeNode(); TreeNode rootNode1 = new TreeNode();
@@ -22,7 +22,7 @@
<Toolbars> <Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left"> <f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items> <Items>
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程名称" LabelAlign="Right" EnableEdit="true" LabelWidth="110px"> <f:DropDownList ID="drpUnit" runat="server" Label="施工分包商" LabelAlign="Right" EnableEdit="true" LabelWidth="110px">
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" EnableEdit="true" LabelWidth="110px"> <f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" EnableEdit="true" LabelWidth="110px">
</f:DropDownList> </f:DropDownList>
@@ -23,7 +23,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
{ {
GetButtonPower(); GetButtonPower();
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业 BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true); BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商
BindGrid(); BindGrid();
} }
} }
@@ -59,10 +59,10 @@ namespace FineUIPro.Web.CQMS.ProcessControl
+ @" WHERE P.ProjectId=@ProjectId "; + @" WHERE P.ProjectId=@ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
if (drpUnitWork.SelectedValue != BLL.Const._Null) if (drpUnit.SelectedValue != BLL.Const._Null)
{ {
strSql += " AND D.UnitWorkId=@UnitWorkId"; strSql += " AND P.UnitId=@UnitId";
listStr.Add(new SqlParameter("@UnitWorkId", drpUnitWork.SelectedValue)); listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue));
} }
if (drpCNProfessional.SelectedValue != BLL.Const._Null) if (drpCNProfessional.SelectedValue != BLL.Const._Null)
{ {
@@ -251,9 +251,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
on x.InspectionId equals y.InspectionId on x.InspectionId equals y.InspectionId
where y.ProjectId == this.CurrUser.LoginProjectId where y.ProjectId == this.CurrUser.LoginProjectId
select y); select y);
if (drpUnitWork.SelectedValue != BLL.Const._Null) if (drpUnit.SelectedValue != BLL.Const._Null)
{ {
lists = lists.Where(x => x.UnitWorkId == drpUnitWork.SelectedValue); lists = lists.Where(x => x.UnitId == drpUnit.SelectedValue);
} }
if (drpCNProfessional.SelectedValue != BLL.Const._Null) if (drpCNProfessional.SelectedValue != BLL.Const._Null)
{ {
@@ -7,13 +7,11 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.ProcessControl namespace FineUIPro.Web.CQMS.ProcessControl {
{
public partial class InspectionManagement {
public partial class InspectionManagement
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
/// </summary> /// </summary>
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1; protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary> /// <summary>
/// PageManager1 控件。 /// PageManager1 控件。
/// </summary> /// </summary>
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Panel Panel1; protected global::FineUIPro.Panel Panel1;
/// <summary> /// <summary>
/// Grid1 控件。 /// Grid1 控件。
/// </summary> /// </summary>
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Grid Grid1; protected global::FineUIPro.Grid Grid1;
/// <summary> /// <summary>
/// ToolSearch 控件。 /// ToolSearch 控件。
/// </summary> /// </summary>
@@ -58,16 +56,16 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Toolbar ToolSearch; protected global::FineUIPro.Toolbar ToolSearch;
/// <summary> /// <summary>
/// drpUnitWork 控件。 /// drpUnit 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpUnitWork; protected global::FineUIPro.DropDownList drpUnit;
/// <summary> /// <summary>
/// drpCNProfessional 控件。 /// drpCNProfessional 控件。
/// </summary> /// </summary>
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessional; protected global::FineUIPro.DropDownList drpCNProfessional;
/// <summary> /// <summary>
/// txtStarTime 控件。 /// txtStarTime 控件。
/// </summary> /// </summary>
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DatePicker txtStarTime; protected global::FineUIPro.DatePicker txtStarTime;
/// <summary> /// <summary>
/// Label1 控件。 /// Label1 控件。
/// </summary> /// </summary>
@@ -94,7 +92,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Label Label1; protected global::FineUIPro.Label Label1;
/// <summary> /// <summary>
/// txtEndTime 控件。 /// txtEndTime 控件。
/// </summary> /// </summary>
@@ -103,7 +101,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DatePicker txtEndTime; protected global::FineUIPro.DatePicker txtEndTime;
/// <summary> /// <summary>
/// btnSearch 控件。 /// btnSearch 控件。
/// </summary> /// </summary>
@@ -112,7 +110,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnSearch; protected global::FineUIPro.Button btnSearch;
/// <summary> /// <summary>
/// btnOut 控件。 /// btnOut 控件。
/// </summary> /// </summary>
@@ -121,7 +119,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnOut; protected global::FineUIPro.Button btnOut;
/// <summary> /// <summary>
/// lblPageIndex 控件。 /// lblPageIndex 控件。
/// </summary> /// </summary>
@@ -130,7 +128,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex; protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary> /// <summary>
/// Label3 控件。 /// Label3 控件。
/// </summary> /// </summary>
@@ -139,7 +137,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Label Label3; protected global::System.Web.UI.WebControls.Label Label3;
/// <summary> /// <summary>
/// lbtnFileUrl 控件。 /// lbtnFileUrl 控件。
/// </summary> /// </summary>
@@ -148,7 +146,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl; protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
/// <summary> /// <summary>
/// ToolbarText1 控件。 /// ToolbarText1 控件。
/// </summary> /// </summary>
@@ -157,7 +155,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1; protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary> /// <summary>
/// ddlPageSize 控件。 /// ddlPageSize 控件。
/// </summary> /// </summary>
@@ -166,7 +164,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize; protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary> /// <summary>
/// Window1 控件。 /// Window1 控件。
/// </summary> /// </summary>
@@ -175,7 +173,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Window Window1; protected global::FineUIPro.Window Window1;
/// <summary> /// <summary>
/// Menu1 控件。 /// Menu1 控件。
/// </summary> /// </summary>
@@ -184,7 +182,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Menu Menu1; protected global::FineUIPro.Menu Menu1;
/// <summary> /// <summary>
/// btnMenuModify 控件。 /// btnMenuModify 控件。
/// </summary> /// </summary>
@@ -193,7 +191,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify; protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary> /// <summary>
/// btnMenuDel 控件。 /// btnMenuDel 控件。
/// </summary> /// </summary>
@@ -22,7 +22,7 @@
<Toolbars> <Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left"> <f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items> <Items>
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程名称" LabelAlign="Right" LabelWidth="110px"> <f:DropDownList ID="drpUnit" runat="server" Label="施工分包商" LabelAlign="Right" LabelWidth="110px">
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" LabelWidth="110px"> <f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" LabelWidth="110px">
</f:DropDownList> </f:DropDownList>
@@ -26,7 +26,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
{ {
GetButtonPower(); GetButtonPower();
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业 BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true); BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商
BindGrid(); BindGrid();
} }
} }
@@ -59,10 +59,10 @@ namespace FineUIPro.Web.CQMS.ProcessControl
+ @" WHERE P.ProjectId=@ProjectId "; + @" WHERE P.ProjectId=@ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
if (drpUnitWork.SelectedValue != BLL.Const._Null) if (drpUnit.SelectedValue != BLL.Const._Null)
{ {
strSql += " AND D.UnitWorkId=@UnitWorkId"; strSql += " AND P.UnitId=@UnitId";
listStr.Add(new SqlParameter("@UnitWorkId", drpUnitWork.SelectedValue)); listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue));
} }
if (drpCNProfessional.SelectedValue != BLL.Const._Null) if (drpCNProfessional.SelectedValue != BLL.Const._Null)
{ {
@@ -279,9 +279,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
on x.InspectionId equals y.InspectionId on x.InspectionId equals y.InspectionId
where y.ProjectId == this.CurrUser.LoginProjectId where y.ProjectId == this.CurrUser.LoginProjectId
select y); select y);
if (drpUnitWork.SelectedValue != BLL.Const._Null) if (drpUnit.SelectedValue != BLL.Const._Null)
{ {
lists = lists.Where(x => x.UnitWorkId == drpUnitWork.SelectedValue); lists = lists.Where(x => x.UnitId == drpUnit.SelectedValue);
} }
if (drpCNProfessional.SelectedValue != BLL.Const._Null) if (drpCNProfessional.SelectedValue != BLL.Const._Null)
{ {
@@ -58,13 +58,13 @@ namespace FineUIPro.Web.CQMS.ProcessControl {
protected global::FineUIPro.Toolbar ToolSearch; protected global::FineUIPro.Toolbar ToolSearch;
/// <summary> /// <summary>
/// drpUnitWork 控件。 /// drpUnit 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpUnitWork; protected global::FineUIPro.DropDownList drpUnit;
/// <summary> /// <summary>
/// drpCNProfessional 控件。 /// drpCNProfessional 控件。
@@ -71,7 +71,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
this.trWBS.EnableIcons = true; this.trWBS.EnableIcons = true;
this.trWBS.AutoScroll = true; this.trWBS.AutoScroll = true;
this.trWBS.EnableSingleClickExpand = true; this.trWBS.EnableSingleClickExpand = true;
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId orderby x.UnitWorkCode select x; var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x;
foreach (var q in unitWorks) foreach (var q in unitWorks)
{ {
TreeNode newNode = new TreeNode(); TreeNode newNode = new TreeNode();
@@ -25,6 +25,18 @@ namespace FineUIPro.Web.CQMS.WBS
ViewState["BreakdownProjectId"] = value; ViewState["BreakdownProjectId"] = value;
} }
} }
public string UnitWorkId
{
get
{
return (string)ViewState["UnitWorkId"];
}
set
{
ViewState["UnitWorkId"] = value;
}
}
#endregion #endregion
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
@@ -38,6 +50,7 @@ namespace FineUIPro.Web.CQMS.WBS
var division = BLL.DivisionProjectService.GetDivisionProjectById(divisionProjectId); var division = BLL.DivisionProjectService.GetDivisionProjectById(divisionProjectId);
if (division != null) if (division != null)
{ {
this.UnitWorkId = division.UnitWorkId;
if (division.CNProfessionalId != null && Const.CNProfessionalConstructId == division.CNProfessionalId) if (division.CNProfessionalId != null && Const.CNProfessionalConstructId == division.CNProfessionalId)
{ {
this.tr1.Hidden = false; this.tr1.Hidden = false;
@@ -125,6 +138,7 @@ namespace FineUIPro.Web.CQMS.WBS
} }
} }
newBreakdown.Remark = this.txtRemark.Text.Trim(); newBreakdown.Remark = this.txtRemark.Text.Trim();
newBreakdown.UnitWorkId = this.UnitWorkId;
if (Request.Params["type"] == "add") if (Request.Params["type"] == "add")
{ {
if (this.rblIsAcceptance.SelectedValue == "True") if (this.rblIsAcceptance.SelectedValue == "True")
+282
View File
@@ -0,0 +1,282 @@
错误信息开始=====>
错误类型:SqlException
错误信息:无法绑定由多个部分组成的标识符 "D.UnitWorkId"。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311
在 FineUIPro.Web.CQMS.ProcessControl.InspectionNotice.BindGrid() 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\ProcessControl\InspectionNotice.aspx.cs:行号 83
在 FineUIPro.Web.CQMS.ProcessControl.InspectionNotice.btnSearch_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\ProcessControl\InspectionNotice.aspx.cs:行号 135
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/02/2024 10:32:29
出错文件:http://localhost:8579/CQMS/ProcessControl/InspectionNotice.aspx
IP地址:::1
操作人员:JT
出错时间:09/02/2024 10:32:29
错误信息开始=====>
错误类型:SqlException
错误信息:列名 'NextNum' 无效。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 FineUIPro.Web.common.mainProject2.GetJD() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\mainProject2.aspx.cs:行号 720
在 FineUIPro.Web.common.mainProject2.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\mainProject2.aspx.cs:行号 113
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:06/25/2024 17:08:52
出错文件:http://localhost:8579/common/mainProject2.aspx
IP地址:::1
操作人员:JT
出错时间:06/25/2024 17:08:52
错误信息开始=====>
错误类型:SqlException
错误信息:参数化查询 '(@ProjectId nvarchar(4000))SELECT NEWID() AS ID, CardNo,PersonNa' 需要参数 '@ProjectId',但未提供该参数。
错误堆栈:
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311
在 FineUIPro.Web.HSSE.EduTrain.TrainFind.BindGrid() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\HSSE\EduTrain\TrainFind.aspx.cs:行号 116
在 FineUIPro.Web.HSSE.EduTrain.TrainFind.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\HSSE\EduTrain\TrainFind.aspx.cs:行号 59
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:38:17
出错文件:http://localhost:8579/HSSE/EduTrain/TrainFind.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:38:17
错误信息开始=====>
错误类型:FormatException
错误信息:输入字符串的格式不正确。
错误堆栈:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 System.String.System.IConvertible.ToInt32(IFormatProvider provider)
在 System.Convert.ToInt32(Object value)
在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow )
在 (GridColumn , GridRow )
在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN()
在 (GridRow )
在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object )
在 (Grid , Int32 , Object )
在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean )
在 (Grid , IEnumerable , Boolean )
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
在 (Grid , Boolean )
在 FineUIPro.Grid.DataBind()
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.btnSearch_Click(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 39
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:53:12
出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:53:12
错误信息开始=====>
错误类型:FormatException
错误信息:输入字符串的格式不正确。
错误堆栈:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 System.String.System.IConvertible.ToInt32(IFormatProvider provider)
在 System.Convert.ToInt32(Object value)
在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow )
在 (GridColumn , GridRow )
在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN()
在 (GridRow )
在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object )
在 (Grid , Int32 , Object )
在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean )
在 (Grid , IEnumerable , Boolean )
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
在 (Grid , Boolean )
在 FineUIPro.Grid.DataBind()
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:53:47
出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:53:47
错误信息开始=====>
错误类型:FormatException
错误信息:输入字符串的格式不正确。
错误堆栈:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 System.String.System.IConvertible.ToInt32(IFormatProvider provider)
在 System.Convert.ToInt32(Object value)
在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow )
在 (GridColumn , GridRow )
在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN()
在 (GridRow )
在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object )
在 (Grid , Int32 , Object )
在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean )
在 (Grid , IEnumerable , Boolean )
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
在 (Grid , Boolean )
在 FineUIPro.Grid.DataBind()
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:54:12
出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:54:12
错误信息开始=====>
错误类型:FormatException
错误信息:输入字符串的格式不正确。
错误堆栈:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 System.String.System.IConvertible.ToInt32(IFormatProvider provider)
在 System.Convert.ToInt32(Object value)
在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow )
在 (GridColumn , GridRow )
在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN()
在 (GridRow )
在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object )
在 (Grid , Int32 , Object )
在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean )
在 (Grid , IEnumerable , Boolean )
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
在 (Grid , Boolean )
在 FineUIPro.Grid.DataBind()
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:54:41
出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:54:41
错误信息开始=====>
错误类型:FormatException
错误信息:输入字符串的格式不正确。
错误堆栈:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 System.String.System.IConvertible.ToInt32(IFormatProvider provider)
在 System.Convert.ToInt32(Object value)
在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow )
在 (GridColumn , GridRow )
在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN()
在 (GridRow )
在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object )
在 (Grid , Int32 , Object )
在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean )
在 (Grid , IEnumerable , Boolean )
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
在 (Grid , Boolean )
在 FineUIPro.Grid.DataBind()
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34
在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:09/03/2024 15:55:36
出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx
IP地址:::1
操作人员:JT
出错时间:09/03/2024 15:55:36
+17 -1
View File
@@ -1195,6 +1195,8 @@
<Content Include="HSSE\Manager\HSSELogMonthView.aspx" /> <Content Include="HSSE\Manager\HSSELogMonthView.aspx" />
<Content Include="HSSE\Manager\HSSELogView.aspx" /> <Content Include="HSSE\Manager\HSSELogView.aspx" />
<Content Include="HSSE\Manager\ManagerMonthC.aspx" /> <Content Include="HSSE\Manager\ManagerMonthC.aspx" />
<Content Include="HSSE\Manager\ManagerMonthCEdit.aspx" />
<Content Include="HSSE\Manager\ManagerMonthCNew.aspx" />
<Content Include="HSSE\Manager\ManagerMonth_SeDin.aspx" /> <Content Include="HSSE\Manager\ManagerMonth_SeDin.aspx" />
<Content Include="HSSE\Manager\ManagerMonth_SeDinEdit.aspx" /> <Content Include="HSSE\Manager\ManagerMonth_SeDinEdit.aspx" />
<Content Include="HSSE\Manager\ManagerWeek.aspx" /> <Content Include="HSSE\Manager\ManagerWeek.aspx" />
@@ -12782,6 +12784,20 @@
<Compile Include="HSSE\Manager\ManagerMonthC.aspx.designer.cs"> <Compile Include="HSSE\Manager\ManagerMonthC.aspx.designer.cs">
<DependentUpon>ManagerMonthC.aspx</DependentUpon> <DependentUpon>ManagerMonthC.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="HSSE\Manager\ManagerMonthCEdit.aspx.cs">
<DependentUpon>ManagerMonthCEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HSSE\Manager\ManagerMonthCEdit.aspx.designer.cs">
<DependentUpon>ManagerMonthCEdit.aspx</DependentUpon>
</Compile>
<Compile Include="HSSE\Manager\ManagerMonthCNew.aspx.cs">
<DependentUpon>ManagerMonthCNew.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HSSE\Manager\ManagerMonthCNew.aspx.designer.cs">
<DependentUpon>ManagerMonthCNew.aspx</DependentUpon>
</Compile>
<Compile Include="HSSE\Manager\ManagerMonth_SeDin.aspx.cs"> <Compile Include="HSSE\Manager\ManagerMonth_SeDin.aspx.cs">
<DependentUpon>ManagerMonth_SeDin.aspx</DependentUpon> <DependentUpon>ManagerMonth_SeDin.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
@@ -19216,7 +19232,7 @@
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
@@ -222,6 +222,8 @@ namespace FineUIPro.Web.HSSE.Emergency
var EmergencyTeamAndTrain = BLL.EmergencyTeamAndTrainService.GetEmergencyTeamAndTrainById(rowID); var EmergencyTeamAndTrain = BLL.EmergencyTeamAndTrainService.GetEmergencyTeamAndTrainById(rowID);
if (EmergencyTeamAndTrain != null) if (EmergencyTeamAndTrain != null)
{ {
BLL.LogService.AddSys_Log(this.CurrUser, EmergencyTeamAndTrain.FileCode, EmergencyTeamAndTrain.FileId, BLL.Const.ProjectEmergencyTeamAndTrainMenuId, BLL.Const.BtnDelete); BLL.LogService.AddSys_Log(this.CurrUser, EmergencyTeamAndTrain.FileCode, EmergencyTeamAndTrain.FileId, BLL.Const.ProjectEmergencyTeamAndTrainMenuId, BLL.Const.BtnDelete);
BLL.EmergencyTeamAndTrainService.DeleteEmergencyTeamAndTrainById(rowID); BLL.EmergencyTeamAndTrainService.DeleteEmergencyTeamAndTrainById(rowID);
} }
@@ -60,7 +60,7 @@ namespace FineUIPro.Web.HSSE.Manager
string strSql = @"SELECT MonthReport.MonthReportId,MonthReport.ProjectId,MonthReport.Months,CodeRecords.Code AS MonthReportCode,Users.UserName as ReportManName" string strSql = @"SELECT MonthReport.MonthReportId,MonthReport.ProjectId,MonthReport.Months,CodeRecords.Code AS MonthReportCode,Users.UserName as ReportManName"
+ @" FROM Manager_MonthReportC AS MonthReport " + @" FROM Manager_MonthReportC AS MonthReport "
+ @" LEFT JOIN Sys_User AS Users ON MonthReport.ReportMan=Users.UserId " + @" LEFT JOIN Sys_User AS Users ON MonthReport.ReportMan=Users.UserId "
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE 1=1 "; + @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE MonthReportType is null ";
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND MonthReport.ProjectId = @ProjectId"; strSql += " AND MonthReport.ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
@@ -236,7 +236,9 @@ namespace FineUIPro.Web.HSSE.Manager
var mont = BLL.MonthReportCService.GetMonthReportByMonthReportId(rowID); var mont = BLL.MonthReportCService.GetMonthReportByMonthReportId(rowID);
if (mont != null) if (mont != null)
{ {
BLL.ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(rowID);
BLL.LogService.AddSys_Log(this.CurrUser, mont.MonthReportCode, mont.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnDelete); BLL.LogService.AddSys_Log(this.CurrUser, mont.MonthReportCode, mont.MonthReportId, BLL.Const.ProjectManagerMonthCMenuId, BLL.Const.BtnDelete);
BLL.RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(rowID);
BLL.PersonSortCService.DeletePersonSortsByMonthReportId(rowID); BLL.PersonSortCService.DeletePersonSortsByMonthReportId(rowID);
BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(rowID); BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(rowID);
BLL.AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID); BLL.AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID);
@@ -272,6 +274,7 @@ namespace FineUIPro.Web.HSSE.Manager
BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID); BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID);
BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID); BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID);
BLL.MonthReportCService.DeleteMonthReportByMonthReportId(rowID); BLL.MonthReportCService.DeleteMonthReportByMonthReportId(rowID);
} }
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,123 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManagerMonthCNew.aspx.cs" Inherits="FineUIPro.Web.HSSE.Manager.ManagerMonthCNew" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>HSE月报告(新)</title>
<style type="text/css">
.labcenter
{
text-align: center;
}
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="HSE月报告" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="MonthReportId" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="MonthReportId" AllowSorting="true" SortField="Months"
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true"
OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox runat="server" Label="编号" ID="txtMonthReportCode" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelWidth="50px"
LabelAlign="right">
</f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:DatePicker runat="server" Label="选择月份" ID="txtReportDate" LabelWidth="100px" Width="200px"
LabelAlign="right" DateFormatString="yyyy-MM">
</f:DatePicker>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" runat="server"
OnClick="btnNew_Click1" Hidden="true">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="250px" ColumnID="MonthReportCode" DataField="MonthReportCode"
SortField="MonthReportCode" FieldType="String" HeaderText="编号" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="210px" ColumnID="Months" DataField="Months" SortField="Months"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM" HeaderText="月份"
HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="190px" ColumnID="ReportManName" DataField="ReportManName" ExpandUnusedSpace="true"
SortField="ReportManName" FieldType="String" HeaderText="报告人" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑HSE月报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" OnClose="Window1_Close" CloseAction="HidePostBack"
PercentWidth="100%" PercentHeight="100%">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true"
Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click">
</f:MenuButton>
<f:MenuButton ID="btnMenuOut" EnablePostBack="true" runat="server" EnableAjax="false" DisableControlBeforePostBack="false"
Text="导出" Icon="Find" OnClick="btnMenuOut_Click">
</f:MenuButton>
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true"
Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?" OnClick="btnMenuDel_Click">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,188 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.Manager
{
public partial class ManagerMonthCNew
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtMonthReportCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMonthReportCode;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// txtReportDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReportDate;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuModify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuOut;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
}
}
@@ -198,7 +198,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
where x.ProjectId == this.ProjectId where x.ProjectId == this.ProjectId
select x; select x;
var workAreas = from x in Funs.DB.WBS_UnitWork var workAreas = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.ProjectId where x.ProjectId == this.ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0")
select x; select x;
var posts = from x in Funs.DB.Base_WorkPost var posts = from x in Funs.DB.Base_WorkPost
select x; select x;
@@ -727,7 +727,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
where x.ProjectId == this.ProjectId where x.ProjectId == this.ProjectId
select x; select x;
var workAreas = from x in Funs.DB.WBS_UnitWork var workAreas = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.ProjectId where x.ProjectId == this.ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0")
select x; select x;
var posts = from x in Funs.DB.Base_WorkPost var posts = from x in Funs.DB.Base_WorkPost
select x; select x;
Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

@@ -97,8 +97,8 @@ namespace FineUIPro.Web.ProjectData
if (e.Node.CommandName == "project") //展开项目节点 if (e.Node.CommandName == "project") //展开项目节点
{ {
var unitWorks = from x in Funs.DB.WBS_UnitWork var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == e.Node.NodeID && x.SuperUnitWork == "0" where x.ProjectId == e.Node.NodeID && (x.SuperUnitWork == null || x.SuperUnitWork == "0")
orderby x.UnitWorkCode orderby x.UnitWorkCode
select x; select x;
foreach (var unitWork in unitWorks) foreach (var unitWork in unitWorks)
{ {
@@ -49,16 +49,19 @@
<f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false" <f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false"
BodyPadding="10px" ShowBorder="true" ShowHeader="false"> BodyPadding="10px" ShowBorder="true" ShowHeader="false">
<Items> <Items>
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="600px" ShowBorder="true" <f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="650px" ShowBorder="true"
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server" AutoPostBack="true" OnTabIndexChanged="TabStrip1_TabIndexChanged"> TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server" AutoPostBack="true" OnTabIndexChanged="TabStrip1_TabIndexChanged">
<Tabs> <Tabs>
<f:Tab ID="Tab1" Title="图形" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server" <f:Tab ID="Tab1" Title="图形" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server" CssStyle="width:100%"
TitleToolTip="图形"> TitleToolTip="图形">
<Items> <Items>
<f:ContentPanel ShowHeader="false" runat="server" ID="cpAccidentTime" Margin="0 0 0 0">
<div id="divAccidentTime"> <f:ContentPanel ShowHeader="false" runat="server" ID="cpAccidentTime" Margin="0 0 0 0" CssStyle="width:100%">
<div id="container" style="width: 1300px; height: 580px;"></div>
<%-- <div id="divAccidentTime">
<uc1:ChartControl ID="ChartAccidentTime" runat="server" /> <uc1:ChartControl ID="ChartAccidentTime" runat="server" />
</div> </div>--%>
</f:ContentPanel> </f:ContentPanel>
</Items> </Items>
</f:Tab> </f:Tab>
@@ -80,13 +83,52 @@
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="true" EnableSummary="true" SummaryPosition="Flow"> EnableRowDoubleClickEvent="true" EnableTextSelection="true" EnableSummary="true" SummaryPosition="Flow">
<Columns> <Columns>
<f:BoundField DataField="Disc" ColumnID="Disc" HeaderText="专业" ExpandUnusedSpace="true" MinWidth="150px" /> <f:BoundField DataField="Disc" ColumnID="Disc" HeaderText="专业" ExpandUnusedSpace="true" minWidth="80px" TextAlign="Center"/>
<f:GroupField HeaderText="类别" TextAlign="Center" MinWidth="600px">
<f:GroupField HeaderText="总体情况" TextAlign="Center" >
<Columns> <Columns>
<f:RenderField Width="150px" ColumnID="Cat_A_Count" DataField="Cat_A_Count" HeaderText="A" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="50px" ColumnID="allCount" DataField="allCount" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_B_Count" DataField="Cat_B_Count" HeaderText="B" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="70px" ColumnID="allfinshedCount" DataField="allfinshedCount" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_C_Count" DataField="Cat_C_Count" HeaderText="C" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="90px" ColumnID="allWUH" DataField="allWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_D_Count" DataField="Cat_D_Count" HeaderText="D" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="80px" ColumnID="allBASF" DataField="allBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="A" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_A_Count" DataField="Cat_A_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_A_Countf" DataField="Cat_A_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_A_CountWUH" DataField="Cat_A_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_A_CountBASF" DataField="Cat_A_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="B" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_B_Count" DataField="Cat_B_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_B_Countf" DataField="Cat_B_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_B_CountWUH" DataField="Cat_B_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_B_CountBASF" DataField="Cat_B_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="C" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_C_Count" DataField="Cat_C_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_C_Countf" DataField="Cat_C_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_C_CountWUH" DataField="Cat_C_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_C_CountBASF" DataField="Cat_C_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="D" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_D_Count" DataField="Cat_D_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_D_Countf" DataField="Cat_D_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_D_CountWUH" DataField="Cat_D_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_D_CountBASF" DataField="Cat_D_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns> </Columns>
</f:GroupField> </f:GroupField>
</Columns> </Columns>
@@ -112,14 +154,51 @@
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid2_PageIndexChange" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid2_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="true" EnableSummary="true" SummaryPosition="Flow"> EnableRowDoubleClickEvent="true" EnableTextSelection="true" EnableSummary="true" SummaryPosition="Flow">
<Columns> <Columns>
<f:BoundField DataField="Action_By" ColumnID="Action_By" HeaderText="单位" ExpandUnusedSpace="true" MinWidth="150px" /> <f:BoundField DataField="Action_By" ColumnID="Action_By" HeaderText="单位" ExpandUnusedSpace="true" minWidth="80px" TextAlign="Center" />
<f:RenderField Width="150px" ColumnID="Cat_All_Count" DataField="Cat_All_Count" HeaderText="总" TextAlign="Center" FieldType="Double" /> <f:GroupField HeaderText="总体情况" TextAlign="Center" >
<f:GroupField HeaderText="类别" TextAlign="Center" MinWidth="600px">
<Columns> <Columns>
<f:RenderField Width="150px" ColumnID="Cat_A_Count" DataField="Cat_A_Count" HeaderText="A" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="50px" ColumnID="allCount" DataField="allCount" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_B_Count" DataField="Cat_B_Count" HeaderText="B" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="70px" ColumnID="allfinshedCount" DataField="allfinshedCount" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_C_Count" DataField="Cat_C_Count" HeaderText="C" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="90px" ColumnID="allWUH" DataField="allWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="150px" ColumnID="Cat_D_Count" DataField="Cat_D_Count" HeaderText="D" TextAlign="Center" FieldType="Double" /> <f:RenderField Width="80px" ColumnID="allBASF" DataField="allBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="A" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_A_Count" DataField="Cat_A_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_A_Countf" DataField="Cat_A_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_A_CountWUH" DataField="Cat_A_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_A_CountBASF" DataField="Cat_A_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="B" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_B_Count" DataField="Cat_B_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_B_Countf" DataField="Cat_B_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_B_CountWUH" DataField="Cat_B_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_B_CountBASF" DataField="Cat_B_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="C" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_C_Count" DataField="Cat_C_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_C_Countf" DataField="Cat_C_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_C_CountWUH" DataField="Cat_C_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_C_CountBASF" DataField="Cat_C_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="D" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_D_Count" DataField="Cat_D_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_D_Countf" DataField="Cat_D_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_D_CountWUH" DataField="Cat_D_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_D_CountBASF" DataField="Cat_D_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns> </Columns>
</f:GroupField> </f:GroupField>
</Columns> </Columns>
@@ -145,20 +224,57 @@
runat="server" BoxFlex="1" DataKeyNames="System_No" AllowCellEditing="true" EnableColumnLines="true" runat="server" BoxFlex="1" DataKeyNames="System_No" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="System_No" AllowSorting="true" OnSort="Grid3_Sort" ClicksToEdit="2" DataIDField="System_No" AllowSorting="true" OnSort="Grid3_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid3_PageIndexChange" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid3_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="true"> EnableRowDoubleClickEvent="true" EnableTextSelection="true" EnableSummary="true">
<Columns> <Columns>
<f:BoundField Width="180px" TextAlign="Center" ColumnID="System_No" DataField="System_No" HeaderText="System No." /> <f:BoundField TextAlign="Center" ColumnID="System_No" DataField="System_No" HeaderText="System No." minWidth="80px" />
<f:RenderField Width="180px" TextAlign="Center" ColumnID="SystemNoCount" DataField="SystemNoCount" HeaderText="尾项数量" FieldType="Double" /> <f:GroupField HeaderText="总体情况" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="allCount" DataField="allCount" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="allfinshedCount" DataField="allfinshedCount" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="allWUH" DataField="allWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="allBASF" DataField="allBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:RenderField Width="180px" TextAlign="Center" ColumnID="ActualDateCount" DataField="ActualDateCount" HeaderText="已完成数量" FieldType="Double"/>
<f:RenderField Width="180px" TextAlign="Center" ColumnID="ClearedByCount" DataField="ClearedByCount" HeaderText="Cleared(PIC)" FieldType="Double"/>
<f:RenderField Width="180px" TextAlign="Center" ColumnID="ConfirmedByCount" DataField="ConfirmedByCount" HeaderText="Confirmed(WUH)" FieldType="Double"/> <f:GroupField HeaderText="A" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_A_Count" DataField="Cat_A_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_A_Countf" DataField="Cat_A_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_A_CountWUH" DataField="Cat_A_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_A_CountBASF" DataField="Cat_A_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:RenderField Width="180px" TextAlign="Center" ColumnID="VerifiedByCount" DataField="VerifiedByCount" HeaderText="Verified(BASF)" FieldType="Double"/> <f:GroupField HeaderText="B" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_B_Count" DataField="Cat_B_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_B_Countf" DataField="Cat_B_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_B_CountWUH" DataField="Cat_B_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_B_CountBASF" DataField="Cat_B_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="C" TextAlign="Center" >
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_C_Count" DataField="Cat_C_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_C_Countf" DataField="Cat_C_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_C_CountWUH" DataField="Cat_C_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_C_CountBASF" DataField="Cat_C_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
<f:GroupField HeaderText="D" TextAlign="Center">
<Columns>
<f:RenderField Width="50px" ColumnID="Cat_D_Count" DataField="Cat_D_Count" HeaderText="总数" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="70px" ColumnID="Cat_D_Countf" DataField="Cat_D_Countf" HeaderText="已完成" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="90px" ColumnID="Cat_D_CountWUH" DataField="Cat_D_CountWUH" HeaderText="Confirmed<br/>(WUH)" TextAlign="Center" FieldType="Double" />
<f:RenderField Width="80px" ColumnID="Cat_D_CountBASF" DataField="Cat_D_CountBASF" HeaderText="Verified<br/>(BASF)" TextAlign="Center" FieldType="Double" />
</Columns>
</f:GroupField>
</Columns> </Columns>
<PageItems> <PageItems>
<f:ToolbarText ID="ToolbarText3" runat="server" Text="每页记录数:"> <f:ToolbarText ID="ToolbarText3" runat="server" Text="每页记录数:">
@@ -181,3 +297,106 @@
</form> </form>
</body> </body>
</html> </html>
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/echarts.min.js"></script>
<script type="text/javascript">
var dom = document.getElementById('container');
var myChart = echarts.init(dom, null, {
renderer: 'canvas',
useDirtyRect: false
});
var app = {};
var option;
option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
crossStyle: {
color: '#999'
}
}
},
toolbox: {
feature: {
//dataView: { show: true, readOnly: false },
//magicType: { show: true, type: ['line', 'bar'] },
//restore: { show: true },
saveAsImage: { show: true }
}
},
legend: {
data: ['当天计划完成量', '当天实际完成量', '累计计划完成量','累计实际完成量']
},
/*x轴日期*/
xAxis: [
{
type: 'category',
data: [<%=AllxDate%>],
/* data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],*/
axisPointer: {
type: 'shadow'
},
axisLabel: {
interval: 0,
rotate: 40 //值>0向右倾斜,值<0则向左倾斜
}
}
],
/*两边的单位*/
yAxis: [
{
type: 'value',
name: '计划数量',
interval: 20,
axisLabel: {
formatter: '{value}'
}
},
{
type: 'value',
name: '累计数量',
interval: 50,
axisLabel: {
formatter: '{value}'
}
}
],
series: [
{
name: '当天计划完成量',
type: 'bar',
data: [<%=wcl1%>]
},
{
name: '当天实际完成量',
type: 'bar',
data: [<%=wcl2%>]
},
{
name: '累计计划完成量',
type: 'line',
yAxisIndex: 1,
data: [<%=wcl3%>]
},
{
name: '累计实际完成量',
type: 'line',
yAxisIndex: 1,
data: [<%=wcl4%>]
}
]
};
if (option && typeof option === 'object') {
myChart.setOption(option);
}
window.addEventListener('resize', myChart.resize);
</script>
@@ -18,6 +18,11 @@ namespace FineUIPro.Web.Transfer.Chart
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
ddlSystemNo.Hidden = true;
ddlDateType.Hidden = true;
drpChartType.Hidden = true;
BtnAnalyse.Hidden = true;
var systemNos = Funs.DB.Transfer_PunchlistFrom.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).GroupBy(p => new { p.System_No }).Select(p => new { System_No = p.Key.System_No }).ToList(); var systemNos = Funs.DB.Transfer_PunchlistFrom.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).GroupBy(p => new { p.System_No }).Select(p => new { System_No = p.Key.System_No }).ToList();
int indexRow = 1; int indexRow = 1;
ddlSystemNo.Items.Insert(0, new FineUIPro.ListItem("ALL", "")); ddlSystemNo.Items.Insert(0, new FineUIPro.ListItem("ALL", ""));
@@ -30,6 +35,28 @@ namespace FineUIPro.Web.Transfer.Chart
} }
} }
/// <summary>
/// x轴30天日期
/// </summary>
public string AllxDate;
/// <summary>
/// 当天计划完成量
/// </summary>
public string wcl1;
/// <summary>
/// 当天实际完成量
/// </summary>
public string wcl2;
/// <summary>
/// 累计计划完成量
/// </summary>
public string wcl3;
/// <summary>
/// 累计实际完成量
/// </summary>
public string wcl4;
/// <summary> /// <summary>
/// 统计方法 /// 统计方法
/// </summary> /// </summary>
@@ -47,27 +74,63 @@ namespace FineUIPro.Web.Transfer.Chart
string _dateType = ddlDateType.SelectedValue; string _dateType = ddlDateType.SelectedValue;
#region #region
AllxDate = "";
if (_dateType == "1") if (_dateType == "1")
{ {
///按单位统计 #region 30
DataTable dtTime = new DataTable(); var nowDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd"));
dtTime.Columns.Add("日期", typeof(string)); for (var i = nowDate.AddDays(-30); i <= nowDate; i=i.AddDays(1))
dtTime.Columns.Add("计划完成数量", typeof(string));
dtTime.Columns.Add("实际完成数量", typeof(string));
for (int i = 6; i >= 0; i--)
{ {
DataRow rowTime = dtTime.NewRow(); //i是日期
DateTime QueryTime = DateTime.Now.AddDays(i * -1);
rowTime["日期"] = QueryTime.ToString("yyyy/MM/dd"); var d = i.Month.ToString() + "月" + i.Day.ToString() + "日";
DateTime startTime = Convert.ToDateTime(QueryTime.ToString("yyyy-MM-dd") + " 00:00:00"); DateTime startTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 00:00:00");
DateTime endTime = Convert.ToDateTime(QueryTime.ToString("yyyy-MM-dd") + " 23:59:59"); DateTime endTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 23:59:59");
//rowTime["计划完成数量"] = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count(); //当天计划完成量
//rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count(); var dtjhwcl= forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count();
rowTime["计划完成数量"] = forms.Where(x => x.Required_Date <= endTime).Count(); wcl1 += "'" + dtjhwcl + "',";
rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date <= endTime).Count(); //当天实际完成量
dtTime.Rows.Add(rowTime); var dtsjwcl = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count();
wcl2 += "'" + dtsjwcl + "',";
//累计计划完成量
var ljjhwcl = forms.Where(x => x.Required_Date <= endTime).Count();
wcl3 += "'" + ljjhwcl + "',";
//累计实际完成量
var ljsjwcl= forms.Where(x => x.Actual_Date <= endTime).Count();
wcl4 += "'" + ljsjwcl + "',";
AllxDate += "'"+ d + "',";
} }
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项完成统计分析", this.drpChartType.SelectedValue, 1300, 550, false)); if (AllxDate.Length>0)
{
AllxDate = AllxDate.Substring(0, AllxDate.Length - 1);
wcl1 = wcl1.Substring(0, wcl1.Length - 1);
wcl2 = wcl2.Substring(0, wcl2.Length - 1);
wcl3 = wcl3.Substring(0, wcl3.Length - 1);
wcl4 = wcl4.Substring(0, wcl4.Length - 1);
}
#endregion
/////按单位统计
//DataTable dtTime = new DataTable();
//dtTime.Columns.Add("日期", typeof(string));
//dtTime.Columns.Add("计划完成数量", typeof(string));
//dtTime.Columns.Add("实际完成数量", typeof(string));
//for (int i = 6; i >= 0; i--)
//{
// DataRow rowTime = dtTime.NewRow();
// DateTime QueryTime = DateTime.Now.AddDays(i * -1);
// rowTime["日期"] = QueryTime.ToString("yyyy/MM/dd");
// DateTime startTime = Convert.ToDateTime(QueryTime.ToString("yyyy-MM-dd") + " 00:00:00");
// DateTime endTime = Convert.ToDateTime(QueryTime.ToString("yyyy-MM-dd") + " 23:59:59");
// //rowTime["计划完成数量"] = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count();
// //rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count();
// rowTime["计划完成数量"] = forms.Where(x => x.Required_Date <= endTime).Count();
// rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date <= endTime).Count();
// dtTime.Rows.Add(rowTime);
//}
//this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项完成统计分析", this.drpChartType.SelectedValue, 1300, 550, false));
///按单位统计 ///按单位统计
DataTable dtTime1 = new DataTable(); DataTable dtTime1 = new DataTable();
@@ -95,25 +158,25 @@ namespace FineUIPro.Web.Transfer.Chart
//按照当前月份到一月份的数据 //按照当前月份到一月份的数据
if (_dateType == "2") if (_dateType == "2")
{ {
///按单位统计 /////按单位统计
DataTable dtTime = new DataTable(); //DataTable dtTime = new DataTable();
dtTime.Columns.Add("月份", typeof(string)); //dtTime.Columns.Add("月份", typeof(string));
dtTime.Columns.Add("计划完成数量", typeof(string)); //dtTime.Columns.Add("计划完成数量", typeof(string));
dtTime.Columns.Add("实际完成数量", typeof(string)); //dtTime.Columns.Add("实际完成数量", typeof(string));
for (int i = 1; i <= DateTime.Now.Month; i++) //for (int i = 1; i <= DateTime.Now.Month; i++)
{ //{
DataRow rowTime = dtTime.NewRow(); // DataRow rowTime = dtTime.NewRow();
DateTime QueryTime =Convert.ToDateTime($"{DateTime.Now.Year.ToString()}-{i}-1 00:00:00"); // DateTime QueryTime =Convert.ToDateTime($"{DateTime.Now.Year.ToString()}-{i}-1 00:00:00");
rowTime["月份"] = QueryTime.ToString("yyyy/MM"); // rowTime["月份"] = QueryTime.ToString("yyyy/MM");
DateTime startTime = QueryTime; // DateTime startTime = QueryTime;
DateTime endTime = Convert.ToDateTime(QueryTime.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd") + " 23:59:59"); // DateTime endTime = Convert.ToDateTime(QueryTime.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd") + " 23:59:59");
//rowTime["计划完成数量"] = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count(); // //rowTime["计划完成数量"] = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count();
//rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count(); // //rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count();
rowTime["计划完成数量"] = forms.Where(x => x.Required_Date <= endTime).Count(); // rowTime["计划完成数量"] = forms.Where(x => x.Required_Date <= endTime).Count();
rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date <= endTime).Count(); // rowTime["实际完成数量"] = forms.Where(x => x.Actual_Date <= endTime).Count();
dtTime.Rows.Add(rowTime); // dtTime.Rows.Add(rowTime);
} //}
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项完成统计分析", this.drpChartType.SelectedValue, 1300, 550, false)); //this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项完成统计分析", this.drpChartType.SelectedValue, 1300, 550, false));
///按单位统计 ///按单位统计
DataTable dtTime1 = new DataTable(); DataTable dtTime1 = new DataTable();
@@ -269,12 +332,49 @@ namespace FineUIPro.Web.Transfer.Chart
strSql.AppendLine(" AND System_No=@System_No "); strSql.AppendLine(" AND System_No=@System_No ");
listStr.Add(new SqlParameter("@System_No", _systemNo)); listStr.Add(new SqlParameter("@System_No", _systemNo));
} }
strSql.AppendLine(" select Disc,cast(0 as decimal(18,2)) Cat_A_Count,cast(0 as decimal(18,2)) Cat_B_Count,cast(0 as decimal(18,2)) Cat_C_Count,cast(0 as decimal(18,2)) Cat_D_Count INTO #PunchlistFromSortTemp1 from #AllPunchlistFromSortTemp1 Group by Disc; "); strSql.AppendLine(@" select Disc,
strSql.AppendLine(" update a set a.Cat_A_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')) "); cast(0 as decimal(18, 2)) Cat_A_Count,
strSql.AppendLine(",a.Cat_B_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) "); cast(0 as decimal(18, 2)) Cat_A_Countf, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF,
strSql.AppendLine(",a.Cat_C_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) "); cast(0 as decimal(18, 2)) Cat_B_Count,
strSql.AppendLine(",a.Cat_D_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) "); cast(0 as decimal(18, 2)) Cat_B_Countf, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF,
strSql.AppendLine("from #PunchlistFromSortTemp1 a;"); cast(0 as decimal(18, 2)) Cat_C_Count,
cast(0 as decimal(18, 2)) Cat_C_Countf, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF,
cast(0 as decimal(18, 2)) Cat_D_Count,
cast(0 as decimal(18, 2)) Cat_D_Countf, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF,
cast(0 as decimal(18, 2)) allCount, cast(0 as decimal(18, 2)) allfinshedCount, cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF
INTO #PunchlistFromSortTemp1
from #AllPunchlistFromSortTemp1 Group by Disc; ");
strSql.AppendLine(@" update a set
allCount=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc),
allfinshedCount=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc and (b.Required_Date is not null or b.Required_Date!='')),
allWUH=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
allBASF=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc and (b.Verified_Date is not null or b.Verified_Date!='')),
a.Cat_A_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')),
a.Cat_A_Countf=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_A_CountWUH=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_A_CountBASF=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_B_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) ,
a.Cat_B_Countf=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_B_CountWUH=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_B_CountBASF=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_C_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) ,
a.Cat_C_Countf=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_C_CountWUH=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_C_CountBASF=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_D_Count=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) ,
a.Cat_D_Countf=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_D_CountWUH=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_D_CountBASF=(select count(1) from #AllPunchlistFromSortTemp1 b where a.Disc=b.Disc AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Verified_Date is not null or b.Verified_Date!=''))
from #PunchlistFromSortTemp1 a;");
strSql.AppendLine("select * from #PunchlistFromSortTemp1 "); strSql.AppendLine("select * from #PunchlistFromSortTemp1 ");
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
strSql.AppendLine(" order by Disc "); strSql.AppendLine(" order by Disc ");
@@ -290,12 +390,39 @@ namespace FineUIPro.Web.Transfer.Chart
int cat_B_Count = 0; int cat_B_Count = 0;
int cat_C_Count = 0; int cat_C_Count = 0;
int cat_D_Count = 0; int cat_D_Count = 0;
int Cat_A_Countf = 0, Cat_A_CountWUH = 0, Cat_A_CountBASF = 0,
Cat_B_Countf = 0, Cat_B_CountWUH = 0, Cat_B_CountBASF = 0,
Cat_C_Countf = 0, Cat_C_CountWUH = 0, Cat_C_CountBASF = 0,
Cat_D_Countf = 0, Cat_D_CountWUH = 0, Cat_D_CountBASF = 0,
allCount = 0, allfinshedCount = 0, allWUH = 0, allBASF = 0;
foreach (DataRow row in tb.Rows) foreach (DataRow row in tb.Rows)
{ {
cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]); cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]);
cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]); cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]);
cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]); cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]);
cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]); cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]);
//
Cat_A_Countf+= Convert.ToInt32(row["Cat_A_Countf"]);
Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]);
Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]);
Cat_B_Countf += Convert.ToInt32(row["Cat_B_Countf"]);
Cat_B_CountWUH += Convert.ToInt32(row["Cat_B_CountWUH"]);
Cat_B_CountBASF += Convert.ToInt32(row["Cat_B_CountBASF"]);
Cat_C_Countf += Convert.ToInt32(row["Cat_C_Countf"]);
Cat_C_CountWUH += Convert.ToInt32(row["Cat_C_CountWUH"]);
Cat_C_CountBASF += Convert.ToInt32(row["Cat_C_CountBASF"]);
Cat_D_Countf += Convert.ToInt32(row["Cat_D_Countf"]);
Cat_D_CountWUH += Convert.ToInt32(row["Cat_D_CountWUH"]);
Cat_D_CountBASF += Convert.ToInt32(row["Cat_D_CountBASF"]);
allCount += Convert.ToInt32(row["allCount"]);
allfinshedCount += Convert.ToInt32(row["allfinshedCount"]);
allWUH += Convert.ToInt32(row["allWUH"]);
allBASF += Convert.ToInt32(row["allBASF"]);
} }
@@ -306,6 +433,27 @@ namespace FineUIPro.Web.Transfer.Chart
summary.Add("Cat_C_Count", cat_C_Count.ToString()); summary.Add("Cat_C_Count", cat_C_Count.ToString());
summary.Add("Cat_D_Count", cat_D_Count.ToString()); summary.Add("Cat_D_Count", cat_D_Count.ToString());
summary.Add("Cat_A_Countf", Cat_A_Countf.ToString());
summary.Add("Cat_A_CountWUH", Cat_A_CountWUH.ToString());
summary.Add("Cat_A_CountBASF", Cat_A_CountBASF.ToString());
summary.Add("Cat_B_Countf", Cat_B_Countf.ToString());
summary.Add("Cat_B_CountWUH", Cat_B_CountWUH.ToString());
summary.Add("Cat_B_CountBASF", Cat_B_CountBASF.ToString());
summary.Add("Cat_C_Countf", Cat_C_Countf.ToString());
summary.Add("Cat_C_CountWUH", Cat_C_CountWUH.ToString());
summary.Add("Cat_C_CountBASF", Cat_C_CountBASF.ToString());
summary.Add("Cat_D_Countf", Cat_D_Countf.ToString());
summary.Add("Cat_D_CountWUH", Cat_D_CountWUH.ToString());
summary.Add("Cat_D_CountBASF", Cat_D_CountBASF.ToString());
summary.Add("allCount", allCount.ToString());
summary.Add("allfinshedCount", allfinshedCount.ToString());
summary.Add("allWUH", allWUH.ToString());
summary.Add("allBASF", allBASF.ToString());
Grid1.SummaryData = summary; Grid1.SummaryData = summary;
} }
@@ -327,13 +475,50 @@ namespace FineUIPro.Web.Transfer.Chart
strSql.AppendLine(" AND System_No=@System_No "); strSql.AppendLine(" AND System_No=@System_No ");
listStr.Add(new SqlParameter("@System_No", _systemNo)); listStr.Add(new SqlParameter("@System_No", _systemNo));
} }
strSql.AppendLine(" select Action_By,cast(0 as decimal(18,2)) Cat_All_Count,cast(0 as decimal(18,2)) Cat_A_Count,cast(0 as decimal(18,2)) Cat_B_Count,cast(0 as decimal(18,2)) Cat_C_Count,cast(0 as decimal(18,2)) Cat_D_Count INTO #PunchlistFromSortTemp2 from #AllPunchlistFromSortTemp2 Group by Action_By; "); strSql.AppendLine(@" select Action_By,
strSql.AppendLine(" update a set a.Cat_A_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')) "); cast(0 as decimal(18, 2)) Cat_A_Count,
strSql.AppendLine(",a.Cat_B_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) "); cast(0 as decimal(18, 2)) Cat_A_Countf, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF,
strSql.AppendLine(",a.Cat_C_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) "); cast(0 as decimal(18, 2)) Cat_B_Count,
strSql.AppendLine(",a.Cat_D_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) "); cast(0 as decimal(18, 2)) Cat_B_Countf, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF,
strSql.AppendLine("from #PunchlistFromSortTemp2 a;"); cast(0 as decimal(18, 2)) Cat_C_Count,
strSql.AppendLine(" update #PunchlistFromSortTemp2 set Cat_All_Count=Cat_A_Count+Cat_B_Count+Cat_C_Count+Cat_D_Count; "); cast(0 as decimal(18, 2)) Cat_C_Countf, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF,
cast(0 as decimal(18, 2)) Cat_D_Count,
cast(0 as decimal(18, 2)) Cat_D_Countf, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF,
cast(0 as decimal(18, 2)) allCount, cast(0 as decimal(18, 2)) allfinshedCount, cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF
INTO #PunchlistFromSortTemp2
from #AllPunchlistFromSortTemp2 Group by Action_By; ");
strSql.AppendLine(@" update a set
allCount=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By),
allfinshedCount=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By and (b.Required_Date is not null or b.Required_Date!='')),
allWUH=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
allBASF=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By and (b.Verified_Date is not null or b.Verified_Date!='')),
a.Cat_A_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')),
a.Cat_A_Countf=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_A_CountWUH=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_A_CountBASF=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_B_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) ,
a.Cat_B_Countf=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_B_CountWUH=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_B_CountBASF=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_C_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) ,
a.Cat_C_Countf=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_C_CountWUH=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_C_CountBASF=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_D_Count=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) ,
a.Cat_D_Countf=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_D_CountWUH=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_D_CountBASF=(select count(1) from #AllPunchlistFromSortTemp2 b where a.Action_By=b.Action_By AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Verified_Date is not null or b.Verified_Date!=''))
from #PunchlistFromSortTemp2 a;");
strSql.AppendLine("select * from #PunchlistFromSortTemp2 "); strSql.AppendLine("select * from #PunchlistFromSortTemp2 ");
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
strSql.AppendLine(" order by Action_By "); strSql.AppendLine(" order by Action_By ");
@@ -349,36 +534,90 @@ namespace FineUIPro.Web.Transfer.Chart
int cat_B_Count = 0; int cat_B_Count = 0;
int cat_C_Count = 0; int cat_C_Count = 0;
int cat_D_Count = 0; int cat_D_Count = 0;
int cat_All_Count = 0;
int Cat_A_Countf = 0, Cat_A_CountWUH = 0, Cat_A_CountBASF = 0,
Cat_B_Countf = 0, Cat_B_CountWUH = 0, Cat_B_CountBASF = 0,
Cat_C_Countf = 0, Cat_C_CountWUH = 0, Cat_C_CountBASF = 0,
Cat_D_Countf = 0, Cat_D_CountWUH = 0, Cat_D_CountBASF = 0,
allCount = 0, allfinshedCount = 0, allWUH = 0, allBASF = 0;
foreach (DataRow row in tb.Rows) foreach (DataRow row in tb.Rows)
{ {
cat_All_Count += Convert.ToInt32(row["Cat_All_Count"]);
cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]); cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]);
cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]); cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]);
cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]); cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]);
cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]); cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]);
//
Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]);
Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]);
Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]);
Cat_B_Countf += Convert.ToInt32(row["Cat_B_Countf"]);
Cat_B_CountWUH += Convert.ToInt32(row["Cat_B_CountWUH"]);
Cat_B_CountBASF += Convert.ToInt32(row["Cat_B_CountBASF"]);
Cat_C_Countf += Convert.ToInt32(row["Cat_C_Countf"]);
Cat_C_CountWUH += Convert.ToInt32(row["Cat_C_CountWUH"]);
Cat_C_CountBASF += Convert.ToInt32(row["Cat_C_CountBASF"]);
Cat_D_Countf += Convert.ToInt32(row["Cat_D_Countf"]);
Cat_D_CountWUH += Convert.ToInt32(row["Cat_D_CountWUH"]);
Cat_D_CountBASF += Convert.ToInt32(row["Cat_D_CountBASF"]);
allCount += Convert.ToInt32(row["allCount"]);
allfinshedCount += Convert.ToInt32(row["allfinshedCount"]);
allWUH += Convert.ToInt32(row["allWUH"]);
allBASF += Convert.ToInt32(row["allBASF"]);
} }
JObject summary = new JObject(); JObject summary = new JObject();
summary.Add("Action_By", "合计"); summary.Add("Action_By", "合计");
summary.Add("Cat_All_Count", cat_All_Count.ToString());
summary.Add("Cat_A_Count", cat_A_Count.ToString()); summary.Add("Cat_A_Count", cat_A_Count.ToString());
summary.Add("Cat_B_Count", cat_B_Count.ToString()); summary.Add("Cat_B_Count", cat_B_Count.ToString());
summary.Add("Cat_C_Count", cat_C_Count.ToString()); summary.Add("Cat_C_Count", cat_C_Count.ToString());
summary.Add("Cat_D_Count", cat_D_Count.ToString()); summary.Add("Cat_D_Count", cat_D_Count.ToString());
summary.Add("Cat_A_Countf", Cat_A_Countf.ToString());
summary.Add("Cat_A_CountWUH", Cat_A_CountWUH.ToString());
summary.Add("Cat_A_CountBASF", Cat_A_CountBASF.ToString());
summary.Add("Cat_B_Countf", Cat_B_Countf.ToString());
summary.Add("Cat_B_CountWUH", Cat_B_CountWUH.ToString());
summary.Add("Cat_B_CountBASF", Cat_B_CountBASF.ToString());
summary.Add("Cat_C_Countf", Cat_C_Countf.ToString());
summary.Add("Cat_C_CountWUH", Cat_C_CountWUH.ToString());
summary.Add("Cat_C_CountBASF", Cat_C_CountBASF.ToString());
summary.Add("Cat_D_Countf", Cat_D_Countf.ToString());
summary.Add("Cat_D_CountWUH", Cat_D_CountWUH.ToString());
summary.Add("Cat_D_CountBASF", Cat_D_CountBASF.ToString());
summary.Add("allCount", allCount.ToString());
summary.Add("allfinshedCount", allfinshedCount.ToString());
summary.Add("allWUH", allWUH.ToString());
summary.Add("allBASF", allBASF.ToString());
Grid2.SummaryData = summary; Grid2.SummaryData = summary;
} }
protected void TabStrip1_TabIndexChanged(object sender, EventArgs e) protected void TabStrip1_TabIndexChanged(object sender, EventArgs e)
{ {
if (TabStrip1.ActiveTabIndex == 2) if (TabStrip1.ActiveTabIndex ==0)
{
ddlSystemNo.Hidden = true;
ddlDateType.Hidden = true;
drpChartType.Hidden = true;
BtnAnalyse.Hidden = true;
}
else if (TabStrip1.ActiveTabIndex == 2)
{ {
ddlSystemNo.Hidden = false; ddlSystemNo.Hidden = false;
ddlDateType.Hidden = true; ddlDateType.Hidden = true;
drpChartType.Hidden = true; drpChartType.Hidden = true;
BtnAnalyse.Hidden = false;
BindGrid1(); BindGrid1();
} }
else if (TabStrip1.ActiveTabIndex == 3) else if (TabStrip1.ActiveTabIndex == 3)
@@ -386,6 +625,7 @@ namespace FineUIPro.Web.Transfer.Chart
ddlSystemNo.Hidden = false; ddlSystemNo.Hidden = false;
ddlDateType.Hidden = true; ddlDateType.Hidden = true;
drpChartType.Hidden = true; drpChartType.Hidden = true;
BtnAnalyse.Hidden = false;
BindGrid2(); BindGrid2();
} }
else if (TabStrip1.ActiveTabIndex == 4) else if (TabStrip1.ActiveTabIndex == 4)
@@ -393,6 +633,7 @@ namespace FineUIPro.Web.Transfer.Chart
ddlDateType.Hidden = true; ddlDateType.Hidden = true;
drpChartType.Hidden = true; drpChartType.Hidden = true;
ddlSystemNo.Hidden = true; ddlSystemNo.Hidden = true;
BtnAnalyse.Hidden = false;
BindGrid3(); BindGrid3();
} }
else { else {
@@ -400,6 +641,7 @@ namespace FineUIPro.Web.Transfer.Chart
ddlSystemNo.Hidden = false; ddlSystemNo.Hidden = false;
ddlDateType.Hidden = false; ddlDateType.Hidden = false;
drpChartType.Hidden = false; drpChartType.Hidden = false;
BtnAnalyse.Hidden = false;
} }
} }
#endregion #endregion
@@ -413,16 +655,62 @@ namespace FineUIPro.Web.Transfer.Chart
StringBuilder strSql = new StringBuilder(""); StringBuilder strSql = new StringBuilder("");
strSql.AppendLine("IF OBJECT_ID('tempdb..#AllPunchlistFromProgressTemp') IS NOT NULL drop table #AllPunchlistFromProgressTemp; "); strSql.AppendLine("IF OBJECT_ID('tempdb..#AllPunchlistFromProgressTemp') IS NOT NULL drop table #AllPunchlistFromProgressTemp; ");
strSql.AppendLine("IF OBJECT_ID('tempdb..#PunchlistFromProgressTemp') IS NOT NULL drop table #PunchlistFromProgressTemp; "); strSql.AppendLine("IF OBJECT_ID('tempdb..#PunchlistFromProgressTemp') IS NOT NULL drop table #PunchlistFromProgressTemp; ");
strSql.AppendLine(" select System_No,Actual_Date,Cleared_By,Confirmed_By,Verified_By,ProjectId ");
strSql.AppendLine(" INTO #AllPunchlistFromProgressTemp from Transfer_PunchlistFrom where ProjectId = @ProjectId "); strSql.AppendLine(" select * INTO #AllPunchlistFromProgressTemp from Transfer_PunchlistFrom(NOLOCK) where ProjectId=@ProjectId ");
strSql.AppendLine(" select System_No,count(System_No) SystemNoCount,cast(0 as decimal(18,2)) ActualDateCount "); //strSql.AppendLine(" select System_No,count(System_No) SystemNoCount,cast(0 as decimal(18,2)) ActualDateCount ");
strSql.AppendLine(" ,cast(0 as decimal(18,2)) ClearedByCount,cast(0 as decimal(18,2)) ConfirmedByCount,cast(0 as decimal(18,2)) VerifiedByCount "); //strSql.AppendLine(" ,cast(0 as decimal(18,2)) ClearedByCount,cast(0 as decimal(18,2)) ConfirmedByCount,cast(0 as decimal(18,2)) VerifiedByCount ");
strSql.AppendLine(" INTO #PunchlistFromProgressTemp from #AllPunchlistFromProgressTemp where ProjectId = @ProjectId group by System_No "); //strSql.AppendLine(" INTO #PunchlistFromProgressTemp from #AllPunchlistFromProgressTemp where ProjectId = @ProjectId group by System_No ");
strSql.AppendLine(" update a set a.ActualDateCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Actual_Date,'')<>'') "); //strSql.AppendLine(" update a set a.ActualDateCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Actual_Date,'')<>'') ");
strSql.AppendLine(" ,a.ClearedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Cleared_By,'')<>'') "); //strSql.AppendLine(" ,a.ClearedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Cleared_By,'')<>'') ");
strSql.AppendLine(" ,a.ConfirmedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Confirmed_By,'')<>'') "); //strSql.AppendLine(" ,a.ConfirmedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Confirmed_By,'')<>'') ");
strSql.AppendLine(" ,a.VerifiedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Verified_By,'')<>'') "); //strSql.AppendLine(" ,a.VerifiedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Verified_By,'')<>'') ");
strSql.AppendLine(" from #PunchlistFromProgressTemp a ");
strSql.AppendLine(@" select System_No,
cast(0 as decimal(18, 2)) Cat_A_Count,
cast(0 as decimal(18, 2)) Cat_A_Countf, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF,
cast(0 as decimal(18, 2)) Cat_B_Count,
cast(0 as decimal(18, 2)) Cat_B_Countf, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF,
cast(0 as decimal(18, 2)) Cat_C_Count,
cast(0 as decimal(18, 2)) Cat_C_Countf, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF,
cast(0 as decimal(18, 2)) Cat_D_Count,
cast(0 as decimal(18, 2)) Cat_D_Countf, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF,
cast(0 as decimal(18, 2)) allCount, cast(0 as decimal(18, 2)) allfinshedCount, cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF
INTO #PunchlistFromProgressTemp
from #AllPunchlistFromProgressTemp Group by System_No; ");
strSql.AppendLine(@" update a set
allCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No),
allfinshedCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Required_Date is not null or b.Required_Date!='')),
allWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
allBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Verified_Date is not null or b.Verified_Date!='')),
a.Cat_A_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')),
a.Cat_A_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_A_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_A_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_B_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) ,
a.Cat_B_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_B_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_B_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_C_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) ,
a.Cat_C_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_C_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_C_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Verified_Date is not null or b.Verified_Date!=''))
,a.Cat_D_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) ,
a.Cat_D_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Required_Date is not null or b.Required_Date!='')),
a.Cat_D_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')),
a.Cat_D_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Verified_Date is not null or b.Verified_Date!=''))
from #PunchlistFromProgressTemp a;");
strSql.AppendLine(" select * from #PunchlistFromProgressTemp "); strSql.AppendLine(" select * from #PunchlistFromProgressTemp ");
List<SqlParameter> listStr = new List<SqlParameter>(); List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -434,6 +722,78 @@ namespace FineUIPro.Web.Transfer.Chart
var table = this.GetPagedDataTable(Grid1, tb); var table = this.GetPagedDataTable(Grid1, tb);
Grid3.DataSource = table; Grid3.DataSource = table;
Grid3.DataBind(); Grid3.DataBind();
//合计
int cat_A_Count = 0;
int cat_B_Count = 0;
int cat_C_Count = 0;
int cat_D_Count = 0;
int Cat_A_Countf = 0, Cat_A_CountWUH = 0, Cat_A_CountBASF = 0,
Cat_B_Countf = 0, Cat_B_CountWUH = 0, Cat_B_CountBASF = 0,
Cat_C_Countf = 0, Cat_C_CountWUH = 0, Cat_C_CountBASF = 0,
Cat_D_Countf = 0, Cat_D_CountWUH = 0, Cat_D_CountBASF = 0,
allCount = 0, allfinshedCount = 0, allWUH = 0, allBASF = 0;
foreach (DataRow row in tb.Rows)
{
cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]);
cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]);
cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]);
cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]);
//
Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]);
Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]);
Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]);
Cat_B_Countf += Convert.ToInt32(row["Cat_B_Countf"]);
Cat_B_CountWUH += Convert.ToInt32(row["Cat_B_CountWUH"]);
Cat_B_CountBASF += Convert.ToInt32(row["Cat_B_CountBASF"]);
Cat_C_Countf += Convert.ToInt32(row["Cat_C_Countf"]);
Cat_C_CountWUH += Convert.ToInt32(row["Cat_C_CountWUH"]);
Cat_C_CountBASF += Convert.ToInt32(row["Cat_C_CountBASF"]);
Cat_D_Countf += Convert.ToInt32(row["Cat_D_Countf"]);
Cat_D_CountWUH += Convert.ToInt32(row["Cat_D_CountWUH"]);
Cat_D_CountBASF += Convert.ToInt32(row["Cat_D_CountBASF"]);
allCount += Convert.ToInt32(row["allCount"]);
allfinshedCount += Convert.ToInt32(row["allfinshedCount"]);
allWUH += Convert.ToInt32(row["allWUH"]);
allBASF += Convert.ToInt32(row["allBASF"]);
}
JObject summary = new JObject();
summary.Add("System_No", "合计");
summary.Add("Cat_A_Count", cat_A_Count.ToString());
summary.Add("Cat_B_Count", cat_B_Count.ToString());
summary.Add("Cat_C_Count", cat_C_Count.ToString());
summary.Add("Cat_D_Count", cat_D_Count.ToString());
summary.Add("Cat_A_Countf", Cat_A_Countf.ToString());
summary.Add("Cat_A_CountWUH", Cat_A_CountWUH.ToString());
summary.Add("Cat_A_CountBASF", Cat_A_CountBASF.ToString());
summary.Add("Cat_B_Countf", Cat_B_Countf.ToString());
summary.Add("Cat_B_CountWUH", Cat_B_CountWUH.ToString());
summary.Add("Cat_B_CountBASF", Cat_B_CountBASF.ToString());
summary.Add("Cat_C_Countf", Cat_C_Countf.ToString());
summary.Add("Cat_C_CountWUH", Cat_C_CountWUH.ToString());
summary.Add("Cat_C_CountBASF", Cat_C_CountBASF.ToString());
summary.Add("Cat_D_Countf", Cat_D_Countf.ToString());
summary.Add("Cat_D_CountWUH", Cat_D_CountWUH.ToString());
summary.Add("Cat_D_CountBASF", Cat_D_CountBASF.ToString());
summary.Add("allCount", allCount.ToString());
summary.Add("allfinshedCount", allfinshedCount.ToString());
summary.Add("allWUH", allWUH.ToString());
summary.Add("allBASF", allBASF.ToString());
Grid3.SummaryData = summary;
} }
/// <summary> /// <summary>
@@ -122,15 +122,6 @@ namespace FineUIPro.Web.Transfer.Chart
/// </remarks> /// </remarks>
protected global::FineUIPro.ContentPanel cpAccidentTime; protected global::FineUIPro.ContentPanel cpAccidentTime;
/// <summary>
/// ChartAccidentTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::Web.Controls.ChartControl ChartAccidentTime;
/// <summary> /// <summary>
/// Tab2 控件。 /// Tab2 控件。
/// </summary> /// </summary>
@@ -75,21 +75,21 @@
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center"> <f:GroupField HeaderText="Test Package Schedule" TextAlign="Center">
<Columns> <Columns>
<f:RenderField ColumnID="Foundation" DataField="Foundation" FieldType="String" HeaderText="Foundation" TextAlign="Center" <f:RenderField ColumnID="Foundation" DataField="Foundation" FieldType="String" HeaderText="Construction" TextAlign="Center"
HeaderTextAlign="Center" minWidth="120px"> HeaderTextAlign="Center" minWidth="120px">
</f:RenderField> </f:RenderField>
<f:RenderField ColumnID="Mainstructure" DataField="Mainstructure" FieldType="String" HeaderText="Main structure<br/> acceptance" TextAlign="Center" <f:RenderField ColumnID="Mainstructure" DataField="Mainstructure" FieldType="String" HeaderText="CQVD" TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px"> HeaderTextAlign="Center" minWidth="140px">
</f:RenderField> </f:RenderField>
<f:RenderField ColumnID="Equipment" DataField="Equipment" FieldType="String" HeaderText="Roof sub-project" TextAlign="Center" <%-- <f:RenderField ColumnID="Equipment" DataField="Equipment" FieldType="String" HeaderText="Roof sub-project" TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px"> HeaderTextAlign="Center" minWidth="140px">
</f:RenderField> </f:RenderField>
<f:RenderField ColumnID="Buildingdecoration" DataField="Buildingdecoration" FieldType="String" HeaderText="Building<br/> decoration" TextAlign="Center" <f:RenderField ColumnID="Buildingdecoration" DataField="Buildingdecoration" FieldType="String" HeaderText="Building<br/> decoration" TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px"> HeaderTextAlign="Center" minWidth="140px">
</f:RenderField> </f:RenderField>--%>
<%-- <f:RenderField ColumnID="Equipment" DataField="Equipment" FieldType="String" HeaderText="Equipment" TextAlign="Center" <%-- <f:RenderField ColumnID="Equipment" DataField="Equipment" FieldType="String" HeaderText="Equipment" TextAlign="Center"
HeaderTextAlign="Center" minWidth="120px"> HeaderTextAlign="Center" minWidth="120px">
@@ -107,9 +107,9 @@
HeaderTextAlign="Center" minWidth="120px"> HeaderTextAlign="Center" minWidth="120px">
</f:RenderField>--%> </f:RenderField>--%>
<f:RenderField ColumnID="HVAC" DataField="HVAC" FieldType="String" HeaderText="HVAC" TextAlign="Center" <%-- <f:RenderField ColumnID="HVAC" DataField="HVAC" FieldType="String" HeaderText="HVAC" TextAlign="Center"
HeaderTextAlign="Center" minWidth="100px"> HeaderTextAlign="Center" minWidth="100px">
</f:RenderField> </f:RenderField>--%>
</Columns> </Columns>
</f:GroupField> </f:GroupField>
@@ -130,7 +130,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 10); AddDatasetToSQL(ds.Tables[0], 7);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@@ -280,7 +280,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 10); AddDatasetToSQL2(ds.Tables[0], 7);
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -330,18 +330,18 @@ namespace FineUIPro.Web.Transfer
var obj1 = model.Foundation = pds.Rows[i][5].ToString().Trim(); var obj1 = model.Foundation = pds.Rows[i][5].ToString().Trim();
var obj2 = model.Mainstructure = pds.Rows[i][6].ToString().Trim(); var obj2 = model.Mainstructure = pds.Rows[i][6].ToString().Trim();
var obj3 = model.Equipment = pds.Rows[i][7].ToString().Trim(); //var obj3 = model.Equipment = pds.Rows[i][7].ToString().Trim();
var obj4 = model.Buildingdecoration = pds.Rows[i][8].ToString().Trim(); //var obj4 = model.Buildingdecoration = pds.Rows[i][8].ToString().Trim();
var obj5 = model.HVAC = pds.Rows[i][9].ToString().Trim(); //var obj5 = model.HVAC = pds.Rows[i][9].ToString().Trim();
#region #region
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(obj1); listObj.Add(obj1);
listObj.Add(obj2); listObj.Add(obj2);
listObj.Add(obj3); //listObj.Add(obj3);
listObj.Add(obj4); //listObj.Add(obj4);
listObj.Add(obj5); //listObj.Add(obj5);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 2)
{ {
model.FINAL_Status = "Completed"; model.FINAL_Status = "Completed";
list.Add(model); list.Add(model);
@@ -350,7 +350,7 @@ namespace FineUIPro.Web.Transfer
//如果全是Not Start 就是 Not Start //如果全是Not Start 就是 Not Start
if (listObj.Where(x => x == "Not Start").ToList().Count == 5) if (listObj.Where(x => x == "Not Start").ToList().Count == 2)
{ {
model.FINAL_Status = "Not Start"; model.FINAL_Status = "Not Start";
list.Add(model); list.Add(model);
@@ -50,21 +50,21 @@
<Items> <Items>
<f:GroupPanel Layout="Anchor" Title="Test Package Schedule" runat="server"> <f:GroupPanel Layout="Anchor" Title="Test Package Schedule" runat="server">
<Items> <Items>
<f:DropDownList ID="ddlFoundation" runat="server" Label="Foundation" LabelWidth="180px"> <f:DropDownList ID="ddlFoundation" runat="server" Label="Construction" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="ddlMainstructure" runat="server" Label="Main structure acceptance" LabelWidth="180px"> <f:DropDownList ID="ddlMainstructure" runat="server" Label="CQVD" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="ddlEquipment" runat="server" Label="Roof sub-project" LabelWidth="180px"> <%-- <f:DropDownList ID="ddlEquipment" runat="server" Label="Roof sub-project" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
@@ -76,7 +76,7 @@
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList> </f:DropDownList>--%>
@@ -101,12 +101,12 @@
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList>--%> </f:DropDownList>--%>
<f:DropDownList ID="ddlHVAC" runat="server" Label="HVAC" LabelWidth="180px"> <%-- <f:DropDownList ID="ddlHVAC" runat="server" Label="HVAC" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList> </f:DropDownList>--%>
</Items> </Items>
</f:GroupPanel> </f:GroupPanel>
</Items> </Items>
@@ -56,13 +56,13 @@ namespace FineUIPro.Web.Transfer
txtTest_Package.Text = model.Test_Package; txtTest_Package.Text = model.Test_Package;
ddlFoundation.SelectedValue = model.Foundation; ddlFoundation.SelectedValue = model.Foundation;
ddlMainstructure.SelectedValue = model.Mainstructure; ddlMainstructure.SelectedValue = model.Mainstructure;
ddlBuildingdecoration.SelectedValue = model.Buildingdecoration; //ddlBuildingdecoration.SelectedValue = model.Buildingdecoration;
ddlEquipment.SelectedValue = model.Equipment; //ddlEquipment.SelectedValue = model.Equipment;
//ddlInstrument.SelectedValue = model.Instrument; //ddlInstrument.SelectedValue = model.Instrument;
//ddlElectrical.SelectedValue = model.Electrical; //ddlElectrical.SelectedValue = model.Electrical;
//ddlFireFighting.SelectedValue = model.FireFighting; //ddlFireFighting.SelectedValue = model.FireFighting;
ddlHVAC.SelectedValue = model.HVAC; //ddlHVAC.SelectedValue = model.HVAC;
txtDescriptions.Text = model.Descriptions; txtDescriptions.Text = model.Descriptions;
} }
} }
@@ -80,13 +80,13 @@ namespace FineUIPro.Web.Transfer
Test_Package = txtTest_Package.Text, Test_Package = txtTest_Package.Text,
Foundation = ddlFoundation.SelectedValue, Foundation = ddlFoundation.SelectedValue,
Mainstructure = ddlMainstructure.SelectedValue, Mainstructure = ddlMainstructure.SelectedValue,
Buildingdecoration = ddlBuildingdecoration.SelectedValue, //Buildingdecoration = ddlBuildingdecoration.SelectedValue,
Equipment = ddlEquipment.SelectedValue, //Equipment = ddlEquipment.SelectedValue,
//Instrument = ddlInstrument.SelectedValue, //Instrument = ddlInstrument.SelectedValue,
//Electrical = ddlElectrical.SelectedValue, //Electrical = ddlElectrical.SelectedValue,
//FireFighting = ddlFireFighting.SelectedValue, //FireFighting = ddlFireFighting.SelectedValue,
HVAC = ddlHVAC.SelectedValue, //HVAC = ddlHVAC.SelectedValue,
Descriptions= txtDescriptions.Text Descriptions= txtDescriptions.Text
}; };
@@ -95,19 +95,19 @@ namespace FineUIPro.Web.Transfer
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(model.Foundation); listObj.Add(model.Foundation);
listObj.Add(model.Mainstructure); listObj.Add(model.Mainstructure);
listObj.Add(model.Buildingdecoration); //listObj.Add(model.Buildingdecoration);
listObj.Add(model.Equipment); //listObj.Add(model.Equipment);
//listObj.Add(model.Instrument); //listObj.Add(model.Instrument);
//listObj.Add(model.Electrical); //listObj.Add(model.Electrical);
//listObj.Add(model.FireFighting); //listObj.Add(model.FireFighting);
listObj.Add(model.HVAC); //listObj.Add(model.HVAC);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 2)
{ {
model.FINAL_Status = "Completed"; model.FINAL_Status = "Completed";
} //如果全是Not Start 就是 Not Start } //如果全是Not Start 就是 Not Start
else if (listObj.Where(x => x == "Not Start").ToList().Count == 5) else if (listObj.Where(x => x == "Not Start").ToList().Count == 2)
{ {
model.FINAL_Status = "Not Start"; model.FINAL_Status = "Not Start";
} }
@@ -130,13 +130,13 @@ namespace FineUIPro.Web.Transfer
newModel.Test_Package = txtTest_Package.Text; newModel.Test_Package = txtTest_Package.Text;
newModel.Foundation = ddlFoundation.SelectedValue; newModel.Foundation = ddlFoundation.SelectedValue;
newModel.Mainstructure = ddlMainstructure.SelectedValue; newModel.Mainstructure = ddlMainstructure.SelectedValue;
newModel.Buildingdecoration = ddlBuildingdecoration.SelectedValue; //newModel.Buildingdecoration = ddlBuildingdecoration.SelectedValue;
newModel.Equipment = ddlEquipment.SelectedValue; //newModel.Equipment = ddlEquipment.SelectedValue;
//newModel.Instrument = ddlInstrument.SelectedValue; //newModel.Instrument = ddlInstrument.SelectedValue;
//newModel.Electrical = ddlElectrical.SelectedValue; //newModel.Electrical = ddlElectrical.SelectedValue;
//newModel.FireFighting = ddlFireFighting.SelectedValue; //newModel.FireFighting = ddlFireFighting.SelectedValue;
newModel.HVAC = ddlHVAC.SelectedValue; //newModel.HVAC = ddlHVAC.SelectedValue;
newModel.FINAL_Status = model.FINAL_Status; newModel.FINAL_Status = model.FINAL_Status;
newModel.Descriptions = txtDescriptions.Text; newModel.Descriptions = txtDescriptions.Text;
} }
@@ -104,33 +104,6 @@ namespace FineUIPro.Web.Transfer
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlMainstructure; protected global::FineUIPro.DropDownList ddlMainstructure;
/// <summary>
/// ddlEquipment 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlEquipment;
/// <summary>
/// ddlBuildingdecoration 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlBuildingdecoration;
/// <summary>
/// ddlHVAC 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlHVAC;
/// <summary> /// <summary>
/// Toolbar1 控件。 /// Toolbar1 控件。
/// </summary> /// </summary>
@@ -76,7 +76,11 @@
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center" MinWidth="400px"> <f:GroupField HeaderText="Test Package Schedule" TextAlign="Center" MinWidth="400px">
<Columns> <Columns>
<f:RenderField ColumnID="InstallationCalibration" DataField="InstallationCalibration" FieldType="String" HeaderText="Installation<br/> &Calibration " TextAlign="Center" <f:RenderField ColumnID="Calibration" DataField="Calibration" FieldType="String" HeaderText="Calibration " TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px">
</f:RenderField>
<f:RenderField ColumnID="InstallationCalibration" DataField="InstallationCalibration" FieldType="String" HeaderText="Installation" TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px"> HeaderTextAlign="Center" minWidth="140px">
</f:RenderField> </f:RenderField>
@@ -130,7 +130,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 10); AddDatasetToSQL(ds.Tables[0], 11);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@@ -280,7 +280,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 10); AddDatasetToSQL2(ds.Tables[0], 11);
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -327,11 +327,12 @@ namespace FineUIPro.Web.Transfer
model.Subsystem = pds.Rows[i][2 + 1].ToString().Trim(); model.Subsystem = pds.Rows[i][2 + 1].ToString().Trim();
model.Test_Package = pds.Rows[i][3 + 1].ToString().Trim(); model.Test_Package = pds.Rows[i][3 + 1].ToString().Trim();
var obj1 = model.InstallationCalibration = pds.Rows[i][4 + 1].ToString().Trim(); var obj0 = model.Calibration = pds.Rows[i][5].ToString().Trim();
var obj2 = model.PipingPressuretest = pds.Rows[i][5 + 1].ToString().Trim(); var obj1 = model.InstallationCalibration = pds.Rows[i][6].ToString().Trim();
var obj3 = model.PipingLeak = pds.Rows[i][6 + 1].ToString().Trim(); var obj2 = model.PipingPressuretest = pds.Rows[i][7].ToString().Trim();
var obj4 = model.PipingBlowing = pds.Rows[i][7 + 1].ToString().Trim(); var obj3 = model.PipingLeak = pds.Rows[i][8].ToString().Trim();
var obj5 = model.Looptest = pds.Rows[i][8 + 1].ToString().Trim(); var obj4 = model.PipingBlowing = pds.Rows[i][9].ToString().Trim();
var obj5 = model.Looptest = pds.Rows[i][10].ToString().Trim();
#region #region
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(obj1); listObj.Add(obj1);
@@ -339,8 +340,9 @@ namespace FineUIPro.Web.Transfer
listObj.Add(obj3); listObj.Add(obj3);
listObj.Add(obj4); listObj.Add(obj4);
listObj.Add(obj5); listObj.Add(obj5);
listObj.Add(obj0);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 6)
{ {
model.FINAL_Status = "Completed"; model.FINAL_Status = "Completed";
list.Add(model); list.Add(model);
@@ -349,7 +351,7 @@ namespace FineUIPro.Web.Transfer
//如果全是Not Start 就是 Not Start //如果全是Not Start 就是 Not Start
if (listObj.Where(x => x == "Not Start").ToList().Count == 5) if (listObj.Where(x => x == "Not Start").ToList().Count == 6)
{ {
model.FINAL_Status = "Not Start"; model.FINAL_Status = "Not Start";
list.Add(model); list.Add(model);
@@ -50,7 +50,14 @@
<Items> <Items>
<f:GroupPanel Layout="Anchor" Title="Test Package Schedule" runat="server"> <f:GroupPanel Layout="Anchor" Title="Test Package Schedule" runat="server">
<Items> <Items>
<f:DropDownList ID="ddlInstallationCalibration" runat="server" Label="Installation&Calibration" LabelWidth="180px"> <f:DropDownList ID="ddlCalibration" runat="server" Label="Calibration" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList>
<f:DropDownList ID="ddlInstallationCalibration" runat="server" Label="Installation" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem> <f:ListItem Value="In progress" Text="In progress"></f:ListItem>
@@ -60,6 +60,7 @@ namespace FineUIPro.Web.Transfer
ddlPipingLeak.SelectedValue = model.PipingLeak; ddlPipingLeak.SelectedValue = model.PipingLeak;
ddlPipingBlowing.SelectedValue = model.PipingBlowing; ddlPipingBlowing.SelectedValue = model.PipingBlowing;
ddlLooptest.SelectedValue = model.Looptest; ddlLooptest.SelectedValue = model.Looptest;
ddlCalibration.SelectedValue = model.Calibration;
txtDescriptions.Text = model.Descriptions; txtDescriptions.Text = model.Descriptions;
} }
} }
@@ -80,6 +81,7 @@ namespace FineUIPro.Web.Transfer
PipingLeak = ddlPipingLeak.SelectedValue, PipingLeak = ddlPipingLeak.SelectedValue,
PipingBlowing = ddlPipingBlowing.SelectedValue, PipingBlowing = ddlPipingBlowing.SelectedValue,
Looptest = ddlLooptest.SelectedValue, Looptest = ddlLooptest.SelectedValue,
Calibration= ddlCalibration.SelectedValue,
Descriptions = txtDescriptions.Text Descriptions = txtDescriptions.Text
}; };
@@ -91,13 +93,14 @@ namespace FineUIPro.Web.Transfer
listObj.Add(model.PipingLeak); listObj.Add(model.PipingLeak);
listObj.Add(model.PipingBlowing); listObj.Add(model.PipingBlowing);
listObj.Add(model.Looptest); listObj.Add(model.Looptest);
listObj.Add(model.Calibration);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 6)
{ {
model.FINAL_Status = "Completed"; model.FINAL_Status = "Completed";
} //如果全是Not Start 就是 Not Start } //如果全是Not Start 就是 Not Start
else if (listObj.Where(x => x == "Not Start").ToList().Count == 5) else if (listObj.Where(x => x == "Not Start").ToList().Count == 6)
{ {
model.FINAL_Status = "Not Start"; model.FINAL_Status = "Not Start";
} }
@@ -123,6 +126,7 @@ namespace FineUIPro.Web.Transfer
newModel.PipingLeak = ddlPipingLeak.SelectedValue; newModel.PipingLeak = ddlPipingLeak.SelectedValue;
newModel.PipingBlowing = ddlPipingBlowing.SelectedValue; newModel.PipingBlowing = ddlPipingBlowing.SelectedValue;
newModel.Looptest = ddlLooptest.SelectedValue; newModel.Looptest = ddlLooptest.SelectedValue;
newModel.Calibration = ddlCalibration.SelectedValue;
newModel.FINAL_Status = model.FINAL_Status; newModel.FINAL_Status = model.FINAL_Status;
newModel.Descriptions = txtDescriptions.Text; newModel.Descriptions = txtDescriptions.Text;
} }
@@ -86,6 +86,15 @@ namespace FineUIPro.Web.Transfer
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtDescriptions; protected global::FineUIPro.TextBox txtDescriptions;
/// <summary>
/// ddlCalibration 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlCalibration;
/// <summary> /// <summary>
/// ddlInstallationCalibration 控件。 /// ddlInstallationCalibration 控件。
/// </summary> /// </summary>
+6 -2
View File
@@ -72,7 +72,7 @@
</Columns> </Columns>
</f:GroupField> </f:GroupField>
<f:GroupField ID="g3" HeaderText="Ready for Test " HeaderTextAlign="Center"> <%--<f:GroupField ID="g3" HeaderText="Ready for Test " HeaderTextAlign="Center">
<Columns> <Columns>
<f:RenderField ColumnID="PWD" DataField="PWD" FieldType="String" HeaderText="PWD" TextAlign="Center" <f:RenderField ColumnID="PWD" DataField="PWD" FieldType="String" HeaderText="PWD" TextAlign="Center"
HeaderTextAlign="Center" Width="120px"> HeaderTextAlign="Center" Width="120px">
@@ -94,10 +94,14 @@
HeaderTextAlign="Center" Width="120px"> HeaderTextAlign="Center" Width="120px">
</f:RenderField> </f:RenderField>
</Columns> </Columns>
</f:GroupField> </f:GroupField>--%>
<f:GroupField ID="g4" HeaderText="Hydrostatic test schedule" HeaderTextAlign="Center"> <f:GroupField ID="g4" HeaderText="Hydrostatic test schedule" HeaderTextAlign="Center">
<Columns> <Columns>
<f:RenderField ColumnID="PWD" DataField="PWD" FieldType="String" HeaderText="Ready for Test" TextAlign="Center"
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="HydrostaticTest" DataField="HydrostaticTest" FieldType="String" HeaderText="Hydrostatic Test<br/>(Golden joint) " TextAlign="Center" <f:RenderField ColumnID="HydrostaticTest" DataField="HydrostaticTest" FieldType="String" HeaderText="Hydrostatic Test<br/>(Golden joint) " TextAlign="Center"
HeaderTextAlign="Center" Width="160px"> HeaderTextAlign="Center" Width="160px">
</f:RenderField> </f:RenderField>
-9
View File
@@ -131,15 +131,6 @@ namespace FineUIPro.Web.Transfer
/// </remarks> /// </remarks>
protected global::FineUIPro.GroupField g2; protected global::FineUIPro.GroupField g2;
/// <summary>
/// g3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupField g3;
/// <summary> /// <summary>
/// g4 控件。 /// g4 控件。
/// </summary> /// </summary>
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 14); AddDatasetToSQL(ds.Tables[0], 10);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@@ -276,7 +276,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 14); AddDatasetToSQL2(ds.Tables[0], 10);
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -322,30 +322,30 @@ namespace FineUIPro.Web.Transfer
model.TestPackage = pds.Rows[i][3 + 1].ToString().Trim(); model.TestPackage = pds.Rows[i][3 + 1].ToString().Trim();
var obj1 = model.PWD= pds.Rows[i][4 + 1].ToString().Trim(); var obj1 = model.PWD= pds.Rows[i][4 + 1].ToString().Trim();
var obj2 =model.Apunchclosed = pds.Rows[i][5 + 1].ToString().Trim(); //var obj2 =model.Apunchclosed = pds.Rows[i][5 + 1].ToString().Trim();
var obj3 =model.NDTReport = pds.Rows[i][6 + 1].ToString().Trim(); //var obj3 =model.NDTReport = pds.Rows[i][6 + 1].ToString().Trim();
var obj4 =model.TemperaryMeasurement = pds.Rows[i][7 + 1].ToString().Trim(); //var obj4 =model.TemperaryMeasurement = pds.Rows[i][7 + 1].ToString().Trim();
var obj5 =model.FWDfinished = pds.Rows[i][8 + 1].ToString().Trim(); //var obj5 =model.FWDfinished = pds.Rows[i][8 + 1].ToString().Trim();
var obj6 =model.HydrostaticTest = pds.Rows[i][9 + 1].ToString().Trim(); var obj6 =model.HydrostaticTest = pds.Rows[i][6].ToString().Trim();
var obj7 =model.Report = pds.Rows[i][10].ToString().Trim(); var obj7 =model.Report = pds.Rows[i][7].ToString().Trim();
var obj8 =model.Blowingflushing = pds.Rows[i][11 + 1].ToString().Trim(); var obj8 =model.Blowingflushing = pds.Rows[i][8].ToString().Trim();
var obj9 = model.Systemreinstalled = pds.Rows[i][12 + 1].ToString().Trim(); var obj9 = model.Systemreinstalled = pds.Rows[i][9].ToString().Trim();
model.BlowingReport= pds.Rows[i][13].ToString().Trim(); model.BlowingReport= pds.Rows[i][10].ToString().Trim();
#region #region
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(obj1); listObj.Add(obj1);
listObj.Add(obj2); //listObj.Add(obj2);
listObj.Add(obj3); //listObj.Add(obj3);
listObj.Add(obj4); //listObj.Add(obj4);
listObj.Add(obj5); //listObj.Add(obj10);
listObj.Add(obj6); listObj.Add(obj6);
listObj.Add(obj7); listObj.Add(obj7);
listObj.Add(obj8); listObj.Add(obj8);
listObj.Add(obj9); listObj.Add(obj9);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x=>x=="NA" || x== "Completed").ToList().Count==9) if (listObj.Where(x=>x=="NA" || x== "Completed").ToList().Count==5)
{ {
model.FINALStatus = "Completed"; model.FINALStatus = "Completed";
list.Add(model); list.Add(model);
@@ -354,7 +354,7 @@ namespace FineUIPro.Web.Transfer
//如果全是Not Start 就是 Not Start //如果全是Not Start 就是 Not Start
if (listObj.Where(x=>x== "Not Start").ToList().Count==9) if (listObj.Where(x=>x== "Not Start").ToList().Count==5)
{ {
model.FINALStatus = "Not Start"; model.FINALStatus = "Not Start";
list.Add(model); list.Add(model);
+9 -2
View File
@@ -45,7 +45,7 @@
</f:FormRow> </f:FormRow>
<f:FormRow> <%--<f:FormRow>
<Items> <Items>
<f:GroupPanel Layout="Anchor" Title="Ready for Test" runat="server"> <f:GroupPanel Layout="Anchor" Title="Ready for Test" runat="server">
<Items> <Items>
@@ -86,12 +86,19 @@
</Items> </Items>
</f:GroupPanel> </f:GroupPanel>
</Items> </Items>
</f:FormRow> </f:FormRow>--%>
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:GroupPanel Layout="Anchor" Title="Hydrostatic test schedule" runat="server"> <f:GroupPanel Layout="Anchor" Title="Hydrostatic test schedule" runat="server">
<Items> <Items>
<f:DropDownList ID="ddlPWD" runat="server" Label="Ready for Test" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList>
<f:DropDownList ID="ddlHydrostaticTest" runat="server" Label="Hydrostatic Test" LabelWidth="180px"> <f:DropDownList ID="ddlHydrostaticTest" runat="server" Label="Hydrostatic Test" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
+19 -18
View File
@@ -54,13 +54,13 @@ namespace FineUIPro.Web.Transfer
txtSubsystem.Text = model.Subsystem; txtSubsystem.Text = model.Subsystem;
txtTestPackage.Text = model.TestPackage; txtTestPackage.Text = model.TestPackage;
ddlPWD.SelectedValue = model.PWD; ddlPWD.SelectedValue = model.PWD;
ddlApunchclosed.SelectedValue = model.Apunchclosed; //ddlApunchclosed.SelectedValue = model.Apunchclosed;
ddlNDTReport.SelectedValue = model.NDTReport; //ddlNDTReport.SelectedValue = model.NDTReport;
ddlTemperaryMeasurement.SelectedValue = model.TemperaryMeasurement; //ddlTemperaryMeasurement.SelectedValue = model.TemperaryMeasurement;
ddlHydrostaticTest.SelectedValue = model.HydrostaticTest; ddlHydrostaticTest.SelectedValue = model.HydrostaticTest;
ddlReport.SelectedValue = model.Report; ddlReport.SelectedValue = model.Report;
ddlBlowingflushing.SelectedValue = model.Blowingflushing; ddlBlowingflushing.SelectedValue = model.Blowingflushing;
ddlFWDfinished.SelectedValue = model.FWDfinished; //ddlFWDfinished.SelectedValue = model.FWDfinished;
ddlSystemreinstalled.SelectedValue = model.Systemreinstalled; ddlSystemreinstalled.SelectedValue = model.Systemreinstalled;
txtBlowingReport.Text = model.BlowingReport; txtBlowingReport.Text = model.BlowingReport;
@@ -78,13 +78,13 @@ namespace FineUIPro.Web.Transfer
Subsystem = txtSubsystem.Text, Subsystem = txtSubsystem.Text,
TestPackage = txtTestPackage.Text, TestPackage = txtTestPackage.Text,
PWD = ddlPWD.SelectedValue, PWD = ddlPWD.SelectedValue,
Apunchclosed = ddlApunchclosed.SelectedValue, //Apunchclosed = ddlApunchclosed.SelectedValue,
NDTReport= ddlNDTReport.SelectedValue, //NDTReport= ddlNDTReport.SelectedValue,
TemperaryMeasurement= ddlTemperaryMeasurement.SelectedValue, //TemperaryMeasurement= ddlTemperaryMeasurement.SelectedValue,
HydrostaticTest=ddlHydrostaticTest.SelectedValue, HydrostaticTest=ddlHydrostaticTest.SelectedValue,
Report= ddlReport.SelectedValue, Report= ddlReport.SelectedValue,
Blowingflushing= ddlBlowingflushing.SelectedValue, Blowingflushing= ddlBlowingflushing.SelectedValue,
FWDfinished= ddlFWDfinished.SelectedValue, //FWDfinished= ddlFWDfinished.SelectedValue,
Systemreinstalled= ddlSystemreinstalled.SelectedValue, Systemreinstalled= ddlSystemreinstalled.SelectedValue,
BlowingReport= txtBlowingReport.Text, BlowingReport= txtBlowingReport.Text,
Descriptions= txtDescriptions.Text Descriptions= txtDescriptions.Text
@@ -92,22 +92,23 @@ namespace FineUIPro.Web.Transfer
#region #region
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(model.PWD); listObj.Add(model.PWD);
listObj.Add(model.Apunchclosed); //listObj.Add(model.Apunchclosed);
listObj.Add(model.NDTReport); //listObj.Add(model.NDTReport);
listObj.Add(model.TemperaryMeasurement); //listObj.Add(model.TemperaryMeasurement);
listObj.Add(model.HydrostaticTest); listObj.Add(model.HydrostaticTest);
listObj.Add(model.Report); listObj.Add(model.Report);
listObj.Add(model.Blowingflushing); listObj.Add(model.Blowingflushing);
listObj.Add(model.FWDfinished); //listObj.Add(model.FWDfinished);
listObj.Add(model.Systemreinstalled); listObj.Add(model.Systemreinstalled);
//listObj.Add(model.BlowingReport);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 9) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5)
{ {
model.FINALStatus = "Completed"; model.FINALStatus = "Completed";
} }
//如果全是Not Start 就是 Not Start //如果全是Not Start 就是 Not Start
else if (listObj.Where(x => x == "Not Start").ToList().Count == 9) else if (listObj.Where(x => x == "Not Start").ToList().Count == 5)
{ {
model.FINALStatus = "Not Start"; model.FINALStatus = "Not Start";
@@ -129,13 +130,13 @@ namespace FineUIPro.Web.Transfer
newModel.Subsystem = newModel.Subsystem; newModel.Subsystem = newModel.Subsystem;
newModel.TestPackage = txtTestPackage.Text; newModel.TestPackage = txtTestPackage.Text;
newModel.PWD = ddlPWD.SelectedValue; newModel.PWD = ddlPWD.SelectedValue;
newModel.Apunchclosed = ddlApunchclosed.SelectedValue; //newModel.Apunchclosed = ddlApunchclosed.SelectedValue;
newModel.NDTReport = ddlNDTReport.SelectedValue; //newModel.NDTReport = ddlNDTReport.SelectedValue;
newModel.TemperaryMeasurement = ddlTemperaryMeasurement.SelectedValue; //newModel.TemperaryMeasurement = ddlTemperaryMeasurement.SelectedValue;
newModel.HydrostaticTest = ddlHydrostaticTest.SelectedValue; newModel.HydrostaticTest = ddlHydrostaticTest.SelectedValue;
newModel.Report = ddlReport.SelectedValue; newModel.Report = ddlReport.SelectedValue;
newModel.Blowingflushing = ddlBlowingflushing.SelectedValue; newModel.Blowingflushing = ddlBlowingflushing.SelectedValue;
newModel.FWDfinished = ddlFWDfinished.SelectedValue; //newModel.FWDfinished = ddlFWDfinished.SelectedValue;
newModel.Systemreinstalled = ddlSystemreinstalled.SelectedValue; newModel.Systemreinstalled = ddlSystemreinstalled.SelectedValue;
newModel.BlowingReport = txtBlowingReport.Text; newModel.BlowingReport = txtBlowingReport.Text;
newModel.FINALStatus = model.FINALStatus; newModel.FINALStatus = model.FINALStatus;
-36
View File
@@ -95,42 +95,6 @@ namespace FineUIPro.Web.Transfer
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlPWD; protected global::FineUIPro.DropDownList ddlPWD;
/// <summary>
/// ddlApunchclosed 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlApunchclosed;
/// <summary>
/// ddlNDTReport 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlNDTReport;
/// <summary>
/// ddlTemperaryMeasurement 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlTemperaryMeasurement;
/// <summary>
/// ddlFWDfinished 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlFWDfinished;
/// <summary> /// <summary>
/// ddlHydrostaticTest 控件。 /// ddlHydrostaticTest 控件。
/// </summary> /// </summary>
@@ -83,6 +83,10 @@
HeaderTextAlign="Center" minWidth="140px"> HeaderTextAlign="Center" minWidth="140px">
</f:RenderField> </f:RenderField>
<f:RenderField ColumnID="Lubricatefilling" DataField="Lubricatefilling" FieldType="String" HeaderText="Lubricate filling" TextAlign="Center"
HeaderTextAlign="Center" minWidth="140px">
</f:RenderField>
<f:RenderField ColumnID="Motorsoloruntest" DataField="Motorsoloruntest" FieldType="String" HeaderText="Motor solorun test" TextAlign="Center" <f:RenderField ColumnID="Motorsoloruntest" DataField="Motorsoloruntest" FieldType="String" HeaderText="Motor solorun test" TextAlign="Center"
HeaderTextAlign="Center" Width="140px"> HeaderTextAlign="Center" Width="140px">
</f:RenderField> </f:RenderField>
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 8); AddDatasetToSQL(ds.Tables[0], 9);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@@ -276,7 +276,7 @@ namespace FineUIPro.Web.Transfer
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 8); AddDatasetToSQL2(ds.Tables[0], 9);
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -305,7 +305,7 @@ namespace FineUIPro.Web.Transfer
if (pds != null && ir > 0) if (pds != null && ir > 0)
{ {
List<Model.Transfer_RotatingEquipment> list = new List<Model.Transfer_RotatingEquipment>(); List<Model.Transfer_RotatingEquipment> list = new List<Model.Transfer_RotatingEquipment>();
for (int i = 1; i < ir; i++) for (int i = 0; i < ir; i++)
{ {
////查询第一列,没查到的情况下作导入处理 ////查询第一列,没查到的情况下作导入处理
//var modelOnly = Funs.DB.Transfer_RotatingEquipment.FirstOrDefault(x => x.RotatingEquipment == pds.Rows[i][0].ToString().Trim() //var modelOnly = Funs.DB.Transfer_RotatingEquipment.FirstOrDefault(x => x.RotatingEquipment == pds.Rows[i][0].ToString().Trim()
@@ -323,16 +323,17 @@ namespace FineUIPro.Web.Transfer
model.TestPackage = pds.Rows[i][3 + 1].ToString().Trim(); model.TestPackage = pds.Rows[i][3 + 1].ToString().Trim();
var obj1 = model.Alignment = pds.Rows[i][4 + 1].ToString().Trim(); var obj1 = model.Alignment = pds.Rows[i][4 + 1].ToString().Trim();
var obj2 = model.Motorsoloruntest = pds.Rows[i][5 + 1].ToString().Trim(); var obj4=model.Lubricatefilling= pds.Rows[i][6].ToString().Trim();
var obj3 = model.Standalonetest = pds.Rows[i][6 + 1].ToString().Trim(); var obj2 = model.Motorsoloruntest = pds.Rows[i][7].ToString().Trim();
var obj3 = model.Standalonetest = pds.Rows[i][8].ToString().Trim();
#region #region
var listObj = new List<string>(); var listObj = new List<string>();
listObj.Add(obj1); listObj.Add(obj1);
listObj.Add(obj2); listObj.Add(obj2);
listObj.Add(obj3); listObj.Add(obj3);
listObj.Add(obj4);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 3) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 4)
{ {
model.MechanicalFINALStatus = "Completed"; model.MechanicalFINALStatus = "Completed";
list.Add(model); list.Add(model);
@@ -341,7 +342,7 @@ namespace FineUIPro.Web.Transfer
//如果全是Not Start 就是 Not Start //如果全是Not Start 就是 Not Start
if (listObj.Where(x => x == "Not Start").ToList().Count == 3) if (listObj.Where(x => x == "Not Start").ToList().Count == 4)
{ {
model.MechanicalFINALStatus = "Not Start"; model.MechanicalFINALStatus = "Not Start";
list.Add(model); list.Add(model);
@@ -361,7 +362,7 @@ namespace FineUIPro.Web.Transfer
#endregion #endregion
model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim(); //model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
if (model.MechanicalFINALStatus.ToLower() == "finished") if (model.MechanicalFINALStatus.ToLower() == "finished")
{ {
model.CompleteTime = DateTime.Now; model.CompleteTime = DateTime.Now;
@@ -57,6 +57,13 @@
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem> <f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="ddlLubricatefilling" runat="server" Label="Lubricate filling" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem>
<f:ListItem Value="In progress" Text="In progress"></f:ListItem>
<f:ListItem Value="Not Start" Text="Not Start"></f:ListItem>
</f:DropDownList>
<f:DropDownList ID="ddlMotorsoloruntest" runat="server" Label="Motor solorun test" LabelWidth="180px"> <f:DropDownList ID="ddlMotorsoloruntest" runat="server" Label="Motor solorun test" LabelWidth="180px">
<f:ListItem Value="NA" Text="NA"></f:ListItem> <f:ListItem Value="NA" Text="NA"></f:ListItem>
<f:ListItem Value="Completed" Text="Completed"></f:ListItem> <f:ListItem Value="Completed" Text="Completed"></f:ListItem>
@@ -57,6 +57,7 @@ namespace FineUIPro.Web.Transfer
ddlAlignment.SelectedValue = model.Alignment; ddlAlignment.SelectedValue = model.Alignment;
ddlMotorsoloruntest.SelectedValue = model.Motorsoloruntest; ddlMotorsoloruntest.SelectedValue = model.Motorsoloruntest;
ddlStandalonetest.SelectedValue = model.Standalonetest; ddlStandalonetest.SelectedValue = model.Standalonetest;
ddlLubricatefilling.SelectedValue = model.Lubricatefilling;
txtDescriptions.Text = model.Descriptions; txtDescriptions.Text = model.Descriptions;
} }
} }
@@ -75,7 +76,8 @@ namespace FineUIPro.Web.Transfer
Alignment = ddlAlignment.SelectedValue, Alignment = ddlAlignment.SelectedValue,
Motorsoloruntest = ddlMotorsoloruntest.SelectedValue, Motorsoloruntest = ddlMotorsoloruntest.SelectedValue,
Standalonetest = ddlStandalonetest.SelectedValue, Standalonetest = ddlStandalonetest.SelectedValue,
Descriptions= txtDescriptions.Text Descriptions= txtDescriptions.Text,
Lubricatefilling=ddlLubricatefilling.SelectedValue
}; };
#region #region
@@ -83,13 +85,13 @@ namespace FineUIPro.Web.Transfer
listObj.Add(model.Alignment); listObj.Add(model.Alignment);
listObj.Add(model.Motorsoloruntest); listObj.Add(model.Motorsoloruntest);
listObj.Add(model.Standalonetest); listObj.Add(model.Standalonetest);
listObj.Add(model.Lubricatefilling);
//全是NA或Completed 状态是Completed //全是NA或Completed 状态是Completed
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 3) if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 4)
{ {
model.MechanicalFINALStatus = "Completed"; model.MechanicalFINALStatus = "Completed";
} //如果全是Not Start 就是 Not Start } //如果全是Not Start 就是 Not Start
else if (listObj.Where(x => x == "Not Start").ToList().Count == 3) else if (listObj.Where(x => x == "Not Start").ToList().Count == 4)
{ {
model.MechanicalFINALStatus = "Not Start"; model.MechanicalFINALStatus = "Not Start";
} }
@@ -115,6 +117,7 @@ namespace FineUIPro.Web.Transfer
newModel.Standalonetest = ddlStandalonetest.SelectedValue; newModel.Standalonetest = ddlStandalonetest.SelectedValue;
newModel.MechanicalFINALStatus = model.MechanicalFINALStatus; newModel.MechanicalFINALStatus = model.MechanicalFINALStatus;
newModel.Descriptions = txtDescriptions.Text; newModel.Descriptions = txtDescriptions.Text;
newModel.Lubricatefilling = ddlLubricatefilling.SelectedValue;
} }
} }
else else
@@ -95,6 +95,15 @@ namespace FineUIPro.Web.Transfer
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlAlignment; protected global::FineUIPro.DropDownList ddlAlignment;
/// <summary>
/// ddlLubricatefilling 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlLubricatefilling;
/// <summary> /// <summary>
/// ddlMotorsoloruntest 控件。 /// ddlMotorsoloruntest 控件。
/// </summary> /// </summary>
+2 -1
View File
@@ -119,7 +119,8 @@
<TreeNode id="A5D0287B-2410-4DB1-8BD4-E0534EBAE308" Text="应急流程" NavigateUrl="HSSE/Emergency/EmergencyProcess.aspx"></TreeNode> <TreeNode id="A5D0287B-2410-4DB1-8BD4-E0534EBAE308" Text="应急流程" NavigateUrl="HSSE/Emergency/EmergencyProcess.aspx"></TreeNode>
<TreeNode id="CF5516F7-0735-44EF-9A6D-46FABF8EBC6E" Text="应急演练开展情况" NavigateUrl="HSSE/Emergency/DrillRecordList.aspx"></TreeNode> <TreeNode id="CF5516F7-0735-44EF-9A6D-46FABF8EBC6E" Text="应急演练开展情况" NavigateUrl="HSSE/Emergency/DrillRecordList.aspx"></TreeNode>
</TreeNode> </TreeNode>
<TreeNode id="03235B30-960D-4FCF-99F7-97773A2EE108" Text="工作报告" NavigateUrl=""><TreeNode id="68A52EEA-2661-4CB0-9382-A36AA5DCC480" Text="HSE管理月报" NavigateUrl="HSSE/Manager/ManagerMonthC.aspx"></TreeNode> <TreeNode id="03235B30-960D-4FCF-99F7-97773A2EE108" Text="工作报告" NavigateUrl=""><TreeNode id="9E4B28DF-8C8E-49F8-AB15-270BBDC73449" Text="HSE管理月报(新)" NavigateUrl="HSSE/Manager/ManagerMonthCNew.aspx"></TreeNode>
<TreeNode id="68A52EEA-2661-4CB0-9382-A36AA5DCC480" Text="HSE管理月报" NavigateUrl="HSSE/Manager/ManagerMonthC.aspx"></TreeNode>
<TreeNode id="D0EC3002-E1FA-457D-AC3B-4C7B2D71DD82" Text="月报" NavigateUrl="HSSE/Manager/ManagerMonth_SeDin.aspx"></TreeNode> <TreeNode id="D0EC3002-E1FA-457D-AC3B-4C7B2D71DD82" Text="月报" NavigateUrl="HSSE/Manager/ManagerMonth_SeDin.aspx"></TreeNode>
<TreeNode id="88AE0EF8-D29E-409F-A154-CCA3999B00AE" Text="HSE完工报告" NavigateUrl="HSSE/Manager/CompletionReport.aspx"></TreeNode> <TreeNode id="88AE0EF8-D29E-409F-A154-CCA3999B00AE" Text="HSE完工报告" NavigateUrl="HSSE/Manager/CompletionReport.aspx"></TreeNode>
<TreeNode id="8E5B4A8E-B06E-4C8A-A2C8-1091A9BCAF72" Text="工程师HSE日志" NavigateUrl="HSSE/Manager/HSEDiary.aspx"></TreeNode> <TreeNode id="8E5B4A8E-B06E-4C8A-A2C8-1091A9BCAF72" Text="工程师HSE日志" NavigateUrl="HSSE/Manager/HSEDiary.aspx"></TreeNode>
@@ -392,9 +392,9 @@ namespace FineUIPro.Web
var unitWorks = BLL.UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId); var unitWorks = BLL.UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId);
var TotalCheckDetailOKLists = from x in db.ProcessControl_InspectionManagementDetail var TotalCheckDetailOKLists = from x in db.ProcessControl_InspectionManagementDetail
join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId join y in db.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
join z in db.WBS_BreakdownProject on x.ControlPointType equals z.BreakdownProjectId //join z in db.WBS_BreakdownProject on x.ControlPointType equals z.BreakdownProjectId
where y.ProjectId == this.CurrUser.LoginProjectId where y.ProjectId == this.CurrUser.LoginProjectId
select new { z.UnitWorkId, y.IsOnceQualified }; select new { x.UnitWorkId, y.IsOnceQualified };
Model.SingleSerie s = new Model.SingleSerie(); Model.SingleSerie s = new Model.SingleSerie();
Model.SingleSerie s2 = new Model.SingleSerie(); Model.SingleSerie s2 = new Model.SingleSerie();
List<double> listdata = new List<double>(); List<double> listdata = new List<double>();
+9 -1
View File
@@ -718,7 +718,8 @@
}); });
$(".n-btn-l,.n-btn-r").click(function () { $(".n-btn-l,.n-btn-r").click(function () {
var $item = $('.f-tabstrip-header')
$item.attr('style', ";display:block !important;")
$('.n-btn-r').each(function (index) { $('.n-btn-r').each(function (index) {
console.log($(this)) console.log($(this))
@@ -733,6 +734,13 @@
}); });
$(".bgbtn_head").click(function () {
var $item = $('.f-tabstrip-header')
$item.attr('style', ";display:none !important;")
})
var mainTabStrip = F(mainTabStripClientID); var mainTabStrip = F(mainTabStripClientID);
var leftPanel = F(leftPanelClientID); var leftPanel = F(leftPanelClientID);
var mainMenu = leftPanel.items[0]; var mainMenu = leftPanel.items[0];

Some files were not shown because too many files have changed in this diff Show More