材料质量证明文件一览表
This commit is contained in:
parent
0c9cfc2ae5
commit
9f1722f80f
Binary file not shown.
|
|
@ -0,0 +1,165 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "G:\\\u516C\u53F8\u9879\u76EE\\\u9F0E\u76DB\\",
|
||||
"Documents": [],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": -1,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:134:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:133:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:130:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{eefa5220-e298-11d0-8f78-00a0c9110057}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:131:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:141:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:142:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:143:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:144:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:145:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:140:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:137:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:139:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:138:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:132:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:1:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:129:0:{13b12e3e-c1b4-4539-9371-4fe9a0d523fc}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:2:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:3:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{1a46fd64-28d5-434c-8eb3-17a02d419b53}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{5726b0e3-1012-5233-81f9-d1fad48e7a56}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:2:0:{b9f91511-5ca5-40ec-9726-f3e3a7e534e2}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:137:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:138:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:136:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{e1b7d1f8-9b3c-49b1-8f4f-bfc63a88835d}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"DockedWidth": 378,
|
||||
"SelectedChildIndex": -1,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
|
||||
/**********菜单************************************************************/
|
||||
|
||||
--45、材料质量证明文件一览表
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '1334FD4F-221E-422A-9038-3ED86A50E8EC')
|
||||
BEGIN
|
||||
INSERT INTO Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||
VALUES ('1334FD4F-221E-422A-9038-3ED86A50E8EC','材料质量证明文件一览表','JGZL/MaterialQualityCertificateDoc.aspx',450,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
|
||||
END
|
||||
GO
|
||||
IF NOT EXISTS (SELECT * FROM ButtonToMenu WHERE MenuId = '1334FD4F-221E-422A-9038-3ED86A50E8EC')
|
||||
BEGIN
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('BCC1EE90-F619-4352-840D-5F5E08681EC3','1334FD4F-221E-422A-9038-3ED86A50E8EC','增加',1)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('A6046CC3-7081-43F5-998D-C458730D115B','1334FD4F-221E-422A-9038-3ED86A50E8EC','修改',2)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('CDFB358E-E2CE-429D-AF8F-D0935010FB60','1334FD4F-221E-422A-9038-3ED86A50E8EC','删除',3)
|
||||
INSERT INTO ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES ('F2DBD80A-4D28-4FA7-B9CA-A8E087F05476','1334FD4F-221E-422A-9038-3ED86A50E8EC','保存',4)
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
/**********数据表************************************************************/
|
||||
|
||||
|
||||
--45、材料质量证明文件一览表
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'JGZL_MaterialQualityCertificateDoc') AND type = N'U')
|
||||
BEGIN
|
||||
|
||||
CREATE TABLE [dbo].[JGZL_MaterialQualityCertificateDoc](
|
||||
[MaterialId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[MaterialCode] [nvarchar](50) NULL,
|
||||
[MaterialName] [nvarchar](50) NULL,
|
||||
[SerialCode] [nvarchar](50) NULL,
|
||||
[Material] [nvarchar](50) NULL,
|
||||
[Specification] [nvarchar](50) NULL,
|
||||
[Manufacturer] [nvarchar](50) NULL,
|
||||
[Unit] [nvarchar](20) NULL,
|
||||
[TotalNum] [int] NULL,
|
||||
[ReInspectionReportCode] [nvarchar](50) NULL,
|
||||
[ReceivingUnit] [nvarchar](50) NULL,
|
||||
[DrawNum] [int] NULL,
|
||||
[Remark] [nvarchar](500) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
[Reviewer] [nvarchar](50) NULL,
|
||||
[RevieweDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_JGZL_MaterialQualityCertificateDoc] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[MaterialId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
ALTER TABLE [dbo].[JGZL_MaterialQualityCertificateDoc] WITH CHECK ADD CONSTRAINT [FK_JGZL_MaterialQualityCertificateDoc_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
ALTER TABLE [dbo].[JGZL_MaterialQualityCertificateDoc] CHECK CONSTRAINT [FK_JGZL_MaterialQualityCertificateDoc_Base_Project]
|
||||
ALTER TABLE [dbo].[JGZL_MaterialQualityCertificateDoc] WITH CHECK ADD CONSTRAINT [FK_JGZL_MaterialQualityCertificateDoc_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
ALTER TABLE [dbo].[JGZL_MaterialQualityCertificateDoc] CHECK CONSTRAINT [FK_JGZL_MaterialQualityCertificateDoc_Sys_User]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键材料Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'MaterialId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材料名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'MaterialName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证件自编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'MaterialCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出厂编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'SerialCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Material'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格型号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Specification'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制造厂家' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Manufacturer'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Unit'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'TotalNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'复验报告编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'ReInspectionReportCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'领用单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'ReceivingUnit'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'领用数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'DrawNum'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'Reviewer'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc', @level2type=N'COLUMN',@level2name=N'RevieweDate'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材料质量证明文件一览表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_MaterialQualityCertificateDoc'
|
||||
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -254,6 +254,7 @@
|
|||
<Compile Include="JGZL\ContactService.cs" />
|
||||
<Compile Include="JGZL\ElectrostaticGroundingService.cs" />
|
||||
<Compile Include="JGZL\HandoverCertificateService.cs" />
|
||||
<Compile Include="JGZL\MaterialQualityCertificateDocService.cs" />
|
||||
<Compile Include="JGZL\MeasuringInstrumentsService.cs" />
|
||||
<Compile Include="JGZL\NDTPersonService.cs" />
|
||||
<Compile Include="JGZL\QualityControlPointInspectionService.cs" />
|
||||
|
|
|
|||
|
|
@ -1815,6 +1815,14 @@ namespace BLL
|
|||
/// 管道吹扫/清洗检验记录
|
||||
/// </summary>
|
||||
public const string JGZL_BlowingCleaningMenuId = "E64FC226-8164-43F7-AA4D-6E268EDEC5BC";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 材料质量证明文件一览表
|
||||
/// </summary>
|
||||
public const string JGZL_MaterialQualityCertificateDocMenuId = "1334FD4F-221E-422A-9038-3ED86A50E8EC";
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 报表对应ID
|
||||
|
|
|
|||
|
|
@ -0,0 +1,92 @@
|
|||
using Model;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 材料质量证明文件一览表
|
||||
/// </summary>
|
||||
public class MaterialQualityCertificateDocService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取材料质量证明文件一览表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_MaterialQualityCertificateDoc GetMaterialQualityCertificateDocById(string Id)
|
||||
{
|
||||
return Funs.DB.JGZL_MaterialQualityCertificateDoc.FirstOrDefault(e => e.MaterialId == Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加材料质量证明文件一览表
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddMaterialQualityCertificateDoc(Model.JGZL_MaterialQualityCertificateDoc model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_MaterialQualityCertificateDoc newModel = new JGZL_MaterialQualityCertificateDoc();
|
||||
newModel.MaterialId = model.MaterialId;
|
||||
newModel.ProjectId = model.ProjectId;
|
||||
newModel.MaterialName = model.MaterialName;
|
||||
newModel.MaterialCode = model.MaterialCode;
|
||||
newModel.SerialCode = model.SerialCode;
|
||||
newModel.Material = model.Material;
|
||||
newModel.Specification = model.Specification;
|
||||
newModel.Manufacturer = model.Manufacturer;
|
||||
newModel.Unit = model.Unit;
|
||||
newModel.TotalNum = model.TotalNum;
|
||||
newModel.ReInspectionReportCode = model.ReInspectionReportCode;
|
||||
newModel.ReceivingUnit = model.ReceivingUnit;
|
||||
newModel.DrawNum = model.DrawNum;
|
||||
newModel.Remark = model.Remark;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.Reviewer = model.Reviewer;
|
||||
newModel.RevieweDate = model.RevieweDate;
|
||||
db.JGZL_MaterialQualityCertificateDoc.InsertOnSubmit(newModel);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改材料质量证明文件一览表
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdateMaterialQualityCertificateDoc(Model.JGZL_MaterialQualityCertificateDoc model)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_MaterialQualityCertificateDoc newModel = db.JGZL_MaterialQualityCertificateDoc.FirstOrDefault(e => e.MaterialId == model.MaterialId);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.MaterialName = model.MaterialName;
|
||||
newModel.MaterialCode = model.MaterialCode;
|
||||
newModel.SerialCode = model.SerialCode;
|
||||
newModel.Material = model.Material;
|
||||
newModel.Specification = model.Specification;
|
||||
newModel.Manufacturer = model.Manufacturer;
|
||||
newModel.Unit = model.Unit;
|
||||
newModel.TotalNum = model.TotalNum;
|
||||
newModel.ReInspectionReportCode = model.ReInspectionReportCode;
|
||||
newModel.ReceivingUnit = model.ReceivingUnit;
|
||||
newModel.DrawNum = model.DrawNum;
|
||||
newModel.Remark = model.Remark;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除材料质量证明文件一览表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteMaterialQualityCertificateDocById(string Id)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_MaterialQualityCertificateDoc model = db.JGZL_MaterialQualityCertificateDoc.FirstOrDefault(e => e.MaterialId == Id);
|
||||
if (model != null)
|
||||
{
|
||||
db.JGZL_MaterialQualityCertificateDoc.DeleteOnSubmit(model);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="07/15/2025 14:12:53" ReportInfo.Modified="12/19/2025 17:08:34" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="07/15/2025 14:12:53" ReportInfo.Modified="01/21/2026 19:10:25" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -42,7 +42,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFUG9g69GfVA9m0SQU5+zU8g==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaVjG6sz35a7xQbbHmz2mtHMx6kc9dgb5jeGDxgCL5KuyOY3ksh80B8hyqGA9VOY1Ra3zov0nHunLWHl4Ni2atF/XlZ7C2E/ZVfvKyIL2eDR4TmgjcV0YQfjfUYsiZDoc6XpfszdLamJiozHnQjsM3JbzQUObwDZemSuRr9gKei11GVOQptZrl858Ml9SJlPGPA==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Number" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="WED_Name" DataType="System.String" PropName="image_series"/>
|
||||
|
|
|
|||
|
|
@ -1256,7 +1256,9 @@
|
|||
<Content Include="JGZL\ElectrostaticGroundingEdit.aspx" />
|
||||
<Content Include="JGZL\HandoverCertificate.aspx" />
|
||||
<Content Include="JGZL\HandoverCertificateEdit.aspx" />
|
||||
<Content Include="JGZL\MaterialQualityCertificateDoc.aspx" />
|
||||
<Content Include="JGZL\MeasuringInstruments.aspx" />
|
||||
<Content Include="JGZL\MaterialQualityCertificateDocEdit.aspx" />
|
||||
<Content Include="JGZL\MeasuringInstrumentsEdit.aspx" />
|
||||
<Content Include="JGZL\NDTPerson.aspx" />
|
||||
<Content Include="JGZL\NDTPersonEdit.aspx" />
|
||||
|
|
@ -6656,6 +6658,13 @@
|
|||
<Compile Include="JGZL\HandoverCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>HandoverCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MaterialQualityCertificateDoc.aspx.cs">
|
||||
<DependentUpon>MaterialQualityCertificateDoc.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MaterialQualityCertificateDoc.aspx.designer.cs">
|
||||
<DependentUpon>MaterialQualityCertificateDoc.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MeasuringInstruments.aspx.cs">
|
||||
<DependentUpon>MeasuringInstruments.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
@ -6663,6 +6672,13 @@
|
|||
<Compile Include="JGZL\MeasuringInstruments.aspx.designer.cs">
|
||||
<DependentUpon>MeasuringInstruments.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MaterialQualityCertificateDocEdit.aspx.cs">
|
||||
<DependentUpon>MaterialQualityCertificateDocEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MaterialQualityCertificateDocEdit.aspx.designer.cs">
|
||||
<DependentUpon>MaterialQualityCertificateDocEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JGZL\MeasuringInstrumentsEdit.aspx.cs">
|
||||
<DependentUpon>MeasuringInstrumentsEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,142 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialQualityCertificateDoc.aspx.cs" Inherits="FineUIPro.Web.JGZL.MaterialQualityCertificateDoc" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>材料质量证明文件一览表</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="材料质量证明文件一览表" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="材料质量证明文件一览表" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="材料质量证明文件一览表"
|
||||
TitleToolTip="材料质量证明文件一览表" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||
<f:Button ID="btnPrint" Text="材料质量证明文件一览表打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="材料质量证明文件一览表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="MaterialId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="MaterialId" AllowSorting="true"
|
||||
SortField="MaterialCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField HeaderText="材料名称" ColumnID="MaterialName" DataField="MaterialName" SortField="MaterialName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="证件自编号" ColumnID="MaterialCode" DataField="MaterialCode" SortField="MaterialCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="证件出厂编号" ColumnID="SerialCode" DataField="SerialCode" SortField="SerialCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="材质" ColumnID="Material" DataField="Material" SortField="Material"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="规格型号" ColumnID="Specification" DataField="Specification" SortField="Specification"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="制造厂家" ColumnID="Manufacturer" DataField="Manufacturer" SortField="Manufacturer"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="单位" ColumnID="Unit" DataField="Unit" SortField="Unit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="总量" ColumnID="TotalNum" DataField="TotalNum" SortField="TotalNum"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="复验报告编号" ColumnID="ReInspectionReportCode" DataField="ReInspectionReportCode" SortField="ReInspectionReportCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="130px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="领用单位" ColumnID="ReceivingUnit" DataField="ReceivingUnit" SortField="ReceivingUnit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="领用量" ColumnID="DrawNum" DataField="DrawNum" SortField="DrawNum"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="材料质量证明文件一览表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="900px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowPrint" Title="打印材料质量证明文件一览表" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,411 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class MaterialQualityCertificateDoc : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||
}
|
||||
foreach (var item in projects)
|
||||
{
|
||||
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||
rootProjectNode.Text = item.ProjectCode;
|
||||
rootProjectNode.NodeID = item.ProjectId;
|
||||
rootProjectNode.EnableClickEvent = true;
|
||||
rootProjectNode.Expanded = true;
|
||||
rootProjectNode.ToolTip = item.ProjectName;
|
||||
rootProjectNode.CommandName = "项目名称";
|
||||
rootNode.Nodes.Add(rootProjectNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||
string strSql = @"SELECT * from JGZL_MaterialQualityCertificateDoc where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||
//}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
/// <summary>
|
||||
/// 分页选择下拉改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
string strSql = @"SELECT * from JGZL_MaterialQualityCertificateDoc where ProjectId = @ProjectId order by MaterialCode desc";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("Num");
|
||||
dt.Columns.Add("MaterialName");
|
||||
dt.Columns.Add("MaterialCode");
|
||||
dt.Columns.Add("SerialCode");
|
||||
dt.Columns.Add("Material");
|
||||
dt.Columns.Add("Specification");
|
||||
dt.Columns.Add("Manufacturer");
|
||||
dt.Columns.Add("Unit");
|
||||
dt.Columns.Add("TotalNum");
|
||||
dt.Columns.Add("ReInspectionReportCode");
|
||||
dt.Columns.Add("ReceivingUnit");
|
||||
dt.Columns.Add("DrawNum");
|
||||
dt.Columns.Add("Remark");
|
||||
|
||||
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||
int i = 0;
|
||||
foreach (var row in rows)
|
||||
{
|
||||
var newRow = dt.NewRow();
|
||||
newRow["Num"] = (i + 1).ToString();
|
||||
newRow["MaterialName"] = row["MaterialName"].ToString();
|
||||
newRow["MaterialCode"] = row["MaterialCode"].ToString();
|
||||
newRow["SerialCode"] = row["SerialCode"].ToString();
|
||||
newRow["Material"] = row["Material"].ToString();
|
||||
newRow["Manufacturer"] = row["Manufacturer"].ToString();
|
||||
newRow["Unit"] = row["Unit"].ToString();
|
||||
newRow["TotalNum"] = row["TotalNum"].ToString();
|
||||
newRow["ReInspectionReportCode"] = row["ReInspectionReportCode"].ToString();
|
||||
newRow["ReceivingUnit"] = row["ReceivingUnit"].ToString();
|
||||
newRow["DrawNum"] = row["DrawNum"].ToString();
|
||||
newRow["Remark"] = row["Remark"].ToString();
|
||||
dt.Rows.Add(newRow);
|
||||
i++;
|
||||
}
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\材料质量证明文件一览表.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 维护
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialQualityCertificateDocEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 双击编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_MaterialQualityCertificateDocMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialQualityCertificateDocEdit.aspx?materialId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_MaterialQualityCertificateDocMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MaterialQualityCertificateDocEdit.aspx?materialId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_MaterialQualityCertificateDocMenuId, 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.MaterialQualityCertificateDocService.DeleteMaterialQualityCertificateDocById(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除材料质量证明文件一览表");
|
||||
}
|
||||
}
|
||||
if (isDelete)
|
||||
{
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
/// 判断是否可以删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string id, bool isShow)
|
||||
{
|
||||
string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,206 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class MaterialQualityCertificateDoc
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialQualityCertificateDocEdit.aspx.cs" Inherits="FineUIPro.Web.JGZL.MaterialQualityCertificateDocEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>编辑材料质量证明文件一览表</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtMaterialCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtMaterialName" runat="server" Label="名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSerialCode" runat="server" Label="证件出厂编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtManufacturer" runat="server" Label="制造厂家" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtMaterial" runat="server" Label="材质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtSpecification" runat="server" Label="规格型号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnit" runat="server" Label="单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||
<f:NumberBox ID="txtTotalNum" runat="server" Label="总量" LabelWidth="150px" LabelAlign="Right" NoDecimal="false"
|
||||
NoNegative="true" EmptyText="0">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtReInspectionReportCode" runat="server" Label="复验报告编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtReceivingUnit" runat="server" Label="领用单位" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
|
||||
<f:NumberBox ID="txtDrawNum" runat="server" Label="领用量" LabelWidth="150px" LabelAlign="Right" NoDecimal="false"
|
||||
NoNegative="true" EmptyText="0">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class MaterialQualityCertificateDocEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string MaterialId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["MaterialId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["MaterialId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.MaterialId = Request.Params["materialId"];
|
||||
if (!string.IsNullOrEmpty(this.MaterialId))
|
||||
{
|
||||
var report = BLL.MaterialQualityCertificateDocService.GetMaterialQualityCertificateDocById(this.MaterialId);
|
||||
if (report != null)
|
||||
{
|
||||
this.txtMaterialName.Text = report.MaterialName;
|
||||
this.txtMaterialCode.Text = report.MaterialCode;
|
||||
this.txtSerialCode.Text = report.SerialCode;
|
||||
this.txtManufacturer.Text = report.Manufacturer;
|
||||
this.txtMaterial.Text = report.Material;
|
||||
this.txtSpecification.Text = report.Specification;
|
||||
this.txtUnit.Text = report.Unit;
|
||||
this.txtTotalNum.Text = report.TotalNum.ToString();
|
||||
this.txtReInspectionReportCode.Text = report.ReInspectionReportCode;
|
||||
this.txtReceivingUnit.Text = report.ReceivingUnit;
|
||||
this.txtDrawNum.Text = report.DrawNum.ToString();
|
||||
this.txtRemark.Text = report.Remark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提交按钮
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_MaterialQualityCertificateDocMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_MaterialQualityCertificateDoc newReport = new Model.JGZL_MaterialQualityCertificateDoc();
|
||||
newReport.MaterialName = this.txtMaterialName.Text.Trim();
|
||||
newReport.MaterialCode = this.txtMaterialCode.Text.Trim();
|
||||
newReport.SerialCode = this.txtSerialCode.Text.Trim();
|
||||
newReport.Manufacturer = this.txtManufacturer.Text.Trim();
|
||||
newReport.Material = this.txtMaterial.Text.Trim();
|
||||
newReport.Specification = this.txtSpecification.Text.Trim();
|
||||
newReport.Unit = this.txtUnit.Text.Trim();
|
||||
newReport.TotalNum = Funs.GetNewIntOrZero(this.txtTotalNum.Text.Trim());
|
||||
newReport.ReInspectionReportCode = this.txtReInspectionReportCode.Text.Trim();
|
||||
newReport.ReceivingUnit = this.txtReceivingUnit.Text.Trim();
|
||||
newReport.DrawNum = Funs.GetNewIntOrZero(this.txtDrawNum.Text.Trim());
|
||||
newReport.Remark = this.txtRemark.Text.Trim();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.MaterialId))
|
||||
{
|
||||
newReport.MaterialId = this.MaterialId;
|
||||
BLL.MaterialQualityCertificateDocService.UpdateMaterialQualityCertificateDoc(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.Reviewer = this.CurrUser.UserId;
|
||||
newReport.RevieweDate = DateTime.Now;
|
||||
newReport.MaterialId = SQLHelper.GetNewID(typeof(Model.JGZL_MaterialQualityCertificateDoc));
|
||||
this.MaterialId = newReport.MaterialId;
|
||||
BLL.MaterialQualityCertificateDocService.AddMaterialQualityCertificateDoc(newReport);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
179
HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs
generated
Normal file
179
HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class MaterialQualityCertificateDocEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// txtMaterialCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterialCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtMaterialName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterialName;
|
||||
|
||||
/// <summary>
|
||||
/// txtSerialCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSerialCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtManufacturer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtManufacturer;
|
||||
|
||||
/// <summary>
|
||||
/// txtMaterial 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterial;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecification 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSpecification;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtReInspectionReportCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtReInspectionReportCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtReceivingUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtReceivingUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtDrawNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDrawNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -395,6 +395,9 @@ namespace Model
|
|||
partial void InsertJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void UpdateJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void DeleteJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
|
||||
partial void InsertJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
|
||||
partial void UpdateJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
|
||||
partial void DeleteJGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc instance);
|
||||
partial void InsertJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
|
||||
partial void UpdateJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
|
||||
partial void DeleteJGZL_MeasuringInstruments(JGZL_MeasuringInstruments instance);
|
||||
|
|
@ -1833,6 +1836,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_MaterialQualityCertificateDoc> JGZL_MaterialQualityCertificateDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<JGZL_MaterialQualityCertificateDoc>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_MeasuringInstruments> JGZL_MeasuringInstruments
|
||||
{
|
||||
get
|
||||
|
|
@ -4484,6 +4495,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
|
||||
|
||||
private EntitySet<JGZL_MaterialQualityCertificateDoc> _JGZL_MaterialQualityCertificateDoc;
|
||||
|
||||
private EntitySet<JGZL_MeasuringInstruments> _JGZL_MeasuringInstruments;
|
||||
|
||||
private EntitySet<JGZL_NDTPerson> _JGZL_NDTPerson;
|
||||
|
|
@ -4625,6 +4638,7 @@ namespace Model
|
|||
this._JGZL_Contact = new EntitySet<JGZL_Contact>(new Action<JGZL_Contact>(this.attach_JGZL_Contact), new Action<JGZL_Contact>(this.detach_JGZL_Contact));
|
||||
this._JGZL_ElectrostaticGrounding = new EntitySet<JGZL_ElectrostaticGrounding>(new Action<JGZL_ElectrostaticGrounding>(this.attach_JGZL_ElectrostaticGrounding), new Action<JGZL_ElectrostaticGrounding>(this.detach_JGZL_ElectrostaticGrounding));
|
||||
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
|
||||
this._JGZL_MaterialQualityCertificateDoc = new EntitySet<JGZL_MaterialQualityCertificateDoc>(new Action<JGZL_MaterialQualityCertificateDoc>(this.attach_JGZL_MaterialQualityCertificateDoc), new Action<JGZL_MaterialQualityCertificateDoc>(this.detach_JGZL_MaterialQualityCertificateDoc));
|
||||
this._JGZL_MeasuringInstruments = new EntitySet<JGZL_MeasuringInstruments>(new Action<JGZL_MeasuringInstruments>(this.attach_JGZL_MeasuringInstruments), new Action<JGZL_MeasuringInstruments>(this.detach_JGZL_MeasuringInstruments));
|
||||
this._JGZL_NDTPerson = new EntitySet<JGZL_NDTPerson>(new Action<JGZL_NDTPerson>(this.attach_JGZL_NDTPerson), new Action<JGZL_NDTPerson>(this.detach_JGZL_NDTPerson));
|
||||
this._JGZL_QualityControlPointInspection = new EntitySet<JGZL_QualityControlPointInspection>(new Action<JGZL_QualityControlPointInspection>(this.attach_JGZL_QualityControlPointInspection), new Action<JGZL_QualityControlPointInspection>(this.detach_JGZL_QualityControlPointInspection));
|
||||
|
|
@ -5788,6 +5802,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Base_Project", Storage="_JGZL_MaterialQualityCertificateDoc", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_MaterialQualityCertificateDoc> JGZL_MaterialQualityCertificateDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_MaterialQualityCertificateDoc;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_MaterialQualityCertificateDoc.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MeasuringInstruments_Base_Project", Storage="_JGZL_MeasuringInstruments", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_MeasuringInstruments> JGZL_MeasuringInstruments
|
||||
{
|
||||
|
|
@ -6595,6 +6622,18 @@ namespace Model
|
|||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_MeasuringInstruments(JGZL_MeasuringInstruments entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
@ -82960,6 +82999,558 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_MaterialQualityCertificateDoc")]
|
||||
public partial class JGZL_MaterialQualityCertificateDoc : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _MaterialId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _MaterialCode;
|
||||
|
||||
private string _MaterialName;
|
||||
|
||||
private string _SerialCode;
|
||||
|
||||
private string _Material;
|
||||
|
||||
private string _Specification;
|
||||
|
||||
private string _Manufacturer;
|
||||
|
||||
private string _Unit;
|
||||
|
||||
private System.Nullable<int> _TotalNum;
|
||||
|
||||
private string _ReInspectionReportCode;
|
||||
|
||||
private string _ReceivingUnit;
|
||||
|
||||
private System.Nullable<int> _DrawNum;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
private string _Reviewer;
|
||||
|
||||
private System.Nullable<System.DateTime> _RevieweDate;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnMaterialIdChanging(string value);
|
||||
partial void OnMaterialIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnMaterialCodeChanging(string value);
|
||||
partial void OnMaterialCodeChanged();
|
||||
partial void OnMaterialNameChanging(string value);
|
||||
partial void OnMaterialNameChanged();
|
||||
partial void OnSerialCodeChanging(string value);
|
||||
partial void OnSerialCodeChanged();
|
||||
partial void OnMaterialChanging(string value);
|
||||
partial void OnMaterialChanged();
|
||||
partial void OnSpecificationChanging(string value);
|
||||
partial void OnSpecificationChanged();
|
||||
partial void OnManufacturerChanging(string value);
|
||||
partial void OnManufacturerChanged();
|
||||
partial void OnUnitChanging(string value);
|
||||
partial void OnUnitChanged();
|
||||
partial void OnTotalNumChanging(System.Nullable<int> value);
|
||||
partial void OnTotalNumChanged();
|
||||
partial void OnReInspectionReportCodeChanging(string value);
|
||||
partial void OnReInspectionReportCodeChanged();
|
||||
partial void OnReceivingUnitChanging(string value);
|
||||
partial void OnReceivingUnitChanged();
|
||||
partial void OnDrawNumChanging(System.Nullable<int> value);
|
||||
partial void OnDrawNumChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
partial void OnReviewerChanging(string value);
|
||||
partial void OnReviewerChanged();
|
||||
partial void OnRevieweDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnRevieweDateChanged();
|
||||
#endregion
|
||||
|
||||
public JGZL_MaterialQualityCertificateDoc()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string MaterialId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MaterialId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MaterialId != value))
|
||||
{
|
||||
this.OnMaterialIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MaterialId = value;
|
||||
this.SendPropertyChanged("MaterialId");
|
||||
this.OnMaterialIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
if (this._Base_Project.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
this.SendPropertyChanged("ProjectId");
|
||||
this.OnProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")]
|
||||
public string MaterialCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MaterialCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MaterialCode != value))
|
||||
{
|
||||
this.OnMaterialCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MaterialCode = value;
|
||||
this.SendPropertyChanged("MaterialCode");
|
||||
this.OnMaterialCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)")]
|
||||
public string MaterialName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MaterialName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MaterialName != value))
|
||||
{
|
||||
this.OnMaterialNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MaterialName = value;
|
||||
this.SendPropertyChanged("MaterialName");
|
||||
this.OnMaterialNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SerialCode", DbType="NVarChar(50)")]
|
||||
public string SerialCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SerialCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SerialCode != value))
|
||||
{
|
||||
this.OnSerialCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SerialCode = value;
|
||||
this.SendPropertyChanged("SerialCode");
|
||||
this.OnSerialCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")]
|
||||
public string Material
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Material;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Material != value))
|
||||
{
|
||||
this.OnMaterialChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Material = value;
|
||||
this.SendPropertyChanged("Material");
|
||||
this.OnMaterialChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specification", DbType="NVarChar(50)")]
|
||||
public string Specification
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Specification;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Specification != value))
|
||||
{
|
||||
this.OnSpecificationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Specification = value;
|
||||
this.SendPropertyChanged("Specification");
|
||||
this.OnSpecificationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Manufacturer", DbType="NVarChar(50)")]
|
||||
public string Manufacturer
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Manufacturer;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Manufacturer != value))
|
||||
{
|
||||
this.OnManufacturerChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Manufacturer = value;
|
||||
this.SendPropertyChanged("Manufacturer");
|
||||
this.OnManufacturerChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(20)")]
|
||||
public string Unit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Unit;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Unit != value))
|
||||
{
|
||||
this.OnUnitChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Unit = value;
|
||||
this.SendPropertyChanged("Unit");
|
||||
this.OnUnitChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalNum", DbType="Int")]
|
||||
public System.Nullable<int> TotalNum
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalNum;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalNum != value))
|
||||
{
|
||||
this.OnTotalNumChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalNum = value;
|
||||
this.SendPropertyChanged("TotalNum");
|
||||
this.OnTotalNumChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReInspectionReportCode", DbType="NVarChar(50)")]
|
||||
public string ReInspectionReportCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReInspectionReportCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReInspectionReportCode != value))
|
||||
{
|
||||
this.OnReInspectionReportCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ReInspectionReportCode = value;
|
||||
this.SendPropertyChanged("ReInspectionReportCode");
|
||||
this.OnReInspectionReportCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceivingUnit", DbType="NVarChar(50)")]
|
||||
public string ReceivingUnit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReceivingUnit;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReceivingUnit != value))
|
||||
{
|
||||
this.OnReceivingUnitChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ReceivingUnit = value;
|
||||
this.SendPropertyChanged("ReceivingUnit");
|
||||
this.OnReceivingUnitChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrawNum", DbType="Int")]
|
||||
public System.Nullable<int> DrawNum
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DrawNum;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DrawNum != value))
|
||||
{
|
||||
this.OnDrawNumChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DrawNum = value;
|
||||
this.SendPropertyChanged("DrawNum");
|
||||
this.OnDrawNumChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Remark;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Remark != value))
|
||||
{
|
||||
this.OnRemarkChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Remark = value;
|
||||
this.SendPropertyChanged("Remark");
|
||||
this.OnRemarkChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||
public string CompileMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnCompileManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileMan = value;
|
||||
this.SendPropertyChanged("CompileMan");
|
||||
this.OnCompileManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileDate != value))
|
||||
{
|
||||
this.OnCompileDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileDate = value;
|
||||
this.SendPropertyChanged("CompileDate");
|
||||
this.OnCompileDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")]
|
||||
public string Reviewer
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Reviewer;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Reviewer != value))
|
||||
{
|
||||
this.OnReviewerChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Reviewer = value;
|
||||
this.SendPropertyChanged("Reviewer");
|
||||
this.OnReviewerChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RevieweDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> RevieweDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RevieweDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RevieweDate != value))
|
||||
{
|
||||
this.OnRevieweDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._RevieweDate = value;
|
||||
this.SendPropertyChanged("RevieweDate");
|
||||
this.OnRevieweDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Project.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Project previousValue = this._Base_Project.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Project.Entity = null;
|
||||
previousValue.JGZL_MaterialQualityCertificateDoc.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_MaterialQualityCertificateDoc.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
|
||||
public Sys_User Sys_User
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sys_User.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Sys_User previousValue = this._Sys_User.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Sys_User.Entity = null;
|
||||
previousValue.JGZL_MaterialQualityCertificateDoc.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_MaterialQualityCertificateDoc.Add(this);
|
||||
this._CompileMan = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._CompileMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_MeasuringInstruments")]
|
||||
public partial class JGZL_MeasuringInstruments : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
@ -107170,6 +107761,8 @@ namespace Model
|
|||
|
||||
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
|
||||
|
||||
private EntitySet<JGZL_MaterialQualityCertificateDoc> _JGZL_MaterialQualityCertificateDoc;
|
||||
|
||||
private EntitySet<JGZL_MeasuringInstruments> _JGZL_MeasuringInstruments;
|
||||
|
||||
private EntitySet<JGZL_NDTPerson> _JGZL_NDTPerson;
|
||||
|
|
@ -107268,6 +107861,7 @@ namespace Model
|
|||
this._JGZL_Contact = new EntitySet<JGZL_Contact>(new Action<JGZL_Contact>(this.attach_JGZL_Contact), new Action<JGZL_Contact>(this.detach_JGZL_Contact));
|
||||
this._JGZL_ElectrostaticGrounding = new EntitySet<JGZL_ElectrostaticGrounding>(new Action<JGZL_ElectrostaticGrounding>(this.attach_JGZL_ElectrostaticGrounding), new Action<JGZL_ElectrostaticGrounding>(this.detach_JGZL_ElectrostaticGrounding));
|
||||
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
|
||||
this._JGZL_MaterialQualityCertificateDoc = new EntitySet<JGZL_MaterialQualityCertificateDoc>(new Action<JGZL_MaterialQualityCertificateDoc>(this.attach_JGZL_MaterialQualityCertificateDoc), new Action<JGZL_MaterialQualityCertificateDoc>(this.detach_JGZL_MaterialQualityCertificateDoc));
|
||||
this._JGZL_MeasuringInstruments = new EntitySet<JGZL_MeasuringInstruments>(new Action<JGZL_MeasuringInstruments>(this.attach_JGZL_MeasuringInstruments), new Action<JGZL_MeasuringInstruments>(this.detach_JGZL_MeasuringInstruments));
|
||||
this._JGZL_NDTPerson = new EntitySet<JGZL_NDTPerson>(new Action<JGZL_NDTPerson>(this.attach_JGZL_NDTPerson), new Action<JGZL_NDTPerson>(this.detach_JGZL_NDTPerson));
|
||||
this._JGZL_QualityControlPointInspection = new EntitySet<JGZL_QualityControlPointInspection>(new Action<JGZL_QualityControlPointInspection>(this.attach_JGZL_QualityControlPointInspection), new Action<JGZL_QualityControlPointInspection>(this.detach_JGZL_QualityControlPointInspection));
|
||||
|
|
@ -108002,6 +108596,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MaterialQualityCertificateDoc_Sys_User", Storage="_JGZL_MaterialQualityCertificateDoc", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_MaterialQualityCertificateDoc> JGZL_MaterialQualityCertificateDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_MaterialQualityCertificateDoc;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_MaterialQualityCertificateDoc.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_MeasuringInstruments_Sys_User", Storage="_JGZL_MeasuringInstruments", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_MeasuringInstruments> JGZL_MeasuringInstruments
|
||||
{
|
||||
|
|
@ -108518,6 +109125,18 @@ namespace Model
|
|||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_MaterialQualityCertificateDoc(JGZL_MaterialQualityCertificateDoc entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_MeasuringInstruments(JGZL_MeasuringInstruments entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
@ -116023,6 +116642,8 @@ namespace Model
|
|||
|
||||
private string _Wed_name;
|
||||
|
||||
private string _DepartName;
|
||||
|
||||
private string _WED_Sex;
|
||||
|
||||
private System.Nullable<decimal> _TotalSize;
|
||||
|
|
@ -116137,6 +116758,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartName", DbType="NVarChar(50)")]
|
||||
public string DepartName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DepartName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DepartName != value))
|
||||
{
|
||||
this._DepartName = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Sex", DbType="Char(1)")]
|
||||
public string WED_Sex
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Model</RootNamespace>
|
||||
<AssemblyName>Model</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
|
@ -37,6 +39,7 @@
|
|||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
|
|
|
|||
Loading…
Reference in New Issue