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 DELETE FROM UBF_MD_UIComponent WHERE UID = '27c921e1-3c64-43fb-b2b3-fa739099255a' INSERT INTO UBF_MD_UIComponent(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, AssemblyName) VALUES(@SNIndex+0, '27c921e1-3c64-43fb-b2b3-fa739099255a', 'CustPOSendMailUI', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', 'UFIDA.U9.Cust.WC.CustPOSendMailUI') DELETE FROM UBF_MD_UIProperty FROM UBF_MD_UIProperty AS a LEFT JOIN UBF_MD_UIModel AS b ON a.container=b.uid WHERE b.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UIProperty FROM UBF_MD_UIProperty AS a LEFT JOIN UBF_MD_UIView AS b ON a.container=b.uid LEFT JOIN UBF_MD_UIModel AS c ON b.container=c.uid WHERE c.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UIField FROM UBF_MD_UIField AS a LEFT JOIN UBF_MD_UIView AS b ON a.container=b.uid LEFT JOIN UBF_MD_UIModel AS c ON b.container=c.uid WHERE c.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UIView FROM UBF_MD_UIView AS a LEFT JOIN UBF_MD_UIModel AS b ON a.container=b.uid WHERE b.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UIAction FROM UBF_MD_UIAction AS a LEFT JOIN UBF_MD_UIModel AS b ON a.container=b.uid WHERE b.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UILink FROM UBF_MD_UILink AS a LEFT JOIN UBF_MD_UIModel AS b ON a.container=b.uid WHERE b.uid = '2656be57-c870-47b8-95f6-118655c7b336' DELETE FROM UBF_MD_UIModel WHERE UID = '2656be57-c870-47b8-95f6-118655c7b336' INSERT INTO UBF_MD_UIModel(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIComponent) VALUES(@SNIndex+1, '2656be57-c870-47b8-95f6-118655c7b336', 'CustPOSendMailUI', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+0) INSERT INTO UBF_MD_UIView(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIModel, IsMainView, IsExtendView, FilterOriginalOPath, FilterOrderBy, DataSource, Container, MappingID) VALUES(@SNIndex+2, '8c837754-a92b-4dcd-8250-d198dda19d0f', 'CustPOSendMailView', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+1, 1, 0, '', '', '63c3fb6c-09bc-4ee7-a8d8-22021f8b837d', '2656be57-c870-47b8-95f6-118655c7b336', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+3, '11161576-147a-449f-a8be-355e4685ecdb', 'ID', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Key.ID', 'ba391065-6c27-4c82-acc8-b52b1c93a910', '', 'Key', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+4, '9778bcf4-6409-45b5-ace0-c33d8a34490b', 'CreatedOn', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Sys.CreatedOn', '3834a958-120f-4ac9-8d60-1a7be6d3f12f', '', 'Sys', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+5, '7af72902-e806-45d4-a6ba-adc448d305e8', 'CreatedBy', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Sys.CreatedBy', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Sys', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+6, 'fcb13178-798a-44a7-aa9e-06244fb4f45a', 'ModifiedOn', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Sys.ModifiedOn', '3834a958-120f-4ac9-8d60-1a7be6d3f12f', '', 'Sys', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+7, '30fc2b31-c568-4deb-9cac-442dd9cbb979', 'ModifiedBy', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Sys.ModifiedBy', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Sys', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+8, '22b6edb8-e2e5-4028-a988-15ed04fc32d8', 'SysVersion', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Sys.SysVersion', 'ba391065-6c27-4c82-acc8-b52b1c93a910', '', 'Sys', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+9, 'e774dd03-9fcd-45b3-ba5e-6bac4545251f', 'PrintTemplates', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.打印模板', 'ba391065-6c27-4c82-acc8-b52b1c93a910', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+10, 'd21450ea-6c23-408c-864b-e307549b96c1', 'PrintTemplatesName', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.打印模板名称', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+11, '5f196656-db98-49e7-bcdc-0bc080c8d73e', 'MailTitle', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.邮件主题', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+12, 'f16bc380-10a6-46e8-88c5-d6af09d601e1', 'MailText', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.邮件正文', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+13, '203d7450-ad05-451f-906a-20ea92f39a02', 'PrintTemlateName', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.打印模板名称', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+14, 'a0c817ed-5f17-493b-b225-1f4e03e70553', 'NoticeTemplate', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+2, 'Misc.通知模板', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '8c837754-a92b-4dcd-8250-d198dda19d0f', null) INSERT INTO UBF_MD_UIView(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIModel, IsMainView, IsExtendView, FilterOriginalOPath, FilterOrderBy, DataSource, Container, MappingID) VALUES(@SNIndex+15, '0ab05d54-2bbb-4c50-b544-738176736bb3', 'CustPOSendMailPerson', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+1, 1, 0, '', '', 'ac460da5-0ea9-41c7-972a-2dcf19949807', '2656be57-c870-47b8-95f6-118655c7b336', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+16, '643cee82-a076-4967-b713-5da8b2cfed9d', 'ID', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Key.ID', 'ba391065-6c27-4c82-acc8-b52b1c93a910', '', 'Key', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+17, 'e8492f1e-25a8-4380-9857-20b00e43b136', 'CreatedOn', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Sys.CreatedOn', '3834a958-120f-4ac9-8d60-1a7be6d3f12f', '', 'Sys', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+18, '3f9c0cef-c62e-4b8f-8d45-931a57187ef8', 'CreatedBy', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Sys.CreatedBy', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Sys', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+19, 'b1f96cd8-a461-4f5e-8541-81c17a71277e', 'ModifiedOn', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Sys.ModifiedOn', '3834a958-120f-4ac9-8d60-1a7be6d3f12f', '', 'Sys', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+20, '116f425e-8cc9-4f77-a9bb-59e5919796bf', 'ModifiedBy', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Sys.ModifiedBy', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Sys', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+21, '966d7e9d-0f5e-4027-89cc-372372a6ede4', 'SysVersion', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Sys.SysVersion', 'ba391065-6c27-4c82-acc8-b52b1c93a910', '', 'Sys', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+22, 'aaf3b6ac-79c7-4090-8385-bf12a6bc817a', 'MailAddress', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Misc.邮件地址', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+23, '1348c789-74af-450b-b0b3-d74fdafe0518', 'Telephone', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Misc.手机号', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIView, ToolTips, DataType, DefaultValue, GroupName, IsReadOnly, IsBinding, Container, MappingID) VALUES(@SNIndex+24, 'c169e85f-31a6-45bc-a7ad-a9a9d17fccb1', 'RcvPerson', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+15, 'Misc.收件人', '3d174255-fd12-47f7-8844-3b5e4fae9e8c', '', 'Misc', 0, 0, '0ab05d54-2bbb-4c50-b544-738176736bb3', null) INSERT INTO UBF_MD_UIAction(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIModel, Container, GroupName) VALUES(@SNIndex+25, '1e38441b-64eb-47a3-9461-3d5d2938d0ca', 'OnSend', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+1, '2656be57-c870-47b8-95f6-118655c7b336', 'CustGroup') INSERT INTO UBF_MD_UIAction(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIModel, Container, GroupName) VALUES(@SNIndex+26, '1c3d2a36-dbc3-4315-8675-e1035e95d870', 'OnClose', 'Lenovo', '2024-06-26T13:51:52', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+1, '2656be57-c870-47b8-95f6-118655c7b336', 'CustGroup') DELETE FROM UBF_MD_UIEvent FROM UBF_MD_UIEvent AS a LEFT JOIN UBF_MD_UIControl AS b ON a.Container = b.UID LEFT JOIN UBF_MD_UIForm AS c ON b.Container = c.UID WHERE c.UID = '0a1d23b5-171b-42eb-9296-7df200076bfc' DELETE FROM UBF_MD_UIControl FROM UBF_MD_UIControl AS a LEFT JOIN UBF_MD_UIForm AS b ON a.container=b.uid WHERE b.uid = '0a1d23b5-171b-42eb-9296-7df200076bfc' DELETE FROM UBF_MD_UIForm WHERE uid = '0a1d23b5-171b-42eb-9296-7df200076bfc' DELETE FROM UBF_MD_UIFormParamter WHERE Container = '0a1d23b5-171b-42eb-9296-7df200076bfc' DELETE FROM UBF_MD_UIFormDetail WHERE Container = '0a1d23b5-171b-42eb-9296-7df200076bfc' DELETE FROM aspnet_parts WHERE FormId = '0a1d23b5-171b-42eb-9296-7df200076bfc' INSERT INTO UBF_MD_UIForm(ID, UID, Container, UIComponent, Name, DataSource, IsMain, IsAuthority, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, ClassName, AssemblyName, URI, PublishDetail, Width, Height) VALUES(@SNIndex+27, '0a1d23b5-171b-42eb-9296-7df200076bfc', '27c921e1-3c64-43fb-b2b3-fa739099255a', @SNIndex+0, 'CustPOSendMailUIForm', '2656be57-c870-47b8-95f6-118655c7b336', 0, 1, 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.CustPOSendMailUIFormWebPart', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.WebPart', '.UI_弹出Form_3列WebPart', 0, 720, 440) INSERT INTO aspnet_parts(ID, FormId, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, ClassName, Assembly, Path, URI) VALUES(@SNIndex+27, '0a1d23b5-171b-42eb-9296-7df200076bfc', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.CustPOSendMailUIFormWebPart', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.WebPart', 'UFIDA\U9\Cust\WC\CustPOSendMailUI', '.UI_弹出Form_3列WebPart') INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+28, 'f426581f-d380-4313-b1ad-6dc8933423ff', 'OnSend273', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'Button', null, 0, null, null, 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+29, 'ecaabbaf-1e1b-43fc-9455-8470239054ec', 'OnClose141', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'Button', null, 0, null, null, 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+30, 'feae8c35-0325-4fa7-b126-25f054c627a3', 'PrintTemplates278', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'Reference', null, 1, 'CustPOSendMailView', 'PrintTemplates', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', '1d17c30a-3581-49f1-b0c4-5428b2772690', 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+31, '062b9b46-e56a-44d6-827e-1c586874f358', 'MailTitle86', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'TextBox', null, 1, 'CustPOSendMailView', 'MailTitle', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+32, '29e544ae-806d-4f88-891d-1bf248b42186', 'MailText53', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'TextBox', null, 1, 'CustPOSendMailView', 'MailText', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+33, '0f27e5cd-d1fc-447d-8f1e-92529e8dacbf', 'DataGrid0', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'DataGrid', null, 0, null, null, 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+34, '6e72562f-4efe-41f3-b610-fd96c5be4e64', 'RcvPerson2', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'TextBoxColumn', @SNIndex+33, 1, 'CustPOSendMailPerson', 'RcvPerson', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+35, '3193ab46-a33c-4249-9d41-c2fc00d8c1af', 'MailAddress0', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'TextBoxColumn', @SNIndex+33, 1, 'CustPOSendMailPerson', 'MailAddress', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+36, 'd1f58251-81f1-4f13-a765-7c2352909dfa', 'Telephone0', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'TextBoxColumn', @SNIndex+33, 1, 'CustPOSendMailPerson', 'Telephone', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+37, '78db1e02-9309-4a82-b537-4afb2660f52a', 'ID254', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'NumberColumn', @SNIndex+33, 1, 'CustPOSendMailPerson', 'ID', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 0) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+38, '1d73ebd5-dc6a-4d35-872d-79f81e24c4ea', 'DropDownList_Notices', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'DropDownList', null, 0, null, null, 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 1) INSERT INTO UBF_MD_UIControl(ID, UID, Name, Container, UIForm, ControlType, ParentControl, IsBinding, UIView, UIField, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, RefType, Visible) VALUES(@SNIndex+39, '92df7700-fdc5-4db1-aa32-ce96647ef4ce', 'ID194', '0a1d23b5-171b-42eb-9296-7df200076bfc', @SNIndex+27, 'NumberControl', null, 1, 'CustPOSendMailView', 'ID', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', null, 0) INSERT INTO UBF_MD_UIEvent(ID, Name, ActionName, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIControl, Container) VALUES(@SNIndex+40, 'TextChanged', '', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+38, '1d73ebd5-dc6a-4d35-872d-79f81e24c4ea') INSERT INTO UBF_MD_UIEvent(ID, Name, ActionName, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIControl, Container) VALUES(@SNIndex+42, 'Click', 'OnSend', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+28, 'f426581f-d380-4313-b1ad-6dc8933423ff') INSERT INTO UBF_MD_UIEvent(ID, Name, ActionName, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIControl, Container) VALUES(@SNIndex+44, 'Click', 'OnClose', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', @SNIndex+29, 'ecaabbaf-1e1b-43fc-9455-8470239054ec') DELETE FROM UBF_MD_UIRefAssociation WHERE Container = '1d17c30a-3581-49f1-b0c4-5428b2772690' DELETE FROM UBF_MD_UIRefParam WHERE Container = '1d17c30a-3581-49f1-b0c4-5428b2772690' DELETE FROM UBF_MD_UIRefField FROM UBF_MD_UIRefField AS a LEFT JOIN UBF_MD_UIReference AS b ON a.Container=b.UID WHERE b.Container = '1d17c30a-3581-49f1-b0c4-5428b2772690' DELETE FROM UBF_MD_UIROrderField FROM UBF_MD_UIROrderField AS a LEFT JOIN UBF_MD_UIReference AS b ON a.Container=b.UID WHERE b.Container = '1d17c30a-3581-49f1-b0c4-5428b2772690' DELETE FROM UBF_MD_UIReference WHERE Container = '1d17c30a-3581-49f1-b0c4-5428b2772690' DELETE FROM UBF_MD_UIRComponent WHERE UID = '1d17c30a-3581-49f1-b0c4-5428b2772690' INSERT INTO UBF_MD_UIRComponent(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, IsMultiSelect, RefType, IsDefault, Path, URI, Classify, ForMultOrg) VALUES(@SNIndex+46, '1d17c30a-3581-49f1-b0c4-5428b2772690', 'CustPrintReferenceRef', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', 0, 'List', 0, 'CustPrintReferenceRef.ubfref', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.CustPrintReferenceRef', '',0) INSERT INTO UBF_MD_UIReference(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIReferenceComponent, Container, IsMain, RefEntityId, RefEntityName, Filter, RefType) VALUES(@SNIndex+47, '7e500986-4c2b-4442-838c-52edfc75fa01', 'cRef', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', @SNIndex+46, '1d17c30a-3581-49f1-b0c4-5428b2772690', 0, 'dd17d05e-e2c0-48c5-802a-f1be67ee311e', 'UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate', '', 'List') INSERT INTO UBF_MD_UIRefField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIReference, Container, RefAttributeName, IsVisible, IsKey, IsEdit, IsName, Sequence, Length, IsParent) VALUES(@SNIndex+48, '15f1ae4b-2181-484e-a167-ec8b636dfd7d', 'ID', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', @SNIndex+47, '7e500986-4c2b-4442-838c-52edfc75fa01', 'UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate:ID', 0, 1, 0, 0, 0, 80, 0) INSERT INTO UBF_MD_UIRefField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIReference, Container, RefAttributeName, IsVisible, IsKey, IsEdit, IsName, Sequence, Length, IsParent) VALUES(@SNIndex+49, '07f616e9-79bd-4b28-878b-3fefe06d09fc', 'TemplateName', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', @SNIndex+47, '7e500986-4c2b-4442-838c-52edfc75fa01', 'UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate:TemplateName', 1, 0, 0, 1, 0, 200, 0) INSERT INTO UBF_MD_UIRefField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIReference, Container, RefAttributeName, IsVisible, IsKey, IsEdit, IsName, Sequence, Length, IsParent) VALUES(@SNIndex+50, '6844fc13-b0cb-4160-a8a4-4d085db49205', 'IsDefault', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', @SNIndex+47, '7e500986-4c2b-4442-838c-52edfc75fa01', 'UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate:IsDefault', 1, 0, 0, 0, 0, 80, 0) INSERT INTO UBF_MD_UIRefField(ID, UID, Name, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, UIReference, Container, RefAttributeName, IsVisible, IsKey, IsEdit, IsName, Sequence, Length, IsParent) VALUES(@SNIndex+51, 'e1af8e4f-edc7-4bc7-a0ad-04ae4c598d83', 'TemplateID', 'Lenovo', '2024-06-26T13:51:52', '', '2024-06-26T13:51:52', @SNIndex+47, '7e500986-4c2b-4442-838c-52edfc75fa01', 'UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate:TemplateID', 0, 0, 1, 0, 0, 80, 0) DELETE FROM UBF_MD_EntityReference WHERE MD_Template_ID = '1d17c30a-3581-49f1-b0c4-5428b2772690' INSERT INTO UBF_MD_EntityReference(MD_Template_ID, MD_Class_ID) VALUES('1d17c30a-3581-49f1-b0c4-5428b2772690', 'dd17d05e-e2c0-48c5-802a-f1be67ee311e') DELETE FROM aspnet_parts WHERE FormId = '1d17c30a-3581-49f1-b0c4-5428b2772690' INSERT INTO aspnet_parts(ID, FormId, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, ClassName, Assembly, Path, URI) VALUES(@SNIndex+46, '1d17c30a-3581-49f1-b0c4-5428b2772690', 'Lenovo', '2024-06-26T13:52:03', 'Lenovo', '2024-06-26T13:52:03', 'CustPrintReferenceRef.CustPrintReferenceRefWebPart', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.WebPart', 'UFIDA\U9\Cust\WC\CustPOSendMailUI', 'UFIDA.U9.Cust.WC.CustPOSendMailUI.CustPrintReferenceRef')