20260209 压力管道安装质量证明

This commit is contained in:
毕文静 2026-02-09 16:54:57 +08:00
parent 4b57430c3b
commit b518c2f850
7 changed files with 712 additions and 273 deletions

View File

@ -0,0 +1,120 @@
delete from JGZL_FileDirectory
go
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('11CB25D4-8A45-4F94-A906-379FE53CB118','1','SH/T3503-J101A','封面','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('3AE9255C-B4D7-45D3-B5AC-9A4B998F5645','2','SH/T3503-J103','交工技术文件目录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('F70599FF-765D-4150-9226-DCFF32A8ABE8','3','SH/T3503-J104','交工技术文件说明','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('8B8A6274-5F40-4CFA-948E-FCD51CF0DCEB','4','/','特种设备安装改造维修告知书','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('0ECC93E5-64EF-483F-8D4B-0118332160B9','5','ZDS-T6.38.047.A/0.2020','压力管道安装质量证明书','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('20829EC6-9BA6-4D08-A20A-E1104044819D','6','/','压力管道安装汇总表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('867E68E3-0697-4020-8C52-7131841F8D6D','7','SH/T3503-J105A','工程施工开工报告','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('718D2FB4-ED5C-45D0-ADCD-0D0B4877CC60','8','SH/T 3503—J106A','工程中间交接证书','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('75575433-AA35-47FD-BE62-6C1E242B59A3','9','SH/T3503-J107A','工程交工验收证书','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('6461674D-AC04-464E-B1A8-9D0B5D84E2F1','10','SH/T3503-J114','工程联络单','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('0F9C899F-EF79-4FEF-9E0B-965E6DCF4C55','11','SH/T3543-G110','施工图核查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('F0390438-2E4C-49F5-A18F-F0709CACBE76','12','/','施工方案','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('909E9746-1022-45C0-AD0F-B34DBB4A08F7','13','SH/T3543-G111','技术交底记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('E3EC63E2-533B-43F6-9DA6-C3D5268F84CD','14','SH/T3503-J115','合格焊工登记表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('3CC8E604-C188-4282-A70D-69A38F925C20','15','/','焊工证复印件','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('CC2A65FE-A193-4177-B267-989A104C56AF','16','SH/T3503-J116','无损检测人员登记表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('CD6A265E-DA00-44A3-AFC2-3281E5ECC96D','17','/','无损检测人员证复印件','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('622E6AA2-3DB2-407E-8548-08AFA11C8A0C','18','/','焊接工艺审批流程','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('0DD6038F-2428-42C3-8B70-B57F91E84718','19','/','焊接工艺WPS','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D505908E-BFBA-41AC-B5F8-31EB4AB61425','20','/','焊接工艺评定PQR','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('6A2CE156-A3FC-4CC9-ADD8-1F9023FA451D','21','/','单线图','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('BF7ACEB8-01E0-4F8A-B6A9-B8FE8E561260','22','SH/T3503-J415-1','管道焊接工作记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('EAA15FCD-8EAC-41B3-AB8C-182C2C9CC385','23','SH/T3543-G402','管道焊接接头报检/检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('1897D31B-1750-45DB-95BF-7F30355A5012','24','ZDS-T6.38.042.A/0.2020','支管连接焊接接头、角焊接头组对焊接检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D99F19F6-8EB4-4040-B37B-638663C95DC2','25','/','管道焊缝检测委托单','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D22A5460-B0EE-40AE-A727-039163D2EBBD','26','SH/T3543-G416-1','管道焊口射线检测报告','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('B0E910D3-1493-4335-8B8D-188C80366DCE','27','SH/T3543-G420-1','管道焊口渗透检测报告','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D8F1D406-6733-4179-8BFC-E824500712D3','28','SH/T3503-J412-1','管道无损检测结果汇总表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('2EC7F67F-53FE-42B8-87A3-2160D8D5CD42','29','SH/T3503-J413-1','管道无损检测数量统计表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('681C64D0-AB57-4E65-A846-B791211383FB','30','SH/T3503-J406-1','管道系统压力试验条件确认记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('3CB94519-CF12-46E5-8157-E6E59E310E6F','31','SH/T3503-J406-2','管道系统压力试验记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('26AA28AD-EB25-40B1-B743-B3418348E9E8','32','/','热处理委托单','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D1B69F2F-A420-4EB2-8406-24D33BA7363E','33','/','热处理曲线','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('72DAC745-40E9-4E29-A076-D103BD33D481','34','SH/T 3503-J411-1','管道焊接接头热处理报告','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('C73368E4-2376-4640-8A66-2FBCDFE592BB','35','SH/T 3503-J130','硬度检验报告','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D9959623-4252-40A9-A9C3-9FCC21C980F6','36','SH/T3503-J407','管道系统泄露性/真空试验条件确认与试验记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('F6ABB9D4-9159-407E-B4EB-273D9F855836','37','SH/T3503-J408','管道吹扫/清洗检验记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('A24A317B-7623-4D20-91E4-C0C06399350A','38','SH/T3543-G112','工序交接记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('4474035B-4059-473E-866D-1CEAA31E7D35','39','SH/T3543-G122','管道预制施工检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('362A78EF-1A67-453C-B629-9680C3A27CB2','40','SH/T3503-J133','管道安装检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('902C30DA-1657-467B-9D09-1A009AD36FBC','41','SH/T3543-G133','质量控制点检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('0D2D6E44-08CE-415F-BAE4-07247599B9E8','42','SH/T3503-J112','隐蔽工程验收记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('5E457E34-84B2-4D0E-9996-2BF46BD82A60','43','SH/T3503-J118','防腐工程质量验收记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('D40B0E6B-3AA5-41C9-B6FE-400BFCCB7A79','44','SH/T 3503—J119','隔热工程质量验收记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('17F06EC4-4CE0-4D17-9446-17A10B67A884','45','SH/T3503-J416','管道静电接地测试记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('4E69ACB5-5066-4A81-944C-D8306E43BE61','46','SH/T3543-G109','周期检定计量器具清单','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('68608A48-5C5A-48AB-87B4-F5F8618B9BEC','47','SH/T3503-J402','阀门试验确认表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('31567B92-B313-4523-BCDB-185B8EC502E3','48','SH/T3543-G406','阀门检验试验记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('E68065A0-04CC-4D50-B161-A762887B58C1','49','SH/T3543-G411','钢管检查验收记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('8A71A091-99C0-41CD-ABC5-370E09790DBE','50','SH/T3543-G412','管件宏观检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('12660CCE-0E2B-4A25-A569-F476E780F242','51','SH/T3543-G410','管道材料材质标识检查记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('5C44E1E1-B0A7-479D-8240-75522A00B918','52','SH/T3543-G115','焊条烘烤记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('6CF460C3-CDFF-4583-AAAD-A98F1809C64C','53','SH/T3543-G117','焊条发放回收记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('7A728573-6F50-4788-A4EB-B985C7239626','54','SH/T3543-G118','焊丝发放记录','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('60EF50FD-87E7-4259-AC4D-E9E87AD1DE3E','55','SH/T3503-J132-1','材料质量证明文件一览表','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('7D76DA2B-DE25-4CCD-9A09-9750935AEFCE','56','/','材料质量证明文件','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('004A31E9-F6EF-4CD6-8D09-5A003FAAC6CA','57','/','竣工图','')
insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark)
values('6589B1D4-C755-4ED4-94C4-70BD168F6398','58','/','档案移交表','')
go

View File

@ -20,6 +20,11 @@ namespace BLL
return Funs.DB.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.CertificateId == Id); return Funs.DB.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.CertificateId == Id);
} }
public static Model.JGZL_IndustrialPipelineInstallationQualityCertificate GetIndustrialPipelineInstallationQualityCertificateByProjectId(string projectId)
{
return Funs.DB.JGZL_IndustrialPipelineInstallationQualityCertificate.FirstOrDefault(e => e.ProjectId == projectId);
}
/// <summary> /// <summary>
/// 添加工业管道安装质量证明书 /// 添加工业管道安装质量证明书
/// </summary> /// </summary>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/09/2026 14:46:18" ReportInfo.CreatorVersion="2017.1.16.0"> <Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/09/2026 16:30:12" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary> <Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF+jEvKxLL874QPxeZpe4mMg=="> <MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF/J8npSDfMOcIjOtlqBsCmQ==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data"> <TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/> <Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/> <Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>

View File

@ -39,14 +39,84 @@
<Items> <Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server"> <f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill> </f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button> <f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<%--<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 ID="btnPrint" Text="工业管道安装质量证明书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button> </f:Button>
</Items> </Items>
</f:Toolbar> </f:Toolbar>
</Toolbars> </Toolbars>
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书" EnableCollapse="true" <f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtEngineeringName" runat="server" Label="工程名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtEngineeringCode" runat="server" Label="工程编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtInstallStartDate" runat="server" Label="安装开工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
<f:DatePicker ID="txtInstallEndDate" runat="server" Label="安装竣工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
<f:DropDownList ID="drpPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
<%--<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
<%--<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtDesignLicenseCode" runat="server" Label="压力管道设计许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtQualificationCertificateCode" runat="server" Label="资质证书编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<%--<f:TextBox ID="txtInstitutionalApprovalCertificate" runat="server" Label="无损检测机构核准证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLosslessTestingAgency" runat="server" Label="无损检测机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtSupervisoryAndInspectionAgency" runat="server" Label="监理单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtInstallationInspection" runat="server" Label="监检机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtConstructionUnit" runat="server" Label="建设单位(使用单位)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<%--<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>--%>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true" runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true" EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true"
SortField="CertificateCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" SortField="CertificateCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
@ -58,12 +128,6 @@
<f:RenderField HeaderText="质量证明书编号" ColumnID="CertificateCode" DataField="CertificateCode" SortField="CertificateCode" <f:RenderField HeaderText="质量证明书编号" ColumnID="CertificateCode" DataField="CertificateCode" SortField="CertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px"> FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
</f:RenderField> </f:RenderField>
<%-- <f:RenderField HeaderText="工程名称" ColumnID="EngineeringName" DataField="EngineeringName" SortField="EngineeringName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
</f:RenderField>
<f:RenderField HeaderText="工程编号" ColumnID="EngineeringCode" DataField="EngineeringCode" SortField="EngineeringCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="140px">
</f:RenderField>--%>
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit" <f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px"> FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
</f:RenderField> </f:RenderField>
@ -94,18 +158,6 @@
<f:RenderField HeaderText="建设单位(使用单位)" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit" <f:RenderField HeaderText="建设单位(使用单位)" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px"> FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField> </f:RenderField>
<%--<f:RenderField HeaderText="压力管道设计许可证编号" ColumnID="DesignLicenseCode" DataField="DesignLicenseCode" SortField="DesignLicenseCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>--%>
<%--<f:RenderField HeaderText="资质证书编号" ColumnID="QualificationCertificateCode" DataField="QualificationCertificateCode" SortField="QualificationCertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>--%>
<%--<f:RenderField HeaderText="无损检测机构核准证编号" ColumnID="InstitutionalApprovalCertificate" DataField="InstitutionalApprovalCertificate" SortField="InstitutionalApprovalCertificate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>--%>
<%--<f:RenderField HeaderText="特种设备安装许可证编号" ColumnID="SpecialEquipmentProductionLicenseCode" DataField="SpecialEquipmentProductionLicenseCode" SortField="SpecialEquipmentProductionLicenseCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="140px">
</f:RenderField>--%>
</Columns> </Columns>
<Listeners> <Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" /> <f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@ -123,35 +175,35 @@
<f:ListItem Text="25" Value="25" /> <f:ListItem Text="25" Value="25" />
</f:DropDownList> </f:DropDownList>
</PageItems> </PageItems>
</f:Grid> </f:Grid>--%>
</Items> </Items>
</f:Panel> </f:Panel>
</Items> </Items>
</f:Panel> </f:Panel>
<f:Window ID="Window1" Title="工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="true" <%--<f:Window ID="Window1" Title="工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true" Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="900px" Height="600px"> Width="900px" Height="600px">
</f:Window> </f:Window>--%>
<f:Window ID="WindowPrint" Title="打印工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="false" <f:Window ID="WindowPrint" Title="打印工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px" Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px"> Height="600px">
</f:Window> </f:Window>
<f:Menu ID="Menu1" runat="server"> <%--<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" <f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit"> runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton> </f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" <f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete"> ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton> </f:MenuButton>
</f:Menu> </f:Menu>--%>
</form> </form>
<script type="text/javascript"> <%--<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>'; var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单 // 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) { function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY); F(menuID).show(); //showAt(event.pageX, event.pageY);
return false; return false;
} }
</script> </script>--%>
</body> </body>
</html> </html>

View File

@ -13,6 +13,23 @@ namespace FineUIPro.Web.JGZL
{ {
public partial class IndustrialPipelineInstallationQualityCertificate : PageBase public partial class IndustrialPipelineInstallationQualityCertificate : PageBase
{ {
#region
/// <summary>
/// 主键
/// </summary>
private string CertificateId
{
get
{
return (string)ViewState["CertificateId"];
}
set
{
ViewState["CertificateId"] = value;
}
}
#endregion
#region #region
/// <summary> /// <summary>
/// 加载页面 /// 加载页面
@ -23,7 +40,7 @@ namespace FineUIPro.Web.JGZL
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); //this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode"; this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId"; this.drpProjectId.DataValueField = "ProjectId";
@ -34,11 +51,110 @@ namespace FineUIPro.Web.JGZL
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树 this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.BindGrid();
//管道等级
this.drpPipelineLevel.DataTextField = "ISC_IsoName";
this.drpPipelineLevel.DataValueField = "ISC_IsoName";
this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
this.drpPipelineLevel.DataBind();
//管道长度
this.drpPipelineLength.DataTextField = "PipeLineLength";
this.drpPipelineLength.DataValueField = "PipeLineLength";
this.drpPipelineLength.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.drpProjectId.SelectedValue);
this.drpPipelineLength.DataBind();
//this.BindGrid();
PageData();
} }
} }
#endregion #endregion
private void EmptyText()
{
txtCertificateCode.Text = string.Empty;
txtDeliveryUnit.Text = string.Empty;
txtDeliveryUnitCode.Text = string.Empty;
txtInstallStartDate.Text = string.Empty;
txtInstallEndDate.Text = string.Empty;
drpPipelineLevel.SelectedValue = BLL.Const._Null;
drpPipelineLength.SelectedValue = BLL.Const._Null;
txtDesignUnit.Text = string.Empty;
txtLosslessTestingAgency.Text = string.Empty;
txtInstallationInspection.Text = string.Empty;
txtConstructionUnit.Text = string.Empty;
txtSpecialEquipmentProductionLicenseCode.Text = string.Empty;
}
private void PageData()
{
EmptyText();
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
var pro = BLL.Base_ProjectService.GetProjectByProjectId(projectId);
if (pro != null)
{
var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateByProjectId(projectId);
if (report != null)
{
this.CertificateId = report.CertificateId;
this.txtCertificateCode.Text = report.CertificateCode;
if (!string.IsNullOrEmpty(report.SpecialEquipmentProductionLicenseCode))
{
this.txtSpecialEquipmentProductionLicenseCode.Text = report.SpecialEquipmentProductionLicenseCode;
}
else
{
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
}
//this.txtEngineeringName.Text = report.EngineeringName;
//this.txtEngineeringCode.Text = report.EngineeringCode;
this.txtDeliveryUnit.Text = report.DeliveryUnit;
this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode;
this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
if (!string.IsNullOrEmpty(report.PipelineLevel))
{
this.drpPipelineLevel.SelectedValue = report.PipelineLevel;
}
if (!string.IsNullOrEmpty(report.PipelineLength))
{
this.drpPipelineLength.SelectedValue = report.PipelineLength;
}
//this.txtPipelineLevel.Text = report.PipelineLevel;
//this.txtPipelineLength.Text = report.PipelineLength;
//this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
//this.txtQualificationCertificateCode.Text = report.QualificationCertificateCode;
//this.txtInstitutionalApprovalCertificate.Text = report.InstitutionalApprovalCertificate;
this.txtDesignUnit.Text = report.DesignUnit;
//this.txtSupervisoryAndInspectionAgency.Text = report.SupervisoryAndInspectionAgency;
this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency;
if (!string.IsNullOrEmpty(report.InstallationInspection))
{
this.txtInstallationInspection.Text = report.InstallationInspection;
}
else
{
this.txtInstallationInspection.Text = "浙江省特种设备研究院";
}
if (!string.IsNullOrEmpty(report.ConstructionUnit))
{
this.txtConstructionUnit.Text = report.ConstructionUnit;
}
else
{
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
}
}
else
{
this.txtInstallationInspection.Text = "浙江省特种设备研究院";
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
}
}
}
}
#region #region
/// <summary> /// <summary>
/// 加载树 /// 加载树
@ -82,7 +198,8 @@ namespace FineUIPro.Web.JGZL
{ {
if (this.tvControlItem.SelectedNodeID != "0") if (this.tvControlItem.SelectedNodeID != "0")
{ {
this.BindGrid(); //this.BindGrid();
PageData();
} }
} }
#endregion #endregion
@ -91,30 +208,30 @@ namespace FineUIPro.Web.JGZL
/// <summary> /// <summary>
/// 数据绑定 /// 数据绑定
/// </summary> /// </summary>
private void BindGrid() //private void BindGrid()
{
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate 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 "; // //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
// listStr.Add(new SqlParameter("@ProjectId", projectIds)); // string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate 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();
//} //}
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 #endregion
#region #region
@ -124,10 +241,10 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) //protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{ //{
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#region #region
@ -136,10 +253,10 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e) //protected void Grid1_Sort(object sender, GridSortEventArgs e)
{ //{
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#region #region
@ -148,11 +265,11 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) //protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{ //{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); // Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid(); // BindGrid();
} //}
#endregion #endregion
#endregion #endregion
@ -166,7 +283,7 @@ namespace FineUIPro.Web.JGZL
{ {
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu(); this.InitTreeMenu();
BindGrid(); PageData();
} }
/// <summary> /// <summary>
@ -174,10 +291,10 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e) //protected void TextBox_TextChanged(object sender, EventArgs e)
{ //{
this.BindGrid(); // this.BindGrid();
} //}
#endregion #endregion
#region #region
@ -196,10 +313,10 @@ namespace FineUIPro.Web.JGZL
string rootPath = Server.MapPath("~/"); string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData(); BLL.Common.FastReportService.ResetData();
string id = this.Grid1.SelectedRowID; //string id = this.Grid1.SelectedRowID;
if (!string.IsNullOrEmpty(id)) //if (!string.IsNullOrEmpty(id))
{ //{
var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(id); var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateByProjectId(projectId);
if (report != null) if (report != null)
{ {
DataTable dt = new DataTable(); DataTable dt = new DataTable();
@ -247,7 +364,7 @@ namespace FineUIPro.Web.JGZL
dt.Rows.Add(newRow); dt.Rows.Add(newRow);
BLL.Common.FastReportService.AddFastreportTable(dt); BLL.Common.FastReportService.AddFastreportTable(dt);
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); //keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
@ -260,7 +377,7 @@ namespace FineUIPro.Web.JGZL
} }
else else
{ {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); Alert.ShowInTop("请先保存记录!", MessageBoxIcon.Warning);
return; return;
} }
} }
@ -278,139 +395,139 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e) //protected void btnAdd_Click(object sender, EventArgs e)
{ //{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ // {
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; // return;
} // }
} //}
/// <summary> /// <summary>
/// 双击编辑 /// 双击编辑
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) //protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{ //{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify)) // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
{ // {
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ // {
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) // if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{ // {
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
} // }
else // else
{ // {
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return; // return;
} // }
} // }
else // else
{ // {
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
/// <summary> /// <summary>
/// 右键编辑 /// 右键编辑
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnMenuEdit_Click(object sender, EventArgs e) //protected void btnMenuEdit_Click(object sender, EventArgs e)
{ //{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify)) // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
{ // {
if (Grid1.SelectedRowIndexArray.Length == 0) // if (Grid1.SelectedRowIndexArray.Length == 0)
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - "))); // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - ")));
} // }
else // else
{ // {
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
/// <summary> /// <summary>
/// 右键删除 /// 右键删除
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e) //protected void btnMenuDelete_Click(object sender, EventArgs e)
{ //{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnDelete)) // if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnDelete))
{ // {
if (Grid1.SelectedRowIndexArray.Length == 0) // if (Grid1.SelectedRowIndexArray.Length == 0)
{ // {
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return; // return;
} // }
bool isShow = true; // bool isShow = true;
if (Grid1.SelectedRowIndexArray.Length > 1) // if (Grid1.SelectedRowIndexArray.Length > 1)
{ // {
isShow = false; // isShow = false;
} // }
bool isDelete = false; // bool isDelete = false;
foreach (int rowIndex in Grid1.SelectedRowIndexArray) // foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{ // {
string rowID = Grid1.DataKeys[rowIndex][0].ToString(); // string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (judgementDelete(rowID, isShow)) // if (judgementDelete(rowID, isShow))
{ // {
isDelete = true; // isDelete = true;
BLL.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(rowID); // BLL.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(rowID);
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装质量证明书"); // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装质量证明书");
} // }
} // }
if (isDelete) // if (isDelete)
{ // {
ShowNotify("删除成功!", MessageBoxIcon.Success); // ShowNotify("删除成功!", MessageBoxIcon.Success);
} // }
this.BindGrid(); // this.BindGrid();
} // }
else // else
{ // {
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
} // }
} //}
#region #region
/// <summary> /// <summary>
/// 判断是否可以删除 /// 判断是否可以删除
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
private bool judgementDelete(string id, bool isShow) //private bool judgementDelete(string id, bool isShow)
{ //{
string content = string.Empty; // string content = string.Empty;
if (string.IsNullOrEmpty(content)) // if (string.IsNullOrEmpty(content))
{ // {
return true; // return true;
} // }
else // else
{ // {
if (isShow) // if (isShow)
{ // {
Alert.ShowInTop(content, MessageBoxIcon.Error); // Alert.ShowInTop(content, MessageBoxIcon.Error);
} // }
return false; // return false;
} // }
} //}
#endregion #endregion
#endregion #endregion
@ -420,10 +537,81 @@ namespace FineUIPro.Web.JGZL
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e) //protected void Window1_Close(object sender, WindowCloseEventArgs e)
//{
// this.InitTreeMenu();//加载树
// this.BindGrid();
//}
#endregion
#region
protected void btnSave_Click(object sender, EventArgs e)
{ {
this.InitTreeMenu();//加载树 if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnSave))
this.BindGrid(); {
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
Model.JGZL_IndustrialPipelineInstallationQualityCertificate newReport = new Model.JGZL_IndustrialPipelineInstallationQualityCertificate();
newReport.CertificateCode = this.txtCertificateCode.Text.Trim();
newReport.SpecialEquipmentProductionLicenseCode = this.txtSpecialEquipmentProductionLicenseCode.Text.Trim();
//newReport.EngineeringName = this.txtEngineeringName.Text.Trim();
//newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim();
newReport.DeliveryUnit = this.txtDeliveryUnit.Text.Trim();
newReport.DeliveryUnitCode = this.txtDeliveryUnitCode.Text.Trim();
newReport.InstallStartDate = Funs.GetNewDateTime(this.txtInstallStartDate.Text.Trim());
newReport.InstallEndDate = Funs.GetNewDateTime(this.txtInstallEndDate.Text.Trim());
if (!string.IsNullOrEmpty(drpPipelineLevel.SelectedValue))
{
newReport.PipelineLevel = this.drpPipelineLevel.SelectedValue;
}
if (!string.IsNullOrEmpty(drpPipelineLength.SelectedValue))
{
newReport.PipelineLength = this.drpPipelineLength.SelectedValue;
}
//newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
//newReport.PipelineLength = this.txtPipelineLength.Text.Trim();
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
newReport.LosslessTestingAgency = this.txtLosslessTestingAgency.Text.Trim();
//newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
newReport.ConstructionUnit = this.txtConstructionUnit.Text.Trim();
//newReport.Remark = this.txtRemark.Text.Trim();
//newReport.DesignLicenseCode = this.txtDesignLicenseCode.Text.Trim();
//newReport.QualificationCertificateCode = this.txtQualificationCertificateCode.Text.Trim();
//newReport.InstitutionalApprovalCertificate = this.txtInstitutionalApprovalCertificate.Text.Trim();
newReport.InstallationInspection = this.txtInstallationInspection.Text.Trim();
if (!string.IsNullOrEmpty(this.CertificateId))
{
newReport.CertificateId = this.CertificateId;
BLL.IndustrialPipelineInstallationQualityCertificateService.UpdateIndustrialPipelineInstallationQualityCertificate(newReport);
}
else
{
newReport.ProjectId = projectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
newReport.Reviewer = this.CurrUser.UserId;
newReport.RevieweDate = DateTime.Now;
newReport.CertificateId = SQLHelper.GetNewID(typeof(Model.JGZL_IndustrialPipelineInstallationQualityCertificate));
this.CertificateId = newReport.CertificateId;
BLL.IndustrialPipelineInstallationQualityCertificateService.AddIndustrialPipelineInstallationQualityCertificate(newReport);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
//PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
PageData();
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
} }
#endregion #endregion
} }

View File

@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.ToolbarFill ToolbarFill1; protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary> /// <summary>
/// btnAdd 控件。 /// btnSave 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button btnAdd; protected global::FineUIPro.Button btnSave;
/// <summary> /// <summary>
/// btnPrint 控件。 /// btnPrint 控件。
@ -123,49 +123,121 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.Button btnPrint; protected global::FineUIPro.Button btnPrint;
/// <summary> /// <summary>
/// Grid1 控件。 /// SimpleForm1 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Grid Grid1; protected global::FineUIPro.Form SimpleForm1;
/// <summary> /// <summary>
/// ToolbarSeparator1 控件。 /// txtCertificateCode 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; protected global::FineUIPro.TextBox txtCertificateCode;
/// <summary> /// <summary>
/// ToolbarText1 控件。 /// txtDeliveryUnit 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1; protected global::FineUIPro.TextBox txtDeliveryUnit;
/// <summary> /// <summary>
/// ddlPageSize 控件。 /// txtDeliveryUnitCode 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize; protected global::FineUIPro.TextBox txtDeliveryUnitCode;
/// <summary> /// <summary>
/// Window1 控件。 /// txtInstallStartDate 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Window Window1; protected global::FineUIPro.DatePicker txtInstallStartDate;
/// <summary>
/// txtInstallEndDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtInstallEndDate;
/// <summary>
/// drpPipelineLevel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpPipelineLevel;
/// <summary>
/// drpPipelineLength 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpPipelineLength;
/// <summary>
/// txtDesignUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignUnit;
/// <summary>
/// txtLosslessTestingAgency 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLosslessTestingAgency;
/// <summary>
/// txtInstallationInspection 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInstallationInspection;
/// <summary>
/// txtConstructionUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConstructionUnit;
/// <summary>
/// txtSpecialEquipmentProductionLicenseCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSpecialEquipmentProductionLicenseCode;
/// <summary> /// <summary>
/// WindowPrint 控件。 /// WindowPrint 控件。
@ -175,32 +247,5 @@ namespace FineUIPro.Web.JGZL
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Window WindowPrint; protected global::FineUIPro.Window WindowPrint;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
} }
} }

View File

@ -58,8 +58,37 @@ namespace FineUIPro.Web.JGZL
} }
#endregion #endregion
private void EmptyText()
{
txtConUnit.Text = string.Empty;
txtMaintenanceCode.Text = string.Empty;
txtEquipmentName.Text = string.Empty;
txtEquipmentModel.Text = string.Empty;
txtEquipmentCode.Text = string.Empty;
txtManufacturingNumber.Text = string.Empty;
txtManufacturingUnit.Text = string.Empty;
txtManufacturingLicenseNumber.Text = string.Empty;
txtEquipmentLocation.Text = string.Empty;
txtConstructionDate.Text = string.Empty;
drpConstructionCategory.SelectedValue = "改造";
txtLicenseNumber.Text = string.Empty;
txtLicenseValidityDate.Text = string.Empty;
txtConContactMan.Text = string.Empty;
txtConTelephone.Text = string.Empty;
txtConFax.Text = string.Empty;
txtConAddress.Text = string.Empty;
txtConEmail.Text = string.Empty;
txtUseUnit.Text = string.Empty;
txtUseContactMan.Text = string.Empty;
txtUseTelephone.Text = string.Empty;
txtUseFax.Text = string.Empty;
txtUseAddress.Text = string.Empty;
txtUseEmail.Text = string.Empty;
}
private void PageData() private void PageData()
{ {
EmptyText();
string projectId = this.tvControlItem.SelectedNodeID; string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId)) if (!string.IsNullOrEmpty(projectId))
{ {