diff --git a/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj(试压包资料目录初始值).sql b/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj(试压包资料目录初始值).sql
new file mode 100644
index 0000000..8ddc5d8
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj(试压包资料目录初始值).sql
@@ -0,0 +1,48 @@
+--ѹĿ¼
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('7EF5A8B9-D870-46E0-B8F5-C18FFB698FE4','01','ѹ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('FFFC3AA1-933E-403A-BCB5-13208D607A5E','02','ѹĿ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('26F3F0BA-9924-45F2-837B-D9779E2253A5','03','չܵѹ/','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('9466B90D-F79F-41C7-89D1-355E7433B65A','04','ܵѹһ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('13FF4A67-775D-417A-9136-4C4A4B2AB7C7','05','ܵһ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('3006036E-3DBD-4479-8224-01129307806F','06','ѹͼ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('F9DA8782-7927-4DFB-845C-643DE483824C','07','ͼ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('3DDB2531-7D02-4A28-9A3C-A4C23BEB4B1D','08','ӹ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('3D94D403-763E-4A80-BCEF-D8B4CBEE197B','09','ܵϵͳѹʵȷϼ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('5CFF432E-7780-43C6-BC50-D84A7937373A','10','ܵϵͳѹʵ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('99F59210-2F4A-4F29-B1F8-316163B51E8E','11','ܵӽͷȷϱ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('3C77DC00-8F9A-4ACE-9DBA-9623F3F2CBFA','12','ܱܵ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('F7D30131-0BCB-4ABA-8CD8-22E2CD0A4E7C','13','ܵͳƱ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('3AEA4CC9-6648-421B-A835-58157E17D21A','14','ܵⱨ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('22F1561D-1B99-430D-97A6-7AEC791587B4','15','ܵӽͷȴ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('76508BB2-B1E3-42C7-B56A-9F334220EE22','16','ܵӽͷӲȼⱨ','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('31B13F35-E3C7-407D-ADFD-8C09F5E60033','17','ܵϵͳѹʱä尲װ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('C529532A-D1D7-4FBB-B0A2-B16315A3F062','18','֧/ܰװ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('269FEEFB-9FF9-4377-88B0-FDEAFEAE1064','19','/̶аװ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('F0A3B172-48ED-4689-AE86-330B802ECAAE','20','ܵϵͳѹʱä尲װ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('6546DC4F-E36C-4AEA-9F10-5253FD5F581E','21','ܵӵؼ¼','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('93F3496E-A197-431E-BB38-4244AE95DDFB','22','ѹβ嵥','')
+insert into SYBData_FileDirectory(FileDirectoryId,FileCode,FileName,CompletionStatus)
+values('6F151059-CCBC-4D5F-A480-35422F14DD09','23','ˮʷ','')
+go
\ No newline at end of file
diff --git a/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj.sql
new file mode 100644
index 0000000..ced0e95
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-03-26_bwj.sql
@@ -0,0 +1,111 @@
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+values('B3F05879-2439-4445-8449-AA2010FA0961','ѹĿ¼','SYBData/SYBDataList.aspx',20,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
+go
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('BAAFECDF-F813-491A-B190-7FE7E5A9C4FA','B3F05879-2439-4445-8449-AA2010FA0961','',1)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('50AFF2C8-B3B9-4113-B2E0-C0024055E867','B3F05879-2439-4445-8449-AA2010FA0961','',2)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('100D68F8-0249-4758-9125-70E122887472','B3F05879-2439-4445-8449-AA2010FA0961','ɾ',3)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('8A6DC981-653A-4043-BC1C-E3F20C329372','B3F05879-2439-4445-8449-AA2010FA0961','',4)
+go
+
+CREATE TABLE [dbo].[SYBData_FileDirectory](
+ [FileDirectoryId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [FileCode] [nvarchar](50) NULL,
+ [FileName] [nvarchar](50) NULL,
+ [CompletionStatus] [nvarchar](50) NULL,
+ CONSTRAINT [PK_SYBData_FileDirectory] PRIMARY KEY CLUSTERED
+(
+ [FileDirectoryId] 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_FileDirectory] WITH CHECK ADD CONSTRAINT [FK_SYBData_FileDirectory_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[SYBData_FileDirectory] CHECK CONSTRAINT [FK_SYBData_FileDirectory_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_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileDirectoryId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FileDirectory', @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_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FileDirectory', @level2type=N'COLUMN',@level2name=N'CompletionStatus'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹĿ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FileDirectory'
+GO
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+values('71F70139-5281-480D-9787-7065BDA8A290','չܵѹ/','SYBData/ApplicationForm.aspx',30,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
+go
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('C24FBAD8-3BB9-4C56-A454-79B1A83AD2CA','71F70139-5281-480D-9787-7065BDA8A290','',1)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('AEA0D59A-0229-40B6-8EBD-11EB35B4F469','71F70139-5281-480D-9787-7065BDA8A290','',2)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('DA2B8B8D-EBEF-46C4-B912-EA7C91360BDE','71F70139-5281-480D-9787-7065BDA8A290','ɾ',3)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('86538266-35CD-4B4A-9598-7F7F95BE69FA','71F70139-5281-480D-9787-7065BDA8A290','',4)
+go
+
+
+CREATE TABLE [dbo].[SYBData_ApplicationForm](
+ [ApplicationFormId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [ApplicationFormCode] [nvarchar](50) NULL,
+ [SupervisionUnit] [nvarchar](50) NULL,
+ [Contents] [nvarchar](500) NULL,
+ [ProfessionalEngineer] [nvarchar](50) NULL,
+ [ApplicationDate] [datetime] NULL,
+ CONSTRAINT [PK_SYBData_ApplicationForm] PRIMARY KEY CLUSTERED
+(
+ [ApplicationFormId] 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_ApplicationForm] WITH CHECK ADD CONSTRAINT [FK_SYBData_ApplicationForm_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[SYBData_ApplicationForm] CHECK CONSTRAINT [FK_SYBData_ApplicationForm_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_ApplicationForm', @level2type=N'COLUMN',@level2name=N'ApplicationFormId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ApplicationForm', @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_ApplicationForm', @level2type=N'COLUMN',@level2name=N'ApplicationFormCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ApplicationForm', @level2type=N'COLUMN',@level2name=N'SupervisionUnit'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ApplicationForm', @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'SYBData_ApplicationForm', @level2type=N'COLUMN',@level2name=N'ProfessionalEngineer'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ApplicationForm', @level2type=N'COLUMN',@level2name=N'ApplicationDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'չܵѹ/' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ApplicationForm'
+GO
diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj
index 0c92bc0..8fbfeda 100644
--- a/HJGL_DS/BLL/BLL.csproj
+++ b/HJGL_DS/BLL/BLL.csproj
@@ -299,7 +299,9 @@
+
+
diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index 3ea1eaf..c97603f 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -1922,6 +1922,11 @@ namespace BLL
/// 试压包封面
///
public const string SYBData_CoverMenuId = "66113AA7-C41B-4FE6-BAA0-69B3E74592A3";
+
+ ///
+ /// 试压包资料目录
+ ///
+ public const string SYBData_FileDirectoryMenuId = "B3F05879-2439-4445-8449-AA2010FA0961";
#endregion
#region 报表对应ID
diff --git a/HJGL_DS/BLL/SYBData/ApplicationFormService.cs b/HJGL_DS/BLL/SYBData/ApplicationFormService.cs
new file mode 100644
index 0000000..cb8f7f5
--- /dev/null
+++ b/HJGL_DS/BLL/SYBData/ApplicationFormService.cs
@@ -0,0 +1,77 @@
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 工艺管道试压包报审/报验申请表
+ ///
+ public class ApplicationFormService
+ {
+ ///
+ /// 根据项目Id获取工艺管道试压包报审/报验申请表
+ ///
+ ///
+ ///
+ public static Model.SYBData_ApplicationForm GetApplicationFormByProjectId(string projectId)
+ {
+ return Funs.DB.SYBData_ApplicationForm.FirstOrDefault(e => e.ProjectId == projectId);
+ }
+
+ ///
+ /// 添加工艺管道试压包报审/报验申请表
+ ///
+ ///
+ public static void AddApplicationForm(Model.SYBData_ApplicationForm applicationForm)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_ApplicationForm newApplicationForm = new Model.SYBData_ApplicationForm();
+ newApplicationForm.ApplicationFormId = applicationForm.ApplicationFormId;
+ newApplicationForm.ProjectId = applicationForm.ProjectId;
+ newApplicationForm.ApplicationFormCode = applicationForm.ApplicationFormCode;
+ newApplicationForm.SupervisionUnit = applicationForm.SupervisionUnit;
+ newApplicationForm.Contents = applicationForm.Contents;
+ newApplicationForm.ProfessionalEngineer = applicationForm.ProfessionalEngineer;
+ newApplicationForm.ApplicationDate = applicationForm.ApplicationDate;
+ db.SYBData_ApplicationForm.InsertOnSubmit(newApplicationForm);
+ }
+
+ ///
+ /// 修改工艺管道试压包报审/报验申请表
+ ///
+ ///
+ public static void UpdateApplicationForm(Model.SYBData_ApplicationForm applicationForm)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_ApplicationForm newApplicationForm = db.SYBData_ApplicationForm.FirstOrDefault(e => e.ApplicationFormId == applicationForm.ApplicationFormId);
+ if (newApplicationForm != null)
+ {
+ newApplicationForm.ApplicationFormCode = applicationForm.ApplicationFormCode;
+ newApplicationForm.SupervisionUnit = applicationForm.SupervisionUnit;
+ newApplicationForm.Contents = applicationForm.Contents;
+ newApplicationForm.ProfessionalEngineer = applicationForm.ProfessionalEngineer;
+ newApplicationForm.ApplicationDate = applicationForm.ApplicationDate;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据项目Id删除工艺管道试压包报审/报验申请表
+ ///
+ ///
+ public static void DeleteApplicationFormByProjectId(string projectId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_ApplicationForm data = db.SYBData_ApplicationForm.FirstOrDefault(e => e.ProjectId == projectId);
+ if (data != null)
+ {
+ db.SYBData_ApplicationForm.DeleteOnSubmit(data);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/BLL/SYBData/SYBData_FileDirectoryService.cs b/HJGL_DS/BLL/SYBData/SYBData_FileDirectoryService.cs
new file mode 100644
index 0000000..844576c
--- /dev/null
+++ b/HJGL_DS/BLL/SYBData/SYBData_FileDirectoryService.cs
@@ -0,0 +1,26 @@
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 试压包资料目录
+ ///
+ public class SYBData_FileDirectoryService
+ {
+ public static void DeleteFileDirectoryById(string id)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_FileDirectory data = db.SYBData_FileDirectory.FirstOrDefault(e => e.FileDirectoryId == id);
+ if (data != null)
+ {
+ db.SYBData_FileDirectory.DeleteOnSubmit(data);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/工艺管线参数信息导入模板.xls b/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/工艺管线参数信息导入模板.xls
index 3defb88..fbfc92c 100644
Binary files a/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/工艺管线参数信息导入模板.xls and b/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/工艺管线参数信息导入模板.xls differ
diff --git a/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/焊口信息导入模板.xls b/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/焊口信息导入模板.xls
index c47159a..fdbb3c0 100644
Binary files a/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/焊口信息导入模板.xls and b/HJGL_DS/FineUIPro.Web/File/Excel/HJGL_DataIn/焊口信息导入模板.xls differ
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx
index b218ea9..e8a9303 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx
@@ -1,5 +1,5 @@
-
+
@@ -10,7 +10,7 @@
-
+
@@ -34,19 +34,19 @@
-
+
-
+
-
+
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..a88ead4
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包资料目录.frx
@@ -0,0 +1,111 @@
+
+
+ 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 Table2_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
+ Table2.PrintRow(0);
+ Table2.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 0663f3b..fc999c7 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1330,6 +1330,7 @@
+
@@ -1361,6 +1362,7 @@
+
@@ -7164,6 +7166,13 @@
ASPXCodeBehind
+
+ ApplicationForm.aspx
+ ASPXCodeBehind
+
+
+ ApplicationForm.aspx
+
Cover.aspx
ASPXCodeBehind
@@ -7235,6 +7244,13 @@
WelderTrain.aspx
+
+ SYBDataList.aspx
+ ASPXCodeBehind
+
+
+ SYBDataList.aspx
+
WebService1.asmx
Component
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
index abef49a..e3436b8 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
@@ -1,8 +1,8 @@
-
+
true
- Debug|Any CPU
+ Release|Any CPU
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
index c317578..544e360 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
@@ -316,7 +316,7 @@ namespace FineUIPro.Web.HJGL.DataIn
var getWeldSilk = weldMaterials.FirstOrDefault(x => x.WMT_MatType == "1" && x.WMT_MatCode == col19);//焊丝
var getWeldMat = weldMaterials.FirstOrDefault(x => x.WMT_MatType == "2" && x.WMT_MatCode == col20);//焊条
var getNDTRate = NDTRates.FirstOrDefault(x => x.NDTR_Name == col26);//探伤比例
- var getNDTClass = ndtClssItems.FirstOrDefault(x => x.Value == col28);//合格等级
+ var getNDTClass = ndtClssItems.FirstOrDefault(x => x.Value == col27);//合格等级
if (string.IsNullOrEmpty(col2))
{
result += "第" + (i + 2).ToString() + "行," + "焊口号不能为空" + "\n";
@@ -387,6 +387,17 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "该坡口类型不存在" + "\n";
}
}
+ if (!string.IsNullOrEmpty(col8))
+ {
+ if (col8 != "活动" && col8 != "固定")
+ {
+ result += "第" + (i + 2).ToString() + "行," + "焊口属性输入有误" + "\n";
+ }
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "焊口属性不能为空" + "\n";
+ }
if (getWeldMethod == null)
{
if (string.IsNullOrEmpty(col9))
@@ -398,17 +409,6 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "该焊接方法不存在" + "\n";
}
}
- if (string.IsNullOrEmpty(col8))
- {
- result += "第" + (i + 2).ToString() + "行," + "焊口属性不能为空" + "\n";
- }
- if (!string.IsNullOrEmpty(col8))
- {
- if (col8 != "活动" && col8 != "固定")
- {
- result += "第" + (i + 2).ToString() + "行," + "焊口属性输入有误" + "\n";
- }
- }
if (!string.IsNullOrEmpty(col10))
{
try
@@ -424,10 +424,6 @@ namespace FineUIPro.Web.HJGL.DataIn
{
result += "第" + (i + 2).ToString() + "行," + "外径不能为空" + "\n";
}
- if (string.IsNullOrEmpty(col11))
- {
- result += "第" + (i + 2).ToString() + "行," + "壁厚不能为空" + "\n";
- }
if (!string.IsNullOrEmpty(col11))
{
try
@@ -439,20 +435,9 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "壁厚格式输入有误" + "\n";
}
}
- if (getNDTRate == null)
+ else
{
- if (string.IsNullOrEmpty(col27))
- {
- result += "第" + (i + 2).ToString() + "行," + "探伤比例不能为空" + "\n";
- }
- else
- {
- result += "第" + (i + 2).ToString() + "行," + "该探伤比例不存在" + "\n";
- }
- }
- if (string.IsNullOrEmpty(col12))
- {
- result += "第" + (i + 2).ToString() + "行," + "寸径不能为空" + "\n";
+ result += "第" + (i + 2).ToString() + "行," + "壁厚不能为空" + "\n";
}
if (!string.IsNullOrEmpty(col12))
{
@@ -465,13 +450,17 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "寸径格式输入有误" + "\n";
}
}
- if (!string.IsNullOrEmpty(col13))
+ else
{
- if (col13 != "现场安装" && col13 != "预制")
- {
- result += "第" + (i + 2).ToString() + "行," + "焊接区域输入有误" + "\n";
- }
+ result += "第" + (i + 2).ToString() + "行," + "寸径不能为空" + "\n";
}
+ //if (!string.IsNullOrEmpty(col13))
+ //{
+ // if (col13 != "现场安装" && col13 != "预制")
+ // {
+ // result += "第" + (i + 2).ToString() + "行," + "焊接区域输入有误" + "\n";
+ // }
+ //}
if (!string.IsNullOrEmpty(col16))
{
try
@@ -573,6 +562,28 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "是否特殊格式输入有误" + "\n";
}
}
+ if (getNDTRate == null)
+ {
+ if (string.IsNullOrEmpty(col26))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "探伤比例不能为空" + "\n";
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "该探伤比例不存在" + "\n";
+ }
+ }
+ if (getNDTClass==null)
+ {
+ if (string.IsNullOrEmpty(col27))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "合格等级不能为空" + "\n";
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "该合格等级不存在" + "\n";
+ }
+ }
if (!string.IsNullOrEmpty(col29))
{
try
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.cs
index 58b62cd..62b4eed 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.cs
@@ -274,7 +274,7 @@ namespace FineUIPro.Web.HJGL.DataIn
string col8 = pds.Rows[i][8].ToString().Trim();//试压标号
string col9 = pds.Rows[i][9].ToString().Trim();//管道类别
string col10 = pds.Rows[i][10].ToString().Trim();//涂漆类别
- string col11 = pds.Rows[i][11].ToString().Trim();//绝热能力
+ string col11 = pds.Rows[i][11].ToString().Trim();//绝热类别
string col12 = pds.Rows[i][12].ToString().Trim();//操作压力
string col13 = pds.Rows[i][13].ToString().Trim();//操作温度
string col14 = pds.Rows[i][14].ToString().Trim();//泄露性试验
@@ -353,6 +353,17 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "该材质不存在" + "\n";
}
}
+ if (getMaterialStandard == null)
+ {
+ if (string.IsNullOrEmpty(col6))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "材质标准不能为空" + "\n";
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "该材质标准不存在" + "\n";
+ }
+ }
if (getService == null)
{
if (string.IsNullOrEmpty(col7))
@@ -364,6 +375,37 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "该介质不存在" + "\n";
}
}
+ if (PipeLineClass == null)
+ {
+ if (string.IsNullOrEmpty(col9))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "管道类别不能为空" + "\n";
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "该管道类别不存在" + "\n";
+ }
+ }
+ if (string.IsNullOrEmpty(col10))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "涂漆类别不能为空" + "\n";
+ }
+ if (string.IsNullOrEmpty(col11))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "绝热类别不能为空" + "\n";
+ }
+ if (string.IsNullOrEmpty(col12))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "操作压力不能为空" + "\n";
+ }
+ if (string.IsNullOrEmpty(col13))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "操作温度不能为空" + "\n";
+ }
+ if (string.IsNullOrEmpty(col14))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "泄露性试验不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col15))
{
try
@@ -375,6 +417,10 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "设计压力格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "设计压力不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col16))
{
try
@@ -386,6 +432,10 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "设计温度格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "设计温度不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col17))
{
try
@@ -397,6 +447,10 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "耐压试验格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "耐压试验不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col18))
{
try
@@ -408,6 +462,10 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "外径格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "外径不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col19))
{
try
@@ -419,6 +477,10 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "壁厚格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "壁厚不能为空" + "\n";
+ }
if (!string.IsNullOrEmpty(col20))
{
try
@@ -430,6 +492,14 @@ namespace FineUIPro.Web.HJGL.DataIn
result += "第" + (i + 2).ToString() + "行," + "管线长度格式输入有误" + "\n";
}
}
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "管线长度不能为空" + "\n";
+ }
+ if (string.IsNullOrEmpty(col21))
+ {
+ result += "第" + (i + 2).ToString() + "行," + "检测类别序号不能为空" + "\n";
+ }
if (getUnit != null && getProject != null)
{
var getIsoInfo = isoInfos.FirstOrDefault(x => x.ProjectId == getProject.ProjectId && x.ISO_IsoNo == col2);
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
index 0b40eec..dd2775f 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
@@ -114,7 +114,7 @@
-
+
-
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
index cfbdca8..6f45ca3 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
@@ -60,7 +60,7 @@
EnableEdit="true" LabelWidth="100px">
+ LabelWidth="100px" Required="true" ShowRedStar="true">
@@ -78,53 +78,53 @@
-
+
-
+
-
+
-
+
-
+
-
+
+ LabelWidth="100px" Required="true" ShowRedStar="true">
+ LabelWidth="100px" Required="true" ShowRedStar="true">
+ LabelWidth="100px" Required="true" ShowRedStar="true">
+ NoNegative="true" Required="true" ShowRedStar="true">
+ NoNegative="true" Required="true" ShowRedStar="true">
+ LabelWidth="100px" Required="true" ShowRedStar="true">
-
+
@@ -231,19 +231,19 @@
-
+
-
+
-
+
<%--
--%>
-
+
-
+
<%--
--%>
@@ -251,9 +251,9 @@
-
+
-
+
<%--
--%>
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx
new file mode 100644
index 0000000..2910b16
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationForm.aspx.cs" Inherits="FineUIPro.Web.SYBData.ApplicationForm" %>
+
+
+
+
+
+
+ 工艺管道试压包报审/报验申请表
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.cs b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.cs
new file mode 100644
index 0000000..a35cd38
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.SYBData
+{
+ public partial class ApplicationForm : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.designer.cs
new file mode 100644
index 0000000..d136ac9
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/ApplicationForm.aspx.designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.SYBData
+{
+
+
+ public partial class ApplicationForm
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx
new file mode 100644
index 0000000..af97daa
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx
@@ -0,0 +1,107 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYBDataList.aspx.cs" Inherits="FineUIPro.Web.SYBData.SYBDataList" %>
+
+
+
+
+
+
+ 试压包资料目录
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.cs b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.cs
new file mode 100644
index 0000000..fd5f54b
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.cs
@@ -0,0 +1,451 @@
+using BLL;
+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 SYBDataList : PageBase
+ {
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ 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.BindGrid();
+ }
+ }
+ #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.BindGrid();
+ }
+ }
+ #endregion
+
+ #region 数据绑定
+ ///
+ /// 数据绑定
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"select * from SYBData_FileDirectory order by FileCode asc";
+ List listStr = new List();
+ //if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ //{
+ // strSql += " AND ProjectId = @ProjectId";
+ // listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
+ //}
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ // 2.获取当前分页数据
+ Grid1.RecordCount = tb.Rows.Count;
+ 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.InitTreeMenu();
+ BindGrid();
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键删除
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.SYBData_FileDirectoryMenuId, 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.SYBData_FileDirectoryService.DeleteFileDirectoryById(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 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ 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 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ 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_FileDirectory order by FileCode asc";
+ List listStr = new List();
+ //listStr.Add(new SqlParameter("@ProjectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ DataTable dt = new DataTable();
+ dt.TableName = "Data";
+ dt.Columns.Add("FileCode");
+ dt.Columns.Add("FileName");
+ dt.Columns.Add("CompletionStatus");
+
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
+ int i = 0;
+ foreach (var row in rows)
+ {
+ var newRow = dt.NewRow();
+ newRow["FileCode"] = row["FileCode"].ToString();
+ newRow["FileName"] = row["FileName"].ToString();
+ newRow["CompletionStatus"] = row["CompletionStatus"].ToString();
+ dt.Rows.Add(newRow);
+ i++;
+ }
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("PressureTestPackageCode", "");
+ 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;
+ }
+ }
+ #endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ //protected void btnOut_Click(object sender, EventArgs e)
+ //{
+ // string rootPath = Server.MapPath("~/");
+ // string initTemplatePath = string.Empty;
+ // string uploadfilepath = string.Empty;
+ // string newUrl = string.Empty;
+ // string filePath = string.Empty;
+
+ // //每页显示的固定数据行数
+ // int rowsPerPage = 36;
+
+ // string projectId = this.tvControlItem.SelectedNodeID;
+ // if (!string.IsNullOrEmpty(projectId))
+ // {
+ // string strSql = @"SELECT * from JGZL_FileDirectory order by SerialNumber asc";
+ // List listStr = new List();
+ // //listStr.Add(new SqlParameter("@ProjectId", projectId));
+ // SqlParameter[] parameter = listStr.ToArray();
+ // DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ // initTemplatePath = Const.JGZL_FileDirectoryUrl;
+ // uploadfilepath = rootPath + initTemplatePath;
+
+ // newUrl = uploadfilepath.Replace("交工技术文件目录导出模板", "交工技术文件目录");
+ // if (File.Exists(newUrl))
+ // {
+ // File.Delete(newUrl);
+ // }
+ // File.Copy(uploadfilepath, newUrl);
+ // //更新书签内容
+ // Document doc = new Aspose.Words.Document(newUrl);
+ // DocumentBuilder builder = new DocumentBuilder(doc);
+
+ // Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
+
+ // Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ // if (projectName != null)
+ // {
+ // projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ // }
+
+ // // 设置表头行重复显示
+ // table.Rows[0].RowFormat.HeadingFormat = true;
+ // table.Rows[1].RowFormat.HeadingFormat = true;
+
+ // // 先记录页尾行,并从表格中移除
+ // Row footerRow = table.Rows[table.Rows.Count - 1];
+ // table.Rows.RemoveAt(table.Rows.Count - 1);
+
+ // for (int i = 0; i < tb.Rows.Count; i++)
+ // {
+ // //创建行
+ // Row row = new Row(doc);
+ // row.Cells.Add(CreateCell((i + 1).ToString(), doc, 27, "", ""));
+ // row.Cells.Add(CreateCell(tb.Rows[i]["FileCode"].ToString(), doc, 118, "", ""));
+ // row.Cells.Add(CreateCell(tb.Rows[i]["FileName"].ToString(), doc, 261.3, "", ""));
+ // row.Cells.Add(CreateCell(tb.Rows[i]["Remark"].ToString(), doc, 74, "", ""));
+ // table.Rows.Insert(i + 2, row);
+ // }
+ // // 计算并插入空白行,填满整页
+ // // 计算总数据行数
+ // int totalDataRows = tb.Rows.Count;
+ // // 计算需要补充的空白行数量
+ // int remainder = totalDataRows % rowsPerPage;
+ // int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
+
+ // // 插入空白行(和数据行格式保持一致,仅内容为空)
+ // for (int i = 0; i < needBlankRows - 1; i++)
+ // {
+ // Row blankRow = new Row(doc);
+ // // 空白行的单元格宽度和数据行保持一致
+ // blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 118, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 261.3, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 74, "", ""));
+ // // 插入到表格最后一行
+ // table.Rows.Add(blankRow);
+ // }
+ // //把页尾行重新加回表格最后
+ // table.Rows.Add(footerRow);
+
+ // //自动设置表格样式
+ // table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ // table.Alignment = TableAlignment.Center;
+
+ // doc.Save(newUrl);
+
+ // string fileName = Path.GetFileName(newUrl);
+ // FileInfo info = new FileInfo(newUrl);
+ // long fileSize = info.Length;
+ // Response.Clear();
+ // Response.ContentType = "application/x-zip-compressed";
+ // Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ // Response.AddHeader("Content-Length", fileSize.ToString());
+ // Response.TransmitFile(newUrl, 0, fileSize);
+ // Response.Flush();
+ // Response.Close();
+ // File.Delete(newUrl);
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+
+ //public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
+ //{
+ // Cell cell = new Cell(doc);
+ // Paragraph p = new Paragraph(doc);
+ // if (!string.IsNullOrEmpty(cellMerge))
+ // {
+ // if (cellMerge == "0")
+ // {
+ // cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
+ // }
+ // else
+ // {
+ // cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
+ // }
+
+ // }
+ // else
+ // {
+ // cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ // }
+ // if (!string.IsNullOrEmpty(CenterPage))
+ // {
+ // //序号
+ // value = " " + value;
+ // }
+ // if (!string.IsNullOrEmpty(cellUnitLeft))
+ // {
+ // p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
+ // }
+ // else
+ // {
+ // p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
+ // }
+
+
+ // p.AppendChild(new Run(doc, value));
+
+ // cell.CellFormat.Width = cellWidth;
+
+ // cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
+
+ // cell.CellFormat.Borders.LineWidth = 0.75;
+
+ // cell.AppendChild(p);
+ // return cell;
+ //}
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.designer.cs
new file mode 100644
index 0000000..937f28f
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/SYBDataList.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.SYBData
+{
+
+
+ public partial class SYBDataList
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPrint;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config
index 3f81ed7..30834b7 100644
--- a/HJGL_DS/FineUIPro.Web/Web.config
+++ b/HJGL_DS/FineUIPro.Web/Web.config
@@ -11,7 +11,7 @@
-
+
diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs
index 7dbbcdb..efae821 100644
--- a/HJGL_DS/Model/Model.cs
+++ b/HJGL_DS/Model/Model.cs
@@ -596,9 +596,15 @@ namespace Model
partial void InsertSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
partial void UpdateSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
partial void DeleteSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
+ partial void InsertSYBData_ApplicationForm(SYBData_ApplicationForm instance);
+ partial void UpdateSYBData_ApplicationForm(SYBData_ApplicationForm instance);
+ partial void DeleteSYBData_ApplicationForm(SYBData_ApplicationForm instance);
partial void InsertSYBData_Cover(SYBData_Cover instance);
partial void UpdateSYBData_Cover(SYBData_Cover instance);
partial void DeleteSYBData_Cover(SYBData_Cover instance);
+ partial void InsertSYBData_FileDirectory(SYBData_FileDirectory instance);
+ partial void UpdateSYBData_FileDirectory(SYBData_FileDirectory instance);
+ partial void DeleteSYBData_FileDirectory(SYBData_FileDirectory instance);
partial void InsertSys_ButtonPower(Sys_ButtonPower instance);
partial void UpdateSys_ButtonPower(Sys_ButtonPower instance);
partial void DeleteSys_ButtonPower(Sys_ButtonPower instance);
@@ -2517,6 +2523,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table SYBData_ApplicationForm
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table SYBData_Cover
{
get
@@ -2525,6 +2539,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table SYBData_FileDirectory
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Sys_ButtonPower
{
get
@@ -4862,8 +4884,12 @@ namespace Model
private EntitySet _Sp_WelderOKRate;
+ private EntitySet _SYBData_ApplicationForm;
+
private EntitySet _SYBData_Cover;
+ private EntitySet _SYBData_FileDirectory;
+
private EntitySet _Weld_ProjectPlan;
private EntitySet _Weld_RecycleMat;
@@ -5010,7 +5036,9 @@ namespace Model
this._Project_Welder = new EntitySet(new Action(this.attach_Project_Welder), new Action(this.detach_Project_Welder));
this._Project_WorkArea = new EntitySet(new Action(this.attach_Project_WorkArea), new Action(this.detach_Project_WorkArea));
this._Sp_WelderOKRate = new EntitySet(new Action(this.attach_Sp_WelderOKRate), new Action(this.detach_Sp_WelderOKRate));
+ this._SYBData_ApplicationForm = new EntitySet(new Action(this.attach_SYBData_ApplicationForm), new Action(this.detach_SYBData_ApplicationForm));
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._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));
@@ -6614,6 +6642,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ApplicationForm_Base_Project", Storage="_SYBData_ApplicationForm", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet SYBData_ApplicationForm
+ {
+ get
+ {
+ return this._SYBData_ApplicationForm;
+ }
+ set
+ {
+ this._SYBData_ApplicationForm.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_Base_Project", Storage="_SYBData_Cover", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet SYBData_Cover
{
@@ -6627,6 +6668,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_FileDirectory_Base_Project", Storage="_SYBData_FileDirectory", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet SYBData_FileDirectory
+ {
+ get
+ {
+ return this._SYBData_FileDirectory;
+ }
+ set
+ {
+ this._SYBData_FileDirectory.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
{
@@ -7659,6 +7713,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_SYBData_ApplicationForm(SYBData_ApplicationForm entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_SYBData_ApplicationForm(SYBData_ApplicationForm entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_SYBData_Cover(SYBData_Cover entity)
{
this.SendPropertyChanging();
@@ -7671,6 +7737,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_SYBData_FileDirectory(SYBData_FileDirectory entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_SYBData_FileDirectory(SYBData_FileDirectory entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_Weld_ProjectPlan(Weld_ProjectPlan entity)
{
this.SendPropertyChanging();
@@ -60918,7 +60996,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HotProessTrustItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HotProessTrustItemId", DbType="NVarChar(50)")]
public string HotProessTrustItemId
{
get
@@ -61094,7 +61172,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HotProessResultId", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HotProessResultId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string HotProessResultId
{
get
@@ -116931,6 +117009,253 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_ApplicationForm")]
+ public partial class SYBData_ApplicationForm : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _ApplicationFormId;
+
+ private string _ProjectId;
+
+ private string _ApplicationFormCode;
+
+ private string _SupervisionUnit;
+
+ private string _Contents;
+
+ private string _ProfessionalEngineer;
+
+ private System.Nullable _ApplicationDate;
+
+ private EntityRef _Base_Project;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnApplicationFormIdChanging(string value);
+ partial void OnApplicationFormIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnApplicationFormCodeChanging(string value);
+ partial void OnApplicationFormCodeChanged();
+ partial void OnSupervisionUnitChanging(string value);
+ partial void OnSupervisionUnitChanged();
+ partial void OnContentsChanging(string value);
+ partial void OnContentsChanged();
+ partial void OnProfessionalEngineerChanging(string value);
+ partial void OnProfessionalEngineerChanged();
+ partial void OnApplicationDateChanging(System.Nullable value);
+ partial void OnApplicationDateChanged();
+ #endregion
+
+ public SYBData_ApplicationForm()
+ {
+ this._Base_Project = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationFormId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string ApplicationFormId
+ {
+ get
+ {
+ return this._ApplicationFormId;
+ }
+ set
+ {
+ if ((this._ApplicationFormId != value))
+ {
+ this.OnApplicationFormIdChanging(value);
+ this.SendPropertyChanging();
+ this._ApplicationFormId = value;
+ this.SendPropertyChanged("ApplicationFormId");
+ this.OnApplicationFormIdChanged();
+ }
+ }
+ }
+
+ [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="_ApplicationFormCode", DbType="NVarChar(50)")]
+ public string ApplicationFormCode
+ {
+ get
+ {
+ return this._ApplicationFormCode;
+ }
+ set
+ {
+ if ((this._ApplicationFormCode != value))
+ {
+ this.OnApplicationFormCodeChanging(value);
+ this.SendPropertyChanging();
+ this._ApplicationFormCode = value;
+ this.SendPropertyChanged("ApplicationFormCode");
+ this.OnApplicationFormCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupervisionUnit", DbType="NVarChar(50)")]
+ public string SupervisionUnit
+ {
+ get
+ {
+ return this._SupervisionUnit;
+ }
+ set
+ {
+ if ((this._SupervisionUnit != value))
+ {
+ this.OnSupervisionUnitChanging(value);
+ this.SendPropertyChanging();
+ this._SupervisionUnit = value;
+ this.SendPropertyChanged("SupervisionUnit");
+ this.OnSupervisionUnitChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contents", DbType="NVarChar(500)")]
+ 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="_ProfessionalEngineer", DbType="NVarChar(50)")]
+ public string ProfessionalEngineer
+ {
+ get
+ {
+ return this._ProfessionalEngineer;
+ }
+ set
+ {
+ if ((this._ProfessionalEngineer != value))
+ {
+ this.OnProfessionalEngineerChanging(value);
+ this.SendPropertyChanging();
+ this._ProfessionalEngineer = value;
+ this.SendPropertyChanged("ProfessionalEngineer");
+ this.OnProfessionalEngineerChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationDate", DbType="DateTime")]
+ public System.Nullable ApplicationDate
+ {
+ get
+ {
+ return this._ApplicationDate;
+ }
+ set
+ {
+ if ((this._ApplicationDate != value))
+ {
+ this.OnApplicationDateChanging(value);
+ this.SendPropertyChanging();
+ this._ApplicationDate = value;
+ this.SendPropertyChanged("ApplicationDate");
+ this.OnApplicationDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ApplicationForm_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_ApplicationForm.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.SYBData_ApplicationForm.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_Cover")]
public partial class SYBData_Cover : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -117178,6 +117503,205 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_FileDirectory")]
+ public partial class SYBData_FileDirectory : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _FileDirectoryId;
+
+ private string _ProjectId;
+
+ private string _FileCode;
+
+ private string _FileName;
+
+ private string _CompletionStatus;
+
+ private EntityRef _Base_Project;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnFileDirectoryIdChanging(string value);
+ partial void OnFileDirectoryIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnFileCodeChanging(string value);
+ partial void OnFileCodeChanged();
+ partial void OnFileNameChanging(string value);
+ partial void OnFileNameChanged();
+ partial void OnCompletionStatusChanging(string value);
+ partial void OnCompletionStatusChanged();
+ #endregion
+
+ public SYBData_FileDirectory()
+ {
+ this._Base_Project = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileDirectoryId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string FileDirectoryId
+ {
+ get
+ {
+ return this._FileDirectoryId;
+ }
+ set
+ {
+ if ((this._FileDirectoryId != value))
+ {
+ this.OnFileDirectoryIdChanging(value);
+ this.SendPropertyChanging();
+ this._FileDirectoryId = value;
+ this.SendPropertyChanged("FileDirectoryId");
+ this.OnFileDirectoryIdChanged();
+ }
+ }
+ }
+
+ [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="_FileCode", DbType="NVarChar(50)")]
+ public string FileCode
+ {
+ get
+ {
+ return this._FileCode;
+ }
+ set
+ {
+ if ((this._FileCode != value))
+ {
+ this.OnFileCodeChanging(value);
+ this.SendPropertyChanging();
+ this._FileCode = value;
+ this.SendPropertyChanged("FileCode");
+ this.OnFileCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileName", DbType="NVarChar(50)")]
+ public string FileName
+ {
+ get
+ {
+ return this._FileName;
+ }
+ set
+ {
+ if ((this._FileName != value))
+ {
+ this.OnFileNameChanging(value);
+ this.SendPropertyChanging();
+ this._FileName = value;
+ this.SendPropertyChanged("FileName");
+ this.OnFileNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletionStatus", DbType="NVarChar(50)")]
+ public string CompletionStatus
+ {
+ get
+ {
+ return this._CompletionStatus;
+ }
+ set
+ {
+ if ((this._CompletionStatus != value))
+ {
+ this.OnCompletionStatusChanging(value);
+ this.SendPropertyChanging();
+ this._CompletionStatus = value;
+ this.SendPropertyChanged("CompletionStatus");
+ this.OnCompletionStatusChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_FileDirectory_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_FileDirectory.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.SYBData_FileDirectory.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 a48b337..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