use HJGLDB_ZJBSF go create table PMI_Delegation ( Id nvarchar(50) not null primary key, DelegationNo nvarchar(50) not null, DelegationDate datetime, ProjectId nvarchar(50) not null, InstallationId nvarchar(50), UnitId nvarchar(50), DetectionStandard nvarchar(50), Remark nvarchar(255), CreatedTime datetime default getdate() ) go create table PMI_DelegationDetails ( Id nvarchar(50) not null primary key, PMIId nvarchar(50) not null, JointId nvarchar(50) not null, QualityNo nvarchar(255), Acceptance nvarchar(255), Status int not null, CreatedTime datetime default getdate() ) go -- 管线焊工 增加是否 PMI处理 alter table Pipeline_WeldJoint add isPMI bit null update Pipeline_WeldJoint set isPMI=0 -- 插入PMI委托菜单 insert into Sys_Menu values('A6FB44C3-0920-4F77-862F-D814FD5E5D23','PMI检测管理','PMI detection management','',21,0,3,NUll,1) insert into Sys_Menu values(NEWID(),'PMI委托','PMI delegation','/WeldingProcess/PMI/PMIDelegation.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1) insert into Sys_Menu values(NEWID(),'PMI检测录入','PMI detection entry','/WeldingProcess/PMI/PMIDetectionEntry.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)