diff --git a/DataBase/版本日志/HJGLDB_DS_2026-04-02_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-04-02_bwj.sql new file mode 100644 index 0000000..1b0ed73 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-04-02_bwj.sql @@ -0,0 +1,166 @@ + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('98D86451-156A-46D2-B76B-48DA617EBCB6','֧/ܰװ¼','SYBData/SpringSupportHangBracket.aspx',180,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('12048A6D-4974-4896-B076-248E9B08ED52','98D86451-156A-46D2-B76B-48DA617EBCB6','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('C504891F-93AF-4015-B61F-B39E4DB9EB6E','98D86451-156A-46D2-B76B-48DA617EBCB6','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('2EA4861B-7D5F-46ED-B029-7E864D1AF244','98D86451-156A-46D2-B76B-48DA617EBCB6','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('A08E01FD-A765-4A31-93C0-070FFCC9FCF1','98D86451-156A-46D2-B76B-48DA617EBCB6','',4) +go + +CREATE TABLE [dbo].[SYBData_SpringSupportHangBracket]( + [SpringSupportHangBracketId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [PipelineCode] [nvarchar](50) NULL, + [PositionNum] [nvarchar](50) NULL, + [StructuralType] [nvarchar](50) NULL, + [DirectionOfDisplacement] [nvarchar](50) NULL, + [DesignLoadValue] [nvarchar](50) NULL, + [InstallationLoadValue] [nvarchar](50) NULL, + [CheckResults] [nvarchar](50) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_SYBData_SpringSupportHangBracket] PRIMARY KEY CLUSTERED +( + [SpringSupportHangBracketId] 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].[SYBData_SpringSupportHangBracket] WITH CHECK ADD CONSTRAINT [FK_SYBData_SpringSupportHangBracket_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[SYBData_SpringSupportHangBracket] CHECK CONSTRAINT [FK_SYBData_SpringSupportHangBracket_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'SpringSupportHangBracketId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @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'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'PipelineCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֧/λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'PositionNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ṹʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'StructuralType' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λƷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'DirectionOfDisplacement' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֵ̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'DesignLoadValue' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װֵ̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'InstallationLoadValue' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'CheckResults' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @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'SYBData_SpringSupportHangBracket' +GO + + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','/̶аװ¼','SYBData/SlidingFixed.aspx',190,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('02923C43-AA04-4B46-9AE4-5428A1C6A101','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('66D11CC8-C004-474D-BCB7-981008BACD80','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('05D2EAA4-6666-4B03-BBDB-DD529EC676BF','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('78F25AD6-162C-4CB8-B6EF-A10333A1CB18','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','',4) +go + + + +CREATE TABLE [dbo].[SYBData_SlidingFixed]( + [SlidingFixedId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [PipelineCode] [nvarchar](50) NULL, + [PipeSupportCode] [nvarchar](50) NULL, + [Types] [nvarchar](50) NULL, + [DirectionOfDisplacement] [nvarchar](50) NULL, + [DesignDisplacement] [nvarchar](50) NULL, + [InstallationDisplacement] [nvarchar](50) NULL, + [CheckResult] [nvarchar](50) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + CONSTRAINT [PK_SYBData_SlidingFixed] PRIMARY KEY CLUSTERED +( + [SlidingFixedId] 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].[SYBData_SlidingFixed] WITH CHECK ADD CONSTRAINT [FK_SYBData_SlidingFixed_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[SYBData_SlidingFixed] CHECK CONSTRAINT [FK_SYBData_SlidingFixed_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'SlidingFixedId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @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'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'PipelineCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'б' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'PipeSupportCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'Types' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λƷ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'DirectionOfDisplacement' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'DesignDisplacement' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'װλ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'InstallationDisplacement' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'CheckResult' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @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'SYBData_SlidingFixed', @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'SYBData_SlidingFixed' +GO + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('51877524-A99F-4FCB-BDD8-D5A4A4E670DA','ܵӵؼ¼','JGZL/ElectrostaticGrounding.aspx',210,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('BD134D94-A1BA-45FA-B1F9-57C7775982A7','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('4A28BAF2-ECB9-4A2F-B6EC-9F2110DDC469','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('13FEFCA3-C7D0-44A2-A436-EE81AD32639E','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('555F3662-25FF-4D46-A3A8-39B43834D174','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','',4) +go + + + diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index 49ae2ab..7d198dd 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -303,6 +303,8 @@ + + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index 0c5ef0c..b23bbe4 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1947,6 +1947,16 @@ namespace BLL /// 管道系统试压临时盲板安装、拆除记录 /// public const string SYBData_BlindFlangeInstallationAndRemovalMenuId = "9C0906E0-8619-4571-A0A6-020CAA4B55AF"; + + /// + /// 弹簧支/吊架安装检验记录 + /// + public const string SYBData_SpringSupportHangBracketMenuId = "98D86451-156A-46D2-B76B-48DA617EBCB6"; + + /// + /// 滑动/固定管托安装检验记录 + /// + public const string SYBData_SlidingFixedMenuId = "C6D77E52-89F0-4A2F-ABC5-5EB010A486B9"; #endregion #region 报表对应ID diff --git a/HJGL_DS/BLL/SYBData/SlidingFixedService.cs b/HJGL_DS/BLL/SYBData/SlidingFixedService.cs new file mode 100644 index 0000000..d300190 --- /dev/null +++ b/HJGL_DS/BLL/SYBData/SlidingFixedService.cs @@ -0,0 +1,40 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 滑动/固定管托安装检验记录 + /// + public class SlidingFixedService + { + /// + /// 根据项目id获取滑动/固定管托安装检验记录 + /// + /// + /// + public static List GetListsByProjectId(string projectId) + { + return (from x in Funs.DB.SYBData_SlidingFixed where x.ProjectId == projectId select x).ToList(); + } + + /// + /// 根据项目id删除滑动/固定管托安装检验记录 + /// + /// + public static void DeleteSlidingFixedByProjectId(string projectId) + { + SGGLDB db = Funs.DB; + var q = (from x in db.SYBData_SlidingFixed where x.ProjectId == projectId select x).ToList(); + if (q.Count > 0) + { + db.SYBData_SlidingFixed.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/BLL/SYBData/SpringSupportHangBracketService.cs b/HJGL_DS/BLL/SYBData/SpringSupportHangBracketService.cs new file mode 100644 index 0000000..f6a9c51 --- /dev/null +++ b/HJGL_DS/BLL/SYBData/SpringSupportHangBracketService.cs @@ -0,0 +1,63 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 弹簧支/吊架安装检验记录 + /// + public class SpringSupportHangBracketService + { + /// + /// 根据项目Id获取弹簧支/吊架安装检验记录 + /// + /// + /// + public static List GetListByProjectId(string projectId) + { + return (from x in Funs.DB.SYBData_SpringSupportHangBracket where x.ProjectId == projectId select x).ToList(); + } + + /// + /// 添加弹簧支/吊架安装检验记录 + /// + /// + public static void AddSpringSupportHangBracket(Model.SYBData_SpringSupportHangBracket data) + { + SGGLDB db = Funs.DB; + Model.SYBData_SpringSupportHangBracket newData = new SYBData_SpringSupportHangBracket(); + newData.SpringSupportHangBracketId = data.SpringSupportHangBracketId; + newData.ProjectId = data.ProjectId; + newData.PipelineCode = data.PipelineCode; + newData.PositionNum = data.PositionNum; + newData.StructuralType = data.StructuralType; + newData.DirectionOfDisplacement = data.DirectionOfDisplacement; + newData.DesignLoadValue = data.DesignLoadValue; + newData.InstallationLoadValue = data.InstallationLoadValue; + newData.CheckResults = data.CheckResults; + newData.CompileMan = data.CompileMan; + newData.CompileDate = data.CompileDate; + db.SYBData_SpringSupportHangBracket.InsertOnSubmit(newData); + db.SubmitChanges(); + } + + /// + /// 根据项目Id删除弹簧支/吊架安装检验记录 + /// + /// + public static void DeleteSpringSupportHangBracketByProjectId(string projectId) + { + SGGLDB db = Funs.DB; + var q = (from x in db.SYBData_SpringSupportHangBracket where x.ProjectId == projectId select x).ToList(); + if (q.Count > 0) + { + db.SYBData_SpringSupportHangBracket.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/弹簧支吊架安装检验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/弹簧支吊架安装检验记录.frx new file mode 100644 index 0000000..3bb277e --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/弹簧支吊架安装检验记录.frx @@ -0,0 +1,178 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table3_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table3.PrintRow(0); + Table3.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/滑动固定管托安装检验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/滑动固定管托安装检验记录.frx new file mode 100644 index 0000000..43ac5a7 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/滑动固定管托安装检验记录.frx @@ -0,0 +1,183 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table3_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table3.PrintRow(0); + Table3.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/管道系统试压临时盲板安装、拆除记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/管道系统试压临时盲板安装、拆除记录.frx index fb6e3a1..2e76fdc 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/管道系统试压临时盲板安装、拆除记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/管道系统试压临时盲板安装、拆除记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -53,7 +53,6 @@ namespace FastReport - diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index fc51960..cb2b0aa 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1366,6 +1366,8 @@ + + @@ -7277,6 +7279,20 @@ RTProportionConfirmation.aspx + + SlidingFixed.aspx + ASPXCodeBehind + + + SlidingFixed.aspx + + + SpringSupportHangBracket.aspx + ASPXCodeBehind + + + SpringSupportHangBracket.aspx + SYBDataList.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index 6e29203..e3436b8 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ true - Debug|Any CPU + Release|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx index 1a612c3..81ddade 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx @@ -159,13 +159,13 @@ EnableColumnLines="true" ClicksToEdit="2" DataIDField="JOT_ID" AllowSorting="true" SortField="JOTY_Group,Sort1,Sort2,Sort3,Sort4,Sort5" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand" - EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" EnableCheckBoxSelect="true" KeepCurrentSelection="true" - OnRowDoubleClick="Grid1_RowDoubleClick" OnRowDataBound="Grid1_RowDataBound"> + EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" + OnRowDoubleClick="Grid1_RowDoubleClick" OnRowDataBound="Grid1_RowDataBound" > <%----%> - <%----%> + columns = column.Split(',').ToList(); foreach (var item in columns) @@ -1089,7 +1091,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var joint = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(id); if (!string.IsNullOrEmpty(joint.DReportID)) { - content = "焊口"+joint.JOT_JointNo+"已提交焊接记录,不能删除!"; + content = "焊口" + joint.JOT_JointNo + "已提交焊接记录,不能删除!"; } var batchDetail = BLL.HJGL_BO_BatchDetailService.GetBatchDetailByJotId(id); if (batchDetail != null) @@ -1097,7 +1099,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var batch = BLL.HJGL_BO_BatchService.GetBatchById(batchDetail.BatchId); if (batch.BatchIsClosed == true) { - content = "焊口"+ joint.JOT_JointNo + "所在批已关闭,不能删除!"; + content = "焊口" + joint.JOT_JointNo + "所在批已关闭,不能删除!"; } } return content; @@ -1319,7 +1321,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage #endregion /// - /// 批量增加焊口信息 + /// 批量删除焊口信息 /// /// /// @@ -1327,21 +1329,27 @@ namespace FineUIPro.Web.HJGL.WeldingManage { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnDelete)) { - if (Grid1.SelectedRowIndexArray.Length == 0) + // 第一次点击:只打开复选框 + if (this.Grid1.Columns[0].Hidden) { - Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + this.Grid1.Columns[0].Hidden = false; + this.BindGrid(); + return; + } + if (list.Count == 0) + { + Alert.ShowInTop("请勾选一条记录!", MessageBoxIcon.Warning); return; } - bool isShow = true; - if (Grid1.SelectedRowIndexArray.Length > 1) + if (list.Count > 1) { isShow = false; } string err = string.Empty; - foreach (int rowIndex in Grid1.SelectedRowIndexArray) + for (int i = 0; i < list.Count; i++) { - string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + string rowID = list[i]; string content = judgementDelete(rowID, isShow); if (string.IsNullOrEmpty(content)) { @@ -1371,6 +1379,54 @@ namespace FineUIPro.Web.HJGL.WeldingManage err += content; } } + + //if (Grid1.SelectedRowIndexArray.Length == 0) + //{ + // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + // return; + //} + //bool isShow = true; + //if (Grid1.SelectedRowIndexArray.Length > 1) + //{ + // isShow = false; + //} + //string err = string.Empty; + //foreach (int rowIndex in Grid1.SelectedRowIndexArray) + //{ + // string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + // string content = judgementDelete(rowID, isShow); + // if (string.IsNullOrEmpty(content)) + // { + // Model.SGGLDB db = Funs.DB; + // var hotProessTrustItem = db.HJGL_CH_HotProessTrustItem.FirstOrDefault(x => x.JOT_ID == rowID); + // if (hotProessTrustItem != null) + // { + // db.HJGL_CH_HotProessTrustItem.DeleteOnSubmit(hotProessTrustItem); + // } + // var hotProessItem = db.HJGL_HotProessItem.FirstOrDefault(x => x.JOT_ID == rowID); + // if (hotProessItem != null) + // { + // db.HJGL_HotProessItem.DeleteOnSubmit(hotProessItem); + // } + // var hotProessResult = db.HJGL_CH_HotProessResult.FirstOrDefault(x => x.JOT_ID == rowID); + // if (hotProessResult != null) + // { + // db.HJGL_CH_HotProessResult.DeleteOnSubmit(hotProessResult); + // } + // db.SubmitChanges(); + // BLL.HJGL_BO_BatchDetailService.DeleteBatchDetail(rowID); //删除批明细 + // BLL.HJGL_PW_JointInfoService.DeleteJointInfo(rowID); + // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊口信息"); + // } + // else + // { + // err += content; + // } + //} + // 删除完成后,恢复按钮状态 + this.Grid1.Columns[0].Hidden = true; + list.Clear(); + if (string.IsNullOrEmpty(err)) { Alert.ShowInTop("删除成功!", MessageBoxIcon.Success); @@ -1379,6 +1435,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { Alert.ShowInTop(err, MessageBoxIcon.Warning); } + this.BindGrid(); } else diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoShowColumn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoShowColumn.aspx.cs index 8d71f24..55e111e 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoShowColumn.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoShowColumn.aspx.cs @@ -17,44 +17,44 @@ namespace FineUIPro.Web.HJGL.WeldingManage if (!IsPostBack) { ListItem[] list = new ListItem[36]; - list[0] = new ListItem("焊口属性", "1"); - list[1] = new ListItem("是否焊接", "2"); - list[2] = new ListItem("材质", "3"); - list[3] = new ListItem("焊口规格", "4"); - list[4] = new ListItem("焊缝类型", "5"); - list[5] = new ListItem("坡口类型", "6"); - list[6] = new ListItem("焊接方法", "7"); - list[7] = new ListItem("焊丝代号", "8"); - list[8] = new ListItem("焊条代号", "9"); - list[9] = new ListItem("是否热处理", "10"); - list[10] = new ListItem("热处理类型", "11"); - list[11] = new ListItem("焊口状态", "12"); - list[12] = new ListItem("焊接日期", "13"); - list[13] = new ListItem("焊接日报号", "14"); - list[14] = new ListItem("盖面焊工", "15"); - list[15] = new ListItem("打底焊工", "16"); - list[16] = new ListItem("组件1号", "17"); - list[17] = new ListItem("组件2号", "18"); - list[18] = new ListItem("外径", "19"); - list[19] = new ListItem("尺寸", "20"); - list[20] = new ListItem("壁厚", "21"); - list[21] = new ListItem("焊接区域", "22"); - list[22] = new ListItem("完成寸径", "23"); - list[23] = new ListItem("点口日期", "24"); - list[24] = new ListItem("热处理日期", "25"); - list[25] = new ListItem("批次号", "26"); + list[0] = new ListItem("焊口属性", "2"); + list[1] = new ListItem("是否焊接", "3"); + list[2] = new ListItem("材质", "4"); + list[3] = new ListItem("焊口规格", "5"); + list[4] = new ListItem("焊缝类型", "6"); + list[5] = new ListItem("坡口类型", "7"); + list[6] = new ListItem("焊接方法", "8"); + list[7] = new ListItem("焊丝代号", "9"); + list[8] = new ListItem("焊条代号", "10"); + list[9] = new ListItem("是否热处理", "11"); + list[10] = new ListItem("热处理类型", "12"); + list[11] = new ListItem("焊口状态", "13"); + list[12] = new ListItem("焊接日期", "14"); + list[13] = new ListItem("焊接日报号", "15"); + list[14] = new ListItem("盖面焊工", "16"); + list[15] = new ListItem("打底焊工", "17"); + list[16] = new ListItem("组件1号", "18"); + list[17] = new ListItem("组件2号", "19"); + list[18] = new ListItem("外径", "20"); + list[19] = new ListItem("尺寸", "21"); + list[20] = new ListItem("壁厚", "22"); + list[21] = new ListItem("焊接区域", "23"); + list[22] = new ListItem("完成寸径", "24"); + list[23] = new ListItem("点口日期", "25"); + list[24] = new ListItem("热处理日期", "26"); + list[25] = new ListItem("批次号", "27"); - list[26] = new ListItem("预热温度", "27"); - list[27] = new ListItem("层间温度", "28"); - list[28] = new ListItem("后热温度", "29"); - list[29] = new ListItem("备注", "30"); + list[26] = new ListItem("预热温度", "28"); + list[27] = new ListItem("层间温度", "29"); + list[28] = new ListItem("后热温度", "30"); + list[29] = new ListItem("备注", "31"); - list[30] = new ListItem("外检日期", "31"); - list[31] = new ListItem("外检结果", "32"); - list[32] = new ListItem("外检人员", "33"); - list[33] = new ListItem("焊接电流", "34"); - list[34] = new ListItem("焊接电压", "35"); - list[35] = new ListItem("是否特殊", "36"); + list[30] = new ListItem("外检日期", "32"); + list[31] = new ListItem("外检结果", "33"); + list[32] = new ListItem("外检人员", "34"); + list[33] = new ListItem("焊接电流", "35"); + list[34] = new ListItem("焊接电压", "36"); + list[35] = new ListItem("是否特殊", "37"); this.cblColumn.DataSource = list; this.cblColumn.DataBind(); diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx new file mode 100644 index 0000000..80b91f2 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx @@ -0,0 +1,132 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SlidingFixed.aspx.cs" Inherits="FineUIPro.Web.SYBData.SlidingFixed" %> + + + + + + + 滑动/固定管托安装检验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.cs b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.cs new file mode 100644 index 0000000..b99add0 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.cs @@ -0,0 +1,480 @@ +using BLL; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.SYBData +{ + public partial class SlidingFixed : PageBase + { + /// + /// 主键 + /// + private string SlidingFixedId + { + get { return (string)ViewState["SlidingFixedId"]; } + set { ViewState["SlidingFixedId"] = value; } + } + + /// + /// 项目Id + /// + private string ProjectId + { + get { return (string)ViewState["ProjectId"]; } + set { ViewState["ProjectId"] = value; } + } + + /// + /// 定义集合 + /// + private static List items = new List(); + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + 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.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + + //管线 + this.drpIsoNoS.DataTextField = "ISO_IsoNo"; + this.drpIsoNoS.DataValueField = "ISO_IsoNo"; + this.drpIsoNoS.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + this.drpIsoNoS.DataBind(); + + DataIsoInfo(); + } + } + + private void DataIsoInfo() + { + items.Clear(); + if (!string.IsNullOrEmpty(this.ProjectId)) + { + var reportLists = BLL.SlidingFixedService.GetListsByProjectId(this.ProjectId); + if (reportLists.Count > 0) + { + var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + foreach (var item in isoLists) + { + var iso = (from x in Funs.DB.SYBData_SlidingFixed where x.ProjectId == this.ProjectId && x.PipelineCode == item.ISO_IsoNo select x).FirstOrDefault(); + if (iso == null) + { + Model.SYBData_SlidingFixed newReport = new Model.SYBData_SlidingFixed(); + newReport.SlidingFixedId = SQLHelper.GetNewID(); + newReport.ProjectId = this.ProjectId; + newReport.PipelineCode = item.ISO_IsoNo; + reportLists.Add(newReport); + } + } + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null) + { + reportLists = reportLists.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList(); + } + this.Grid1.DataSource = reportLists; + this.Grid1.DataBind(); + } + else + { + var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + foreach (var iso in isoLists) + { + Model.SYBData_SlidingFixed newReport = new Model.SYBData_SlidingFixed(); + newReport.SlidingFixedId = SQLHelper.GetNewID(); + newReport.ProjectId = this.ProjectId; + newReport.PipelineCode = iso.ISO_IsoNo; + items.Add(newReport); + } + + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null) + { + items = items.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList(); + } + this.Grid1.DataSource = items; + this.Grid1.DataBind(); + } + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + 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 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 + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.ProjectId = this.tvControlItem.SelectedNodeID; + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string projectId = this.tvControlItem.SelectedNodeID; + string strSql = @"SELECT * from SYBData_SlidingFixed where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(projectId)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", projectId)); + } + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue)) + { + strSql += " AND PipelineCode like @PipelineCode"; + listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%")); + } + 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 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + this.InitTreeMenu(); + BindGrid(); + } + + /// + /// 查询 + /// + /// + /// + protected void txtPipeSectionNumberS_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from SYBData_SlidingFixed where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue)) + { + strSql += " and PipelineCode like @PipelineCode"; + listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%")); + } + strSql += " order by PipelineCode asc"; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + if (tb.Rows.Count > 0) + { + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("PipelineCode"); + dt.Columns.Add("PipeSupportCode"); + dt.Columns.Add("Types"); + dt.Columns.Add("DirectionOfDisplacement"); + dt.Columns.Add("DesignDisplacement"); + dt.Columns.Add("InstallationDisplacement"); + dt.Columns.Add("CheckResult"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["PipelineCode"] = row["PipelineCode"].ToString(); + newRow["PipeSupportCode"] = row["PipeSupportCode"].ToString(); + newRow["Types"] = row["Types"].ToString(); + newRow["DirectionOfDisplacement"] = row["DirectionOfDisplacement"].ToString(); + newRow["DesignDisplacement"] = row["DesignDisplacement"].ToString(); + newRow["InstallationDisplacement"] = row["InstallationDisplacement"].ToString(); + newRow["CheckResult"] = row["CheckResult"].ToString(); + dt.Rows.Add(newRow); + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\SYBData\\滑动固定管托安装检验记录.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 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + JArray teamGroupData = Grid1.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + list.Add(values); + } + + JObject defaultObj = new JObject + { + { "SlidingFixedId", Guid.NewGuid() }, + { "ProjectId", this.tvControlItem.SelectedNodeID }, + { "PipelineCode", "" }, + { "PipeSupportCode", "" }, + { "Types", "" }, + { "DirectionOfDisplacement", "" }, + { "DesignDisplacement", "" }, + { "InstallationDisplacement", "" }, + { "CheckResult", "" }, + { + "Delete3", + String.Format("", + GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete)) + } + }; + list.Add(defaultObj); + Grid1.DataSource = list; + Grid1.DataBind(); + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + } + + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScriptGrid1(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteScriptGrid1() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, + Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + + #region 管线下拉选择 + /// + /// 管线下拉选择 + /// + /// + /// + protected void drpIsoNoS_SelectedIndexChanged(object sender, EventArgs e) + { + DataIsoInfo(); + } + #endregion; + + #region 保存 + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, + Const.SYBData_SlidingFixedMenuId, Const.BtnSave)) + { + saveItem(); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + void saveItem() + { + BLL.SlidingFixedService.DeleteSlidingFixedByProjectId(this.tvControlItem.SelectedNodeID); + List detailLists = new List(); + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.SYBData_SlidingFixed newDetail = new Model.SYBData_SlidingFixed + { + SlidingFixedId = values.Value("SlidingFixedId"), + ProjectId = this.tvControlItem.SelectedNodeID, + PipelineCode = values.Value("PipelineCode"), + PipeSupportCode = values.Value("PipeSupportCode"), + Types = values.Value("Types"), + DirectionOfDisplacement = values.Value("DirectionOfDisplacement"), + DesignDisplacement = values.Value("DesignDisplacement"), + InstallationDisplacement = values.Value("InstallationDisplacement"), + CheckResult = values.Value("CheckResult"), + CompileMan = this.CurrUser.UserId, + CompileDate = DateTime.Now + }; + detailLists.Add(newDetail); + } + try + { + if (detailLists.Count > 0) + { + Funs.DB.SYBData_SlidingFixed.InsertAllOnSubmit(detailLists); + } + Funs.DB.SubmitChanges(); + } + catch (Exception) + { + return; + } + } + #endregion + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.designer.cs new file mode 100644 index 0000000..0e6471f --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SlidingFixed.aspx.designer.cs @@ -0,0 +1,251 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SYBData +{ + + + public partial class SlidingFixed + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProjectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProjectId; + + /// + /// tvControlItem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree tvControlItem; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// drpIsoNoS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsoNoS; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// txtPipelineCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineCode; + + /// + /// txtPipeSupportCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipeSupportCode; + + /// + /// txtTypes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTypes; + + /// + /// txtDirectionOfDisplacement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDirectionOfDisplacement; + + /// + /// txtDesignDisplacement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignDisplacement; + + /// + /// txtInstallationDisplacement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInstallationDisplacement; + + /// + /// txtCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckResult; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowPrint; + } +} diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx new file mode 100644 index 0000000..0ad8c48 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx @@ -0,0 +1,132 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpringSupportHangBracket.aspx.cs" Inherits="FineUIPro.Web.SYBData.SpringSupportHangBracket" %> + + + + + + + 弹簧支/吊架安装检验记录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.cs b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.cs new file mode 100644 index 0000000..de6211a --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.cs @@ -0,0 +1,481 @@ +using BLL; +using Newtonsoft.Json.Linq; +using NPOI.HSSF.Record.Chart; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.SYBData +{ + public partial class SpringSupportHangBracket : PageBase + { + /// + /// 主键 + /// + private string SpringSupportHangBracketId + { + get { return (string)ViewState["SpringSupportHangBracketId"]; } + set { ViewState["SpringSupportHangBracketId"] = value; } + } + + /// + /// 项目Id + /// + private string ProjectId + { + get { return (string)ViewState["ProjectId"]; } + set { ViewState["ProjectId"] = value; } + } + + /// + /// 定义集合 + /// + private static List items = new List(); + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + 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.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + + //管线 + this.drpIsoNoS.DataTextField = "ISO_IsoNo"; + this.drpIsoNoS.DataValueField = "ISO_IsoNo"; + this.drpIsoNoS.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + this.drpIsoNoS.DataBind(); + + DataIsoInfo(); + } + } + + private void DataIsoInfo() + { + items.Clear(); + if (!string.IsNullOrEmpty(this.ProjectId)) + { + var reportLists = BLL.SpringSupportHangBracketService.GetListByProjectId(this.ProjectId); + if (reportLists.Count > 0) + { + var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + foreach (var item in isoLists) + { + var iso = (from x in Funs.DB.SYBData_SpringSupportHangBracket where x.ProjectId == this.ProjectId && x.PipelineCode == item.ISO_IsoNo select x).FirstOrDefault(); + if (iso == null) + { + Model.SYBData_SpringSupportHangBracket newReport = new Model.SYBData_SpringSupportHangBracket(); + newReport.SpringSupportHangBracketId = SQLHelper.GetNewID(); + newReport.ProjectId = this.ProjectId; + newReport.PipelineCode = item.ISO_IsoNo; + reportLists.Add(newReport); + } + } + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null) + { + reportLists = reportLists.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList(); + } + this.Grid1.DataSource = reportLists; + this.Grid1.DataBind(); + } + else + { + var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + foreach (var iso in isoLists) + { + Model.SYBData_SpringSupportHangBracket newReport = new Model.SYBData_SpringSupportHangBracket(); + newReport.SpringSupportHangBracketId = SQLHelper.GetNewID(); + newReport.ProjectId = this.ProjectId; + newReport.PipelineCode = iso.ISO_IsoNo; + items.Add(newReport); + } + + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null) + { + items = items.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList(); + } + this.Grid1.DataSource = items; + this.Grid1.DataBind(); + } + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + 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 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 + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.ProjectId = this.tvControlItem.SelectedNodeID; + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string projectId = this.tvControlItem.SelectedNodeID; + string strSql = @"SELECT * from SYBData_SpringSupportHangBracket where 1=1"; + List listStr = new List(); + if (!string.IsNullOrEmpty(projectId)) + { + strSql += " AND ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", projectId)); + } + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue)) + { + strSql += " AND PipelineCode like @PipelineCode"; + listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%")); + } + 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 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + #endregion + + #region 排序 + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + BindGrid(); + } + #endregion + + #region 分页选择下拉改变事件 + /// + /// 分页选择下拉改变事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + #endregion + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.ProjectId = this.tvControlItem.SelectedNodeID; + this.InitTreeMenu(); + BindGrid(); + } + + /// + /// 查询 + /// + /// + /// + protected void txtPipeSectionNumberS_TextChanged(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from SYBData_SpringSupportHangBracket where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue)) + { + strSql += " and PipelineCode like @PipelineCode"; + listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%")); + } + strSql += " order by PipelineCode asc"; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + if (tb.Rows.Count > 0) + { + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("PipelineCode"); + dt.Columns.Add("PositionNum"); + dt.Columns.Add("StructuralType"); + dt.Columns.Add("DirectionOfDisplacement"); + dt.Columns.Add("DesignLoadValue"); + dt.Columns.Add("InstallationLoadValue"); + dt.Columns.Add("CheckResults"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["PipelineCode"] = row["PipelineCode"].ToString(); + newRow["PositionNum"] = row["PositionNum"].ToString(); + newRow["StructuralType"] = row["StructuralType"].ToString(); + newRow["DirectionOfDisplacement"] = row["DirectionOfDisplacement"].ToString(); + newRow["DesignLoadValue"] = row["DesignLoadValue"].ToString(); + newRow["InstallationLoadValue"] = row["InstallationLoadValue"].ToString(); + newRow["CheckResults"] = row["CheckResults"].ToString(); + dt.Rows.Add(newRow); + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\SYBData\\弹簧支吊架安装检验记录.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 维护 + /// + /// 增加 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + JArray teamGroupData = Grid1.GetMergedData(); + List list = new List(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + list.Add(values); + } + + JObject defaultObj = new JObject + { + { "SpringSupportHangBracketId", Guid.NewGuid() }, + { "ProjectId", this.tvControlItem.SelectedNodeID }, + { "PipelineCode", "" }, + { "PositionNum", "" }, + { "StructuralType", "" }, + { "DirectionOfDisplacement", "" }, + { "DesignLoadValue", "" }, + { "InstallationLoadValue", "" }, + { "CheckResults", "" }, + { + "Delete3", + String.Format("", + GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete)) + } + }; + list.Add(defaultObj); + Grid1.DataSource = list; + Grid1.DataBind(); + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + } + + protected void Grid1_PreDataBound(object sender, EventArgs e) + { + // 设置LinkButtonField的点击客户端事件 + LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField; + deleteField.OnClientClick = GetDeleteScriptGrid1(); + } + + /// + /// 删除提示 + /// + /// + private string GetDeleteScriptGrid1() + { + return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question, + Grid1.GetDeleteSelectedRowsReference(), String.Empty); + } + #endregion + + #region 管线下拉选择 + /// + /// 管线下拉选择 + /// + /// + /// + protected void drpIsoNoS_SelectedIndexChanged(object sender, EventArgs e) + { + DataIsoInfo(); + } + #endregion; + + #region 保存 + protected void btnSave_Click(object sender, EventArgs e) + { + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, + Const.SYBData_SpringSupportHangBracketMenuId, Const.BtnSave)) + { + saveItem(); + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + return; + } + } + + void saveItem() + { + BLL.SpringSupportHangBracketService.DeleteSpringSupportHangBracketByProjectId(this.tvControlItem.SelectedNodeID); + List detailLists = new List(); + JArray teamGroupData = Grid1.GetMergedData(); + foreach (JObject teamGroupRow in teamGroupData) + { + JObject values = teamGroupRow.Value("values"); + int rowIndex = teamGroupRow.Value("index"); + Model.SYBData_SpringSupportHangBracket newDetail = new Model.SYBData_SpringSupportHangBracket + { + SpringSupportHangBracketId = values.Value("SpringSupportHangBracketId"), + ProjectId = this.tvControlItem.SelectedNodeID, + PipelineCode = values.Value("PipelineCode"), + PositionNum = values.Value("PositionNum"), + StructuralType = values.Value("StructuralType"), + DirectionOfDisplacement = values.Value("DirectionOfDisplacement"), + DesignLoadValue = values.Value("DesignLoadValue"), + InstallationLoadValue = values.Value("InstallationLoadValue"), + CheckResults = values.Value("CheckResults"), + CompileMan =this.CurrUser.UserId, + CompileDate=DateTime.Now + }; + detailLists.Add(newDetail); + } + try + { + if (detailLists.Count > 0) + { + Funs.DB.SYBData_SpringSupportHangBracket.InsertAllOnSubmit(detailLists); + } + Funs.DB.SubmitChanges(); + } + catch (Exception) + { + return; + } + } + #endregion + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.designer.cs new file mode 100644 index 0000000..21ed221 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/SYBData/SpringSupportHangBracket.aspx.designer.cs @@ -0,0 +1,251 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.SYBData +{ + + + public partial class SpringSupportHangBracket + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProjectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProjectId; + + /// + /// tvControlItem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree tvControlItem; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// drpIsoNoS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsoNoS; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// txtPipelineCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPipelineCode; + + /// + /// txtPositionNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPositionNum; + + /// + /// txtStructuralType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtStructuralType; + + /// + /// txtDirectionOfDisplacement 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDirectionOfDisplacement; + + /// + /// txtDesignLoadValue 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignLoadValue; + + /// + /// txtInstallationLoadValue 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInstallationLoadValue; + + /// + /// txtCheckResults 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCheckResults; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// WindowPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowPrint; + } +} diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 6bfb6c8..30834b7 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index e5051c5..7fd3d4a 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -611,6 +611,12 @@ namespace Model partial void InsertSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance); partial void UpdateSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance); partial void DeleteSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance); + partial void InsertSYBData_SlidingFixed(SYBData_SlidingFixed instance); + partial void UpdateSYBData_SlidingFixed(SYBData_SlidingFixed instance); + partial void DeleteSYBData_SlidingFixed(SYBData_SlidingFixed instance); + partial void InsertSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance); + partial void UpdateSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance); + partial void DeleteSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance); partial void InsertSys_ButtonPower(Sys_ButtonPower instance); partial void UpdateSys_ButtonPower(Sys_ButtonPower instance); partial void DeleteSys_ButtonPower(Sys_ButtonPower instance); @@ -2569,6 +2575,22 @@ namespace Model } } + public System.Data.Linq.Table SYBData_SlidingFixed + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table SYBData_SpringSupportHangBracket + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Sys_ButtonPower { get @@ -4916,6 +4938,10 @@ namespace Model private EntitySet _SYBData_PressureTestPackageList; + private EntitySet _SYBData_SlidingFixed; + + private EntitySet _SYBData_SpringSupportHangBracket; + private EntitySet _Weld_ProjectPlan; private EntitySet _Weld_RecycleMat; @@ -5067,6 +5093,8 @@ namespace Model this._SYBData_Cover = new EntitySet(new Action(this.attach_SYBData_Cover), new Action(this.detach_SYBData_Cover)); this._SYBData_FileDirectory = new EntitySet(new Action(this.attach_SYBData_FileDirectory), new Action(this.detach_SYBData_FileDirectory)); this._SYBData_PressureTestPackageList = new EntitySet(new Action(this.attach_SYBData_PressureTestPackageList), new Action(this.detach_SYBData_PressureTestPackageList)); + this._SYBData_SlidingFixed = new EntitySet(new Action(this.attach_SYBData_SlidingFixed), new Action(this.detach_SYBData_SlidingFixed)); + this._SYBData_SpringSupportHangBracket = new EntitySet(new Action(this.attach_SYBData_SpringSupportHangBracket), new Action(this.detach_SYBData_SpringSupportHangBracket)); this._Weld_ProjectPlan = new EntitySet(new Action(this.attach_Weld_ProjectPlan), new Action(this.detach_Weld_ProjectPlan)); this._Weld_RecycleMat = new EntitySet(new Action(this.attach_Weld_RecycleMat), new Action(this.detach_Weld_RecycleMat)); this._Weld_RecycleMatTop = new EntitySet(new Action(this.attach_Weld_RecycleMatTop), new Action(this.detach_Weld_RecycleMatTop)); @@ -6735,6 +6763,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SlidingFixed_Base_Project", Storage="_SYBData_SlidingFixed", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet SYBData_SlidingFixed + { + get + { + return this._SYBData_SlidingFixed; + } + set + { + this._SYBData_SlidingFixed.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SpringSupportHangBracket_Base_Project", Storage="_SYBData_SpringSupportHangBracket", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet SYBData_SpringSupportHangBracket + { + get + { + return this._SYBData_SpringSupportHangBracket; + } + set + { + this._SYBData_SpringSupportHangBracket.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Base_Project", Storage="_Weld_ProjectPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Weld_ProjectPlan { @@ -7827,6 +7881,30 @@ namespace Model entity.Base_Project = null; } + private void attach_SYBData_SlidingFixed(SYBData_SlidingFixed entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_SYBData_SlidingFixed(SYBData_SlidingFixed entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_SYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_SYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Weld_ProjectPlan(Weld_ProjectPlan entity) { this.SendPropertyChanging(); @@ -118418,6 +118496,692 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_SlidingFixed")] + public partial class SYBData_SlidingFixed : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _SlidingFixedId; + + private string _ProjectId; + + private string _PipelineCode; + + private string _PipeSupportCode; + + private string _Types; + + private string _DirectionOfDisplacement; + + private string _DesignDisplacement; + + private string _InstallationDisplacement; + + private string _CheckResult; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSlidingFixedIdChanging(string value); + partial void OnSlidingFixedIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPipelineCodeChanging(string value); + partial void OnPipelineCodeChanged(); + partial void OnPipeSupportCodeChanging(string value); + partial void OnPipeSupportCodeChanged(); + partial void OnTypesChanging(string value); + partial void OnTypesChanged(); + partial void OnDirectionOfDisplacementChanging(string value); + partial void OnDirectionOfDisplacementChanged(); + partial void OnDesignDisplacementChanging(string value); + partial void OnDesignDisplacementChanged(); + partial void OnInstallationDisplacementChanging(string value); + partial void OnInstallationDisplacementChanged(); + partial void OnCheckResultChanging(string value); + partial void OnCheckResultChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public SYBData_SlidingFixed() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SlidingFixedId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string SlidingFixedId + { + get + { + return this._SlidingFixedId; + } + set + { + if ((this._SlidingFixedId != value)) + { + this.OnSlidingFixedIdChanging(value); + this.SendPropertyChanging(); + this._SlidingFixedId = value; + this.SendPropertyChanged("SlidingFixedId"); + this.OnSlidingFixedIdChanged(); + } + } + } + + [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="_PipelineCode", DbType="NVarChar(50)")] + public string PipelineCode + { + get + { + return this._PipelineCode; + } + set + { + if ((this._PipelineCode != value)) + { + this.OnPipelineCodeChanging(value); + this.SendPropertyChanging(); + this._PipelineCode = value; + this.SendPropertyChanged("PipelineCode"); + this.OnPipelineCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeSupportCode", DbType="NVarChar(50)")] + public string PipeSupportCode + { + get + { + return this._PipeSupportCode; + } + set + { + if ((this._PipeSupportCode != value)) + { + this.OnPipeSupportCodeChanging(value); + this.SendPropertyChanging(); + this._PipeSupportCode = value; + this.SendPropertyChanged("PipeSupportCode"); + this.OnPipeSupportCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Types", DbType="NVarChar(50)")] + public string Types + { + get + { + return this._Types; + } + set + { + if ((this._Types != value)) + { + this.OnTypesChanging(value); + this.SendPropertyChanging(); + this._Types = value; + this.SendPropertyChanged("Types"); + this.OnTypesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DirectionOfDisplacement", DbType="NVarChar(50)")] + public string DirectionOfDisplacement + { + get + { + return this._DirectionOfDisplacement; + } + set + { + if ((this._DirectionOfDisplacement != value)) + { + this.OnDirectionOfDisplacementChanging(value); + this.SendPropertyChanging(); + this._DirectionOfDisplacement = value; + this.SendPropertyChanged("DirectionOfDisplacement"); + this.OnDirectionOfDisplacementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDisplacement", DbType="NVarChar(50)")] + public string DesignDisplacement + { + get + { + return this._DesignDisplacement; + } + set + { + if ((this._DesignDisplacement != value)) + { + this.OnDesignDisplacementChanging(value); + this.SendPropertyChanging(); + this._DesignDisplacement = value; + this.SendPropertyChanged("DesignDisplacement"); + this.OnDesignDisplacementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationDisplacement", DbType="NVarChar(50)")] + public string InstallationDisplacement + { + get + { + return this._InstallationDisplacement; + } + set + { + if ((this._InstallationDisplacement != value)) + { + this.OnInstallationDisplacementChanging(value); + this.SendPropertyChanging(); + this._InstallationDisplacement = value; + this.SendPropertyChanged("InstallationDisplacement"); + this.OnInstallationDisplacementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckResult", DbType="NVarChar(50)")] + public string CheckResult + { + get + { + return this._CheckResult; + } + set + { + if ((this._CheckResult != value)) + { + this.OnCheckResultChanging(value); + this.SendPropertyChanging(); + this._CheckResult = value; + this.SendPropertyChanged("CheckResult"); + this.OnCheckResultChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + 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 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_SYBData_SlidingFixed_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.SYBData_SlidingFixed.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.SYBData_SlidingFixed.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + 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.SYBData_SpringSupportHangBracket")] + public partial class SYBData_SpringSupportHangBracket : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _SpringSupportHangBracketId; + + private string _ProjectId; + + private string _PipelineCode; + + private string _PositionNum; + + private string _StructuralType; + + private string _DirectionOfDisplacement; + + private string _DesignLoadValue; + + private string _InstallationLoadValue; + + private string _CheckResults; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSpringSupportHangBracketIdChanging(string value); + partial void OnSpringSupportHangBracketIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPipelineCodeChanging(string value); + partial void OnPipelineCodeChanged(); + partial void OnPositionNumChanging(string value); + partial void OnPositionNumChanged(); + partial void OnStructuralTypeChanging(string value); + partial void OnStructuralTypeChanged(); + partial void OnDirectionOfDisplacementChanging(string value); + partial void OnDirectionOfDisplacementChanged(); + partial void OnDesignLoadValueChanging(string value); + partial void OnDesignLoadValueChanged(); + partial void OnInstallationLoadValueChanging(string value); + partial void OnInstallationLoadValueChanged(); + partial void OnCheckResultsChanging(string value); + partial void OnCheckResultsChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public SYBData_SpringSupportHangBracket() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpringSupportHangBracketId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string SpringSupportHangBracketId + { + get + { + return this._SpringSupportHangBracketId; + } + set + { + if ((this._SpringSupportHangBracketId != value)) + { + this.OnSpringSupportHangBracketIdChanging(value); + this.SendPropertyChanging(); + this._SpringSupportHangBracketId = value; + this.SendPropertyChanged("SpringSupportHangBracketId"); + this.OnSpringSupportHangBracketIdChanged(); + } + } + } + + [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="_PipelineCode", DbType="NVarChar(50)")] + public string PipelineCode + { + get + { + return this._PipelineCode; + } + set + { + if ((this._PipelineCode != value)) + { + this.OnPipelineCodeChanging(value); + this.SendPropertyChanging(); + this._PipelineCode = value; + this.SendPropertyChanged("PipelineCode"); + this.OnPipelineCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PositionNum", DbType="NVarChar(50)")] + public string PositionNum + { + get + { + return this._PositionNum; + } + set + { + if ((this._PositionNum != value)) + { + this.OnPositionNumChanging(value); + this.SendPropertyChanging(); + this._PositionNum = value; + this.SendPropertyChanged("PositionNum"); + this.OnPositionNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StructuralType", DbType="NVarChar(50)")] + public string StructuralType + { + get + { + return this._StructuralType; + } + set + { + if ((this._StructuralType != value)) + { + this.OnStructuralTypeChanging(value); + this.SendPropertyChanging(); + this._StructuralType = value; + this.SendPropertyChanged("StructuralType"); + this.OnStructuralTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DirectionOfDisplacement", DbType="NVarChar(50)")] + public string DirectionOfDisplacement + { + get + { + return this._DirectionOfDisplacement; + } + set + { + if ((this._DirectionOfDisplacement != value)) + { + this.OnDirectionOfDisplacementChanging(value); + this.SendPropertyChanging(); + this._DirectionOfDisplacement = value; + this.SendPropertyChanged("DirectionOfDisplacement"); + this.OnDirectionOfDisplacementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignLoadValue", DbType="NVarChar(50)")] + public string DesignLoadValue + { + get + { + return this._DesignLoadValue; + } + set + { + if ((this._DesignLoadValue != value)) + { + this.OnDesignLoadValueChanging(value); + this.SendPropertyChanging(); + this._DesignLoadValue = value; + this.SendPropertyChanged("DesignLoadValue"); + this.OnDesignLoadValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationLoadValue", DbType="NVarChar(50)")] + public string InstallationLoadValue + { + get + { + return this._InstallationLoadValue; + } + set + { + if ((this._InstallationLoadValue != value)) + { + this.OnInstallationLoadValueChanging(value); + this.SendPropertyChanging(); + this._InstallationLoadValue = value; + this.SendPropertyChanged("InstallationLoadValue"); + this.OnInstallationLoadValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckResults", DbType="NVarChar(50)")] + public string CheckResults + { + get + { + return this._CheckResults; + } + set + { + if ((this._CheckResults != value)) + { + this.OnCheckResultsChanging(value); + this.SendPropertyChanging(); + this._CheckResults = value; + this.SendPropertyChanged("CheckResults"); + this.OnCheckResultsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + 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 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_SYBData_SpringSupportHangBracket_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.SYBData_SpringSupportHangBracket.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.SYBData_SpringSupportHangBracket.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + 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.Sys_ButtonPower")] public partial class Sys_ButtonPower : INotifyPropertyChanging, INotifyPropertyChanged { diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index ef14066..8cd7f1f 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - Debug|Any CPU + Release|Any CPU FolderProfile true