From b518c2f8506a8f92fe4f35199ce74bb254ba668e Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Mon, 9 Feb 2026 16:54:57 +0800 Subject: [PATCH] =?UTF-8?q?20260209=20=E5=8E=8B=E5=8A=9B=E7=AE=A1=E9=81=93?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=B4=A8=E9=87=8F=E8=AF=81=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HJGLDB_DS_2026-02-09_bwj(交工资料目录).sql | 120 ++++ ...neInstallationQualityCertificateService.cs | 5 + .../Fastreport/JGZL/压力管道安装质量证明.frx | 4 +- ...ipelineInstallationQualityCertificate.aspx | 106 +++- ...lineInstallationQualityCertificate.aspx.cs | 598 ++++++++++++------ ...llationQualityCertificate.aspx.designer.cs | 123 ++-- .../JGZL/SpecialEquipmentMaintenance.aspx.cs | 29 + 7 files changed, 712 insertions(+), 273 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-02-09_bwj(交工资料目录).sql diff --git a/DataBase/版本日志/HJGLDB_DS_2026-02-09_bwj(交工资料目录).sql b/DataBase/版本日志/HJGLDB_DS_2026-02-09_bwj(交工资料目录).sql new file mode 100644 index 0000000..50af453 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-02-09_bwj(交工资料目录).sql @@ -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 3503J106A','м佻֤','') +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','ϸ񺸹ǼDZ','') +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','ԱǼDZ','') +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 3503J119','ȹռ¼','') +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 \ No newline at end of file diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs index 175e910..556072b 100644 --- a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs +++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs @@ -20,6 +20,11 @@ namespace BLL 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); + } + /// /// 添加工业管道安装质量证明书 /// diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx index 2260826..73b9009 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx @@ -1,7 +1,7 @@  - + - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx index 9000889..82a0076 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx @@ -39,14 +39,84 @@ - + + + <%----%> - + + + + + + + <%-- + + + + + --%> + + + + + + + + + + + + + + + + + <%----%> + <%----%> + + + <%-- + + + + + --%> + + + <%----%> + + + + + <%-- + + + + + --%> + + + + + + + + + + <%----%> + + + + + <%-- - <%-- - - - --%> @@ -94,18 +158,6 @@ - <%-- - --%> - <%-- - --%> - <%-- - --%> - <%-- - --%> @@ -123,35 +175,35 @@ - + --%> - + --%> - + <%-- - + --%> - + --%> diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs index dfb6455..4df42c1 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs @@ -13,6 +13,23 @@ namespace FineUIPro.Web.JGZL { public partial class IndustrialPipelineInstallationQualityCertificate : PageBase { + #region 定义变量 + /// + /// 主键 + /// + private string CertificateId + { + get + { + return (string)ViewState["CertificateId"]; + } + set + { + ViewState["CertificateId"] = value; + } + } + #endregion + #region 加载页面 /// /// 加载页面 @@ -23,7 +40,7 @@ namespace FineUIPro.Web.JGZL { if (!IsPostBack) { - this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + //this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); this.drpProjectId.DataTextField = "ProjectCode"; this.drpProjectId.DataValueField = "ProjectId"; @@ -34,11 +51,110 @@ namespace FineUIPro.Web.JGZL this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; this.InitTreeMenu();//加载树 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 + 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 加载树项目 /// /// 加载树 @@ -82,7 +198,8 @@ namespace FineUIPro.Web.JGZL { if (this.tvControlItem.SelectedNodeID != "0") { - this.BindGrid(); + //this.BindGrid(); + PageData(); } } #endregion @@ -91,30 +208,30 @@ namespace FineUIPro.Web.JGZL /// /// 数据绑定 /// - private void BindGrid() - { - //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); - string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where 1=1"; - List listStr = new List(); - 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(); - } + //private void BindGrid() + //{ + // //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1"); + // string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where 1=1"; + // List listStr = new List(); + // 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 分页排序 @@ -124,10 +241,10 @@ namespace FineUIPro.Web.JGZL /// /// /// - protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) - { - BindGrid(); - } + //protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + //{ + // BindGrid(); + //} #endregion #region 排序 @@ -136,10 +253,10 @@ namespace FineUIPro.Web.JGZL /// /// /// - protected void Grid1_Sort(object sender, GridSortEventArgs e) - { - BindGrid(); - } + //protected void Grid1_Sort(object sender, GridSortEventArgs e) + //{ + // BindGrid(); + //} #endregion #region 分页选择下拉改变事件 @@ -148,11 +265,11 @@ namespace FineUIPro.Web.JGZL /// /// /// - protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) - { - Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); - BindGrid(); - } + //protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + //{ + // Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + // BindGrid(); + //} #endregion #endregion @@ -166,7 +283,7 @@ namespace FineUIPro.Web.JGZL { this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; this.InitTreeMenu(); - BindGrid(); + PageData(); } /// @@ -174,10 +291,10 @@ namespace FineUIPro.Web.JGZL /// /// /// - protected void TextBox_TextChanged(object sender, EventArgs e) - { - this.BindGrid(); - } + //protected void TextBox_TextChanged(object sender, EventArgs e) + //{ + // this.BindGrid(); + //} #endregion #region 打印 @@ -196,58 +313,58 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string id = this.Grid1.SelectedRowID; - if (!string.IsNullOrEmpty(id)) + //string id = this.Grid1.SelectedRowID; + //if (!string.IsNullOrEmpty(id)) + //{ + var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateByProjectId(projectId); + if (report != null) { - var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(id); - if (report != null) - { - DataTable dt = new DataTable(); - dt.TableName = "Data"; - dt.Columns.Add("CertificateCode"); - dt.Columns.Add("EngineeringName"); - dt.Columns.Add("EngineeringCode"); - dt.Columns.Add("DeliveryUnit"); - dt.Columns.Add("DeliveryUnitCode"); - dt.Columns.Add("InstallStartDate"); - dt.Columns.Add("InstallEndDate"); - dt.Columns.Add("PipelineLevel"); - dt.Columns.Add("PipelineLength"); - dt.Columns.Add("DesignUnit"); - dt.Columns.Add("DesignLicenseCode"); - dt.Columns.Add("SupervisoryAndInspectionAgency"); - dt.Columns.Add("QualificationCertificateCode"); - dt.Columns.Add("LosslessTestingAgency"); - dt.Columns.Add("InstitutionalApprovalCertificate"); - dt.Columns.Add("InstallationInspection"); - dt.Columns.Add("ConstructionUnit"); - dt.Columns.Add("SpecialEquipmentProductionLicenseCode"); + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("CertificateCode"); + dt.Columns.Add("EngineeringName"); + dt.Columns.Add("EngineeringCode"); + dt.Columns.Add("DeliveryUnit"); + dt.Columns.Add("DeliveryUnitCode"); + dt.Columns.Add("InstallStartDate"); + dt.Columns.Add("InstallEndDate"); + dt.Columns.Add("PipelineLevel"); + dt.Columns.Add("PipelineLength"); + dt.Columns.Add("DesignUnit"); + dt.Columns.Add("DesignLicenseCode"); + dt.Columns.Add("SupervisoryAndInspectionAgency"); + dt.Columns.Add("QualificationCertificateCode"); + dt.Columns.Add("LosslessTestingAgency"); + dt.Columns.Add("InstitutionalApprovalCertificate"); + dt.Columns.Add("InstallationInspection"); + dt.Columns.Add("ConstructionUnit"); + dt.Columns.Add("SpecialEquipmentProductionLicenseCode"); - var newRow = dt.NewRow(); - newRow["CertificateCode"] = report.CertificateCode; - newRow["EngineeringName"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName; - newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode; - newRow["DeliveryUnit"] = report.DeliveryUnit; - newRow["DeliveryUnitCode"] = report.DeliveryUnitCode; - string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : ""; - newRow["InstallStartDate"] = InstallStartDate; - string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : ""; - newRow["InstallEndDate"] = InstallEndDate; - newRow["PipelineLevel"] = report.PipelineLevel; - newRow["PipelineLength"] = report.PipelineLength; - newRow["DesignUnit"] = report.DesignUnit; - newRow["DesignLicenseCode"] = report.DesignLicenseCode; - newRow["SupervisoryAndInspectionAgency"] = report.SupervisoryAndInspectionAgency; - newRow["QualificationCertificateCode"] = report.QualificationCertificateCode; - newRow["LosslessTestingAgency"] = report.LosslessTestingAgency; - newRow["InstitutionalApprovalCertificate"] = report.InstitutionalApprovalCertificate; - newRow["InstallationInspection"] = report.InstallationInspection; - newRow["ConstructionUnit"] = report.ConstructionUnit; - newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode; - dt.Rows.Add(newRow); + var newRow = dt.NewRow(); + newRow["CertificateCode"] = report.CertificateCode; + newRow["EngineeringName"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName; + newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode; + newRow["DeliveryUnit"] = report.DeliveryUnit; + newRow["DeliveryUnitCode"] = report.DeliveryUnitCode; + string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : ""; + newRow["InstallStartDate"] = InstallStartDate; + string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : ""; + newRow["InstallEndDate"] = InstallEndDate; + newRow["PipelineLevel"] = report.PipelineLevel; + newRow["PipelineLength"] = report.PipelineLength; + newRow["DesignUnit"] = report.DesignUnit; + newRow["DesignLicenseCode"] = report.DesignLicenseCode; + newRow["SupervisoryAndInspectionAgency"] = report.SupervisoryAndInspectionAgency; + newRow["QualificationCertificateCode"] = report.QualificationCertificateCode; + newRow["LosslessTestingAgency"] = report.LosslessTestingAgency; + newRow["InstitutionalApprovalCertificate"] = report.InstitutionalApprovalCertificate; + newRow["InstallationInspection"] = report.InstallationInspection; + newRow["ConstructionUnit"] = report.ConstructionUnit; + newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode; + dt.Rows.Add(newRow); + + BLL.Common.FastReportService.AddFastreportTable(dt); - BLL.Common.FastReportService.AddFastreportTable(dt); - } Dictionary keyValuePairs = new Dictionary(); //keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); @@ -260,7 +377,7 @@ namespace FineUIPro.Web.JGZL } else { - Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + Alert.ShowInTop("请先保存记录!", MessageBoxIcon.Warning); return; } } @@ -278,139 +395,139 @@ namespace FineUIPro.Web.JGZL /// /// /// - protected void btnAdd_Click(object sender, EventArgs e) - { - if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - "))); - } - else - { - Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); - return; - } - } + //protected void btnAdd_Click(object sender, EventArgs e) + //{ + // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + // { + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - "))); + // } + // else + // { + // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + // return; + // } + //} /// /// 双击编辑 /// /// /// - 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 (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) - { - if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - "))); - } - else - { - Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); - return; - } - } - else - { - Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); - return; - } - } - else - { - ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); - } - } + //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 (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + // { + // if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + // { + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - "))); + // } + // else + // { + // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + // return; + // } + // } + // else + // { + // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + // return; + // } + // } + // else + // { + // ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + // } + //} /// /// 右键编辑 /// /// /// - 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 (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); - return; - } - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - "))); - } - else - { - Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); - } - } + //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 (Grid1.SelectedRowIndexArray.Length == 0) + // { + // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + // return; + // } + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - "))); + // } + // else + // { + // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + // } + //} /// /// 右键删除 /// /// /// - protected void btnMenuDelete_Click(object sender, EventArgs e) - { - if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnDelete)) - { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); - return; - } + //protected void btnMenuDelete_Click(object sender, EventArgs e) + //{ + // if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, 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.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(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); - } - } + // 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.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(rowID); + // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装质量证明书"); + // } + // } + // if (isDelete) + // { + // ShowNotify("删除成功!", MessageBoxIcon.Success); + // } + // this.BindGrid(); + // } + // else + // { + // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + // } + //} #region 判断是否可删除 /// /// 判断是否可以删除 /// /// - private bool judgementDelete(string id, bool isShow) - { - string content = string.Empty; + //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; - } - } + // if (string.IsNullOrEmpty(content)) + // { + // return true; + // } + // else + // { + // if (isShow) + // { + // Alert.ShowInTop(content, MessageBoxIcon.Error); + // } + // return false; + // } + //} #endregion #endregion @@ -420,10 +537,81 @@ namespace FineUIPro.Web.JGZL /// /// /// - 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();//加载树 - this.BindGrid(); + if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnSave)) + { + 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 } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs index 979e2e5..db33d86 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs @@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL protected global::FineUIPro.ToolbarFill ToolbarFill1; /// - /// btnAdd 控件。 + /// btnSave 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnAdd; + protected global::FineUIPro.Button btnSave; /// /// btnPrint 控件。 @@ -123,49 +123,121 @@ namespace FineUIPro.Web.JGZL protected global::FineUIPro.Button btnPrint; /// - /// Grid1 控件。 + /// SimpleForm1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Grid Grid1; + protected global::FineUIPro.Form SimpleForm1; /// - /// ToolbarSeparator1 控件。 + /// txtCertificateCode 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + protected global::FineUIPro.TextBox txtCertificateCode; /// - /// ToolbarText1 控件。 + /// txtDeliveryUnit 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.ToolbarText ToolbarText1; + protected global::FineUIPro.TextBox txtDeliveryUnit; /// - /// ddlPageSize 控件。 + /// txtDeliveryUnitCode 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList ddlPageSize; + protected global::FineUIPro.TextBox txtDeliveryUnitCode; /// - /// Window1 控件。 + /// txtInstallStartDate 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Window Window1; + protected global::FineUIPro.DatePicker txtInstallStartDate; + + /// + /// txtInstallEndDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtInstallEndDate; + + /// + /// drpPipelineLevel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPipelineLevel; + + /// + /// drpPipelineLength 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpPipelineLength; + + /// + /// txtDesignUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignUnit; + + /// + /// txtLosslessTestingAgency 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtLosslessTestingAgency; + + /// + /// txtInstallationInspection 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInstallationInspection; + + /// + /// txtConstructionUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtConstructionUnit; + + /// + /// txtSpecialEquipmentProductionLicenseCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSpecialEquipmentProductionLicenseCode; /// /// WindowPrint 控件。 @@ -175,32 +247,5 @@ namespace FineUIPro.Web.JGZL /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowPrint; - - /// - /// Menu1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Menu Menu1; - - /// - /// btnMenuEdit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuEdit; - - /// - /// btnMenuDelete 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnMenuDelete; } } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/SpecialEquipmentMaintenance.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/SpecialEquipmentMaintenance.aspx.cs index f6362d8..e2f86ae 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/SpecialEquipmentMaintenance.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/SpecialEquipmentMaintenance.aspx.cs @@ -58,8 +58,37 @@ namespace FineUIPro.Web.JGZL } #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() { + EmptyText(); string projectId = this.tvControlItem.SelectedNodeID; if (!string.IsNullOrEmpty(projectId)) {