This commit is contained in:
高飞 2025-12-19 10:30:50 +08:00
commit 28634ed93b
15 changed files with 2190 additions and 17 deletions

View File

@ -0,0 +1,316 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('E6221F7D-9A68-44FB-974D-6857EC9CC5E8','施工图核查记录','JGZL/ConDrawingVerification.aspx',50,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('80F4137C-D4F5-48E6-B649-A7696A8E84A0','E6221F7D-9A68-44FB-974D-6857EC9CC5E8','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('D38E66DC-8464-4B6D-8927-0C446732C386','E6221F7D-9A68-44FB-974D-6857EC9CC5E8','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('A76B70C1-D6B4-4472-BCF6-93EBBFB23C94','E6221F7D-9A68-44FB-974D-6857EC9CC5E8','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('DD03E8F8-6FF6-4700-A932-DB6F0A943180','E6221F7D-9A68-44FB-974D-6857EC9CC5E8','保存',4)
go
CREATE TABLE [dbo].[JGZL_ConDrawingVerification](
[ConDrawingVerificationId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[DesignUnit] [nvarchar](50) NULL,
[Professional] [nvarchar](50) NULL,
[Host] [nvarchar](50) NULL,
[VerificationDate] [datetime] NULL,
[ConDrawingCode] [nvarchar](50) NULL,
[Personnel] [nvarchar](2000) NULL,
[Contents] [nvarchar](2000) NULL,
[Problems] [nvarchar](2000) NULL,
[Recorder] [nvarchar](50) NULL,
[RecordDate] [datetime] NULL,
[Reviewer] [nvarchar](50) NULL,
[ReviewDate] [datetime] NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_JGZL_ConDrawingVerification] PRIMARY KEY CLUSTERED
(
[ConDrawingVerificationId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JGZL_ConDrawingVerification] WITH CHECK ADD CONSTRAINT [FK_JGZL_ConDrawingVerification_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[JGZL_ConDrawingVerification] CHECK CONSTRAINT [FK_JGZL_ConDrawingVerification_Base_Project]
GO
ALTER TABLE [dbo].[JGZL_ConDrawingVerification] WITH CHECK ADD CONSTRAINT [FK_JGZL_ConDrawingVerification_Sys_User] FOREIGN KEY([CompileMan])
REFERENCES [dbo].[Sys_User] ([UserId])
GO
ALTER TABLE [dbo].[JGZL_ConDrawingVerification] CHECK CONSTRAINT [FK_JGZL_ConDrawingVerification_Sys_User]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'ConDrawingVerificationId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'DesignUnit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Professional'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主持人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Host'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'核查时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'VerificationDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工图号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'ConDrawingCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'参加核查人员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Personnel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'内容记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Contents'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题情况' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Problems'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Recorder'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'记录时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'RecordDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'Reviewer'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'ReviewDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工图核查记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ConDrawingVerification'
GO
ALTER PROCEDURE [dbo].[HJGL_sp_rpt_NDTReport]
(
@ProjectId NVARCHAR(50) = null,
@trustDate datetime = null
)
AS
/***************无损检测日报**********************/
SELECT NDTType.NDT_ID,
Base_Project.ProjectCode AS ProjectCode,--
Base_Project.ProjectName AS ProjectName,--
NDTType.NDT_Code,--
ISNULL(need_check_count.need_check_count,0) as need_check_count,--
ISNULl(trust_count_current.trust_count_current,0) as trust_count_current,--
ISNULL(trust_count_total.trust_count_total,0) as trust_count_total,--
ISNULL(check_count_current.check_count_current,0) as check_count_current,--
ISNULL(check_count.check_count,0) as check_count,--
ISNULL(total_check_Pass_count.total_check_Pass_count,0) as total_check_Pass_count,--
ISNULL(check_count_film.check_count_film,0) AS check_count_film,--
--ISNULL(check_count_Pass_film.check_count_Pass_film,0) as check_count_Pass_film,--
(ISNULL(check_count_film.check_count_film,0)-ISNULL(repair_total_film.repair_total_film,0))as check_count_Pass_film,
CONVERT(nvarchar(10),CAST(CAST((CASE ISNULL(need_check_count.need_check_count,0) WHEN 0 THEN 0
ELSE 1.0 * ISNULL(check_count.check_count,0)/(1.0 * need_check_count.need_check_count) END) AS DECIMAL(19,3))*100 as DECIMAL(19,1)) )+'%'
AS complated_check_rate, -- /
CONVERT(nvarchar(10),CAST(CAST((CASE ISNULL(check_count.check_count,0) WHEN 0 THEN 0
ELSE 1.0 * ISNULL(one_check_Pass_count.one_check_Pass_count,0)/(1.0 * check_count.check_count) END) AS DECIMAL(19,3))*100 as DECIMAL(19,1)) )+'%'
AS check_onePass_rate,-- /
--CONVERT(nvarchar(10),CAST(CAST((CASE ISNULL(check_count_film.check_count_film,0) WHEN 0 THEN 0
-- ELSE 1.0 * ISNULL(check_count_Pass_film.check_count_Pass_film,0)/(1.0 * check_count_film.check_count_film) END) AS DECIMAL(19,3))*100 as DECIMAL(19,1)) )+'%'
-- AS check_onePass_film_rate,--检测一次合格率(片数) 累计合格片数/累计检测片数
--CONVERT(nvarchar(10),CAST(CAST((CASE ISNULL(check_count_film.check_count_film,0) WHEN 0 THEN 0
-- ELSE 1.0 * ISNULL(one_check_Pass_film.one_check_Pass_film,0)/(1.0 * check_count_film.check_count_film) END) AS DECIMAL(19,3))*100 as DECIMAL(19,1)) )+'%'
-- AS check_onePass_film_rate,--检测一次合格率(片数) 一次合格片数/累计检测片数
CONVERT(nvarchar(10),CAST(CAST((CASE ISNULL(check_count_film.check_count_film,0) WHEN 0 THEN 0
ELSE 1.0 * (ISNULL(check_count_film.check_count_film,0)-ISNULL(repair_total_film.repair_total_film,0))/(1.0 * check_count_film.check_count_film) END) AS DECIMAL(19,3))*100 as DECIMAL(19,1)) )+'%'
AS check_onePass_film_rate,-- /
(isnull(check_count.check_count,0) - isnull(total_check_Pass_count.total_check_Pass_count,0)) AS check_noPass_count,-- -
--(isnull(check_NoPass_count.check_NoPass_count,0)) as check_noPass_count,--
(ISNULL(check_count_film.check_count_film,0) - (ISNULL(check_count_film.check_count_film,0)-ISNULL(repair_total_film.repair_total_film,0))) as check_noPass_film_count,-- -
--ISNULL(check_count_NoPass_film.check_count_NoPass_film,0) as check_noPass_film_count,--
ISNULL(repair_current_film.repair_current_film,0) AS repair_current_film,--
ISNULL(repair_total_film.repair_total_film,0) AS repair_total_film,--
--(ISNULl(check_count_film.check_count_film,0) - isnull(check_count_Pass_film.check_count_Pass_film,0))-ISNULL(repair_total_film.repair_total_film,0) as pending_repair_film, -- -
--(ISNULL(check_count_NoPass_film.check_count_NoPass_film,0) - ISNULL(repair_total_film.repair_total_film,0)) as pending_repair_film,
isnull(repair_film.repair_film,0) as pending_repair_film,--
isnull(repair_current_count.repair_current_count,0) as repair_current_count,--
isnull(repair_total_count.repair_total_count,0) as repair_total_count, --
--(isnull(check_count.check_count,0) - isnull(total_check_Pass_count.total_check_Pass_count,0))-isnull(repair_total_count.repair_total_count,0) as pending_repair_count -- (-)
isnull(repair_count.repair_count,0) as pending_repair_count
FROM HJGL_BS_NDTType AS NDTType
LEFT JOIN Base_Project ON Base_Project.ProjectId=@ProjectId
--
LEFT JOIN (SELECT COUNT(*) AS need_check_count,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
LEFT JOIN HJGL_PW_JointInfo ON HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS need_check_count ON need_check_count.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS trust_count_current,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
LEFT JOIN HJGL_PW_JointInfo ON HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND CONVERT(varchar(10), HJGL_CH_Trust.CH_TrustDate,120)=@trustDate
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS trust_count_current ON trust_count_current.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS trust_count_total,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
LEFT JOIN HJGL_PW_JointInfo ON HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS trust_count_total ON trust_count_total.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS check_count_current,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
LEFT JOIN HJGL_PW_JointInfo ON HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_TrustItem.States!='1'
AND HJGL_CH_Trust.ProjectId=@ProjectId AND CONVERT(varchar(10), HJGL_CH_Trust.CH_TrustDate,120)=@trustDate
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_count_current ON check_count_current.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS check_count,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
LEFT JOIN HJGL_PW_JointInfo ON HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_TrustItem.States!='1' and HJGL_PW_JointInfo.PointType='点口'
AND HJGL_CH_Trust.ProjectId=@ProjectId
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_count ON check_count.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS total_check_Pass_count,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND HJGL_CH_TrustItem.States='2' and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS total_check_Pass_count ON total_check_Pass_count.CH_NDTMethod = NDTType.NDT_ID
----
LEFT JOIN (SELECT COUNT(*) AS check_count_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRating
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_BO_QualityRating.CH_TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId and HJGL_CH_TrustItem.States!='1' and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_count_film ON check_count_film.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS one_check_Pass_count,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND HJGL_CH_TrustItem.States='2' and HJGL_PW_JointInfo.PointType='点口'
and HJGL_CH_TrustItem.JOT_ID not in (select JOT_ID from HJGL_CH_Repair)
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS one_check_Pass_count ON one_check_Pass_count.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS one_check_Pass_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRating
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_BO_QualityRating.CH_TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND HJGL_CH_TrustItem.States='2' and HJGL_PW_JointInfo.PointType='点口'
and HJGL_CH_TrustItem.JOT_ID not in (select JOT_ID from HJGL_CH_Repair)
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS one_check_Pass_film ON one_check_Pass_film.CH_NDTMethod = NDTType.NDT_ID
--
--LEFT JOIN (SELECT COUNT(*) AS check_NoPass_count,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_CH_TrustItem
-- LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
-- left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
-- WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND HJGL_CH_TrustItem.JOT_ID in (select JOT_ID from HJGL_CH_Repair)
-- and HJGL_PW_JointInfo.PointType='点口'
-- GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_NoPass_count ON check_NoPass_count.CH_NDTMethod = NDTType.NDT_ID
--
--LEFT JOIN (SELECT COUNT(*) AS check_count_Pass_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRating
-- LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_BO_QualityRating.CH_TrustItemID
-- LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
-- left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
-- WHERE HJGL_BO_QualityRating.IsPass='合格' and HJGL_CH_Trust.ProjectId=@ProjectId and HJGL_PW_JointInfo.PointType='点口'
-- GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_count_Pass_film ON check_count_Pass_film.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS check_count_NoPass_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRating
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_BO_QualityRating.CH_TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_BO_QualityRating.IsPass='不合格' and HJGL_CH_Trust.ProjectId=@ProjectId and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS check_count_NoPass_film ON check_count_NoPass_film.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS repair_current_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRatingRepair
LEFT JOIN HJGL_CH_RepairItem ON HJGL_CH_RepairItem.CH_RepairItemId = HJGL_BO_QualityRatingRepair.CH_RepairItemId
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId AND CONVERT(varchar(10),HJGL_CH_Repair.RepairTrustDate,120)=@trustDate
and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS repair_current_film ON repair_current_film.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS repair_total_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRatingRepair
LEFT JOIN HJGL_CH_RepairItem ON HJGL_CH_RepairItem.CH_RepairItemId = HJGL_BO_QualityRatingRepair.CH_RepairItemId
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS repair_total_film ON repair_total_film.CH_NDTMethod = NDTType.NDT_ID
--
LEFT JOIN (SELECT COUNT(*) AS repair_film,HJGL_CH_Trust.CH_NDTMethod FROM HJGL_BO_QualityRatingRepair
LEFT JOIN HJGL_CH_RepairItem ON HJGL_CH_RepairItem.CH_RepairItemId = HJGL_BO_QualityRatingRepair.CH_RepairItemId
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
LEFT JOIN HJGL_CH_Trust ON HJGL_CH_Trust.CH_TrustID = HJGL_CH_TrustItem.CH_TrustID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Trust.ProjectId=@ProjectId and HJGL_CH_RepairItem.States='4'and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Trust.CH_NDTMethod) AS repair_film ON repair_film.CH_NDTMethod = NDTType.NDT_ID
--
left join (select count(*) as repair_current_count,HJGL_CH_Repair.NDT_ID from HJGL_CH_RepairItem
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_RepairItem.States='4' AND HJGL_CH_Repair.ProjectId=@ProjectId AND CONVERT(varchar(10),HJGL_CH_Repair.RepairTrustDate,120)=@trustDate
and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Repair.NDT_ID) as repair_current_count on repair_current_count.NDT_ID =NDTType.NDT_ID
--
left join (select count(*) as repair_total_count,HJGL_CH_Repair.NDT_ID from HJGL_CH_RepairItem
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Repair.ProjectId=@ProjectId and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Repair.NDT_ID) as repair_total_count on repair_total_count.NDT_ID =NDTType.NDT_ID
--
left join (select count(*) as repair_count,HJGL_CH_Repair.NDT_ID from HJGL_CH_RepairItem
LEFT JOIN HJGL_CH_Repair ON HJGL_CH_Repair.CH_RepairID = HJGL_CH_RepairItem.CH_RepairID
LEFT JOIN HJGL_CH_TrustItem ON HJGL_CH_TrustItem.CH_TrustItemID = HJGL_CH_Repair.TrustItemID
left join HJGL_PW_JointInfo on HJGL_PW_JointInfo.JOT_ID = HJGL_CH_TrustItem.JOT_ID
WHERE HJGL_CH_Repair.ProjectId=@ProjectId and HJGL_CH_RepairItem.States='4' and HJGL_PW_JointInfo.PointType='点口'
GROUP BY HJGL_CH_Repair.NDT_ID) as repair_count on repair_count.NDT_ID =NDTType.NDT_ID
GO

View File

@ -247,6 +247,7 @@
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
<Compile Include="JGZL\AcceptanceCertificateService.cs" />
<Compile Include="JGZL\CommencementReportService.cs" />
<Compile Include="JGZL\ConDrawingVerificationService.cs" />
<Compile Include="JGZL\ContactService.cs" />
<Compile Include="JGZL\HandoverCertificateService.cs" />
<Compile Include="JsonHelper.cs" />

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
@ -1774,6 +1775,11 @@ namespace BLL
/// 工程联络单
/// </summary>
public const string JGZL_ContactMenuId = "05725865-4CC9-43A0-A525-F2730019F61C";
/// <summary>
/// 施工图核查记录
/// </summary>
public const string JGZL_ConDrawingVerificationMenuId = "E6221F7D-9A68-44FB-974D-6857EC9CC5E8";
#endregion
#region ID

View File

@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 施工图核查记录
/// </summary>
public class ConDrawingVerificationService
{
/// <summary>
/// 根据主键获取施工图核查记录
/// </summary>
/// <param name="conDrawingVerificationId"></param>
/// <returns></returns>
public static Model.JGZL_ConDrawingVerification GetConDrawingVerificationById(string conDrawingVerificationId)
{
return Funs.DB.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
}
/// <summary>
/// 添加
/// </summary>
/// <param name="con"></param>
public static void AddConDrawingVerification(Model.JGZL_ConDrawingVerification con)
{
Model.SGGLDB db = Funs.DB;
Model.JGZL_ConDrawingVerification newCon = new Model.JGZL_ConDrawingVerification();
newCon.ConDrawingVerificationId = con.ConDrawingVerificationId;
newCon.ProjectId = con.ProjectId;
newCon.DesignUnit = con.DesignUnit;
newCon.Professional = con.Professional;
newCon.Host = con.Host;
newCon.VerificationDate = con.VerificationDate;
newCon.ConDrawingCode= con.ConDrawingCode;
newCon.Personnel = con.Personnel;
newCon.Contents = con.Contents;
newCon.Problems = con.Problems;
newCon.Recorder = con.Recorder;
newCon.RecordDate = con.RecordDate;
newCon.Reviewer = con.Reviewer;
newCon.ReviewDate = con.ReviewDate;
newCon.CompileMan = con.CompileMan;
newCon.CompileDate = con.CompileDate;
db.JGZL_ConDrawingVerification.InsertOnSubmit(newCon);
db.SubmitChanges();
}
/// <summary>
/// 修改
/// </summary>
/// <param name="con"></param>
public static void UpdateConDrawingVerification(Model.JGZL_ConDrawingVerification con)
{
Model.SGGLDB db = Funs.DB;
Model.JGZL_ConDrawingVerification newCon = db.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == con.ConDrawingVerificationId);
if (newCon != null)
{
newCon.DesignUnit = con.DesignUnit;
newCon.Professional = con.Professional;
newCon.Host = con.Host;
newCon.VerificationDate = con.VerificationDate;
newCon.ConDrawingCode = con.ConDrawingCode;
newCon.Personnel = con.Personnel;
newCon.Contents = con.Contents;
newCon.Problems = con.Problems;
newCon.Recorder = con.Recorder;
newCon.RecordDate = con.RecordDate;
newCon.Reviewer = con.Reviewer;
newCon.ReviewDate = con.ReviewDate;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除施工图核查记录
/// </summary>
/// <param name="conDrawingVerificationId"></param>
public static void DeleteConDrawingVerificationById(string conDrawingVerificationId)
{
Model.SGGLDB db = Funs.DB;
Model.JGZL_ConDrawingVerification con = db.JGZL_ConDrawingVerification.FirstOrDefault(e => e.ConDrawingVerificationId == conDrawingVerificationId);
if (con != null)
{
db.JGZL_ConDrawingVerification.DeleteOnSubmit(con);
db.SubmitChanges();
}
}
}
}

View File

@ -72,3 +72,39 @@ IP地址:::1
出错时间:12/15/2025 10:15:48
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web.JGZL.ConDrawingVerification.Page_Load(Object sender, EventArgs e) 位置 E:\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\JGZL\ConDrawingVerification.aspx.cs:行号 30
在 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)
出错时间:12/17/2025 23:03:12
出错文件:http://localhost:60961/JGZL/ConDrawingVerification.aspx
IP地址:::1
出错时间:12/17/2025 23:03:12
出错时间:12/17/2025 23:03:12
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web.JGZL.ConDrawingVerification.Page_Load(Object sender, EventArgs e) 位置 E:\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\JGZL\ConDrawingVerification.aspx.cs:行号 30
在 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)
出错时间:12/17/2025 23:07:59
出错文件:http://localhost:60961/JGZL/ConDrawingVerification.aspx
IP地址:::1
出错时间:12/17/2025 23:07:59
出错时间:12/17/2025 23:07:59

View File

@ -1,6 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/15/2025 15:12:33" ReportInfo.Modified="12/15/2025 15:40:02" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary/>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/15/2025 15:12:33" ReportInfo.Modified="12/17/2025 23:11:22" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="DesignUnit" DataType="System.String"/>
<Parameter Name="Professional" DataType="System.String"/>
<Parameter Name="Host" DataType="System.String"/>
<Parameter Name="VerificationDate" DataType="System.String"/>
<Parameter Name="ConDrawingCode" DataType="System.String"/>
<Parameter Name="Personnel" DataType="System.String"/>
<Parameter Name="Contents" DataType="System.String"/>
<Parameter Name="Problems" DataType="System.String"/>
<Parameter Name="Recorder" DataType="System.String"/>
<Parameter Name="RecordDate" DataType="System.String"/>
<Parameter Name="Reviewer" DataType="System.String"/>
<Parameter Name="ReviewDate" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" Guides="0,624.24,179.73,104.04,387.81,501.3,75.69,122.94,283.77,113.49,623.8,311.9">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="905.03" Guides="0,905.03,103.11,24.92,53.27,78.19,137.48,34.37,171.85,206.22,382.34,176.12,407.26,725.13,317.87,750.05,154.98">
<TableObject Name="Table1" Width="624.24" Height="905.03" Border.Lines="Bottom">
@ -23,7 +37,7 @@
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell9" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell10" Border.Lines="Left, Right" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell10" Border.Lines="Left, Right" Text="[ProjectName]" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell57" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="24.92">
@ -36,31 +50,31 @@
</TableRow>
<TableRow Name="Row4" Height="34.37">
<TableCell Name="Cell16" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell19" Border.Lines="All" Text="专业" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell20" Border.Lines="All" Text="[Professional]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell59" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="34.37">
<TableCell Name="Cell21" Border.Lines="All" Text="主持人" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell22" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[Host]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="All" Text="核查时间" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell25" Border.Lines="All" Text="[VerificationDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell60" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="34.37">
<TableCell Name="Cell26" Border.Lines="All" Text="施工图号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell27" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell27" Border.Lines="All" Text="[ConDrawingCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell28" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell29" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell30" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="176.12">
<TableCell Name="Cell31" Border.Lines="All" Text="参加核查&#13;&#10;人 员" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell31" Border.Lines="All" Text="参加核查&#13;&#10;人 员" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="[Personnel]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="5"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -75,7 +89,7 @@
<TableCell Name="Cell63" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="317.87">
<TableCell Name="Cell41" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell41" Border.Lines="Left, Right, Bottom" Text="[Contents]" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell42" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -91,7 +105,7 @@
<TableCell Name="Cell65" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="154.98">
<TableCell Name="Cell51" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell51" Border.Lines="Left, Right, Bottom" Text="[Problems]" Font="楷体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell52" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell54" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
@ -105,12 +119,12 @@
<TableColumn Name="Column7" Width="311.9"/>
<TableColumn Name="Column8" Width="311.9"/>
<TableRow Name="Row12" Height="33.09">
<TableCell Name="Cell67" Border.Lines="Right, Top" Text="记录人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="Left, Top" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="Right, Top" Text="记录人:[Recorder]" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="Left, Top" Text="审核人:[Reviewer]" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row13" Height="33.09">
<TableCell Name="Cell72" Border.Lines="Right" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell73" Border.Lines="Left" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="Right" Text="日期:[RecordDate]" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell73" Border.Lines="Left" Text="日期:[ReviewDate]" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageFooterBand>

View File

@ -1245,6 +1245,8 @@
<Content Include="JGZL\AcceptanceCertificateEdit.aspx" />
<Content Include="JGZL\CommencementReport.aspx" />
<Content Include="JGZL\CommencementReportEdit.aspx" />
<Content Include="JGZL\ConDrawingVerification.aspx" />
<Content Include="JGZL\ConDrawingVerificationEidt.aspx" />
<Content Include="JGZL\Contact.aspx" />
<Content Include="JGZL\ContactEdit.aspx" />
<Content Include="JGZL\HandoverCertificate.aspx" />
@ -6556,6 +6558,20 @@
<Compile Include="JGZL\CommencementReportEdit.aspx.designer.cs">
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\ConDrawingVerification.aspx.cs">
<DependentUpon>ConDrawingVerification.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\ConDrawingVerification.aspx.designer.cs">
<DependentUpon>ConDrawingVerification.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\ConDrawingVerificationEidt.aspx.cs">
<DependentUpon>ConDrawingVerificationEidt.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\ConDrawingVerificationEidt.aspx.designer.cs">
<DependentUpon>ConDrawingVerificationEidt.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\Contact.aspx.cs">
<DependentUpon>Contact.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -0,0 +1,136 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConDrawingVerification.aspx.cs" Inherits="FineUIPro.Web.JGZL.ConDrawingVerification" %>
<!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>施工图核查记录</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="施工图核查记录" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="施工图核查记录" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="施工图核查记录"
TitleToolTip="施工图核查记录" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnPrint" Text="施工图核查记录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="施工图核查记录" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ConDrawingVerificationId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ConDrawingVerificationId" AllowSorting="true"
SortField="VerificationDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="专业" ColumnID="Professional" DataField="Professional" SortField="Professional"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
</f:RenderField>
<f:RenderField HeaderText="主持人" ColumnID="Host" DataField="Host" SortField="Host"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
</f:RenderField>
<f:RenderField HeaderText="核查时间" ColumnID="VerificationDate" DataField="VerificationDate" SortField="VerificationDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="施工图号" ColumnID="ConDrawingCode" DataField="ConDrawingCode" SortField="ConDrawingCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="内容记录" ColumnID="Contents" DataField="Contents" SortField="Contents"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField HeaderText="记录人" ColumnID="Recorder" DataField="Recorder" SortField="Recorder"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="记录时间" ColumnID="RecordDate" DataField="RecordDate" SortField="RecordDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="审核人" ColumnID="Reviewer" DataField="Reviewer" SortField="Reviewer"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="审核时间" ColumnID="ReviewDate" DataField="ReviewDate" SortField="ReviewDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</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:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="施工图核查记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1100px" Height="620px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印施工图核查记录" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</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>

View File

@ -0,0 +1,391 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace FineUIPro.Web.JGZL
{
public partial class ConDrawingVerification :PageBase
{
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
this.InitTreeMenu();//加载树
}
}
#endregion
#region
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode = new TreeNode();
rootNode.Text = "项目";
rootNode.ToolTip = "项目";
rootNode.NodeID = "0";
rootNode.Expanded = true;
this.tvControlItem.Nodes.Add(rootNode);
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
{
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
}
foreach (var item in projects)
{
TreeNode rootProjectNode = new TreeNode();//定义根节点
rootProjectNode.Text = item.ProjectCode;
rootProjectNode.NodeID = item.ProjectId;
rootProjectNode.EnableClickEvent = true;
rootProjectNode.Expanded = true;
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
}
}
#endregion
#region TreeView
/// <summary>
/// 点击TreeView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
{
if (this.tvControlItem.SelectedNodeID != "0")
{
this.BindGrid();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
string strSql = @"SELECT * from JGZL_ConDrawingVerification where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
}
//else
//{
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
//}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
#region
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
#endregion
#region
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#endregion
#region
///<summary>
///查询
///</summary>
///<param name="sender"></param>
///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.InitTreeMenu();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e)
{
string projectId = this.tvControlItem.SelectedNodeID;
if (projectId != null)
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
var report = BLL.ConDrawingVerificationService.GetConDrawingVerificationById(this.Grid1.SelectedRowID);
if (report != null)
{
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("DesignUnit", report.DesignUnit);
keyValuePairs.Add("Professional", report.Professional);
keyValuePairs.Add("Host", report.Host);
keyValuePairs.Add("VerificationDate", report.VerificationDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.VerificationDate) : "");
keyValuePairs.Add("ConDrawingCode", report.ConDrawingCode);
keyValuePairs.Add("Personnel", report.Personnel);
keyValuePairs.Add("Contents", report.Contents);
keyValuePairs.Add("Problems", report.Problems);
keyValuePairs.Add("Recorder", report.Recorder);
keyValuePairs.Add("RecordDate", report.RecordDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.RecordDate) : "");
keyValuePairs.Add("Reviewer", report.Reviewer);
keyValuePairs.Add("ReviewDate", report.ReviewDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.ReviewDate) : "");
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
}
initTemplatePath = "File\\Fastreport\\JGZL\\施工图核查记录.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
else
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
/// <summary>
/// 双击编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConDrawingVerificationMenuId, BLL.Const.BtnModify))
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?conDrawingVerificationId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
}
else
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
else
{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 右键编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuEdit_Click(object sender, EventArgs e)
{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ConDrawingVerificationMenuId, BLL.Const.BtnModify))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ConDrawingVerificationEidt.aspx?conDrawingVerificationId={0}", Grid1.SelectedRowID, "维护 - ")));
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 右键删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConDrawingVerificationMenuId, Const.BtnDelete))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
bool isShow = true;
if (Grid1.SelectedRowIndexArray.Length > 1)
{
isShow = false;
}
bool isDelete = false;
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (judgementDelete(rowID, isShow))
{
isDelete = true;
BLL.ConDrawingVerificationService.DeleteConDrawingVerificationById(rowID);
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除施工图核查记录");
}
}
if (isDelete)
{
ShowNotify("删除成功!", MessageBoxIcon.Success);
}
this.BindGrid();
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
#region
/// <summary>
/// 判断是否可以删除
/// </summary>
/// <returns></returns>
private bool judgementDelete(string id, bool isShow)
{
string content = string.Empty;
if (string.IsNullOrEmpty(content))
{
return true;
}
else
{
if (isShow)
{
Alert.ShowInTop(content, MessageBoxIcon.Error);
}
return false;
}
}
#endregion
#endregion
#region
/// <summary>
/// 关闭弹出窗口
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
this.InitTreeMenu();//加载树
this.BindGrid();
}
#endregion
}
}

View File

@ -0,0 +1,206 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class ConDrawingVerification
{
/// <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>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// drpProjectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// tvControlItem 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvControlItem;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAdd;
/// <summary>
/// btnPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <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>
/// WindowPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowPrint;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
}
}

View File

@ -0,0 +1,75 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConDrawingVerificationEidt.aspx.cs" Inherits="FineUIPro.Web.JGZL.ConDrawingVerificationEidt" %>
<!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>编辑施工图核查记录</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
<f:TextBox ID="txtProfessional" runat="server" Label="专业" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHost" runat="server" Label="主持人" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
<f:DatePicker ID="txtVerificationDate" runat="server" Label="核查时间" LabelAlign="Right" LabelWidth="110px" Required="true" ShowRedStar="true"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtConDrawingCode" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="110px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtPersonnel" runat="server" Label="参加核查人员" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtContents" runat="server" Label="内容记录" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtProblems" runat="server" Label="问题情况" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRecorder" runat="server" Label="记录人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
<f:DatePicker ID="txtRecordDate" runat="server" Label="记录时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
<f:DatePicker ID="txtReviewDate" runat="server" Label="审核时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,133 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JGZL
{
public partial class ConDrawingVerificationEidt : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
private string ConDrawingVerificationId
{
get
{
return (string)ViewState["ConDrawingVerificationId"];
}
set
{
ViewState["ConDrawingVerificationId"] = value;
}
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ProjectId = Request.Params["projectId"];
this.ConDrawingVerificationId = Request.Params["conDrawingVerificationId"];
if (!string.IsNullOrEmpty(this.ConDrawingVerificationId))
{
var report = BLL.ConDrawingVerificationService.GetConDrawingVerificationById(this.ConDrawingVerificationId);
if (report != null)
{
this.txtDesignUnit.Text = report.DesignUnit;
this.txtProfessional.Text = report.Professional;
this.txtHost.Text = report.Host;
this.txtVerificationDate.Text = report.VerificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VerificationDate) : "";
this.txtConDrawingCode.Text = report.ConDrawingCode;
this.txtPersonnel.Text = report.Personnel;
this.txtContents.Text= report.Contents;
this.txtProblems.Text = report.Problems;
this.txtRecorder.Text = report.Recorder;
this.txtRecordDate.Text = report.RecordDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.RecordDate) : "";
this.txtReviewer.Text = report.Reviewer;
this.txtReviewDate.Text = report.ReviewDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReviewDate) : "";
}
}
else
{
this.txtVerificationDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtConDrawingCode.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
}
}
}
#endregion
#region
/// <summary>
/// 提交按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_ConDrawingVerificationMenuId, Const.BtnSave))
{
Model.JGZL_ConDrawingVerification newReport = new Model.JGZL_ConDrawingVerification();
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
newReport.Professional=this.txtProfessional.Text.Trim();
newReport.Host = this.txtHost.Text.Trim();
newReport.VerificationDate = Funs.GetNewDateTime(this.txtVerificationDate.Text);
newReport.ConDrawingCode = txtConDrawingCode.Text.Trim();
newReport.Personnel = this.txtPersonnel.Text;
newReport.Contents = this.txtContents.Text;
newReport.Problems = this.txtProblems.Text;
newReport.Recorder = this.txtRecorder.Text.Trim();
newReport.RecordDate = Funs.GetNewDateTime(this.txtRecordDate.Text.Trim());
newReport.Reviewer=this.txtReviewer.Text.Trim();
newReport.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text.Trim());
if (!string.IsNullOrEmpty(this.ConDrawingVerificationId))
{
newReport.ConDrawingVerificationId = this.ConDrawingVerificationId;
BLL.ConDrawingVerificationService.UpdateConDrawingVerification(newReport);
}
else
{
newReport.ProjectId = this.ProjectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
newReport.ConDrawingVerificationId = SQLHelper.GetNewID(typeof(Model.JGZL_ConDrawingVerification));
this.ConDrawingVerificationId = newReport.ConDrawingVerificationId;
BLL.ConDrawingVerificationService.AddConDrawingVerification(newReport);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
#endregion
}
}

View File

@ -0,0 +1,179 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class ConDrawingVerificationEidt
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// txtDesignUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignUnit;
/// <summary>
/// txtProfessional 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProfessional;
/// <summary>
/// txtHost 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHost;
/// <summary>
/// txtVerificationDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtVerificationDate;
/// <summary>
/// txtConDrawingCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConDrawingCode;
/// <summary>
/// txtPersonnel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtPersonnel;
/// <summary>
/// txtContents 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtContents;
/// <summary>
/// txtProblems 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtProblems;
/// <summary>
/// txtRecorder 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRecorder;
/// <summary>
/// txtRecordDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtRecordDate;
/// <summary>
/// txtReviewer 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtReviewer;
/// <summary>
/// txtReviewDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtReviewDate;
}
}

View File

@ -11,7 +11,7 @@
<FineUIPro DebugMode="false" Theme="Cupertino"/>
<appSettings>
<!--连接字符串-->
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
<!--系统名称-->
<add key="SystemName" value="诺必达焊接管理系统"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>

View File

@ -377,6 +377,9 @@ namespace Model
partial void InsertJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void UpdateJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void DeleteJGZL_CommencementReport(JGZL_CommencementReport instance);
partial void InsertJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
partial void UpdateJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
partial void DeleteJGZL_ConDrawingVerification(JGZL_ConDrawingVerification instance);
partial void InsertJGZL_Contact(JGZL_Contact instance);
partial void UpdateJGZL_Contact(JGZL_Contact instance);
partial void DeleteJGZL_Contact(JGZL_Contact instance);
@ -1755,6 +1758,14 @@ namespace Model
}
}
public System.Data.Linq.Table<JGZL_ConDrawingVerification> JGZL_ConDrawingVerification
{
get
{
return this.GetTable<JGZL_ConDrawingVerification>();
}
}
public System.Data.Linq.Table<JGZL_Contact> JGZL_Contact
{
get
@ -4356,6 +4367,8 @@ namespace Model
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
private EntitySet<JGZL_ConDrawingVerification> _JGZL_ConDrawingVerification;
private EntitySet<JGZL_Contact> _JGZL_Contact;
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
@ -4486,6 +4499,7 @@ namespace Model
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet<JGZL_AcceptanceCertificate>(new Action<JGZL_AcceptanceCertificate>(this.attach_JGZL_AcceptanceCertificate), new Action<JGZL_AcceptanceCertificate>(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
this._JGZL_ConDrawingVerification = new EntitySet<JGZL_ConDrawingVerification>(new Action<JGZL_ConDrawingVerification>(this.attach_JGZL_ConDrawingVerification), new Action<JGZL_ConDrawingVerification>(this.detach_JGZL_ConDrawingVerification));
this._JGZL_Contact = new EntitySet<JGZL_Contact>(new Action<JGZL_Contact>(this.attach_JGZL_Contact), new Action<JGZL_Contact>(this.detach_JGZL_Contact));
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
this._Project_Installation = new EntitySet<Project_Installation>(new Action<Project_Installation>(this.attach_Project_Installation), new Action<Project_Installation>(this.detach_Project_Installation));
@ -5581,6 +5595,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Base_Project", Storage="_JGZL_ConDrawingVerification", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_ConDrawingVerification> JGZL_ConDrawingVerification
{
get
{
return this._JGZL_ConDrawingVerification;
}
set
{
this._JGZL_ConDrawingVerification.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_Contact_Base_Project", Storage="_JGZL_Contact", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_Contact> JGZL_Contact
{
@ -6289,6 +6316,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_JGZL_Contact(JGZL_Contact entity)
{
this.SendPropertyChanging();
@ -80093,6 +80132,510 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_ConDrawingVerification")]
public partial class JGZL_ConDrawingVerification : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ConDrawingVerificationId;
private string _ProjectId;
private string _DesignUnit;
private string _Professional;
private string _Host;
private System.Nullable<System.DateTime> _VerificationDate;
private string _ConDrawingCode;
private string _Personnel;
private string _Contents;
private string _Problems;
private string _Recorder;
private System.Nullable<System.DateTime> _RecordDate;
private string _Reviewer;
private System.Nullable<System.DateTime> _ReviewDate;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Sys_User> _Sys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnConDrawingVerificationIdChanging(string value);
partial void OnConDrawingVerificationIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnDesignUnitChanging(string value);
partial void OnDesignUnitChanged();
partial void OnProfessionalChanging(string value);
partial void OnProfessionalChanged();
partial void OnHostChanging(string value);
partial void OnHostChanged();
partial void OnVerificationDateChanging(System.Nullable<System.DateTime> value);
partial void OnVerificationDateChanged();
partial void OnConDrawingCodeChanging(string value);
partial void OnConDrawingCodeChanged();
partial void OnPersonnelChanging(string value);
partial void OnPersonnelChanged();
partial void OnContentsChanging(string value);
partial void OnContentsChanged();
partial void OnProblemsChanging(string value);
partial void OnProblemsChanged();
partial void OnRecorderChanging(string value);
partial void OnRecorderChanged();
partial void OnRecordDateChanging(System.Nullable<System.DateTime> value);
partial void OnRecordDateChanged();
partial void OnReviewerChanging(string value);
partial void OnReviewerChanged();
partial void OnReviewDateChanging(System.Nullable<System.DateTime> value);
partial void OnReviewDateChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public JGZL_ConDrawingVerification()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConDrawingVerificationId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ConDrawingVerificationId
{
get
{
return this._ConDrawingVerificationId;
}
set
{
if ((this._ConDrawingVerificationId != value))
{
this.OnConDrawingVerificationIdChanging(value);
this.SendPropertyChanging();
this._ConDrawingVerificationId = value;
this.SendPropertyChanged("ConDrawingVerificationId");
this.OnConDrawingVerificationIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)")]
public string DesignUnit
{
get
{
return this._DesignUnit;
}
set
{
if ((this._DesignUnit != value))
{
this.OnDesignUnitChanging(value);
this.SendPropertyChanging();
this._DesignUnit = value;
this.SendPropertyChanged("DesignUnit");
this.OnDesignUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Professional", DbType="NVarChar(50)")]
public string Professional
{
get
{
return this._Professional;
}
set
{
if ((this._Professional != value))
{
this.OnProfessionalChanging(value);
this.SendPropertyChanging();
this._Professional = value;
this.SendPropertyChanged("Professional");
this.OnProfessionalChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Host", DbType="NVarChar(50)")]
public string Host
{
get
{
return this._Host;
}
set
{
if ((this._Host != value))
{
this.OnHostChanging(value);
this.SendPropertyChanging();
this._Host = value;
this.SendPropertyChanged("Host");
this.OnHostChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VerificationDate", DbType="DateTime")]
public System.Nullable<System.DateTime> VerificationDate
{
get
{
return this._VerificationDate;
}
set
{
if ((this._VerificationDate != value))
{
this.OnVerificationDateChanging(value);
this.SendPropertyChanging();
this._VerificationDate = value;
this.SendPropertyChanged("VerificationDate");
this.OnVerificationDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConDrawingCode", DbType="NVarChar(50)")]
public string ConDrawingCode
{
get
{
return this._ConDrawingCode;
}
set
{
if ((this._ConDrawingCode != value))
{
this.OnConDrawingCodeChanging(value);
this.SendPropertyChanging();
this._ConDrawingCode = value;
this.SendPropertyChanged("ConDrawingCode");
this.OnConDrawingCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Personnel", DbType="NVarChar(2000)")]
public string Personnel
{
get
{
return this._Personnel;
}
set
{
if ((this._Personnel != value))
{
this.OnPersonnelChanging(value);
this.SendPropertyChanging();
this._Personnel = value;
this.SendPropertyChanged("Personnel");
this.OnPersonnelChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contents", DbType="NVarChar(2000)")]
public string Contents
{
get
{
return this._Contents;
}
set
{
if ((this._Contents != value))
{
this.OnContentsChanging(value);
this.SendPropertyChanging();
this._Contents = value;
this.SendPropertyChanged("Contents");
this.OnContentsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Problems", DbType="NVarChar(2000)")]
public string Problems
{
get
{
return this._Problems;
}
set
{
if ((this._Problems != value))
{
this.OnProblemsChanging(value);
this.SendPropertyChanging();
this._Problems = value;
this.SendPropertyChanged("Problems");
this.OnProblemsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recorder", DbType="NVarChar(50)")]
public string Recorder
{
get
{
return this._Recorder;
}
set
{
if ((this._Recorder != value))
{
this.OnRecorderChanging(value);
this.SendPropertyChanging();
this._Recorder = value;
this.SendPropertyChanged("Recorder");
this.OnRecorderChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordDate", DbType="DateTime")]
public System.Nullable<System.DateTime> RecordDate
{
get
{
return this._RecordDate;
}
set
{
if ((this._RecordDate != value))
{
this.OnRecordDateChanging(value);
this.SendPropertyChanging();
this._RecordDate = value;
this.SendPropertyChanged("RecordDate");
this.OnRecordDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
public string Reviewer
{
get
{
return this._Reviewer;
}
set
{
if ((this._Reviewer != value))
{
this.OnReviewerChanging(value);
this.SendPropertyChanging();
this._Reviewer = value;
this.SendPropertyChanged("Reviewer");
this.OnReviewerChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewDate", DbType="DateTime")]
public System.Nullable<System.DateTime> ReviewDate
{
get
{
return this._ReviewDate;
}
set
{
if ((this._ReviewDate != value))
{
this.OnReviewDateChanging(value);
this.SendPropertyChanging();
this._ReviewDate = value;
this.SendPropertyChanged("ReviewDate");
this.OnReviewDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.JGZL_ConDrawingVerification.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.JGZL_ConDrawingVerification.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
get
{
return this._Sys_User.Entity;
}
set
{
Sys_User previousValue = this._Sys_User.Entity;
if (((previousValue != value)
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Sys_User.Entity = null;
previousValue.JGZL_ConDrawingVerification.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.JGZL_ConDrawingVerification.Add(this);
this._CompileMan = value.UserId;
}
else
{
this._CompileMan = default(string);
}
this.SendPropertyChanged("Sys_User");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_Contact")]
public partial class JGZL_Contact : INotifyPropertyChanging, INotifyPropertyChanged
{
@ -102434,6 +102977,8 @@ namespace Model
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
private EntitySet<JGZL_ConDrawingVerification> _JGZL_ConDrawingVerification;
private EntitySet<JGZL_Contact> _JGZL_Contact;
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
@ -102521,6 +103066,7 @@ namespace Model
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
this._JGZL_AcceptanceCertificate = new EntitySet<JGZL_AcceptanceCertificate>(new Action<JGZL_AcceptanceCertificate>(this.attach_JGZL_AcceptanceCertificate), new Action<JGZL_AcceptanceCertificate>(this.detach_JGZL_AcceptanceCertificate));
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
this._JGZL_ConDrawingVerification = new EntitySet<JGZL_ConDrawingVerification>(new Action<JGZL_ConDrawingVerification>(this.attach_JGZL_ConDrawingVerification), new Action<JGZL_ConDrawingVerification>(this.detach_JGZL_ConDrawingVerification));
this._JGZL_Contact = new EntitySet<JGZL_Contact>(new Action<JGZL_Contact>(this.attach_JGZL_Contact), new Action<JGZL_Contact>(this.detach_JGZL_Contact));
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
this._Project_User = new EntitySet<Project_User>(new Action<Project_User>(this.attach_Project_User), new Action<Project_User>(this.detach_Project_User));
@ -103187,6 +103733,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ConDrawingVerification_Sys_User", Storage="_JGZL_ConDrawingVerification", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<JGZL_ConDrawingVerification> JGZL_ConDrawingVerification
{
get
{
return this._JGZL_ConDrawingVerification;
}
set
{
this._JGZL_ConDrawingVerification.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_Contact_Sys_User", Storage="_JGZL_Contact", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<JGZL_Contact> JGZL_Contact
{
@ -103604,6 +104163,18 @@ namespace Model
entity.Sys_User = null;
}
private void attach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_JGZL_ConDrawingVerification(JGZL_ConDrawingVerification entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_JGZL_Contact(JGZL_Contact entity)
{
this.SendPropertyChanging();