declare @SNIndex bigint if object_id('InnerAllocSerials') is null exec [dbo].[AllocSerials] @AllocCount = 20000, @StartSN = @SNIndex output else exec [dbo].[InnerAllocSerials] @AllocCount = 20000, @StartSN = @SNIndex output --Valid @SNIndex execute sp_UninstallMDProject '1c575d09-779c-409b-960b-37918a0be590' INSERT INTO UBF_MD_Project(Name, ID, AssemblyName, CreateOp, ComponentType, ModifyTime, ModifyOp, CreateTime) VALUES('CusSupplierContactBP', '1c575d09-779c-409b-960b-37918a0be590', 'CusSupplierContactBP', 'Lenovo', 'BP', '2024-06-26T13:50:46', '', '2024-06-26T13:50:46') INSERT INTO UBF_MD_Import(Source_ID, Imported_ID) VALUES('1c575d09-779c-409b-960b-37918a0be590', '2402fd32-810a-4130-811d-f1e6183a5a26') INSERT INTO UBF_MD_Import(Source_ID, Imported_ID) VALUES('1c575d09-779c-409b-960b-37918a0be590', 'eca02186-a272-4ed5-802e-d7a2d663d6d1') INSERT INTO UBF_MD_Component(Local_ID, Kind, Name, ID, AssemblyName, CreateOp, ModifyTime, Version, ModifyOp, MD_Module_ID, CreateTime) VALUES(@SNIndex+0, 'BP', 'CusSupplierContactBP', '20d8841d-8f9f-4a77-9ece-f587474da43f', 'CusSupplierContactBP', 'Lenovo', '2024-06-26T13:50:46', '', '', '1c575d09-779c-409b-960b-37918a0be590', '2024-06-26T13:50:46') INSERT INTO UBF_MD_Class (ID, Name, CreateOp, CreateTime, ModifyOp, ModifyTime, Local_ID, MD_ParentClass_ID, MD_Component_ID, Local_Component_ID, ClassType, FullName, IsDefault, IsService, TransactionType, ReturnTypeID, IsAuthority, Discriminator) VALUES ('83f63288-6317-4444-9beb-af822cdca49b', 'CusSelSupplierContactBP', 'Lenovo', '2024-06-26T13:50:46', 'Lenovo', '2024-06-26T13:51:15', @SNIndex+1, '00000000-0000-0000-0000-000000000000', '20d8841d-8f9f-4a77-9ece-f587474da43f', @SNIndex+0, 7, 'CusSupplierContactBP.CusSelSupplierContactBP', 0, 0, 2, '7a0911c8-4752-4552-9931-540ecb541b50', 1, 'UFIDA.UBF.MD.Business.Operation') INSERT INTO UBF_MD_Attribute(ID, Name, CreateOp, CreateTime, ModifyOp, ModifyTime, Local_ID, MD_Class_ID, Local_Class_ID, DataTypeID, GroupName, IsCollection, DefaultValue, Length, Precision, Sequence, Scale, MaxValue, MinValue, IsKey, IsNullable, IsReadOnly, Visibility, IsCalculation, IsGlobalization, IsSystem, IsBusinessKey, IsQueryAttribute, IsForAsso, GroupID, IsModifyControl, IsDynamic, IsImpressible, IsInCache, IsKeySerializable, IsColumnDefine, IsFilterDefine, IsSortDefine, IsDefaultColumn, IsEntityData, DefaultColumnName, DataTypeFlag,ForOBAImport) VALUES('4c154d78-fcdb-452e-b725-4035dabfb25e', 'SupplierNo', 'Lenovo', '2024-06-26T13:50:46', '', '2024-06-26T13:50:46', @SNIndex+2, '83f63288-6317-4444-9beb-af822cdca49b', @SNIndex+1, '3d174255-fd12-47f7-8844-3b5e4fae9e8c', 'Misc', 0, '', 50, 5, 0, 0, '', '', 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, '4231bc3f-8161-460b-8ecf-7a6bb927b99c', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, '', 0,0) INSERT INTO UBF_MD_Attribute(ID, Name, CreateOp, CreateTime, ModifyOp, ModifyTime, Local_ID, MD_Class_ID, Local_Class_ID, DataTypeID, GroupName, IsCollection, DefaultValue, Length, Precision, Sequence, Scale, MaxValue, MinValue, IsKey, IsNullable, IsReadOnly, Visibility, IsCalculation, IsGlobalization, IsSystem, IsBusinessKey, IsQueryAttribute, IsForAsso, GroupID, IsModifyControl, IsDynamic, IsImpressible, IsInCache, IsKeySerializable, IsColumnDefine, IsFilterDefine, IsSortDefine, IsDefaultColumn, IsEntityData, DefaultColumnName, DataTypeFlag,ForOBAImport) VALUES('acc7ee9f-52d6-4ab5-8587-70d4bfd1981e', 'OrgID', 'Lenovo', '2024-06-26T13:50:46', '', '2024-06-26T13:50:46', @SNIndex+3, '83f63288-6317-4444-9beb-af822cdca49b', @SNIndex+1, '3d174255-fd12-47f7-8844-3b5e4fae9e8c', 'Misc', 0, '', 50, 5, 1, 0, '', '', 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, '4231bc3f-8161-460b-8ecf-7a6bb927b99c', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, '', 0,0) INSERT INTO UBF_MD_Attribute(ID, Name, CreateOp, CreateTime, ModifyOp, ModifyTime, Local_ID, MD_Class_ID, Local_Class_ID, DataTypeID, GroupName, IsCollection, DefaultValue, Length, Precision, Sequence, Scale, MaxValue, MinValue, IsKey, IsNullable, IsReadOnly, Visibility, IsCalculation, IsGlobalization, IsSystem, IsBusinessKey, IsQueryAttribute, IsForAsso, GroupID, IsModifyControl, IsDynamic, IsImpressible, IsInCache, IsKeySerializable, IsColumnDefine, IsFilterDefine, IsSortDefine, IsDefaultColumn, IsEntityData, DefaultColumnName, DataTypeFlag,ForOBAImport) VALUES('ecb8f1f6-688e-474f-8cf5-2b315ba7c0b9', 'PODocNo', 'Lenovo', '2024-06-26T13:50:46', '', '2024-06-26T13:50:46', @SNIndex+4, '83f63288-6317-4444-9beb-af822cdca49b', @SNIndex+1, '3d174255-fd12-47f7-8844-3b5e4fae9e8c', 'Misc', 0, '', 50, 5, 2, 0, '', '', 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, '4231bc3f-8161-460b-8ecf-7a6bb927b99c', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, '', 0,0)