20251209 交工资料
This commit is contained in:
parent
39b1c75359
commit
140f98a08b
|
|
@ -27,7 +27,7 @@ REM --------------
|
||||||
@echo.
|
@echo.
|
||||||
@call "%VS100COMNTOOLS%"vsvars32.bat
|
@call "%VS100COMNTOOLS%"vsvars32.bat
|
||||||
|
|
||||||
SqlMetal /views /server:.\SQL2019 /database:HJGLDB_DS /code:%Model_ROOT%\Model.cs /namespace:Model
|
SqlMetal /views /server:.\SQL2022 /database:HJGLDB_DS /code:%Model_ROOT%\Model.cs /namespace:Model
|
||||||
|
|
||||||
@ECHO 完成
|
@ECHO 完成
|
||||||
pause
|
pause
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,90 @@
|
||||||
|
|
||||||
|
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
values('2A84FA58-8B20-48ED-A621-3EC98CF4AD28','交工资料','',250,'0','3')
|
||||||
|
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
values('A4B2E5A9-96A8-460F-885A-BE5FF9B5019E','工程施工开工报告','JGZL/CommencementReport.aspx',10,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||||
|
go
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('E8A5E227-B90B-4F1D-BAC9-63992DF65E74','A4B2E5A9-96A8-460F-885A-BE5FF9B5019E','增加',1)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('ABB85733-F474-4D68-BED0-F1D92FA0765F','A4B2E5A9-96A8-460F-885A-BE5FF9B5019E','修改',2)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('2C370582-BE78-4297-8C29-30FCD49CEFF1','A4B2E5A9-96A8-460F-885A-BE5FF9B5019E','删除',3)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('2AE25E38-D278-4697-8CC1-4095BCDEF6B5','A4B2E5A9-96A8-460F-885A-BE5FF9B5019E','保存',4)
|
||||||
|
go
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[JGZL_CommencementReport](
|
||||||
|
[CommencementReportId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[ContractNumber] [nvarchar](100) NULL,
|
||||||
|
[DesignUnit] [nvarchar](50) NULL,
|
||||||
|
[PlannedStartDate] [datetime] NULL,
|
||||||
|
[PlannedEndDate] [datetime] NULL,
|
||||||
|
[ProjectContent] [nvarchar](2000) NULL,
|
||||||
|
[Conditions] [nvarchar](1000) NULL,
|
||||||
|
[ReviewOpinion] [nvarchar](1000) NULL,
|
||||||
|
[QualitySupervisionOpinion] [nvarchar](1000) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_JGZL_CommencementReport] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[CommencementReportId] ASC
|
||||||
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
|
||||||
|
) ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[JGZL_CommencementReport] WITH CHECK ADD CONSTRAINT [FK_JGZL_CommencementReport_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[JGZL_CommencementReport] CHECK CONSTRAINT [FK_JGZL_CommencementReport_Base_Project]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[JGZL_CommencementReport] WITH CHECK ADD CONSTRAINT [FK_JGZL_CommencementReport_Sys_User] FOREIGN KEY([CompileMan])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[JGZL_CommencementReport] CHECK CONSTRAINT [FK_JGZL_CommencementReport_Sys_User]
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'CommencementReportId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工合同编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'ContractNumber'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'DesignUnit'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'计划开工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'PlannedStartDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'计划交工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'PlannedEndDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程内容' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'ProjectContent'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开工条件' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'Conditions'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审查意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'ReviewOpinion'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'质量监督意见' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'QualitySupervisionOpinion'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工程施工开工报告' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_CommencementReport'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -244,6 +244,7 @@
|
||||||
<Compile Include="HJGL\WeldingManage\WelderOKRateService.cs" />
|
<Compile Include="HJGL\WeldingManage\WelderOKRateService.cs" />
|
||||||
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
|
<Compile Include="HJGL\WeldingManage\WelderOKRateStatisticsService.cs" />
|
||||||
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
|
<Compile Include="HJGL\WeldingManage\WeldRecordInService.cs" />
|
||||||
|
<Compile Include="JGZL\CommencementReportService.cs" />
|
||||||
<Compile Include="JsonHelper.cs" />
|
<Compile Include="JsonHelper.cs" />
|
||||||
<Compile Include="libFace.cs" />
|
<Compile Include="libFace.cs" />
|
||||||
<Compile Include="libOpenCV.cs" />
|
<Compile Include="libOpenCV.cs" />
|
||||||
|
|
|
||||||
|
|
@ -1749,6 +1749,13 @@ namespace BLL
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 交工资料菜单Id
|
||||||
|
/// <summary>
|
||||||
|
/// 工程施工开工报告
|
||||||
|
/// </summary>
|
||||||
|
public const string JGZL_CommencementReportMenuId = "A4B2E5A9-96A8-460F-885A-BE5FF9B5019E";
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 报表对应ID
|
#region 报表对应ID
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
using Model;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 工程施工开工报告
|
||||||
|
/// </summary>
|
||||||
|
public class CommencementReportService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取工程施工开工报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="commencementReportId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.JGZL_CommencementReport GetCommencementReportById(string commencementReportId)
|
||||||
|
{
|
||||||
|
return Funs.DB.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReportId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加工程施工开工报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="commencementReport"></param>
|
||||||
|
public static void AddCommencementReport(Model.JGZL_CommencementReport commencementReport)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_CommencementReport newCommencementReport = new Model.JGZL_CommencementReport();
|
||||||
|
newCommencementReport.CommencementReportId = commencementReport.CommencementReportId;
|
||||||
|
newCommencementReport.ProjectId = commencementReport.ProjectId;
|
||||||
|
newCommencementReport.ContractNumber = commencementReport.ContractNumber;
|
||||||
|
newCommencementReport.DesignUnit = commencementReport.DesignUnit;
|
||||||
|
newCommencementReport.PlannedStartDate = commencementReport.PlannedStartDate;
|
||||||
|
newCommencementReport.PlannedEndDate = commencementReport.PlannedEndDate;
|
||||||
|
newCommencementReport.ProjectContent = commencementReport.ProjectContent;
|
||||||
|
newCommencementReport.Conditions = commencementReport.Conditions;
|
||||||
|
newCommencementReport.ReviewOpinion = commencementReport.ReviewOpinion;
|
||||||
|
newCommencementReport.QualitySupervisionOpinion = commencementReport.QualitySupervisionOpinion;
|
||||||
|
newCommencementReport.CompileMan = commencementReport.CompileMan;
|
||||||
|
newCommencementReport.CompileDate = commencementReport.CompileDate;
|
||||||
|
db.JGZL_CommencementReport.InsertOnSubmit(newCommencementReport);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改工程施工报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="commencementReport"></param>
|
||||||
|
public static void UpdateCommencementReport(Model.JGZL_CommencementReport commencementReport)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_CommencementReport newCommencementReport = db.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReport.CommencementReportId);
|
||||||
|
if (newCommencementReport != null)
|
||||||
|
{
|
||||||
|
newCommencementReport.ContractNumber = commencementReport.ContractNumber;
|
||||||
|
newCommencementReport.DesignUnit = commencementReport.DesignUnit;
|
||||||
|
newCommencementReport.PlannedStartDate = commencementReport.PlannedStartDate;
|
||||||
|
newCommencementReport.PlannedEndDate = commencementReport.PlannedEndDate;
|
||||||
|
newCommencementReport.ProjectContent = commencementReport.ProjectContent;
|
||||||
|
newCommencementReport.Conditions = commencementReport.Conditions;
|
||||||
|
newCommencementReport.ReviewOpinion = commencementReport.ReviewOpinion;
|
||||||
|
newCommencementReport.QualitySupervisionOpinion = commencementReport.QualitySupervisionOpinion;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除工程施工开工报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="commencementReportId"></param>
|
||||||
|
public static void DeleteCommencementReportById(string commencementReportId)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
Model.JGZL_CommencementReport commencementReport = db.JGZL_CommencementReport.FirstOrDefault(e => e.CommencementReportId == commencementReportId);
|
||||||
|
if (commencementReport != null)
|
||||||
|
{
|
||||||
|
db.JGZL_CommencementReport.DeleteOnSubmit(commencementReport);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,125 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/09/2025 11:39:20" ReportInfo.Modified="12/09/2025 14:32:25" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||||
|
<Dictionary>
|
||||||
|
<Parameter Name="ProjectName" DataType="System.String"/>
|
||||||
|
<Parameter Name="ContractNumber" DataType="System.String"/>
|
||||||
|
<Parameter Name="DesignUnit" DataType="System.String"/>
|
||||||
|
<Parameter Name="PlannedStartDate" DataType="System.String"/>
|
||||||
|
<Parameter Name="PlannedEndDate" DataType="System.String"/>
|
||||||
|
<Parameter Name="ProjectContent" DataType="System.String"/>
|
||||||
|
<Parameter Name="Conditions" DataType="System.String"/>
|
||||||
|
<Parameter Name="ReviewOpinion" DataType="System.String"/>
|
||||||
|
<Parameter Name="QualitySupervisionOpinion" DataType="System.String"/>
|
||||||
|
</Dictionary>
|
||||||
|
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="21" Guides="0,623.7,160.65,69.3,59.85,374.85,107.1,31.5,100.8,267.75,248.85,211.05,422.1">
|
||||||
|
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="788.26" Guides="0,788.26,86.21,20.06,66.15,125.17,38.96,164.13,360.69,196.56,503.6,142.91,635.9,132.3,749.3,113.4">
|
||||||
|
<TableObject Name="Table1" Width="623.7" Height="788.26">
|
||||||
|
<TableColumn Name="Column1" Width="31.5"/>
|
||||||
|
<TableColumn Name="Column2" Width="69.3"/>
|
||||||
|
<TableColumn Name="Column3" Width="59.85"/>
|
||||||
|
<TableColumn Name="Column4" Width="107.1"/>
|
||||||
|
<TableColumn Name="Column5" Width="107.1"/>
|
||||||
|
<TableColumn Name="Column6" Width="248.85"/>
|
||||||
|
<TableRow Name="Row1" Height="20.06">
|
||||||
|
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J105A" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="3" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell2" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell3" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell4" Border.Lines="All" Text="工程施工开工报告" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="2" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell5" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell26" Border.Lines="Left, Right, Top" Text="工程名称:" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row9" Height="66.15">
|
||||||
|
<TableCell Name="Cell57" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell58" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell59" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell60" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell61" Border.Lines="All"/>
|
||||||
|
<TableCell Name="Cell62" Border.Lines="Left, Right, Bottom" Text="[ProjectName]" Font="楷体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row2" Height="38.96">
|
||||||
|
<TableCell Name="Cell6" Border.Lines="All" Text="施工合同编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||||
|
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell8" Border.Lines="All" Text="[ContractNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||||
|
<TableCell Name="Cell9" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell10" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell28" Border.Lines="All" Text="[DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row3" Height="38.96">
|
||||||
|
<TableCell Name="Cell11" Border.Lines="All" Text="计划开工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
||||||
|
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell13" Border.Lines="All" Text="[PlannedStartDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
|
||||||
|
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell15" Border.Lines="All" Text="计划交工日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell30" Border.Lines="All" Text="[PlannedEndDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row4" Height="196.56">
|
||||||
|
<TableCell Name="Cell16" Border.Lines="All" Text="工 程 内 容" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell17" Border.Lines="All" Text="[ProjectContent]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||||
|
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row5" Height="142.91">
|
||||||
|
<TableCell Name="Cell21" Border.Lines="All" Text="开 工 条 件" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell22" Border.Lines="All" Text="[Conditions]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||||
|
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row6" Height="132.3">
|
||||||
|
<TableCell Name="Cell36" Border.Lines="All" Text="审 查 意 见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell37" Border.Lines="All" Text="[ReviewOpinion]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||||
|
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row7" Height="113.4">
|
||||||
|
<TableCell Name="Cell43" Border.Lines="All" Text="质 量 监 督 意 见" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell44" Border.Lines="Left, Right, Top" Text="[QualitySupervisionOpinion]" Font="楷体, 10.5pt" ColSpan="5"/>
|
||||||
|
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row8" Height="38.96">
|
||||||
|
<TableCell Name="Cell50" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell51" Border.Lines="Left, Right, Bottom" Text=" 工程质量监督站长/组长:(监督站/组章)年月日" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||||
|
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell54" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
</PageHeaderBand>
|
||||||
|
<PageFooterBand Name="PageFooter1" Top="792.26" Width="623.7" Height="179.52" Guides="0,179.52,35.43,99.21,144.09">
|
||||||
|
<TableObject Name="Table2" Width="623.7" Height="179.52" Border.Lines="Left, Right, Bottom">
|
||||||
|
<TableColumn Name="Column7" Width="211.05"/>
|
||||||
|
<TableColumn Name="Column8" Width="211.05"/>
|
||||||
|
<TableColumn Name="Column9" Width="201.6"/>
|
||||||
|
<TableRow Name="Row10" Height="35.43">
|
||||||
|
<TableCell Name="Cell63" Border.Lines="All" Text="建设单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell64" Border.Lines="All" Text="监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell65" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row11" Height="63.78">
|
||||||
|
<TableCell Name="Cell68" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell69" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell70" Border.Lines="Left, Right, Top" Text="(项目部章)" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row12" Height="44.88">
|
||||||
|
<TableCell Name="Cell73" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell74" Border.Lines="Left, Right" Text="项目总监:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell75" Border.Lines="Left, Right" Text="项目经理:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row13" Height="35.43">
|
||||||
|
<TableCell Name="Cell78" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell79" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell80" Border.Lines="Left, Right, Bottom" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
</PageFooterBand>
|
||||||
|
</ReportPage>
|
||||||
|
</Report>
|
||||||
|
|
@ -1239,6 +1239,8 @@
|
||||||
<Content Include="Images\SINOPEC.gif" />
|
<Content Include="Images\SINOPEC.gif" />
|
||||||
<Content Include="Images\UnitLogo.jpg" />
|
<Content Include="Images\UnitLogo.jpg" />
|
||||||
<Content Include="Images\wrong.jpg" />
|
<Content Include="Images\wrong.jpg" />
|
||||||
|
<Content Include="JGZL\CommencementReport.aspx" />
|
||||||
|
<Content Include="JGZL\CommencementReportEdit.aspx" />
|
||||||
<Content Include="Login.aspx" />
|
<Content Include="Login.aspx" />
|
||||||
<Content Include="AttachFile\fileupload.ashx" />
|
<Content Include="AttachFile\fileupload.ashx" />
|
||||||
<Content Include="Captcha\captcha.ashx" />
|
<Content Include="Captcha\captcha.ashx" />
|
||||||
|
|
@ -6504,6 +6506,20 @@
|
||||||
<Compile Include="HJGL\WeldingReport\WeldInspectionCheckRecordItem.aspx.designer.cs">
|
<Compile Include="HJGL\WeldingReport\WeldInspectionCheckRecordItem.aspx.designer.cs">
|
||||||
<DependentUpon>WeldInspectionCheckRecordItem.aspx</DependentUpon>
|
<DependentUpon>WeldInspectionCheckRecordItem.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="JGZL\CommencementReport.aspx.cs">
|
||||||
|
<DependentUpon>CommencementReport.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\CommencementReport.aspx.designer.cs">
|
||||||
|
<DependentUpon>CommencementReport.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\CommencementReportEdit.aspx.cs">
|
||||||
|
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="JGZL\CommencementReportEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>CommencementReportEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Login.aspx.cs">
|
<Compile Include="Login.aspx.cs">
|
||||||
<DependentUpon>Login.aspx</DependentUpon>
|
<DependentUpon>Login.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,124 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommencementReport.aspx.cs" Inherits="FineUIPro.Web.JGZL.CommencementReport" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>工程施工开工报告</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||||
|
<Items>
|
||||||
|
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||||
|
EnableCollapse="true" Width="220px" Title="工程施工开工报告" ShowBorder="true" Layout="VBox"
|
||||||
|
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||||
|
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Items>
|
||||||
|
<f:Tree ID="tvControlItem" ShowHeader="false" Title="工程施工开工报告节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||||
|
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||||
|
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||||
|
</f:Tree>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||||
|
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="工程施工开工报告"
|
||||||
|
TitleToolTip="工程施工开工报告" AutoScroll="true">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||||
|
<f:Button ID="btnPrint" Text="工程施工开工报告打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工程施工开工报告" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="CommencementReportId" AllowCellEditing="true"
|
||||||
|
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CommencementReportId" AllowSorting="true"
|
||||||
|
SortField="ContractNumber" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||||
|
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||||
|
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||||
|
<Columns>
|
||||||
|
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" />
|
||||||
|
<f:RenderField HeaderText="施工合同编号" ColumnID="ContractNumber" DataField="ContractNumber" SortField="ContractNumber"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="计划开工日期" ColumnID="PlannedStartDate" DataField="PlannedStartDate" SortField="PlannedStartDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="计划交工日期" ColumnID="PlannedEndDate" DataField="PlannedEndDate" SortField="PlannedEndDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="工程内容" ColumnID="ProjectContent" DataField="ProjectContent" SortField="ProjectContent"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="开工条件" ColumnID="Conditions" DataField="Conditions" SortField="Conditions"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
<Listeners>
|
||||||
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
</Listeners>
|
||||||
|
<PageItems>
|
||||||
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
|
</f:ToolbarSeparator>
|
||||||
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
</f:ToolbarText>
|
||||||
|
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||||
|
<f:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="工程施工开工报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="1100px" Height="620px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Window ID="WindowPrint" Title="打印工程施工开工报告" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
|
Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
|
runat="server" Text="编辑" Icon="TableEdit">
|
||||||
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
|
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||||
|
</f:MenuButton>
|
||||||
|
</f:Menu>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var menuID = '<%= Menu1.ClientID %>';
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,388 @@
|
||||||
|
using BLL;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.IO;
|
||||||
|
using Org.BouncyCastle.Bcpg.OpenPgp;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class CommencementReport : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||||
|
|
||||||
|
this.drpProjectId.DataTextField = "ProjectCode";
|
||||||
|
this.drpProjectId.DataValueField = "ProjectId";
|
||||||
|
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
this.drpProjectId.DataBind();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||||
|
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载树项目
|
||||||
|
/// <summary>
|
||||||
|
/// 加载树
|
||||||
|
/// </summary>
|
||||||
|
private void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
TreeNode rootNode = new TreeNode();
|
||||||
|
rootNode.Text = "项目";
|
||||||
|
rootNode.ToolTip = "项目";
|
||||||
|
rootNode.NodeID = "0";
|
||||||
|
rootNode.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode);
|
||||||
|
|
||||||
|
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||||
|
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||||
|
}
|
||||||
|
foreach (var item in projects)
|
||||||
|
{
|
||||||
|
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||||
|
rootProjectNode.Text = item.ProjectCode;
|
||||||
|
rootProjectNode.NodeID = item.ProjectId;
|
||||||
|
rootProjectNode.EnableClickEvent = true;
|
||||||
|
rootProjectNode.Expanded = true;
|
||||||
|
rootProjectNode.ToolTip = item.ProjectName;
|
||||||
|
rootProjectNode.CommandName = "项目名称";
|
||||||
|
rootNode.Nodes.Add(rootProjectNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 点击TreeView
|
||||||
|
/// <summary>
|
||||||
|
/// 点击TreeView
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID != "0")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||||
|
string strSql = @"SELECT * from JGZL_CommencementReport where 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
strSql += " AND ProjectId = @ProjectId";
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||||
|
}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||||
|
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||||
|
//}
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
// 2.获取当前分页数据
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页排序
|
||||||
|
#region 页索引改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 页索引改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 排序
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页选择下拉改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 分页选择下拉改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
///<summary>
|
||||||
|
///查询
|
||||||
|
///</summary>
|
||||||
|
///<param name="sender"></param>
|
||||||
|
///<param name="e"></param>
|
||||||
|
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 打印
|
||||||
|
/// <summary>
|
||||||
|
/// 打印
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrint_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
|
{
|
||||||
|
string initTemplatePath = "";
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
BLL.Common.FastReportService.ResetData();
|
||||||
|
|
||||||
|
var report = BLL.CommencementReportService.GetCommencementReportById(this.Grid1.SelectedRowID);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
|
keyValuePairs.Add("ContractNumber", report.ContractNumber);
|
||||||
|
keyValuePairs.Add("DesignUnit", report.DesignUnit);
|
||||||
|
keyValuePairs.Add("PlannedStartDate", report.PlannedStartDate.HasValue ? string.Format("{0:yyyy年MM月dd日}",report.PlannedStartDate) : "");
|
||||||
|
keyValuePairs.Add("PlannedEndDate", report.PlannedEndDate.HasValue ? string.Format("{0:yyyy年MM月dd日}",report.PlannedEndDate) : "");
|
||||||
|
keyValuePairs.Add("ProjectContent", report.ProjectContent);
|
||||||
|
keyValuePairs.Add("Conditions", report.Conditions);
|
||||||
|
keyValuePairs.Add("ReviewOpinion", report.ReviewOpinion);
|
||||||
|
keyValuePairs.Add("QualitySupervisionOpinion", report.QualitySupervisionOpinion);
|
||||||
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
}
|
||||||
|
initTemplatePath = "File\\Fastreport\\JGZL\\工程施工开工报告.frx";
|
||||||
|
if (File.Exists(rootPath + initTemplatePath))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 维护
|
||||||
|
/// <summary>
|
||||||
|
/// 增加
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnAdd_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CommencementReportEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 双击编辑
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_CommencementReportMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CommencementReportEdit.aspx?commencementReportId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 右键编辑
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_CommencementReportMenuId, BLL.Const.BtnModify))
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CommencementReportEdit.aspx?commencementReportId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 右键删除
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_CommencementReportMenuId, 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.CommencementReportService.DeleteCommencementReportById(rowID);
|
||||||
|
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工程施工开工报告");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isDelete)
|
||||||
|
{
|
||||||
|
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 判断是否可删除
|
||||||
|
/// <summary>
|
||||||
|
/// 判断是否可以删除
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private bool judgementDelete(string id, bool isShow)
|
||||||
|
{
|
||||||
|
string content = string.Empty;
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(content))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (isShow)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 关闭弹出窗口及刷新页面
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗口
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,206 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class CommencementReport
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Panel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel Panel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panelLeftRegion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panelLeftRegion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpProjectId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProjectId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tvControlItem 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Tree tvControlItem;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panelCenterRegion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panelCenterRegion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAdd 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnAdd;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnPrint 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnPrint;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarSeparator1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarText1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlPageSize 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Window1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// WindowPrint 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window WindowPrint;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Menu1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Menu Menu1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuEdit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnMenuDelete 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,63 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommencementReportEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.CommencementReportEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>编辑工程施工开工报告</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||||
|
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtContractNumber" runat="server" Label="施工合同编号" LabelAlign="Right" LabelWidth="110px" MaxLength="100" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DatePicker ID="txtPlannedStartDate" runat="server" Label="计划开工日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
<f:DatePicker ID="txtPlannedEndDate" runat="server" Label="计划交工日期" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtProjectContent" runat="server" Label="工程内容" LabelAlign="Right" LabelWidth="110px" MaxLength="2000" Required="true" ShowRedStar="true"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtConditions" runat="server" Label="开工条件" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtReviewOpinion" runat="server" Label="审查意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea ID="txtQualitySupervisionOpinion" runat="server" Label="质量监督意见" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
public partial class CommencementReportEdit :PageBase
|
||||||
|
{
|
||||||
|
#region 定义项
|
||||||
|
/// <summary>
|
||||||
|
/// 主键
|
||||||
|
/// </summary>
|
||||||
|
private string CommencementReportId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["CommencementReportId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["CommencementReportId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目Id
|
||||||
|
/// </summary>
|
||||||
|
private string ProjectId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ProjectId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ProjectId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.ProjectId = Request.Params["projectId"];
|
||||||
|
this.CommencementReportId = Request.Params["commencementReportId"];
|
||||||
|
if (!string.IsNullOrEmpty(this.CommencementReportId))
|
||||||
|
{
|
||||||
|
var report = BLL.CommencementReportService.GetCommencementReportById(this.CommencementReportId);
|
||||||
|
if (report!=null)
|
||||||
|
{
|
||||||
|
this.txtContractNumber.Text = report.ContractNumber;
|
||||||
|
this.txtDesignUnit.Text = report.DesignUnit;
|
||||||
|
this.txtPlannedStartDate.Text = report.PlannedStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.PlannedStartDate) : "";
|
||||||
|
this.txtPlannedEndDate.Text = report.PlannedEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.PlannedEndDate) : "";
|
||||||
|
this.txtConditions.Text = report.Conditions;
|
||||||
|
this.txtProjectContent.Text = report.ProjectContent;
|
||||||
|
this.txtReviewOpinion.Text = report.ReviewOpinion;
|
||||||
|
this.txtQualitySupervisionOpinion.Text = report.QualitySupervisionOpinion;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 提交按钮
|
||||||
|
/// <summary>
|
||||||
|
/// 提交按钮
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_CommencementReportMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
Model.JGZL_CommencementReport newReport = new Model.JGZL_CommencementReport();
|
||||||
|
newReport.ContractNumber = this.txtContractNumber.Text.Trim();
|
||||||
|
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
|
||||||
|
newReport.PlannedStartDate = Funs.GetNewDateTime(this.txtPlannedStartDate.Text);
|
||||||
|
newReport.PlannedEndDate = Funs.GetNewDateTime(this.txtPlannedEndDate.Text);
|
||||||
|
newReport.ProjectContent = this.txtProjectContent.Text;
|
||||||
|
newReport.Conditions = this.txtConditions.Text;
|
||||||
|
newReport.ReviewOpinion =this.txtReviewOpinion.Text;
|
||||||
|
newReport.QualitySupervisionOpinion = this.txtQualitySupervisionOpinion.Text;
|
||||||
|
if (!string.IsNullOrEmpty(this.CommencementReportId))
|
||||||
|
{
|
||||||
|
newReport.CommencementReportId = this.CommencementReportId;
|
||||||
|
BLL.CommencementReportService.UpdateCommencementReport(newReport);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newReport.ProjectId = this.ProjectId;
|
||||||
|
newReport.CompileMan = this.CurrUser.UserId;
|
||||||
|
newReport.CompileDate = DateTime.Now;
|
||||||
|
newReport.CommencementReportId = SQLHelper.GetNewID(typeof(Model.JGZL_CommencementReport));
|
||||||
|
this.CommencementReportId = newReport.CommencementReportId;
|
||||||
|
BLL.CommencementReportService.AddCommencementReport(newReport);
|
||||||
|
}
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,143 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.JGZL
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class CommencementReportEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SimpleForm1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Toolbar1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtContractNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtContractNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtDesignUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtDesignUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtPlannedStartDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtPlannedStartDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtPlannedEndDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtPlannedEndDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProjectContent 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtProjectContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtConditions 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtConditions;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtReviewOpinion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtReviewOpinion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtQualitySupervisionOpinion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtQualitySupervisionOpinion;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
|
|
|
||||||
|
|
@ -371,6 +371,9 @@ namespace Model
|
||||||
partial void InsertHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
partial void InsertHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
||||||
partial void UpdateHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
partial void UpdateHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
||||||
partial void DeleteHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
partial void DeleteHJGL_WeldingProcedure_WeldRepairCard(HJGL_WeldingProcedure_WeldRepairCard instance);
|
||||||
|
partial void InsertJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||||
|
partial void UpdateJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||||
|
partial void DeleteJGZL_CommencementReport(JGZL_CommencementReport instance);
|
||||||
partial void InsertOAM_UesrQualified(OAM_UesrQualified instance);
|
partial void InsertOAM_UesrQualified(OAM_UesrQualified instance);
|
||||||
partial void UpdateOAM_UesrQualified(OAM_UesrQualified instance);
|
partial void UpdateOAM_UesrQualified(OAM_UesrQualified instance);
|
||||||
partial void DeleteOAM_UesrQualified(OAM_UesrQualified instance);
|
partial void DeleteOAM_UesrQualified(OAM_UesrQualified instance);
|
||||||
|
|
@ -1724,6 +1727,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<JGZL_CommencementReport> JGZL_CommencementReport
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<JGZL_CommencementReport>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<OAM_UesrQualified> OAM_UesrQualified
|
public System.Data.Linq.Table<OAM_UesrQualified> OAM_UesrQualified
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
@ -2316,6 +2327,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<View_UnitPerformance> View_UnitPerformance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<View_UnitPerformance>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<View_UsePosition> View_UsePosition
|
public System.Data.Linq.Table<View_UsePosition> View_UsePosition
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
@ -4289,6 +4308,8 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
|
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
|
||||||
|
|
||||||
|
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
|
||||||
|
|
||||||
private EntitySet<Project_Installation> _Project_Installation;
|
private EntitySet<Project_Installation> _Project_Installation;
|
||||||
|
|
||||||
private EntitySet<Project_RoleButtonPower> _Project_RoleButtonPower;
|
private EntitySet<Project_RoleButtonPower> _Project_RoleButtonPower;
|
||||||
|
|
@ -4413,6 +4434,7 @@ namespace Model
|
||||||
this._HJGL_WeldingProcedure_WeldingProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldingProcessCard>(new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.attach_HJGL_WeldingProcedure_WeldingProcessCard), new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.detach_HJGL_WeldingProcedure_WeldingProcessCard));
|
this._HJGL_WeldingProcedure_WeldingProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldingProcessCard>(new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.attach_HJGL_WeldingProcedure_WeldingProcessCard), new Action<HJGL_WeldingProcedure_WeldingProcessCard>(this.detach_HJGL_WeldingProcedure_WeldingProcessCard));
|
||||||
this._HJGL_WeldingProcedure_WeldRepairCard = new EntitySet<HJGL_WeldingProcedure_WeldRepairCard>(new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.attach_HJGL_WeldingProcedure_WeldRepairCard), new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.detach_HJGL_WeldingProcedure_WeldRepairCard));
|
this._HJGL_WeldingProcedure_WeldRepairCard = new EntitySet<HJGL_WeldingProcedure_WeldRepairCard>(new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.attach_HJGL_WeldingProcedure_WeldRepairCard), new Action<HJGL_WeldingProcedure_WeldRepairCard>(this.detach_HJGL_WeldingProcedure_WeldRepairCard));
|
||||||
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
|
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
|
||||||
|
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
|
||||||
this._Project_Installation = new EntitySet<Project_Installation>(new Action<Project_Installation>(this.attach_Project_Installation), new Action<Project_Installation>(this.detach_Project_Installation));
|
this._Project_Installation = new EntitySet<Project_Installation>(new Action<Project_Installation>(this.attach_Project_Installation), new Action<Project_Installation>(this.detach_Project_Installation));
|
||||||
this._Project_RoleButtonPower = new EntitySet<Project_RoleButtonPower>(new Action<Project_RoleButtonPower>(this.attach_Project_RoleButtonPower), new Action<Project_RoleButtonPower>(this.detach_Project_RoleButtonPower));
|
this._Project_RoleButtonPower = new EntitySet<Project_RoleButtonPower>(new Action<Project_RoleButtonPower>(this.attach_Project_RoleButtonPower), new Action<Project_RoleButtonPower>(this.detach_Project_RoleButtonPower));
|
||||||
this._Project_RolePower = new EntitySet<Project_RolePower>(new Action<Project_RolePower>(this.attach_Project_RolePower), new Action<Project_RolePower>(this.detach_Project_RolePower));
|
this._Project_RolePower = new EntitySet<Project_RolePower>(new Action<Project_RolePower>(this.attach_Project_RolePower), new Action<Project_RolePower>(this.detach_Project_RolePower));
|
||||||
|
|
@ -5480,6 +5502,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Base_Project", Storage="_JGZL_CommencementReport", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||||
|
public EntitySet<JGZL_CommencementReport> JGZL_CommencementReport
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JGZL_CommencementReport;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._JGZL_CommencementReport.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_Installation_Base_Project", Storage="_Project_Installation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_Installation_Base_Project", Storage="_Project_Installation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Project_Installation> Project_Installation
|
public EntitySet<Project_Installation> Project_Installation
|
||||||
{
|
{
|
||||||
|
|
@ -6138,6 +6173,18 @@ namespace Model
|
||||||
entity.Base_Project = null;
|
entity.Base_Project = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_JGZL_CommencementReport(JGZL_CommencementReport entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_Project = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_JGZL_CommencementReport(JGZL_CommencementReport entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_Project = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void attach_Project_Installation(Project_Installation entity)
|
private void attach_Project_Installation(Project_Installation entity)
|
||||||
{
|
{
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
|
|
@ -48158,7 +48205,7 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RT_TrustCode", DbType="VarChar(30)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RT_TrustCode", DbType="NVarChar(100)")]
|
||||||
public string RT_TrustCode
|
public string RT_TrustCode
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
@ -79126,6 +79173,414 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_CommencementReport")]
|
||||||
|
public partial class JGZL_CommencementReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _CommencementReportId;
|
||||||
|
|
||||||
|
private string _ProjectId;
|
||||||
|
|
||||||
|
private string _ContractNumber;
|
||||||
|
|
||||||
|
private string _DesignUnit;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _PlannedStartDate;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _PlannedEndDate;
|
||||||
|
|
||||||
|
private string _ProjectContent;
|
||||||
|
|
||||||
|
private string _Conditions;
|
||||||
|
|
||||||
|
private string _ReviewOpinion;
|
||||||
|
|
||||||
|
private string _QualitySupervisionOpinion;
|
||||||
|
|
||||||
|
private string _CompileMan;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _CompileDate;
|
||||||
|
|
||||||
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
|
||||||
|
private EntityRef<Sys_User> _Sys_User;
|
||||||
|
|
||||||
|
#region 可扩展性方法定义
|
||||||
|
partial void OnLoaded();
|
||||||
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
partial void OnCreated();
|
||||||
|
partial void OnCommencementReportIdChanging(string value);
|
||||||
|
partial void OnCommencementReportIdChanged();
|
||||||
|
partial void OnProjectIdChanging(string value);
|
||||||
|
partial void OnProjectIdChanged();
|
||||||
|
partial void OnContractNumberChanging(string value);
|
||||||
|
partial void OnContractNumberChanged();
|
||||||
|
partial void OnDesignUnitChanging(string value);
|
||||||
|
partial void OnDesignUnitChanged();
|
||||||
|
partial void OnPlannedStartDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnPlannedStartDateChanged();
|
||||||
|
partial void OnPlannedEndDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnPlannedEndDateChanged();
|
||||||
|
partial void OnProjectContentChanging(string value);
|
||||||
|
partial void OnProjectContentChanged();
|
||||||
|
partial void OnConditionsChanging(string value);
|
||||||
|
partial void OnConditionsChanged();
|
||||||
|
partial void OnReviewOpinionChanging(string value);
|
||||||
|
partial void OnReviewOpinionChanged();
|
||||||
|
partial void OnQualitySupervisionOpinionChanging(string value);
|
||||||
|
partial void OnQualitySupervisionOpinionChanged();
|
||||||
|
partial void OnCompileManChanging(string value);
|
||||||
|
partial void OnCompileManChanged();
|
||||||
|
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnCompileDateChanged();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public JGZL_CommencementReport()
|
||||||
|
{
|
||||||
|
this._Base_Project = default(EntityRef<Base_Project>);
|
||||||
|
this._Sys_User = default(EntityRef<Sys_User>);
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommencementReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||||
|
public string CommencementReportId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CommencementReportId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CommencementReportId != value))
|
||||||
|
{
|
||||||
|
this.OnCommencementReportIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CommencementReportId = value;
|
||||||
|
this.SendPropertyChanged("CommencementReportId");
|
||||||
|
this.OnCommencementReportIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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="_ContractNumber", DbType="NVarChar(100)")]
|
||||||
|
public string ContractNumber
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ContractNumber;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ContractNumber != value))
|
||||||
|
{
|
||||||
|
this.OnContractNumberChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ContractNumber = value;
|
||||||
|
this.SendPropertyChanged("ContractNumber");
|
||||||
|
this.OnContractNumberChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)")]
|
||||||
|
public string DesignUnit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._DesignUnit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._DesignUnit != value))
|
||||||
|
{
|
||||||
|
this.OnDesignUnitChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._DesignUnit = value;
|
||||||
|
this.SendPropertyChanged("DesignUnit");
|
||||||
|
this.OnDesignUnitChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlannedStartDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> PlannedStartDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._PlannedStartDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._PlannedStartDate != value))
|
||||||
|
{
|
||||||
|
this.OnPlannedStartDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._PlannedStartDate = value;
|
||||||
|
this.SendPropertyChanged("PlannedStartDate");
|
||||||
|
this.OnPlannedStartDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlannedEndDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> PlannedEndDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._PlannedEndDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._PlannedEndDate != value))
|
||||||
|
{
|
||||||
|
this.OnPlannedEndDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._PlannedEndDate = value;
|
||||||
|
this.SendPropertyChanged("PlannedEndDate");
|
||||||
|
this.OnPlannedEndDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectContent", DbType="NVarChar(2000)")]
|
||||||
|
public string ProjectContent
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ProjectContent;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ProjectContent != value))
|
||||||
|
{
|
||||||
|
this.OnProjectContentChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ProjectContent = value;
|
||||||
|
this.SendPropertyChanged("ProjectContent");
|
||||||
|
this.OnProjectContentChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Conditions", DbType="NVarChar(1000)")]
|
||||||
|
public string Conditions
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Conditions;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Conditions != value))
|
||||||
|
{
|
||||||
|
this.OnConditionsChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._Conditions = value;
|
||||||
|
this.SendPropertyChanged("Conditions");
|
||||||
|
this.OnConditionsChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewOpinion", DbType="NVarChar(1000)")]
|
||||||
|
public string ReviewOpinion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ReviewOpinion;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ReviewOpinion != value))
|
||||||
|
{
|
||||||
|
this.OnReviewOpinionChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ReviewOpinion = value;
|
||||||
|
this.SendPropertyChanged("ReviewOpinion");
|
||||||
|
this.OnReviewOpinionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualitySupervisionOpinion", DbType="NVarChar(1000)")]
|
||||||
|
public string QualitySupervisionOpinion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._QualitySupervisionOpinion;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._QualitySupervisionOpinion != value))
|
||||||
|
{
|
||||||
|
this.OnQualitySupervisionOpinionChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._QualitySupervisionOpinion = value;
|
||||||
|
this.SendPropertyChanged("QualitySupervisionOpinion");
|
||||||
|
this.OnQualitySupervisionOpinionChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||||
|
public string CompileMan
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CompileMan;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CompileMan != value))
|
||||||
|
{
|
||||||
|
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||||
|
{
|
||||||
|
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||||
|
}
|
||||||
|
this.OnCompileManChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CompileMan = value;
|
||||||
|
this.SendPropertyChanged("CompileMan");
|
||||||
|
this.OnCompileManChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> CompileDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._CompileDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._CompileDate != value))
|
||||||
|
{
|
||||||
|
this.OnCompileDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._CompileDate = value;
|
||||||
|
this.SendPropertyChanged("CompileDate");
|
||||||
|
this.OnCompileDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||||
|
public Base_Project Base_Project
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Base_Project.Entity;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
Base_Project previousValue = this._Base_Project.Entity;
|
||||||
|
if (((previousValue != value)
|
||||||
|
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
if ((previousValue != null))
|
||||||
|
{
|
||||||
|
this._Base_Project.Entity = null;
|
||||||
|
previousValue.JGZL_CommencementReport.Remove(this);
|
||||||
|
}
|
||||||
|
this._Base_Project.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.JGZL_CommencementReport.Add(this);
|
||||||
|
this._ProjectId = value.ProjectId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._ProjectId = default(string);
|
||||||
|
}
|
||||||
|
this.SendPropertyChanged("Base_Project");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
|
||||||
|
public Sys_User Sys_User
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Sys_User.Entity;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
Sys_User previousValue = this._Sys_User.Entity;
|
||||||
|
if (((previousValue != value)
|
||||||
|
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
if ((previousValue != null))
|
||||||
|
{
|
||||||
|
this._Sys_User.Entity = null;
|
||||||
|
previousValue.JGZL_CommencementReport.Remove(this);
|
||||||
|
}
|
||||||
|
this._Sys_User.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.JGZL_CommencementReport.Add(this);
|
||||||
|
this._CompileMan = value.UserId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._CompileMan = default(string);
|
||||||
|
}
|
||||||
|
this.SendPropertyChanged("Sys_User");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public event PropertyChangingEventHandler PropertyChanging;
|
||||||
|
|
||||||
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
|
||||||
|
protected virtual void SendPropertyChanging()
|
||||||
|
{
|
||||||
|
if ((this.PropertyChanging != null))
|
||||||
|
{
|
||||||
|
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected virtual void SendPropertyChanged(String propertyName)
|
||||||
|
{
|
||||||
|
if ((this.PropertyChanged != null))
|
||||||
|
{
|
||||||
|
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.OAM_UesrQualified")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.OAM_UesrQualified")]
|
||||||
public partial class OAM_UesrQualified : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class OAM_UesrQualified : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
|
@ -100575,6 +101030,8 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
|
private EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard> _HJGL_WeldingProcedure_WeldHotProcessCard;
|
||||||
|
|
||||||
|
private EntitySet<JGZL_CommencementReport> _JGZL_CommencementReport;
|
||||||
|
|
||||||
private EntitySet<Project_User> _Project_User;
|
private EntitySet<Project_User> _Project_User;
|
||||||
|
|
||||||
private EntitySet<Project_UserButtonPower> _Project_UserButtonPower;
|
private EntitySet<Project_UserButtonPower> _Project_UserButtonPower;
|
||||||
|
|
@ -100656,6 +101113,7 @@ namespace Model
|
||||||
this._HJGL_Sys_DataInTemp = new EntitySet<HJGL_Sys_DataInTemp>(new Action<HJGL_Sys_DataInTemp>(this.attach_HJGL_Sys_DataInTemp), new Action<HJGL_Sys_DataInTemp>(this.detach_HJGL_Sys_DataInTemp));
|
this._HJGL_Sys_DataInTemp = new EntitySet<HJGL_Sys_DataInTemp>(new Action<HJGL_Sys_DataInTemp>(this.attach_HJGL_Sys_DataInTemp), new Action<HJGL_Sys_DataInTemp>(this.detach_HJGL_Sys_DataInTemp));
|
||||||
this._HJGL_Sys_UserShowColumns = new EntitySet<HJGL_Sys_UserShowColumns>(new Action<HJGL_Sys_UserShowColumns>(this.attach_HJGL_Sys_UserShowColumns), new Action<HJGL_Sys_UserShowColumns>(this.detach_HJGL_Sys_UserShowColumns));
|
this._HJGL_Sys_UserShowColumns = new EntitySet<HJGL_Sys_UserShowColumns>(new Action<HJGL_Sys_UserShowColumns>(this.attach_HJGL_Sys_UserShowColumns), new Action<HJGL_Sys_UserShowColumns>(this.detach_HJGL_Sys_UserShowColumns));
|
||||||
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
|
this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet<HJGL_WeldingProcedure_WeldHotProcessCard>(new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action<HJGL_WeldingProcedure_WeldHotProcessCard>(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard));
|
||||||
|
this._JGZL_CommencementReport = new EntitySet<JGZL_CommencementReport>(new Action<JGZL_CommencementReport>(this.attach_JGZL_CommencementReport), new Action<JGZL_CommencementReport>(this.detach_JGZL_CommencementReport));
|
||||||
this._Project_User = new EntitySet<Project_User>(new Action<Project_User>(this.attach_Project_User), new Action<Project_User>(this.detach_Project_User));
|
this._Project_User = new EntitySet<Project_User>(new Action<Project_User>(this.attach_Project_User), new Action<Project_User>(this.detach_Project_User));
|
||||||
this._Project_UserButtonPower = new EntitySet<Project_UserButtonPower>(new Action<Project_UserButtonPower>(this.attach_Project_UserButtonPower), new Action<Project_UserButtonPower>(this.detach_Project_UserButtonPower));
|
this._Project_UserButtonPower = new EntitySet<Project_UserButtonPower>(new Action<Project_UserButtonPower>(this.attach_Project_UserButtonPower), new Action<Project_UserButtonPower>(this.detach_Project_UserButtonPower));
|
||||||
this._Project_UserPower = new EntitySet<Project_UserPower>(new Action<Project_UserPower>(this.attach_Project_UserPower), new Action<Project_UserPower>(this.detach_Project_UserPower));
|
this._Project_UserPower = new EntitySet<Project_UserPower>(new Action<Project_UserPower>(this.attach_Project_UserPower), new Action<Project_UserPower>(this.detach_Project_UserPower));
|
||||||
|
|
@ -101294,6 +101752,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_CommencementReport_Sys_User", Storage="_JGZL_CommencementReport", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||||
|
public EntitySet<JGZL_CommencementReport> JGZL_CommencementReport
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JGZL_CommencementReport;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._JGZL_CommencementReport.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_User_Sys_User", Storage="_Project_User", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_User_Sys_User", Storage="_Project_User", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Project_User> Project_User
|
public EntitySet<Project_User> Project_User
|
||||||
{
|
{
|
||||||
|
|
@ -101661,6 +102132,18 @@ namespace Model
|
||||||
entity.Sys_User = null;
|
entity.Sys_User = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_JGZL_CommencementReport(JGZL_CommencementReport entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_JGZL_CommencementReport(JGZL_CommencementReport entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void attach_Project_User(Project_User entity)
|
private void attach_Project_User(Project_User entity)
|
||||||
{
|
{
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
|
|
@ -105634,6 +106117,8 @@ namespace Model
|
||||||
|
|
||||||
private string _Welder;
|
private string _Welder;
|
||||||
|
|
||||||
|
private string _WED_Unit;
|
||||||
|
|
||||||
private string _STE_ID;
|
private string _STE_ID;
|
||||||
|
|
||||||
private string _DReportID;
|
private string _DReportID;
|
||||||
|
|
@ -105752,6 +106237,22 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Unit", DbType="NVarChar(50)")]
|
||||||
|
public string WED_Unit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._WED_Unit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._WED_Unit != value))
|
||||||
|
{
|
||||||
|
this._WED_Unit = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="VarChar(50)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="VarChar(50)")]
|
||||||
public string STE_ID
|
public string STE_ID
|
||||||
{
|
{
|
||||||
|
|
@ -108678,6 +109179,357 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_UnitPerformance")]
|
||||||
|
public partial class View_UnitPerformance
|
||||||
|
{
|
||||||
|
|
||||||
|
private System.Nullable<System.Guid> _Id;
|
||||||
|
|
||||||
|
private string _ProjectCode;
|
||||||
|
|
||||||
|
private string _WED_Unit;
|
||||||
|
|
||||||
|
private string _UnitCode;
|
||||||
|
|
||||||
|
private string _UnitName;
|
||||||
|
|
||||||
|
private System.Nullable<decimal> _TotalSize;
|
||||||
|
|
||||||
|
private int _TotalJoint;
|
||||||
|
|
||||||
|
private int _JointNum1;
|
||||||
|
|
||||||
|
private System.Nullable<int> _JointPassNum1;
|
||||||
|
|
||||||
|
private int _RepairJoint1;
|
||||||
|
|
||||||
|
private int _RepairJoint2;
|
||||||
|
|
||||||
|
private int _RepairJoint3;
|
||||||
|
|
||||||
|
private System.Nullable<decimal> _JointPassRate;
|
||||||
|
|
||||||
|
private int _Totalfilm;
|
||||||
|
|
||||||
|
private System.Nullable<int> _TotalPassfilm;
|
||||||
|
|
||||||
|
private int _RepairFilm1;
|
||||||
|
|
||||||
|
private int _RepairFilm2;
|
||||||
|
|
||||||
|
private int _RepairFilm3;
|
||||||
|
|
||||||
|
private System.Nullable<decimal> _JointFilmPassRate;
|
||||||
|
|
||||||
|
public View_UnitPerformance()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier")]
|
||||||
|
public System.Nullable<System.Guid> Id
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Id;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Id != value))
|
||||||
|
{
|
||||||
|
this._Id = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectCode", DbType="VarChar(1) NOT NULL", CanBeNull=false)]
|
||||||
|
public string ProjectCode
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ProjectCode;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ProjectCode != value))
|
||||||
|
{
|
||||||
|
this._ProjectCode = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Unit", DbType="NVarChar(50)")]
|
||||||
|
public string WED_Unit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._WED_Unit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._WED_Unit != value))
|
||||||
|
{
|
||||||
|
this._WED_Unit = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitCode", DbType="NVarChar(20)")]
|
||||||
|
public string UnitCode
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._UnitCode;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._UnitCode != value))
|
||||||
|
{
|
||||||
|
this._UnitCode = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")]
|
||||||
|
public string UnitName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._UnitName;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._UnitName != value))
|
||||||
|
{
|
||||||
|
this._UnitName = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalSize", Storage="_TotalSize", DbType="Decimal(19,2)")]
|
||||||
|
public System.Nullable<decimal> TotalSize
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TotalSize;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TotalSize != value))
|
||||||
|
{
|
||||||
|
this._TotalSize = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalJoint", Storage="_TotalJoint", DbType="Int NOT NULL")]
|
||||||
|
public int TotalJoint
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TotalJoint;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TotalJoint != value))
|
||||||
|
{
|
||||||
|
this._TotalJoint = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointNum1", DbType="Int NOT NULL")]
|
||||||
|
public int JointNum1
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JointNum1;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._JointNum1 != value))
|
||||||
|
{
|
||||||
|
this._JointNum1 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPassNum1", DbType="Int")]
|
||||||
|
public System.Nullable<int> JointPassNum1
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JointPassNum1;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._JointPassNum1 != value))
|
||||||
|
{
|
||||||
|
this._JointPassNum1 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint1", DbType="Int NOT NULL")]
|
||||||
|
public int RepairJoint1
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairJoint1;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairJoint1 != value))
|
||||||
|
{
|
||||||
|
this._RepairJoint1 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint2", DbType="Int NOT NULL")]
|
||||||
|
public int RepairJoint2
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairJoint2;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairJoint2 != value))
|
||||||
|
{
|
||||||
|
this._RepairJoint2 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint3", DbType="Int NOT NULL")]
|
||||||
|
public int RepairJoint3
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairJoint3;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairJoint3 != value))
|
||||||
|
{
|
||||||
|
this._RepairJoint3 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPassRate", DbType="Decimal(19,3)")]
|
||||||
|
public System.Nullable<decimal> JointPassRate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JointPassRate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._JointPassRate != value))
|
||||||
|
{
|
||||||
|
this._JointPassRate = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalfilm", Storage="_Totalfilm", DbType="Int NOT NULL")]
|
||||||
|
public int Totalfilm
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Totalfilm;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Totalfilm != value))
|
||||||
|
{
|
||||||
|
this._Totalfilm = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalPassfilm", Storage="_TotalPassfilm", DbType="Int")]
|
||||||
|
public System.Nullable<int> TotalPassfilm
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TotalPassfilm;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TotalPassfilm != value))
|
||||||
|
{
|
||||||
|
this._TotalPassfilm = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm1", Storage="_RepairFilm1", DbType="Int NOT NULL")]
|
||||||
|
public int RepairFilm1
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairFilm1;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairFilm1 != value))
|
||||||
|
{
|
||||||
|
this._RepairFilm1 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm2", Storage="_RepairFilm2", DbType="Int NOT NULL")]
|
||||||
|
public int RepairFilm2
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairFilm2;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairFilm2 != value))
|
||||||
|
{
|
||||||
|
this._RepairFilm2 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm3", Storage="_RepairFilm3", DbType="Int NOT NULL")]
|
||||||
|
public int RepairFilm3
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._RepairFilm3;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._RepairFilm3 != value))
|
||||||
|
{
|
||||||
|
this._RepairFilm3 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointFilmPassRate", DbType="Decimal(19,3)")]
|
||||||
|
public System.Nullable<decimal> JointFilmPassRate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JointFilmPassRate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._JointFilmPassRate != value))
|
||||||
|
{
|
||||||
|
this._JointFilmPassRate = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_UsePosition")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_UsePosition")]
|
||||||
public partial class View_UsePosition
|
public partial class View_UsePosition
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue