Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 176.49 KB | None | 0 0
  1. NHibernate.Exceptions.GenericADOException occurred
  2. HResult=0x80131600
  3. Message=could not execute native bulk manipulation query:INSERT INTO [ScaleCalibration](blueprintId,
  4. CreatedBy,
  5. CreatedDate,
  6. DisplayName,
  7. Id,
  8. IsActive,
  9. KnownLengthFormat,
  10. KnownLengthInches,
  11. layerId,
  12. ModifiedBy,
  13. ModifiedDate,
  14. ScaleDefinition_id,
  15. ScaleDistanceInPixels,
  16. ScaleDistanceInRealityFormat,
  17. ScaleDistanceInRealityInches,
  18. Shape,
  19. SourceBlueprintFileId,
  20. Style,
  21. Tenant,
  22. Type,
  23. url_Value,
  24. ScaleDefinition_woid,
  25. woid)
  26. SELECT blueprintId,
  27. CreatedBy,
  28. CreatedDate,
  29. DisplayName,
  30. Id,
  31. IsActive,
  32. KnownLengthFormat,
  33. KnownLengthInches,
  34. layerId,
  35. ModifiedBy,
  36. ModifiedDate,
  37. null,
  38. ScaleDistanceInPixels,
  39. ScaleDistanceInRealityFormat,
  40. ScaleDistanceInRealityInches,
  41. Shape,
  42. SourceBlueprintFileId,
  43. Style,
  44. Tenant,
  45. Type,
  46. url_Value,
  47. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  48. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  49. FROM [ScaleCalibration]
  50. WHERE woid = '00000000-0000-0000-0000-000000000000'
  51. INSERT INTO [ScaleDefinition](CreatedBy,
  52. CreatedDate,
  53. Id,
  54. IsActive,
  55. KnownLengthFormat,
  56. KnownLengthInches,
  57. ModifiedBy,
  58. ModifiedDate,
  59. Name,
  60. OrderIndex,
  61. ScaleCalibration_id,
  62. Tenant,
  63. Type,
  64. ScaleCalibration_woid,
  65. woid)
  66. SELECT CreatedBy,
  67. CreatedDate,
  68. Id,
  69. IsActive,
  70. KnownLengthFormat,
  71. KnownLengthInches,
  72. ModifiedBy,
  73. ModifiedDate,
  74. Name,
  75. OrderIndex,
  76. ScaleCalibration_id,
  77. Tenant,
  78. Type,
  79. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  80. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  81. FROM [ScaleDefinition]
  82. WHERE woid = '00000000-0000-0000-0000-000000000000'
  83. UPDATE calibration
  84. SET calibration.[ScaleDefinition_id] = (
  85. SELECT ScaleDefinition_id
  86. FROM [ScaleCalibration]
  87. WHERE woid = '00000000-0000-0000-0000-000000000000'
  88. AND Id = calibration.[Id]),
  89. calibration.[ScaleDefinition_woid] = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  90. FROM [ScaleCalibration] calibration
  91. WHERE calibration.woid = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  92. AND calibration.[ScaleDefinition_id] IS NULL
  93. INSERT INTO [Calibration](calibrationId,
  94. CreatedBy,
  95. CreatedDate,
  96. Id,
  97. IsActive,
  98. ModifiedBy,
  99. ModifiedDate,
  100. ScaleDefinition_id,
  101. ScaleDistanceInPixels,
  102. ScaleDistanceInRealityFormat,
  103. ScaleDistanceInRealityInches,
  104. Tenant,
  105. ScaleDefinition_woid,
  106. woid)
  107. SELECT calibrationId,
  108. CreatedBy,
  109. CreatedDate,
  110. Id,
  111. IsActive,
  112. ModifiedBy,
  113. ModifiedDate,
  114. ScaleDefinition_id,
  115. ScaleDistanceInPixels,
  116. ScaleDistanceInRealityFormat,
  117. ScaleDistanceInRealityInches,
  118. Tenant,
  119. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  120. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  121. FROM [Calibration]
  122. WHERE woid = '00000000-0000-0000-0000-000000000000'
  123. INSERT INTO [TakeoffBlueprint](blueprint_Id,
  124. Calibration_id,
  125. CreatedBy,
  126. CreatedDate,
  127. Grayscale,
  128. Id,
  129. IsActive,
  130. ModifiedBy,
  131. ModifiedDate,
  132. Tenant,
  133. workorder_Id,
  134. Calibration_woid,
  135. woid)
  136. SELECT blueprint_Id,
  137. Calibration_id,
  138. CreatedBy,
  139. CreatedDate,
  140. Grayscale,
  141. Id,
  142. IsActive,
  143. ModifiedBy,
  144. ModifiedDate,
  145. Tenant,
  146. workorder_Id,
  147. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  148. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  149. FROM [TakeoffBlueprint]
  150. WHERE woid = '00000000-0000-0000-0000-000000000000'
  151. INSERT INTO [ScaleArea](blueprintId,
  152. Calibration_id,
  153. CreatedBy,
  154. CreatedDate,
  155. DisplayName,
  156. Id,
  157. IsActive,
  158. layerId,
  159. ModifiedBy,
  160. ModifiedDate,
  161. Shape,
  162. Style,
  163. Tenant,
  164. Type,
  165. url_Value,
  166. Calibration_woid,
  167. woid)
  168. SELECT blueprintId,
  169. Calibration_id,
  170. CreatedBy,
  171. CreatedDate,
  172. DisplayName,
  173. Id,
  174. IsActive,
  175. layerId,
  176. ModifiedBy,
  177. ModifiedDate,
  178. Shape,
  179. Style,
  180. Tenant,
  181. Type,
  182. url_Value,
  183. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  184. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  185. FROM [ScaleArea]
  186. WHERE woid = '00000000-0000-0000-0000-000000000000'
  187. INSERT INTO [LaborCategory](CreatedBy,
  188. CreatedDate,
  189. directcostcurrencyCode,
  190. directcostcurrencySymbol,
  191. directcostValue,
  192. Id,
  193. IsActive,
  194. Level,
  195. ModifiedBy,
  196. ModifiedDate,
  197. Name,
  198. Parent_id,
  199. profitcurrencyCode,
  200. profitcurrencySymbol,
  201. profitFraction,
  202. profitMethod,
  203. profitValue,
  204. profitValueType,
  205. Tenant,
  206. TenantFacility_id,
  207. totalcostcurrencyCode,
  208. totalcostcurrencySymbol,
  209. totalcostValue,
  210. totalsellcurrencyCode,
  211. totalsellcurrencySymbol,
  212. totalsellValue,
  213. Parent_woid,
  214. woid)
  215. SELECT CreatedBy,
  216. CreatedDate,
  217. directcostcurrencyCode,
  218. directcostcurrencySymbol,
  219. directcostValue,
  220. Id,
  221. IsActive,
  222. Level,
  223. ModifiedBy,
  224. ModifiedDate,
  225. Name,
  226. Parent_id,
  227. profitcurrencyCode,
  228. profitcurrencySymbol,
  229. profitFraction,
  230. profitMethod,
  231. profitValue,
  232. profitValueType,
  233. Tenant,
  234. TenantFacility_id,
  235. totalcostcurrencyCode,
  236. totalcostcurrencySymbol,
  237. totalcostValue,
  238. totalsellcurrencyCode,
  239. totalsellcurrencySymbol,
  240. totalsellValue,
  241. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  242. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  243. FROM [LaborCategory]
  244. WHERE woid = '00000000-0000-0000-0000-000000000000'
  245. INSERT INTO [ProductsPallet](CreatedBy,
  246. CreatedDate,
  247. Id,
  248. IsActive,
  249. ModifiedBy,
  250. ModifiedDate,
  251. Tenant,
  252. woid)
  253. SELECT CreatedBy,
  254. CreatedDate,
  255. Id,
  256. IsActive,
  257. ModifiedBy,
  258. ModifiedDate,
  259. Tenant,
  260. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  261. FROM [ProductsPallet]
  262. WHERE woid = '00000000-0000-0000-0000-000000000000'
  263. INSERT INTO [Location](blueprintId,
  264. Building,
  265. CreatedBy,
  266. CreatedDate,
  267. DisplayName,
  268. Floor,
  269. Id,
  270. IsActive,
  271. layerId,
  272. ModifiedBy,
  273. ModifiedDate,
  274. Name,
  275. Number,
  276. ScopeNote,
  277. Shape,
  278. Style,
  279. Tenant,
  280. Type,
  281. url_Value,
  282. Zone,
  283. woid)
  284. SELECT blueprintId,
  285. Building,
  286. CreatedBy,
  287. CreatedDate,
  288. DisplayName,
  289. Floor,
  290. Id,
  291. IsActive,
  292. layerId,
  293. ModifiedBy,
  294. ModifiedDate,
  295. Name,
  296. Number,
  297. ScopeNote,
  298. Shape,
  299. Style,
  300. Tenant,
  301. Type,
  302. url_Value,
  303. Zone,
  304. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  305. FROM [Location]
  306. WHERE woid = '00000000-0000-0000-0000-000000000000'
  307. INSERT INTO [Layer](CreatedBy,
  308. CreatedDate,
  309. Id,
  310. IsActive,
  311. ModifiedBy,
  312. ModifiedDate,
  313. Name,
  314. OrderIndex,
  315. Tenant,
  316. Type,
  317. woid)
  318. SELECT CreatedBy,
  319. CreatedDate,
  320. Id,
  321. IsActive,
  322. ModifiedBy,
  323. ModifiedDate,
  324. Name,
  325. OrderIndex,
  326. Tenant,
  327. Type,
  328. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  329. FROM [Layer]
  330. WHERE woid = '00000000-0000-0000-0000-000000000000'
  331. INSERT INTO [CostObjectLayer](BidOriginId,
  332. Layer_id,
  333. Layer_woid)
  334. SELECT BidOriginId,
  335. Layer_id,
  336. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  337. FROM [CostObjectLayer]
  338. WHERE Layer_woid = '00000000-0000-0000-0000-000000000000'
  339. INSERT INTO [Image](blueprintId,
  340. CreatedBy,
  341. CreatedDate,
  342. DisplayName,
  343. Id,
  344. IsActive,
  345. layerId,
  346. ModifiedBy,
  347. ModifiedDate,
  348. Shape,
  349. Style,
  350. Tenant,
  351. Type,
  352. url_Value,
  353. woid)
  354. SELECT blueprintId,
  355. CreatedBy,
  356. CreatedDate,
  357. DisplayName,
  358. Id,
  359. IsActive,
  360. layerId,
  361. ModifiedBy,
  362. ModifiedDate,
  363. Shape,
  364. Style,
  365. Tenant,
  366. Type,
  367. url_Value,
  368. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  369. FROM [Image]
  370. WHERE woid = '00000000-0000-0000-0000-000000000000'
  371. INSERT INTO [DistributedCost](AmountCurrencyCode,
  372. AmountCurrencySymbol,
  373. AmountValue,
  374. Category,
  375. CreatedBy,
  376. CreatedDate,
  377. Id,
  378. IsActive,
  379. ModifiedBy,
  380. ModifiedDate,
  381. Name,
  382. Tenant,
  383. woid)
  384. SELECT AmountCurrencyCode,
  385. AmountCurrencySymbol,
  386. AmountValue,
  387. Category,
  388. CreatedBy,
  389. CreatedDate,
  390. Id,
  391. IsActive,
  392. ModifiedBy,
  393. ModifiedDate,
  394. Name,
  395. Tenant,
  396. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  397. FROM [DistributedCost]
  398. WHERE woid = '00000000-0000-0000-0000-000000000000'
  399. INSERT INTO [Budget](AlternatesSettings,
  400. AlternatesSummaryCalculationMode,
  401. BaseBidSettings,
  402. CreatedBy,
  403. CreatedDate,
  404. Id,
  405. IsActive,
  406. LockedCostObjects,
  407. ModifiedBy,
  408. ModifiedDate,
  409. SettingsVersionStamp,
  410. Tenant,
  411. woid)
  412. SELECT AlternatesSettings,
  413. AlternatesSummaryCalculationMode,
  414. BaseBidSettings,
  415. CreatedBy,
  416. CreatedDate,
  417. Id,
  418. IsActive,
  419. LockedCostObjects,
  420. ModifiedBy,
  421. ModifiedDate,
  422. SettingsVersionStamp,
  423. Tenant,
  424. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  425. FROM [Budget]
  426. WHERE woid = '00000000-0000-0000-0000-000000000000'
  427. INSERT INTO [BidOrigin](CreatedBy,
  428. CreatedDate,
  429. Description,
  430. Id,
  431. IsActive,
  432. ModifiedBy,
  433. ModifiedDate,
  434. Name,
  435. Status,
  436. Tenant,
  437. Type,
  438. woid)
  439. SELECT CreatedBy,
  440. CreatedDate,
  441. Description,
  442. Id,
  443. IsActive,
  444. ModifiedBy,
  445. ModifiedDate,
  446. Name,
  447. Status,
  448. Tenant,
  449. Type,
  450. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  451. FROM [BidOrigin]
  452. WHERE woid = '00000000-0000-0000-0000-000000000000'
  453. INSERT INTO [Annotation](blueprintId,
  454. CreatedBy,
  455. CreatedDate,
  456. DisplayName,
  457. Id,
  458. IsActive,
  459. layerId,
  460. ModifiedBy,
  461. ModifiedDate,
  462. Shape,
  463. Style,
  464. Tenant,
  465. Type,
  466. url_Value,
  467. woid)
  468. SELECT blueprintId,
  469. CreatedBy,
  470. CreatedDate,
  471. DisplayName,
  472. Id,
  473. IsActive,
  474. layerId,
  475. ModifiedBy,
  476. ModifiedDate,
  477. Shape,
  478. Style,
  479. Tenant,
  480. Type,
  481. url_Value,
  482. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  483. FROM [Annotation]
  484. WHERE woid = '00000000-0000-0000-0000-000000000000'
  485. INSERT INTO [VariableSetDefinition](CreatedBy,
  486. CreatedDate,
  487. Id,
  488. IsActive,
  489. IsInnergy,
  490. ModifiedBy,
  491. ModifiedDate,
  492. Name,
  493. ShortName,
  494. Tenant,
  495. woid)
  496. SELECT CreatedBy,
  497. CreatedDate,
  498. Id,
  499. IsActive,
  500. IsInnergy,
  501. ModifiedBy,
  502. ModifiedDate,
  503. Name,
  504. ShortName,
  505. Tenant,
  506. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  507. FROM [VariableSetDefinition]
  508. WHERE woid = '00000000-0000-0000-0000-000000000000'
  509. INSERT INTO [VariableSetValue](CreatedBy,
  510. CreatedDate,
  511. Description,
  512. Id,
  513. IsActive,
  514. IsDefault,
  515. ModifiedBy,
  516. ModifiedDate,
  517. Name,
  518. Reference,
  519. Tenant,
  520. VariableSetDefinition_id,
  521. VariableSetDefinition_woid,
  522. woid)
  523. SELECT CreatedBy,
  524. CreatedDate,
  525. Description,
  526. Id,
  527. IsActive,
  528. IsDefault,
  529. ModifiedBy,
  530. ModifiedDate,
  531. Name,
  532. Reference,
  533. Tenant,
  534. VariableSetDefinition_id,
  535. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  536. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  537. FROM [VariableSetValue]
  538. WHERE woid = '00000000-0000-0000-0000-000000000000'
  539. INSERT INTO [VariableDefinitionCategory](CreatedBy,
  540. CreatedDate,
  541. Id,
  542. IsActive,
  543. IsInnergy,
  544. ModifiedBy,
  545. ModifiedDate,
  546. Name,
  547. Parent_id,
  548. Tenant,
  549. Parent_woid,
  550. woid)
  551. SELECT CreatedBy,
  552. CreatedDate,
  553. Id,
  554. IsActive,
  555. IsInnergy,
  556. ModifiedBy,
  557. ModifiedDate,
  558. Name,
  559. Parent_id,
  560. Tenant,
  561. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  562. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  563. FROM [VariableDefinitionCategory]
  564. WHERE woid = '00000000-0000-0000-0000-000000000000'
  565. INSERT INTO [UomGroupCategory](CreatedBy,
  566. CreatedDate,
  567. Id,
  568. IsActive,
  569. IsInnergy,
  570. ModifiedBy,
  571. ModifiedDate,
  572. Name,
  573. Parent_id,
  574. Tenant,
  575. Parent_woid,
  576. woid)
  577. SELECT CreatedBy,
  578. CreatedDate,
  579. Id,
  580. IsActive,
  581. IsInnergy,
  582. ModifiedBy,
  583. ModifiedDate,
  584. Name,
  585. Parent_id,
  586. Tenant,
  587. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  588. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  589. FROM [UomGroupCategory]
  590. WHERE woid = '00000000-0000-0000-0000-000000000000'
  591. INSERT INTO [UomGroup](BaseUom_id,
  592. Category_id,
  593. CreatedBy,
  594. CreatedDate,
  595. Description,
  596. Id,
  597. IsActive,
  598. IsInnergy,
  599. ModifiedBy,
  600. ModifiedDate,
  601. Name,
  602. OrderIndex,
  603. Tenant,
  604. Category_woid,
  605. woid)
  606. SELECT BaseUom_id,
  607. Category_id,
  608. CreatedBy,
  609. CreatedDate,
  610. Description,
  611. Id,
  612. IsActive,
  613. IsInnergy,
  614. ModifiedBy,
  615. ModifiedDate,
  616. Name,
  617. OrderIndex,
  618. Tenant,
  619. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  620. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  621. FROM [UomGroup]
  622. WHERE woid = '00000000-0000-0000-0000-000000000000'
  623. INSERT INTO [CommonSizeCategory](CreatedBy,
  624. CreatedDate,
  625. Id,
  626. IsActive,
  627. IsInnergy,
  628. ModifiedBy,
  629. ModifiedDate,
  630. Name,
  631. Parent_id,
  632. Tenant,
  633. Parent_woid,
  634. woid)
  635. SELECT CreatedBy,
  636. CreatedDate,
  637. Id,
  638. IsActive,
  639. IsInnergy,
  640. ModifiedBy,
  641. ModifiedDate,
  642. Name,
  643. Parent_id,
  644. Tenant,
  645. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  646. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  647. FROM [CommonSizeCategory]
  648. WHERE woid = '00000000-0000-0000-0000-000000000000'
  649. INSERT INTO [CommonSize](BaseUom_id,
  650. Category_id,
  651. ConversionFactor,
  652. CreatedBy,
  653. CreatedDate,
  654. Description,
  655. Id,
  656. IsActive,
  657. IsInnergy,
  658. ModifiedBy,
  659. ModifiedDate,
  660. Name,
  661. Tenant,
  662. Category_woid,
  663. woid)
  664. SELECT BaseUom_id,
  665. Category_id,
  666. ConversionFactor,
  667. CreatedBy,
  668. CreatedDate,
  669. Description,
  670. Id,
  671. IsActive,
  672. IsInnergy,
  673. ModifiedBy,
  674. ModifiedDate,
  675. Name,
  676. Tenant,
  677. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  678. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  679. FROM [CommonSize]
  680. WHERE woid = '00000000-0000-0000-0000-000000000000'
  681. INSERT INTO [CustomMaterial](Category_Id,
  682. CostCurrencyCode,
  683. CostCurrencySymbol,
  684. CostDataSource,
  685. CostValue,
  686. CreatedBy,
  687. CreatedDate,
  688. DefaultCommonSize_id,
  689. Id,
  690. IsActive,
  691. ManufacturerSku,
  692. ManufacturerUrlValue,
  693. ModifiedBy,
  694. ModifiedDate,
  695. Name,
  696. ProfitCurrencyCode,
  697. ProfitCurrencySymbol,
  698. ProfitFraction,
  699. ProfitMethod,
  700. ProfitValue,
  701. ProfitValueType,
  702. PurchaseUomGroup_id,
  703. SellCurrencyCode,
  704. SellCurrencySymbol,
  705. SellValue,
  706. SequenceIdentifier,
  707. Status,
  708. Tenant,
  709. WeightSymbol,
  710. WeightUnit,
  711. WeightValue,
  712. Category_woid,
  713. DefaultCommonSize_woid,
  714. PurchaseUomGroup_woid,
  715. woid)
  716. SELECT Category_Id,
  717. CostCurrencyCode,
  718. CostCurrencySymbol,
  719. CostDataSource,
  720. CostValue,
  721. CreatedBy,
  722. CreatedDate,
  723. DefaultCommonSize_id,
  724. Id,
  725. IsActive,
  726. ManufacturerSku,
  727. ManufacturerUrlValue,
  728. ModifiedBy,
  729. ModifiedDate,
  730. Name,
  731. ProfitCurrencyCode,
  732. ProfitCurrencySymbol,
  733. ProfitFraction,
  734. ProfitMethod,
  735. ProfitValue,
  736. ProfitValueType,
  737. PurchaseUomGroup_id,
  738. SellCurrencyCode,
  739. SellCurrencySymbol,
  740. SellValue,
  741. SequenceIdentifier,
  742. Status,
  743. Tenant,
  744. WeightSymbol,
  745. WeightUnit,
  746. WeightValue,
  747. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  748. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  749. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  750. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  751. FROM [CustomMaterial]
  752. WHERE woid = '00000000-0000-0000-0000-000000000000'
  753. INSERT INTO [UomGroupCommonSize](CommonSize_id,
  754. CreatedBy,
  755. CreatedDate,
  756. Id,
  757. IsActive,
  758. IsDefault,
  759. ModifiedBy,
  760. ModifiedDate,
  761. Tenant,
  762. UomGroup_id,
  763. CommonSize_woid,
  764. UomGroup_woid,
  765. woid)
  766. SELECT CommonSize_id,
  767. CreatedBy,
  768. CreatedDate,
  769. Id,
  770. IsActive,
  771. IsDefault,
  772. ModifiedBy,
  773. ModifiedDate,
  774. Tenant,
  775. UomGroup_id,
  776. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  777. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  778. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  779. FROM [UomGroupCommonSize]
  780. WHERE woid = '00000000-0000-0000-0000-000000000000'
  781. INSERT INTO [ProductLabelDescription](CreatedBy,
  782. CreatedDate,
  783. Id,
  784. IsActive,
  785. ModifiedBy,
  786. ModifiedDate,
  787. Tenant,
  788. X_Description,
  789. Y_Description,
  790. Z_Description,
  791. woid)
  792. SELECT CreatedBy,
  793. CreatedDate,
  794. Id,
  795. IsActive,
  796. ModifiedBy,
  797. ModifiedDate,
  798. Tenant,
  799. X_Description,
  800. Y_Description,
  801. Z_Description,
  802. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  803. FROM [ProductLabelDescription]
  804. WHERE woid = '00000000-0000-0000-0000-000000000000'
  805. INSERT INTO [ProductLibraryCategory](CreatedBy,
  806. CreatedDate,
  807. Id,
  808. IsActive,
  809. IsInnergy,
  810. ModifiedBy,
  811. ModifiedDate,
  812. Name,
  813. Parent_id,
  814. Tenant,
  815. Type,
  816. Parent_woid,
  817. woid)
  818. SELECT CreatedBy,
  819. CreatedDate,
  820. Id,
  821. IsActive,
  822. IsInnergy,
  823. ModifiedBy,
  824. ModifiedDate,
  825. Name,
  826. Parent_id,
  827. Tenant,
  828. Type,
  829. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  830. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  831. FROM [ProductLibraryCategory]
  832. WHERE woid = '00000000-0000-0000-0000-000000000000'
  833. INSERT INTO [Formula](Body,
  834. CompiledBody,
  835. CompiledBodySelf,
  836. CreatedBy,
  837. CreatedDate,
  838. Description,
  839. Id,
  840. IsActive,
  841. ModifiedBy,
  842. ModifiedDate,
  843. ReturnTypeKind,
  844. Tenant,
  845. woid)
  846. SELECT Body,
  847. CompiledBody,
  848. CompiledBodySelf,
  849. CreatedBy,
  850. CreatedDate,
  851. Description,
  852. Id,
  853. IsActive,
  854. ModifiedBy,
  855. ModifiedDate,
  856. ReturnTypeKind,
  857. Tenant,
  858. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  859. FROM [Formula]
  860. WHERE woid = '00000000-0000-0000-0000-000000000000'
  861. INSERT INTO [InlineFormula](Formula_id,
  862. Formula_woid)
  863. SELECT Formula_id,
  864. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  865. FROM [InlineFormula]
  866. WHERE Formula_woid = '00000000-0000-0000-0000-000000000000'
  867. INSERT INTO [PartBase](Category_id,
  868. CreatedBy,
  869. CreatedDate,
  870. Dimensions,
  871. Id,
  872. IsActive,
  873. IsInnergy,
  874. ModifiedBy,
  875. ModifiedDate,
  876. Name,
  877. OriginalNameValue,
  878. Tenant,
  879. Category_woid,
  880. woid)
  881. SELECT Category_id,
  882. CreatedBy,
  883. CreatedDate,
  884. Dimensions,
  885. Id,
  886. IsActive,
  887. IsInnergy,
  888. ModifiedBy,
  889. ModifiedDate,
  890. Name,
  891. OriginalNameValue,
  892. Tenant,
  893. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  894. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  895. FROM [PartBase]
  896. WHERE woid = '00000000-0000-0000-0000-000000000000'
  897. INSERT INTO [Assembly](PartBase_id,
  898. PartBase_woid)
  899. SELECT PartBase_id,
  900. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  901. FROM [Assembly]
  902. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  903. INSERT INTO [Product](BaseUom_id,
  904. ImageIdentifier,
  905. ImageName,
  906. PartBase_id,
  907. ProductAdditions_id,
  908. ProductLabelDescription_Id,
  909. X_id,
  910. Y_id,
  911. Z_id,
  912. PartBase_woid,
  913. ProductLabelDescription_woid,
  914. X_woid,
  915. Y_woid,
  916. Z_woid)
  917. SELECT BaseUom_id,
  918. ImageIdentifier,
  919. ImageName,
  920. PartBase_id,
  921. ProductAdditions_id,
  922. ProductLabelDescription_Id,
  923. X_id,
  924. Y_id,
  925. Z_id,
  926. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  927. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  928. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  929. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  930. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  931. FROM [Product]
  932. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  933. INSERT INTO [Part](PartBase_id,
  934. PartBase_woid)
  935. SELECT PartBase_id,
  936. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  937. FROM [Part]
  938. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  939. INSERT INTO [ProductEvaluationSpecifications](Completed,
  940. CreatedBy,
  941. CreatedDate,
  942. Id,
  943. IsActive,
  944. ModifiedBy,
  945. ModifiedDate,
  946. Tenant,
  947. Type,
  948. VersionStamp,
  949. woid)
  950. SELECT Completed,
  951. CreatedBy,
  952. CreatedDate,
  953. Id,
  954. IsActive,
  955. ModifiedBy,
  956. ModifiedDate,
  957. Tenant,
  958. Type,
  959. VersionStamp,
  960. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  961. FROM [ProductEvaluationSpecifications]
  962. WHERE woid = '00000000-0000-0000-0000-000000000000'
  963. INSERT INTO [ProductEvaluationSpecification](AdditionalCostsCashItems,
  964. AdditionalCostsMaterials,
  965. AdditionalCostsOperations,
  966. Completed,
  967. CreatedBy,
  968. CreatedDate,
  969. DimensionsCount,
  970. DimensionsXFormat,
  971. DimensionsXInches,
  972. DimensionsYFormat,
  973. DimensionsYInches,
  974. DimensionsZFormat,
  975. DimensionsZInches,
  976. Facility_id,
  977. Id,
  978. IsActive,
  979. ModifiedBy,
  980. ModifiedDate,
  981. ProductEvaluationSpecifications_id,
  982. ProductTemplate_id,
  983. Quantity,
  984. Tenant,
  985. Facility_woid,
  986. ProductEvaluationSpecifications_woid,
  987. ProductTemplate_woid,
  988. woid)
  989. SELECT AdditionalCostsCashItems,
  990. AdditionalCostsMaterials,
  991. AdditionalCostsOperations,
  992. Completed,
  993. CreatedBy,
  994. CreatedDate,
  995. DimensionsCount,
  996. DimensionsXFormat,
  997. DimensionsXInches,
  998. DimensionsYFormat,
  999. DimensionsYInches,
  1000. DimensionsZFormat,
  1001. DimensionsZInches,
  1002. Facility_id,
  1003. Id,
  1004. IsActive,
  1005. ModifiedBy,
  1006. ModifiedDate,
  1007. ProductEvaluationSpecifications_id,
  1008. ProductTemplate_id,
  1009. Quantity,
  1010. Tenant,
  1011. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1012. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1013. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1014. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1015. FROM [ProductEvaluationSpecification]
  1016. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1017. INSERT INTO [AttachedProduct](AttachingDate,
  1018. CreatedBy,
  1019. CreatedDate,
  1020. DefaultShapeRepresentation,
  1021. EachTakeOffMethodType,
  1022. EvaluationSpecifications_id,
  1023. Fill,
  1024. Id,
  1025. IsActive,
  1026. ModifiedBy,
  1027. ModifiedDate,
  1028. Name,
  1029. ProductsPallet_id,
  1030. SpriteType,
  1031. State,
  1032. TakeOffMethod,
  1033. TaxRegulationsType,
  1034. Tenant,
  1035. EvaluationSpecifications_woid,
  1036. ProductsPallet_woid,
  1037. woid)
  1038. SELECT AttachingDate,
  1039. CreatedBy,
  1040. CreatedDate,
  1041. DefaultShapeRepresentation,
  1042. EachTakeOffMethodType,
  1043. EvaluationSpecifications_id,
  1044. Fill,
  1045. Id,
  1046. IsActive,
  1047. ModifiedBy,
  1048. ModifiedDate,
  1049. Name,
  1050. ProductsPallet_id,
  1051. SpriteType,
  1052. State,
  1053. TakeOffMethod,
  1054. TaxRegulationsType,
  1055. Tenant,
  1056. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1057. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1058. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1059. FROM [AttachedProduct]
  1060. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1061. INSERT INTO [AttachedProductDistributedCost](AttachedProduct_id,
  1062. CreatedBy,
  1063. CreatedDate,
  1064. DistributedCost_id,
  1065. Id,
  1066. IsActive,
  1067. ModifiedBy,
  1068. ModifiedDate,
  1069. Tenant,
  1070. AttachedProduct_woid,
  1071. DistributedCost_woid,
  1072. woid)
  1073. SELECT AttachedProduct_id,
  1074. CreatedBy,
  1075. CreatedDate,
  1076. DistributedCost_id,
  1077. Id,
  1078. IsActive,
  1079. ModifiedBy,
  1080. ModifiedDate,
  1081. Tenant,
  1082. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1083. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1084. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1085. FROM [AttachedProductDistributedCost]
  1086. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1087. INSERT INTO [TypicalGroup](blueprintId,
  1088. CreatedBy,
  1089. CreatedDate,
  1090. DisplayName,
  1091. Id,
  1092. IsActive,
  1093. layerId,
  1094. MarkerType,
  1095. ModifiedBy,
  1096. ModifiedDate,
  1097. Shape,
  1098. Style,
  1099. Tenant,
  1100. Type,
  1101. url_Value,
  1102. woid)
  1103. SELECT blueprintId,
  1104. CreatedBy,
  1105. CreatedDate,
  1106. DisplayName,
  1107. Id,
  1108. IsActive,
  1109. layerId,
  1110. MarkerType,
  1111. ModifiedBy,
  1112. ModifiedDate,
  1113. Shape,
  1114. Style,
  1115. Tenant,
  1116. Type,
  1117. url_Value,
  1118. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1119. FROM [TypicalGroup]
  1120. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1121. INSERT INTO [CostObject](AttachedProduct_id,
  1122. BidOriginId,
  1123. BidOriginIdVersionStamp,
  1124. blueprintId,
  1125. CostObjectBaseBidVersionId,
  1126. CostObjectState,
  1127. CreatedBy,
  1128. CreatedDate,
  1129. DisplayName,
  1130. DistributedCostsVersionStamp,
  1131. EachTakeOffMethodType,
  1132. EvaluationSpecifications_id,
  1133. Id,
  1134. IsActive,
  1135. layerId,
  1136. MeasurementCalculationMessage,
  1137. MeasurementLengthFormat,
  1138. MeasurementLengthInches,
  1139. MeasurementScaleSourceScaleArea_id,
  1140. MeasurementScaleSourceScaleDistanceInPixels,
  1141. MeasurementScaleSourceScaleDistanceInRealityFormat,
  1142. MeasurementScaleSourceScaleDistanceInRealityInches,
  1143. MeasurementScaleSourceSheetSettings_id,
  1144. MeasurementScaleSourceType,
  1145. MeasurementSurfaceAreaSquareInches,
  1146. ModifiedBy,
  1147. ModifiedDate,
  1148. PriceAdjustmentVersionStamp,
  1149. RawFabricationPriceAdjustmentFixedValuecurrencyCode,
  1150. RawFabricationPriceAdjustmentFixedValuecurrencySymbol,
  1151. RawFabricationPriceAdjustmentFixedValueValue,
  1152. RawFabricationPriceAdjustmentPercentageFraction,
  1153. RawInstalationPriceAdjustmentFixedValuecurrencyCode,
  1154. RawInstalationPriceAdjustmentFixedValuecurrencySymbol,
  1155. RawInstalationPriceAdjustmentFixedValueValue,
  1156. RawInstalationPriceAdjustmentPercentageFraction,
  1157. SequenceIdentifier,
  1158. Shape,
  1159. SheetLocation_id,
  1160. SourceProductName,
  1161. Style,
  1162. TakeOffMethod,
  1163. TaxRegulationsType,
  1164. TaxRegulationsVersionStamp,
  1165. Tenant,
  1166. Type,
  1167. TypicalGroupId,
  1168. url_Value,
  1169. AttachedProduct_woid,
  1170. EvaluationSpecifications_woid,
  1171. MeasurementScaleSourceScaleArea_woid,
  1172. MeasurementScaleSourceSheetSettings_woid,
  1173. SheetLocation_woid,
  1174. woid)
  1175. SELECT AttachedProduct_id,
  1176. BidOriginId,
  1177. BidOriginIdVersionStamp,
  1178. blueprintId,
  1179. CostObjectBaseBidVersionId,
  1180. CostObjectState,
  1181. CreatedBy,
  1182. CreatedDate,
  1183. DisplayName,
  1184. DistributedCostsVersionStamp,
  1185. EachTakeOffMethodType,
  1186. EvaluationSpecifications_id,
  1187. Id,
  1188. IsActive,
  1189. layerId,
  1190. MeasurementCalculationMessage,
  1191. MeasurementLengthFormat,
  1192. MeasurementLengthInches,
  1193. MeasurementScaleSourceScaleArea_id,
  1194. MeasurementScaleSourceScaleDistanceInPixels,
  1195. MeasurementScaleSourceScaleDistanceInRealityFormat,
  1196. MeasurementScaleSourceScaleDistanceInRealityInches,
  1197. MeasurementScaleSourceSheetSettings_id,
  1198. MeasurementScaleSourceType,
  1199. MeasurementSurfaceAreaSquareInches,
  1200. ModifiedBy,
  1201. ModifiedDate,
  1202. PriceAdjustmentVersionStamp,
  1203. RawFabricationPriceAdjustmentFixedValuecurrencyCode,
  1204. RawFabricationPriceAdjustmentFixedValuecurrencySymbol,
  1205. RawFabricationPriceAdjustmentFixedValueValue,
  1206. RawFabricationPriceAdjustmentPercentageFraction,
  1207. RawInstalationPriceAdjustmentFixedValuecurrencyCode,
  1208. RawInstalationPriceAdjustmentFixedValuecurrencySymbol,
  1209. RawInstalationPriceAdjustmentFixedValueValue,
  1210. RawInstalationPriceAdjustmentPercentageFraction,
  1211. SequenceIdentifier,
  1212. Shape,
  1213. SheetLocation_id,
  1214. SourceProductName,
  1215. Style,
  1216. TakeOffMethod,
  1217. TaxRegulationsType,
  1218. TaxRegulationsVersionStamp,
  1219. Tenant,
  1220. Type,
  1221. TypicalGroupId,
  1222. url_Value,
  1223. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1224. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1225. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1226. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1227. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1228. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1229. FROM [CostObject]
  1230. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1231. INSERT INTO [EvaluatedCostObject](CostsAmounts,
  1232. CreatedBy,
  1233. CreatedDate,
  1234. Id,
  1235. IsActive,
  1236. ModifiedBy,
  1237. ModifiedDate,
  1238. ProductEvaluationSpecificationsId,
  1239. ProductEvaluationSpecificationsVersionStamp,
  1240. Tenant,
  1241. ValidityIsValid,
  1242. ValidityMessage,
  1243. VersionStamp,
  1244. woid)
  1245. SELECT CostsAmounts,
  1246. CreatedBy,
  1247. CreatedDate,
  1248. Id,
  1249. IsActive,
  1250. ModifiedBy,
  1251. ModifiedDate,
  1252. ProductEvaluationSpecificationsId,
  1253. ProductEvaluationSpecificationsVersionStamp,
  1254. Tenant,
  1255. ValidityIsValid,
  1256. ValidityMessage,
  1257. VersionStamp,
  1258. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1259. FROM [EvaluatedCostObject]
  1260. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1261. INSERT INTO [BudgetCostObject](BaseFacilityId,
  1262. BaselinePricecurrencyCode,
  1263. BaselinePricecurrencySymbol,
  1264. BaselinePriceValue,
  1265. BaselineProfitcurrencyCode,
  1266. BaselineProfitcurrencySymbol,
  1267. BaselineProfitFraction,
  1268. BaselineProfitMethod,
  1269. BaselineProfitValue,
  1270. BaselineProfitValueType,
  1271. BidOriginId,
  1272. BidOriginIdVersionStamp,
  1273. BudgetPriceAdjustmentFabricationcurrencyCode,
  1274. BudgetPriceAdjustmentFabricationcurrencySymbol,
  1275. BudgetPriceAdjustmentFabricationFraction,
  1276. BudgetPriceAdjustmentFabricationMethod,
  1277. BudgetPriceAdjustmentFabricationValue,
  1278. BudgetPriceAdjustmentFabricationValueType,
  1279. BudgetPriceAdjustmentInstallationcurrencyCode,
  1280. BudgetPriceAdjustmentInstallationcurrencySymbol,
  1281. BudgetPriceAdjustmentInstallationFraction,
  1282. BudgetPriceAdjustmentInstallationMethod,
  1283. BudgetPriceAdjustmentInstallationValue,
  1284. BudgetPriceAdjustmentInstallationValueType,
  1285. CashSummaryTotalCostcurrencyCode,
  1286. CashSummaryTotalCostcurrencySymbol,
  1287. CashSummaryTotalCostValue,
  1288. CashSummaryTotalProfitcurrencyCode,
  1289. CashSummaryTotalProfitcurrencySymbol,
  1290. CashSummaryTotalProfitFraction,
  1291. CashSummaryTotalProfitMethod,
  1292. CashSummaryTotalProfitValue,
  1293. CashSummaryTotalProfitValueType,
  1294. CostcurrencyCode,
  1295. CostcurrencySymbol,
  1296. CostValue,
  1297. CreatedBy,
  1298. CreatedDate,
  1299. DirectPriceAdjustmentFabricationcurrencyCode,
  1300. DirectPriceAdjustmentFabricationcurrencySymbol,
  1301. DirectPriceAdjustmentFabricationFraction,
  1302. DirectPriceAdjustmentFabricationMethod,
  1303. DirectPriceAdjustmentFabricationValue,
  1304. DirectPriceAdjustmentFabricationValueType,
  1305. DirectPriceAdjustmentInstallationcurrencyCode,
  1306. DirectPriceAdjustmentInstallationcurrencySymbol,
  1307. DirectPriceAdjustmentInstallationFraction,
  1308. DirectPriceAdjustmentInstallationMethod,
  1309. DirectPriceAdjustmentInstallationValue,
  1310. DirectPriceAdjustmentInstallationValueType,
  1311. DistributedCostRedistributionWeightcurrencyCode,
  1312. DistributedCostRedistributionWeightcurrencySymbol,
  1313. DistributedCostRedistributionWeightValue,
  1314. DistributedCostsVersionStamp,
  1315. EvaluatedCostObjectVersionStamp,
  1316. ExtendedFabricationCostcurrencyCode,
  1317. ExtendedFabricationCostcurrencySymbol,
  1318. ExtendedFabricationCostValue,
  1319. ExtendedInstallCostcurrencyCode,
  1320. ExtendedInstallCostcurrencySymbol,
  1321. ExtendedInstallCostValue,
  1322. ExtendedLaborCostcurrencyCode,
  1323. ExtendedLaborCostcurrencySymbol,
  1324. ExtendedLaborCostValue,
  1325. ExtendedMaterialCostcurrencyCode,
  1326. ExtendedMaterialCostcurrencySymbol,
  1327. ExtendedMaterialCostValue,
  1328. Id,
  1329. InstallBaselinePricecurrencyCode,
  1330. InstallBaselinePricecurrencySymbol,
  1331. InstallBaselinePriceValue,
  1332. InstallBaselineProfitcurrencyCode,
  1333. InstallBaselineProfitcurrencySymbol,
  1334. InstallBaselineProfitFraction,
  1335. InstallBaselineProfitMethod,
  1336. InstallBaselineProfitValue,
  1337. InstallBaselineProfitValueType,
  1338. InstallCostcurrencyCode,
  1339. InstallCostcurrencySymbol,
  1340. InstallCostValue,
  1341. InstallDurationSeconds,
  1342. InstallPreSellTaxPricecurrencyCode,
  1343. InstallPreSellTaxPricecurrencySymbol,
  1344. InstallPreSellTaxPriceValue,
  1345. InstallPriceAdjustmentcurrencyCode,
  1346. InstallPriceAdjustmentcurrencySymbol,
  1347. InstallPriceAdjustmentFraction,
  1348. InstallPriceAdjustmentMethod,
  1349. InstallPriceAdjustmentValue,
  1350. InstallPriceAdjustmentValueType,
  1351. InstallPricecurrencyCode,
  1352. InstallPricecurrencySymbol,
  1353. InstallPriceValue,
  1354. InstallProfitcurrencyCode,
  1355. InstallProfitcurrencySymbol,
  1356. InstallProfitFraction,
  1357. InstallProfitMethod,
  1358. InstallProfitPerHourcurrencyCode,
  1359. InstallProfitPerHourcurrencySymbol,
  1360. InstallProfitPerHourFraction,
  1361. InstallProfitPerHourMethod,
  1362. InstallProfitPerHourValue,
  1363. InstallProfitPerHourValueType,
  1364. InstallProfitValue,
  1365. InstallProfitValueType,
  1366. InstallSellTaxcurrencyCode,
  1367. InstallSellTaxcurrencySymbol,
  1368. InstallSellTaxValue,
  1369. InstallUseTaxcurrencyCode,
  1370. InstallUseTaxcurrencySymbol,
  1371. InstallUseTaxValue,
  1372. IsActive,
  1373. LaborDurationSeconds,
  1374. LaborProfitPerHourcurrencyCode,
  1375. LaborProfitPerHourcurrencySymbol,
  1376. LaborProfitPerHourFraction,
  1377. LaborProfitPerHourMethod,
  1378. LaborProfitPerHourValue,
  1379. LaborProfitPerHourValueType,
  1380. LibraryFabricationCostcurrencyCode,
  1381. LibraryFabricationCostcurrencySymbol,
  1382. LibraryFabricationCostValue,
  1383. LibraryInstallCostcurrencyCode,
  1384. LibraryInstallCostcurrencySymbol,
  1385. LibraryInstallCostValue,
  1386. LibraryMaterialCostcurrencyCode,
  1387. LibraryMaterialCostcurrencySymbol,
  1388. LibraryMaterialCostValue,
  1389. LibraryOverheadCostcurrencyCode,
  1390. LibraryOverheadCostcurrencySymbol,
  1391. LibraryOverheadCostValue,
  1392. ModifiedBy,
  1393. ModifiedDate,
  1394. PreSellTaxPricecurrencyCode,
  1395. PreSellTaxPricecurrencySymbol,
  1396. PreSellTaxPriceValue,
  1397. PriceAdjustmentcurrencyCode,
  1398. PriceAdjustmentcurrencySymbol,
  1399. PriceAdjustmentFraction,
  1400. PriceAdjustmentMethod,
  1401. PriceAdjustmentValue,
  1402. PriceAdjustmentValueType,
  1403. PriceAdjustmentVersionStamp,
  1404. PricecurrencyCode,
  1405. PricecurrencySymbol,
  1406. PriceValue,
  1407. ProfitcurrencyCode,
  1408. ProfitcurrencySymbol,
  1409. ProfitFraction,
  1410. ProfitMethod,
  1411. ProfitValue,
  1412. ProfitValueType,
  1413. SellTaxcurrencyCode,
  1414. SellTaxcurrencySymbol,
  1415. SellTaxValue,
  1416. TaxRegulationsType,
  1417. TaxRegulationsVersionStamp,
  1418. Tenant,
  1419. TotalCostcurrencyCode,
  1420. TotalCostcurrencySymbol,
  1421. TotalCostValue,
  1422. TotalDurationSeconds,
  1423. TotalPreSellTaxPricecurrencyCode,
  1424. TotalPreSellTaxPricecurrencySymbol,
  1425. TotalPreSellTaxPriceValue,
  1426. TotalPricecurrencyCode,
  1427. TotalPricecurrencySymbol,
  1428. TotalPriceValue,
  1429. TotalProfitcurrencyCode,
  1430. TotalProfitcurrencySymbol,
  1431. TotalProfitFraction,
  1432. TotalProfitMethod,
  1433. TotalProfitPerHourcurrencyCode,
  1434. TotalProfitPerHourcurrencySymbol,
  1435. TotalProfitPerHourFraction,
  1436. TotalProfitPerHourMethod,
  1437. TotalProfitPerHourValue,
  1438. TotalProfitPerHourValueType,
  1439. TotalProfitValue,
  1440. TotalProfitValueType,
  1441. TotalSellTaxcurrencyCode,
  1442. TotalSellTaxcurrencySymbol,
  1443. TotalSellTaxValue,
  1444. UseTaxcurrencyCode,
  1445. UseTaxcurrencySymbol,
  1446. UseTaxValue,
  1447. ValidityIsValid,
  1448. ValidityMessage,
  1449. woid)
  1450. SELECT BaseFacilityId,
  1451. BaselinePricecurrencyCode,
  1452. BaselinePricecurrencySymbol,
  1453. BaselinePriceValue,
  1454. BaselineProfitcurrencyCode,
  1455. BaselineProfitcurrencySymbol,
  1456. BaselineProfitFraction,
  1457. BaselineProfitMethod,
  1458. BaselineProfitValue,
  1459. BaselineProfitValueType,
  1460. BidOriginId,
  1461. BidOriginIdVersionStamp,
  1462. BudgetPriceAdjustmentFabricationcurrencyCode,
  1463. BudgetPriceAdjustmentFabricationcurrencySymbol,
  1464. BudgetPriceAdjustmentFabricationFraction,
  1465. BudgetPriceAdjustmentFabricationMethod,
  1466. BudgetPriceAdjustmentFabricationValue,
  1467. BudgetPriceAdjustmentFabricationValueType,
  1468. BudgetPriceAdjustmentInstallationcurrencyCode,
  1469. BudgetPriceAdjustmentInstallationcurrencySymbol,
  1470. BudgetPriceAdjustmentInstallationFraction,
  1471. BudgetPriceAdjustmentInstallationMethod,
  1472. BudgetPriceAdjustmentInstallationValue,
  1473. BudgetPriceAdjustmentInstallationValueType,
  1474. CashSummaryTotalCostcurrencyCode,
  1475. CashSummaryTotalCostcurrencySymbol,
  1476. CashSummaryTotalCostValue,
  1477. CashSummaryTotalProfitcurrencyCode,
  1478. CashSummaryTotalProfitcurrencySymbol,
  1479. CashSummaryTotalProfitFraction,
  1480. CashSummaryTotalProfitMethod,
  1481. CashSummaryTotalProfitValue,
  1482. CashSummaryTotalProfitValueType,
  1483. CostcurrencyCode,
  1484. CostcurrencySymbol,
  1485. CostValue,
  1486. CreatedBy,
  1487. CreatedDate,
  1488. DirectPriceAdjustmentFabricationcurrencyCode,
  1489. DirectPriceAdjustmentFabricationcurrencySymbol,
  1490. DirectPriceAdjustmentFabricationFraction,
  1491. DirectPriceAdjustmentFabricationMethod,
  1492. DirectPriceAdjustmentFabricationValue,
  1493. DirectPriceAdjustmentFabricationValueType,
  1494. DirectPriceAdjustmentInstallationcurrencyCode,
  1495. DirectPriceAdjustmentInstallationcurrencySymbol,
  1496. DirectPriceAdjustmentInstallationFraction,
  1497. DirectPriceAdjustmentInstallationMethod,
  1498. DirectPriceAdjustmentInstallationValue,
  1499. DirectPriceAdjustmentInstallationValueType,
  1500. DistributedCostRedistributionWeightcurrencyCode,
  1501. DistributedCostRedistributionWeightcurrencySymbol,
  1502. DistributedCostRedistributionWeightValue,
  1503. DistributedCostsVersionStamp,
  1504. EvaluatedCostObjectVersionStamp,
  1505. ExtendedFabricationCostcurrencyCode,
  1506. ExtendedFabricationCostcurrencySymbol,
  1507. ExtendedFabricationCostValue,
  1508. ExtendedInstallCostcurrencyCode,
  1509. ExtendedInstallCostcurrencySymbol,
  1510. ExtendedInstallCostValue,
  1511. ExtendedLaborCostcurrencyCode,
  1512. ExtendedLaborCostcurrencySymbol,
  1513. ExtendedLaborCostValue,
  1514. ExtendedMaterialCostcurrencyCode,
  1515. ExtendedMaterialCostcurrencySymbol,
  1516. ExtendedMaterialCostValue,
  1517. Id,
  1518. InstallBaselinePricecurrencyCode,
  1519. InstallBaselinePricecurrencySymbol,
  1520. InstallBaselinePriceValue,
  1521. InstallBaselineProfitcurrencyCode,
  1522. InstallBaselineProfitcurrencySymbol,
  1523. InstallBaselineProfitFraction,
  1524. InstallBaselineProfitMethod,
  1525. InstallBaselineProfitValue,
  1526. InstallBaselineProfitValueType,
  1527. InstallCostcurrencyCode,
  1528. InstallCostcurrencySymbol,
  1529. InstallCostValue,
  1530. InstallDurationSeconds,
  1531. InstallPreSellTaxPricecurrencyCode,
  1532. InstallPreSellTaxPricecurrencySymbol,
  1533. InstallPreSellTaxPriceValue,
  1534. InstallPriceAdjustmentcurrencyCode,
  1535. InstallPriceAdjustmentcurrencySymbol,
  1536. InstallPriceAdjustmentFraction,
  1537. InstallPriceAdjustmentMethod,
  1538. InstallPriceAdjustmentValue,
  1539. InstallPriceAdjustmentValueType,
  1540. InstallPricecurrencyCode,
  1541. InstallPricecurrencySymbol,
  1542. InstallPriceValue,
  1543. InstallProfitcurrencyCode,
  1544. InstallProfitcurrencySymbol,
  1545. InstallProfitFraction,
  1546. InstallProfitMethod,
  1547. InstallProfitPerHourcurrencyCode,
  1548. InstallProfitPerHourcurrencySymbol,
  1549. InstallProfitPerHourFraction,
  1550. InstallProfitPerHourMethod,
  1551. InstallProfitPerHourValue,
  1552. InstallProfitPerHourValueType,
  1553. InstallProfitValue,
  1554. InstallProfitValueType,
  1555. InstallSellTaxcurrencyCode,
  1556. InstallSellTaxcurrencySymbol,
  1557. InstallSellTaxValue,
  1558. InstallUseTaxcurrencyCode,
  1559. InstallUseTaxcurrencySymbol,
  1560. InstallUseTaxValue,
  1561. IsActive,
  1562. LaborDurationSeconds,
  1563. LaborProfitPerHourcurrencyCode,
  1564. LaborProfitPerHourcurrencySymbol,
  1565. LaborProfitPerHourFraction,
  1566. LaborProfitPerHourMethod,
  1567. LaborProfitPerHourValue,
  1568. LaborProfitPerHourValueType,
  1569. LibraryFabricationCostcurrencyCode,
  1570. LibraryFabricationCostcurrencySymbol,
  1571. LibraryFabricationCostValue,
  1572. LibraryInstallCostcurrencyCode,
  1573. LibraryInstallCostcurrencySymbol,
  1574. LibraryInstallCostValue,
  1575. LibraryMaterialCostcurrencyCode,
  1576. LibraryMaterialCostcurrencySymbol,
  1577. LibraryMaterialCostValue,
  1578. LibraryOverheadCostcurrencyCode,
  1579. LibraryOverheadCostcurrencySymbol,
  1580. LibraryOverheadCostValue,
  1581. ModifiedBy,
  1582. ModifiedDate,
  1583. PreSellTaxPricecurrencyCode,
  1584. PreSellTaxPricecurrencySymbol,
  1585. PreSellTaxPriceValue,
  1586. PriceAdjustmentcurrencyCode,
  1587. PriceAdjustmentcurrencySymbol,
  1588. PriceAdjustmentFraction,
  1589. PriceAdjustmentMethod,
  1590. PriceAdjustmentValue,
  1591. PriceAdjustmentValueType,
  1592. PriceAdjustmentVersionStamp,
  1593. PricecurrencyCode,
  1594. PricecurrencySymbol,
  1595. PriceValue,
  1596. ProfitcurrencyCode,
  1597. ProfitcurrencySymbol,
  1598. ProfitFraction,
  1599. ProfitMethod,
  1600. ProfitValue,
  1601. ProfitValueType,
  1602. SellTaxcurrencyCode,
  1603. SellTaxcurrencySymbol,
  1604. SellTaxValue,
  1605. TaxRegulationsType,
  1606. TaxRegulationsVersionStamp,
  1607. Tenant,
  1608. TotalCostcurrencyCode,
  1609. TotalCostcurrencySymbol,
  1610. TotalCostValue,
  1611. TotalDurationSeconds,
  1612. TotalPreSellTaxPricecurrencyCode,
  1613. TotalPreSellTaxPricecurrencySymbol,
  1614. TotalPreSellTaxPriceValue,
  1615. TotalPricecurrencyCode,
  1616. TotalPricecurrencySymbol,
  1617. TotalPriceValue,
  1618. TotalProfitcurrencyCode,
  1619. TotalProfitcurrencySymbol,
  1620. TotalProfitFraction,
  1621. TotalProfitMethod,
  1622. TotalProfitPerHourcurrencyCode,
  1623. TotalProfitPerHourcurrencySymbol,
  1624. TotalProfitPerHourFraction,
  1625. TotalProfitPerHourMethod,
  1626. TotalProfitPerHourValue,
  1627. TotalProfitPerHourValueType,
  1628. TotalProfitValue,
  1629. TotalProfitValueType,
  1630. TotalSellTaxcurrencyCode,
  1631. TotalSellTaxcurrencySymbol,
  1632. TotalSellTaxValue,
  1633. UseTaxcurrencyCode,
  1634. UseTaxcurrencySymbol,
  1635. UseTaxValue,
  1636. ValidityIsValid,
  1637. ValidityMessage,
  1638. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1639. FROM [BudgetCostObject]
  1640. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1641. INSERT INTO [DistributedCostSummary](BudgetCostObject_id,
  1642. Category,
  1643. CostCurrencyCode,
  1644. CostCurrencySymbol,
  1645. CostValue,
  1646. CreatedBy,
  1647. CreatedDate,
  1648. DistributedCostId,
  1649. Id,
  1650. IsActive,
  1651. ModifiedBy,
  1652. ModifiedDate,
  1653. Name,
  1654. Tenant,
  1655. BudgetCostObject_woid,
  1656. woid)
  1657. SELECT BudgetCostObject_id,
  1658. Category,
  1659. CostCurrencyCode,
  1660. CostCurrencySymbol,
  1661. CostValue,
  1662. CreatedBy,
  1663. CreatedDate,
  1664. DistributedCostId,
  1665. Id,
  1666. IsActive,
  1667. ModifiedBy,
  1668. ModifiedDate,
  1669. Name,
  1670. Tenant,
  1671. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1672. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1673. FROM [DistributedCostSummary]
  1674. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1675. INSERT INTO [MaterialCostSummary](BaseUoMName,
  1676. BudgetCostObject_id,
  1677. CreatedBy,
  1678. CreatedDate,
  1679. FacilityId,
  1680. Id,
  1681. IsActive,
  1682. MaterialId,
  1683. ModifiedBy,
  1684. ModifiedDate,
  1685. Name,
  1686. Quantity,
  1687. Tenant,
  1688. TotalCostcurrencyCode,
  1689. TotalCostcurrencySymbol,
  1690. TotalCostValue,
  1691. TotalProfitcurrencyCode,
  1692. TotalProfitcurrencySymbol,
  1693. TotalProfitFraction,
  1694. TotalProfitMethod,
  1695. TotalProfitValue,
  1696. TotalProfitValueType,
  1697. TotalSellcurrencyCode,
  1698. TotalSellcurrencySymbol,
  1699. TotalSellValue,
  1700. UnitCostcurrencyCode,
  1701. UnitCostcurrencySymbol,
  1702. UnitCostValue,
  1703. UnitProfitCurrencyCode,
  1704. UnitProfitCurrencySymbol,
  1705. UnitProfitFraction,
  1706. UnitProfitMethod,
  1707. UnitProfitValue,
  1708. UnitProfitValueType,
  1709. UnitSellCurrencyCode,
  1710. UnitSellCurrencySymbol,
  1711. UnitSellValue,
  1712. BudgetCostObject_woid,
  1713. woid)
  1714. SELECT BaseUoMName,
  1715. BudgetCostObject_id,
  1716. CreatedBy,
  1717. CreatedDate,
  1718. FacilityId,
  1719. Id,
  1720. IsActive,
  1721. MaterialId,
  1722. ModifiedBy,
  1723. ModifiedDate,
  1724. Name,
  1725. Quantity,
  1726. Tenant,
  1727. TotalCostcurrencyCode,
  1728. TotalCostcurrencySymbol,
  1729. TotalCostValue,
  1730. TotalProfitcurrencyCode,
  1731. TotalProfitcurrencySymbol,
  1732. TotalProfitFraction,
  1733. TotalProfitMethod,
  1734. TotalProfitValue,
  1735. TotalProfitValueType,
  1736. TotalSellcurrencyCode,
  1737. TotalSellcurrencySymbol,
  1738. TotalSellValue,
  1739. UnitCostcurrencyCode,
  1740. UnitCostcurrencySymbol,
  1741. UnitCostValue,
  1742. UnitProfitCurrencyCode,
  1743. UnitProfitCurrencySymbol,
  1744. UnitProfitFraction,
  1745. UnitProfitMethod,
  1746. UnitProfitValue,
  1747. UnitProfitValueType,
  1748. UnitSellCurrencyCode,
  1749. UnitSellCurrencySymbol,
  1750. UnitSellValue,
  1751. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1752. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1753. FROM [MaterialCostSummary]
  1754. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1755. INSERT INTO [MaterialKitSummary](BudgetCostObject_id,
  1756. CreatedBy,
  1757. CreatedDate,
  1758. FacilityId,
  1759. Id,
  1760. IsActive,
  1761. MaterialKitId,
  1762. ModifiedBy,
  1763. ModifiedDate,
  1764. Quantity,
  1765. Tenant,
  1766. BudgetCostObject_woid,
  1767. woid)
  1768. SELECT BudgetCostObject_id,
  1769. CreatedBy,
  1770. CreatedDate,
  1771. FacilityId,
  1772. Id,
  1773. IsActive,
  1774. MaterialKitId,
  1775. ModifiedBy,
  1776. ModifiedDate,
  1777. Quantity,
  1778. Tenant,
  1779. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1780. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1781. FROM [MaterialKitSummary]
  1782. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1783. INSERT INTO [CostObjectDistributedCost](CostObject_id,
  1784. CreatedBy,
  1785. CreatedDate,
  1786. DistributedCost_id,
  1787. Id,
  1788. IsActive,
  1789. ModifiedBy,
  1790. ModifiedDate,
  1791. Tenant,
  1792. CostObject_woid,
  1793. DistributedCost_woid,
  1794. woid)
  1795. SELECT CostObject_id,
  1796. CreatedBy,
  1797. CreatedDate,
  1798. DistributedCost_id,
  1799. Id,
  1800. IsActive,
  1801. ModifiedBy,
  1802. ModifiedDate,
  1803. Tenant,
  1804. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1805. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1806. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1807. FROM [CostObjectDistributedCost]
  1808. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1809. INSERT INTO [CostObjectTag](CostObject_id,
  1810. CreatedBy,
  1811. CreatedDate,
  1812. Id,
  1813. IsActive,
  1814. ModifiedBy,
  1815. ModifiedDate,
  1816. Tag_id,
  1817. Tenant,
  1818. CostObject_woid,
  1819. woid)
  1820. SELECT CostObject_id,
  1821. CreatedBy,
  1822. CreatedDate,
  1823. Id,
  1824. IsActive,
  1825. ModifiedBy,
  1826. ModifiedDate,
  1827. Tag_id,
  1828. Tenant,
  1829. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1830. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1831. FROM [CostObjectTag]
  1832. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1833. INSERT INTO [AttachedProductTag](AttachedProduct_id,
  1834. CreatedBy,
  1835. CreatedDate,
  1836. Id,
  1837. IsActive,
  1838. ModifiedBy,
  1839. ModifiedDate,
  1840. Tag_id,
  1841. Tenant,
  1842. AttachedProduct_woid,
  1843. woid)
  1844. SELECT AttachedProduct_id,
  1845. CreatedBy,
  1846. CreatedDate,
  1847. Id,
  1848. IsActive,
  1849. ModifiedBy,
  1850. ModifiedDate,
  1851. Tag_id,
  1852. Tenant,
  1853. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1854. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1855. FROM [AttachedProductTag]
  1856. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1857. INSERT INTO [VariableSetInstance](CreatedBy,
  1858. CreatedDate,
  1859. Definition_id,
  1860. Id,
  1861. IsActive,
  1862. ModifiedBy,
  1863. ModifiedDate,
  1864. ProductEvaluationSpecification_id,
  1865. Tenant,
  1866. Value_id,
  1867. Definition_woid,
  1868. ProductEvaluationSpecification_woid,
  1869. Value_woid,
  1870. woid)
  1871. SELECT CreatedBy,
  1872. CreatedDate,
  1873. Definition_id,
  1874. Id,
  1875. IsActive,
  1876. ModifiedBy,
  1877. ModifiedDate,
  1878. ProductEvaluationSpecification_id,
  1879. Tenant,
  1880. Value_id,
  1881. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1882. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1883. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1884. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1885. FROM [VariableSetInstance]
  1886. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1887. INSERT INTO [CostFormulaAddition](Amount_id,
  1888. CreatedBy,
  1889. CreatedDate,
  1890. Description,
  1891. Id,
  1892. InlineFormula_id,
  1893. IsActive,
  1894. ModifiedBy,
  1895. ModifiedDate,
  1896. OrderIndex,
  1897. PartBase_id,
  1898. Tenant,
  1899. Amount_woid,
  1900. InlineFormula_woid,
  1901. PartBase_woid,
  1902. woid)
  1903. SELECT Amount_id,
  1904. CreatedBy,
  1905. CreatedDate,
  1906. Description,
  1907. Id,
  1908. InlineFormula_id,
  1909. IsActive,
  1910. ModifiedBy,
  1911. ModifiedDate,
  1912. OrderIndex,
  1913. PartBase_id,
  1914. Tenant,
  1915. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1916. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1917. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1918. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1919. FROM [CostFormulaAddition]
  1920. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1921. INSERT INTO [VariableDefinition](CreatedBy,
  1922. CreatedDate,
  1923. DefaultValue_id,
  1924. Description,
  1925. DisplayName,
  1926. Id,
  1927. IsActive,
  1928. IsInnergy,
  1929. Kind,
  1930. MaxValue,
  1931. MinValue,
  1932. ModifiedBy,
  1933. ModifiedDate,
  1934. Name,
  1935. Tenant,
  1936. Type_id,
  1937. ValidationType_id,
  1938. VariableCategory_id,
  1939. VariableSetDefinition_id,
  1940. DefaultValue_woid,
  1941. VariableCategory_woid,
  1942. VariableSetDefinition_woid,
  1943. woid)
  1944. SELECT CreatedBy,
  1945. CreatedDate,
  1946. null,
  1947. Description,
  1948. DisplayName,
  1949. Id,
  1950. IsActive,
  1951. IsInnergy,
  1952. Kind,
  1953. MaxValue,
  1954. MinValue,
  1955. ModifiedBy,
  1956. ModifiedDate,
  1957. Name,
  1958. Tenant,
  1959. Type_id,
  1960. ValidationType_id,
  1961. VariableCategory_id,
  1962. VariableSetDefinition_id,
  1963. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1964. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1965. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  1966. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  1967. FROM [VariableDefinition]
  1968. WHERE woid = '00000000-0000-0000-0000-000000000000'
  1969. INSERT INTO [MaterialAddition](Amount_id,
  1970. CreatedBy,
  1971. CreatedDate,
  1972. Description,
  1973. Id,
  1974. IsActive,
  1975. Item_id,
  1976. ModifiedBy,
  1977. ModifiedDate,
  1978. OrderIndex,
  1979. Part_id,
  1980. Tenant,
  1981. Variable_id,
  1982. Amount_woid,
  1983. Item_woid,
  1984. Part_woid,
  1985. Variable_woid,
  1986. woid)
  1987. SELECT Amount_id,
  1988. CreatedBy,
  1989. CreatedDate,
  1990. Description,
  1991. Id,
  1992. IsActive,
  1993. Item_id,
  1994. ModifiedBy,
  1995. ModifiedDate,
  1996. OrderIndex,
  1997. Part_id,
  1998. Tenant,
  1999. Variable_id,
  2000. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2001. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2002. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2003. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2004. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2005. FROM [MaterialAddition]
  2006. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2007. INSERT INTO [VariableAddition](CreatedBy,
  2008. CreatedDate,
  2009. Id,
  2010. IsActive,
  2011. ModifiedBy,
  2012. ModifiedDate,
  2013. OrderIndex,
  2014. PartBase_id,
  2015. Tenant,
  2016. Variable_id,
  2017. PartBase_woid,
  2018. Variable_woid,
  2019. woid)
  2020. SELECT CreatedBy,
  2021. CreatedDate,
  2022. Id,
  2023. IsActive,
  2024. ModifiedBy,
  2025. ModifiedDate,
  2026. OrderIndex,
  2027. PartBase_id,
  2028. Tenant,
  2029. Variable_id,
  2030. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2031. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2032. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2033. FROM [VariableAddition]
  2034. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2035. INSERT INTO [VariableSetAddition](CreatedBy,
  2036. CreatedDate,
  2037. Id,
  2038. IsActive,
  2039. ModifiedBy,
  2040. ModifiedDate,
  2041. OrderIndex,
  2042. PartBase_id,
  2043. Tenant,
  2044. VariableSetDefinition_id,
  2045. PartBase_woid,
  2046. VariableSetDefinition_woid,
  2047. woid)
  2048. SELECT CreatedBy,
  2049. CreatedDate,
  2050. Id,
  2051. IsActive,
  2052. ModifiedBy,
  2053. ModifiedDate,
  2054. OrderIndex,
  2055. PartBase_id,
  2056. Tenant,
  2057. VariableSetDefinition_id,
  2058. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2059. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2060. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2061. FROM [VariableSetAddition]
  2062. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2063. INSERT INTO [EvaluationSnapshot](CreatedBy,
  2064. CreatedDate,
  2065. Id,
  2066. IsActive,
  2067. Location,
  2068. ModifiedBy,
  2069. ModifiedDate,
  2070. PartBase_id,
  2071. Quantity,
  2072. Tenant,
  2073. X,
  2074. Y,
  2075. Z,
  2076. PartBase_woid,
  2077. woid)
  2078. SELECT CreatedBy,
  2079. CreatedDate,
  2080. Id,
  2081. IsActive,
  2082. Location,
  2083. ModifiedBy,
  2084. ModifiedDate,
  2085. PartBase_id,
  2086. Quantity,
  2087. Tenant,
  2088. X,
  2089. Y,
  2090. Z,
  2091. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2092. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2093. FROM [EvaluationSnapshot]
  2094. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2095. INSERT INTO [EvaluationBundleSnapshot](BundleId,
  2096. CreatedBy,
  2097. CreatedDate,
  2098. EvaluationSnapshot_id,
  2099. Id,
  2100. IsActive,
  2101. ModifiedBy,
  2102. ModifiedDate,
  2103. SourcePath,
  2104. Tenant,
  2105. Value,
  2106. EvaluationSnapshot_woid,
  2107. woid)
  2108. SELECT BundleId,
  2109. CreatedBy,
  2110. CreatedDate,
  2111. EvaluationSnapshot_id,
  2112. Id,
  2113. IsActive,
  2114. ModifiedBy,
  2115. ModifiedDate,
  2116. SourcePath,
  2117. Tenant,
  2118. Value,
  2119. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2120. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2121. FROM [EvaluationBundleSnapshot]
  2122. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2123. INSERT INTO [EvaluationVariableSnapshot](CreatedBy,
  2124. CreatedDate,
  2125. EvaluationSnapshot_id,
  2126. Id,
  2127. IsActive,
  2128. ModifiedBy,
  2129. ModifiedDate,
  2130. SourcePath,
  2131. Tenant,
  2132. Value,
  2133. VariableId,
  2134. EvaluationSnapshot_woid,
  2135. woid)
  2136. SELECT CreatedBy,
  2137. CreatedDate,
  2138. EvaluationSnapshot_id,
  2139. Id,
  2140. IsActive,
  2141. ModifiedBy,
  2142. ModifiedDate,
  2143. SourcePath,
  2144. Tenant,
  2145. Value,
  2146. VariableId,
  2147. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2148. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2149. FROM [EvaluationVariableSnapshot]
  2150. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2151. INSERT INTO [PartAddition](Amount_id,
  2152. CreatedBy,
  2153. CreatedDate,
  2154. Description,
  2155. Id,
  2156. IsActive,
  2157. Item_id,
  2158. ModifiedBy,
  2159. ModifiedDate,
  2160. OrderIndex,
  2161. Part_id,
  2162. Tenant,
  2163. X_id,
  2164. Y_id,
  2165. Z_id,
  2166. Amount_woid,
  2167. Item_woid,
  2168. Part_woid,
  2169. woid,
  2170. X_woid,
  2171. Y_woid,
  2172. Z_woid)
  2173. SELECT Amount_id,
  2174. CreatedBy,
  2175. CreatedDate,
  2176. Description,
  2177. Id,
  2178. IsActive,
  2179. Item_id,
  2180. ModifiedBy,
  2181. ModifiedDate,
  2182. OrderIndex,
  2183. Part_id,
  2184. Tenant,
  2185. X_id,
  2186. Y_id,
  2187. Z_id,
  2188. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2189. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2190. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2191. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2192. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2193. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2194. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2195. FROM [PartAddition]
  2196. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2197. INSERT INTO [OperationType](CreatedBy,
  2198. CreatedDate,
  2199. Id,
  2200. IsActive,
  2201. IsRequired,
  2202. ModifiedBy,
  2203. ModifiedDate,
  2204. Name,
  2205. OrderIndex,
  2206. Tenant,
  2207. Value,
  2208. woid)
  2209. SELECT CreatedBy,
  2210. CreatedDate,
  2211. Id,
  2212. IsActive,
  2213. IsRequired,
  2214. ModifiedBy,
  2215. ModifiedDate,
  2216. Name,
  2217. OrderIndex,
  2218. Tenant,
  2219. Value,
  2220. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2221. FROM [OperationType]
  2222. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2223. INSERT INTO [OperationCategory](CreatedBy,
  2224. CreatedDate,
  2225. Id,
  2226. IsActive,
  2227. IsInnergy,
  2228. ModifiedBy,
  2229. ModifiedDate,
  2230. Name,
  2231. Parent_id,
  2232. Tenant,
  2233. Parent_woid,
  2234. woid)
  2235. SELECT CreatedBy,
  2236. CreatedDate,
  2237. Id,
  2238. IsActive,
  2239. IsInnergy,
  2240. ModifiedBy,
  2241. ModifiedDate,
  2242. Name,
  2243. Parent_id,
  2244. Tenant,
  2245. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2246. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2247. FROM [OperationCategory]
  2248. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2249. INSERT INTO [Operation](BaseUom_id,
  2250. Category_id,
  2251. CreatedBy,
  2252. CreatedDate,
  2253. Description,
  2254. Id,
  2255. Included,
  2256. IsActive,
  2257. IsInnergy,
  2258. ModifiedBy,
  2259. ModifiedDate,
  2260. Name,
  2261. NotIncluded,
  2262. OperationType_Id,
  2263. SequenceIdentifier,
  2264. Tenant,
  2265. Category_woid,
  2266. OperationType_woid,
  2267. woid)
  2268. SELECT BaseUom_id,
  2269. Category_id,
  2270. CreatedBy,
  2271. CreatedDate,
  2272. Description,
  2273. Id,
  2274. Included,
  2275. IsActive,
  2276. IsInnergy,
  2277. ModifiedBy,
  2278. ModifiedDate,
  2279. Name,
  2280. NotIncluded,
  2281. OperationType_Id,
  2282. SequenceIdentifier,
  2283. Tenant,
  2284. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2285. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2286. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2287. FROM [Operation]
  2288. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2289. INSERT INTO [VariableValue](Boolean,
  2290. CreatedBy,
  2291. CreatedDate,
  2292. Id,
  2293. IsActive,
  2294. Material_id,
  2295. ModifiedBy,
  2296. ModifiedDate,
  2297. Number,
  2298. Operation_id,
  2299. Tenant,
  2300. Text,
  2301. Type_id,
  2302. VariableDefinition_id,
  2303. Material_woid,
  2304. Operation_woid,
  2305. VariableDefinition_woid,
  2306. woid)
  2307. SELECT Boolean,
  2308. CreatedBy,
  2309. CreatedDate,
  2310. Id,
  2311. IsActive,
  2312. Material_id,
  2313. ModifiedBy,
  2314. ModifiedDate,
  2315. Number,
  2316. Operation_id,
  2317. Tenant,
  2318. Text,
  2319. Type_id,
  2320. VariableDefinition_id,
  2321. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2322. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2323. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2324. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2325. FROM [VariableValue]
  2326. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2327. UPDATE vd
  2328. SET vd.[DefaultValue_id] = (
  2329. SELECT DefaultValue_id
  2330. FROM [VariableDefinition]
  2331. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2332. AND Id = vd.[Id]),
  2333. vd.[DefaultValue_woid] = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2334. FROM [VariableDefinition] vd
  2335. WHERE vd.woid = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2336. AND vd.[DefaultValue_id] IS NULL
  2337. INSERT INTO [VariableInstance](CreatedBy,
  2338. CreatedDate,
  2339. Definition_id,
  2340. Id,
  2341. IsActive,
  2342. ModifiedBy,
  2343. ModifiedDate,
  2344. ProductEvaluationSpecification_id,
  2345. Tenant,
  2346. Value_id,
  2347. VariableSetValue_id,
  2348. Definition_woid,
  2349. ProductEvaluationSpecification_woid,
  2350. Value_woid,
  2351. VariableSetValue_woid,
  2352. woid)
  2353. SELECT CreatedBy,
  2354. CreatedDate,
  2355. Definition_id,
  2356. Id,
  2357. IsActive,
  2358. ModifiedBy,
  2359. ModifiedDate,
  2360. ProductEvaluationSpecification_id,
  2361. Tenant,
  2362. Value_id,
  2363. VariableSetValue_id,
  2364. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2365. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2366. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2367. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2368. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2369. FROM [VariableInstance]
  2370. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2371. INSERT INTO [OperationAddition](Amount_id,
  2372. CreatedBy,
  2373. CreatedDate,
  2374. Description,
  2375. Id,
  2376. IsActive,
  2377. Item_id,
  2378. ModifiedBy,
  2379. ModifiedDate,
  2380. OrderIndex,
  2381. Part_id,
  2382. Tenant,
  2383. Variable_id,
  2384. Amount_woid,
  2385. Item_woid,
  2386. Part_woid,
  2387. Variable_woid,
  2388. woid)
  2389. SELECT Amount_id,
  2390. CreatedBy,
  2391. CreatedDate,
  2392. Description,
  2393. Id,
  2394. IsActive,
  2395. Item_id,
  2396. ModifiedBy,
  2397. ModifiedDate,
  2398. OrderIndex,
  2399. Part_id,
  2400. Tenant,
  2401. Variable_id,
  2402. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2403. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2404. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2405. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2406. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2407. FROM [OperationAddition]
  2408. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2409. INSERT INTO [ProductivityRegister](CreatedBy,
  2410. CreatedDate,
  2411. Entries,
  2412. Id,
  2413. InitialState,
  2414. IsActive,
  2415. ModifiedBy,
  2416. ModifiedDate,
  2417. Tenant,
  2418. woid)
  2419. SELECT CreatedBy,
  2420. CreatedDate,
  2421. Entries,
  2422. Id,
  2423. InitialState,
  2424. IsActive,
  2425. ModifiedBy,
  2426. ModifiedDate,
  2427. Tenant,
  2428. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2429. FROM [ProductivityRegister]
  2430. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2431. INSERT INTO [PrecedingOperation](CreatedBy,
  2432. CreatedDate,
  2433. Id,
  2434. IsActive,
  2435. ModifiedBy,
  2436. ModifiedDate,
  2437. Operation_id,
  2438. Predecessor_id,
  2439. Tenant,
  2440. Operation_woid,
  2441. Predecessor_woid,
  2442. woid)
  2443. SELECT CreatedBy,
  2444. CreatedDate,
  2445. Id,
  2446. IsActive,
  2447. ModifiedBy,
  2448. ModifiedDate,
  2449. Operation_id,
  2450. Predecessor_id,
  2451. Tenant,
  2452. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2453. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2454. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2455. FROM [PrecedingOperation]
  2456. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2457. INSERT INTO [LaborItem](Category_id,
  2458. CreatedBy,
  2459. CreatedDate,
  2460. Department_id,
  2461. directcostcurrencyCode,
  2462. directcostcurrencySymbol,
  2463. DirectCostDataSource,
  2464. directcostValue,
  2465. Id,
  2466. IsActive,
  2467. Location_id,
  2468. ModifiedBy,
  2469. ModifiedDate,
  2470. Name,
  2471. profitcurrencyCode,
  2472. profitcurrencySymbol,
  2473. profitFraction,
  2474. profitMethod,
  2475. profitValue,
  2476. profitValueType,
  2477. Tenant,
  2478. totalcostcurrencyCode,
  2479. totalcostcurrencySymbol,
  2480. totalcostValue,
  2481. TotalLaborTime,
  2482. totalsellcurrencyCode,
  2483. totalsellcurrencySymbol,
  2484. totalsellValue,
  2485. Unit,
  2486. Category_woid,
  2487. Location_woid,
  2488. woid)
  2489. SELECT Category_id,
  2490. CreatedBy,
  2491. CreatedDate,
  2492. Department_id,
  2493. directcostcurrencyCode,
  2494. directcostcurrencySymbol,
  2495. DirectCostDataSource,
  2496. directcostValue,
  2497. Id,
  2498. IsActive,
  2499. Location_id,
  2500. ModifiedBy,
  2501. ModifiedDate,
  2502. Name,
  2503. profitcurrencyCode,
  2504. profitcurrencySymbol,
  2505. profitFraction,
  2506. profitMethod,
  2507. profitValue,
  2508. profitValueType,
  2509. Tenant,
  2510. totalcostcurrencyCode,
  2511. totalcostcurrencySymbol,
  2512. totalcostValue,
  2513. TotalLaborTime,
  2514. totalsellcurrencyCode,
  2515. totalsellcurrencySymbol,
  2516. totalsellValue,
  2517. Unit,
  2518. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2519. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2520. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2521. FROM [LaborItem]
  2522. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2523. INSERT INTO [OperationCostSummary](BaseUoMName,
  2524. BudgetCostObject_id,
  2525. CreatedBy,
  2526. CreatedDate,
  2527. Duration,
  2528. FacilityId,
  2529. HourlyRatecurrencyCode,
  2530. HourlyRatecurrencySymbol,
  2531. HourlyRateValue,
  2532. Id,
  2533. IsActive,
  2534. LaborItemId,
  2535. LaborItemName,
  2536. ModifiedBy,
  2537. ModifiedDate,
  2538. OperationId,
  2539. OperationName,
  2540. OperationType,
  2541. Quantity,
  2542. Tenant,
  2543. TotalCostcurrencyCode,
  2544. TotalCostcurrencySymbol,
  2545. TotalCostValue,
  2546. TotalProfitcurrencyCode,
  2547. TotalProfitcurrencySymbol,
  2548. TotalProfitFraction,
  2549. TotalProfitMethod,
  2550. TotalProfitValue,
  2551. TotalProfitValueType,
  2552. TotalSellcurrencyCode,
  2553. TotalSellcurrencySymbol,
  2554. TotalSellValue,
  2555. UnitCostcurrencyCode,
  2556. UnitCostcurrencySymbol,
  2557. UnitCostValue,
  2558. BudgetCostObject_woid,
  2559. LaborItemwoid,
  2560. woid)
  2561. SELECT BaseUoMName,
  2562. BudgetCostObject_id,
  2563. CreatedBy,
  2564. CreatedDate,
  2565. Duration,
  2566. FacilityId,
  2567. HourlyRatecurrencyCode,
  2568. HourlyRatecurrencySymbol,
  2569. HourlyRateValue,
  2570. Id,
  2571. IsActive,
  2572. LaborItemId,
  2573. LaborItemName,
  2574. ModifiedBy,
  2575. ModifiedDate,
  2576. OperationId,
  2577. OperationName,
  2578. OperationType,
  2579. Quantity,
  2580. Tenant,
  2581. TotalCostcurrencyCode,
  2582. TotalCostcurrencySymbol,
  2583. TotalCostValue,
  2584. TotalProfitcurrencyCode,
  2585. TotalProfitcurrencySymbol,
  2586. TotalProfitFraction,
  2587. TotalProfitMethod,
  2588. TotalProfitValue,
  2589. TotalProfitValueType,
  2590. TotalSellcurrencyCode,
  2591. TotalSellcurrencySymbol,
  2592. TotalSellValue,
  2593. UnitCostcurrencyCode,
  2594. UnitCostcurrencySymbol,
  2595. UnitCostValue,
  2596. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2597. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2598. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2599. FROM [OperationCostSummary]
  2600. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2601. INSERT INTO [OperationDuration](CreatedBy,
  2602. CreatedDate,
  2603. Equation,
  2604. Id,
  2605. IsActive,
  2606. LaborItem_id,
  2607. Location_id,
  2608. ModifiedBy,
  2609. ModifiedDate,
  2610. Operation_id,
  2611. ProductivityRegister_id,
  2612. RegressionMethod,
  2613. RSquared,
  2614. Tenant,
  2615. TimeUnit,
  2616. LaborItem_woid,
  2617. Location_woid,
  2618. Operation_woid,
  2619. ProductivityRegister_woid,
  2620. woid)
  2621. SELECT CreatedBy,
  2622. CreatedDate,
  2623. Equation,
  2624. Id,
  2625. IsActive,
  2626. LaborItem_id,
  2627. Location_id,
  2628. ModifiedBy,
  2629. ModifiedDate,
  2630. Operation_id,
  2631. ProductivityRegister_id,
  2632. RegressionMethod,
  2633. RSquared,
  2634. Tenant,
  2635. TimeUnit,
  2636. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2637. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2638. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2639. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2640. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2641. FROM [OperationDuration]
  2642. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2643. INSERT INTO [MaterialCategory](CreatedBy,
  2644. CreatedDate,
  2645. Id,
  2646. IsActive,
  2647. IsInnergy,
  2648. ModifiedBy,
  2649. ModifiedDate,
  2650. Name,
  2651. Parent_id,
  2652. Tenant,
  2653. Type,
  2654. Parent_woid,
  2655. woid)
  2656. SELECT CreatedBy,
  2657. CreatedDate,
  2658. Id,
  2659. IsActive,
  2660. IsInnergy,
  2661. ModifiedBy,
  2662. ModifiedDate,
  2663. Name,
  2664. Parent_id,
  2665. Tenant,
  2666. Type,
  2667. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2668. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2669. FROM [MaterialCategory]
  2670. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2671. INSERT INTO [MaterialKit](Category_id,
  2672. CostcurrencyCode,
  2673. CostcurrencySymbol,
  2674. CostDataSource,
  2675. CostValue,
  2676. CreatedBy,
  2677. CreatedDate,
  2678. Id,
  2679. IsActive,
  2680. IsInnergy,
  2681. ModifiedBy,
  2682. ModifiedDate,
  2683. Name,
  2684. ProfitcurrencyCode,
  2685. ProfitcurrencySymbol,
  2686. ProfitFraction,
  2687. ProfitMethod,
  2688. ProfitValue,
  2689. ProfitValueType,
  2690. SellcurrencyCode,
  2691. SellcurrencySymbol,
  2692. SellValue,
  2693. SequenceIdentifier,
  2694. Status,
  2695. Tenant,
  2696. Category_woid,
  2697. woid)
  2698. SELECT Category_id,
  2699. CostcurrencyCode,
  2700. CostcurrencySymbol,
  2701. CostDataSource,
  2702. CostValue,
  2703. CreatedBy,
  2704. CreatedDate,
  2705. Id,
  2706. IsActive,
  2707. IsInnergy,
  2708. ModifiedBy,
  2709. ModifiedDate,
  2710. Name,
  2711. ProfitcurrencyCode,
  2712. ProfitcurrencySymbol,
  2713. ProfitFraction,
  2714. ProfitMethod,
  2715. ProfitValue,
  2716. ProfitValueType,
  2717. SellcurrencyCode,
  2718. SellcurrencySymbol,
  2719. SellValue,
  2720. SequenceIdentifier,
  2721. Status,
  2722. Tenant,
  2723. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2724. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2725. FROM [MaterialKit]
  2726. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2727. INSERT INTO [AssemblyAddition](Amount_id,
  2728. CreatedBy,
  2729. CreatedDate,
  2730. Description,
  2731. Id,
  2732. IsActive,
  2733. Item_id,
  2734. ModifiedBy,
  2735. ModifiedDate,
  2736. OrderIndex,
  2737. Part_id,
  2738. Tenant,
  2739. X_id,
  2740. Y_id,
  2741. Z_id,
  2742. Amount_woid,
  2743. Item_woid,
  2744. Part_woid,
  2745. woid,
  2746. X_woid,
  2747. Y_woid,
  2748. Z_woid)
  2749. SELECT Amount_id,
  2750. CreatedBy,
  2751. CreatedDate,
  2752. Description,
  2753. Id,
  2754. IsActive,
  2755. Item_id,
  2756. ModifiedBy,
  2757. ModifiedDate,
  2758. OrderIndex,
  2759. Part_id,
  2760. Tenant,
  2761. X_id,
  2762. Y_id,
  2763. Z_id,
  2764. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2765. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2766. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2767. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2768. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2769. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2770. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2771. FROM [AssemblyAddition]
  2772. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2773. INSERT INTO [PartBaseAdditionDefinedValue](AssemblyAddition_id,
  2774. CreatedBy,
  2775. CreatedDate,
  2776. Id,
  2777. InlineFormula_id,
  2778. IsActive,
  2779. ModifiedBy,
  2780. ModifiedDate,
  2781. PartAddition_id,
  2782. Tenant,
  2783. Type,
  2784. VariableDefinition_id,
  2785. VariableValue_id,
  2786. AssemblyAddition_woid,
  2787. InlineFormula_woid,
  2788. PartAddition_woid,
  2789. VariableDefinition_woid,
  2790. VariableValue_woid,
  2791. woid)
  2792. SELECT AssemblyAddition_id,
  2793. CreatedBy,
  2794. CreatedDate,
  2795. Id,
  2796. InlineFormula_id,
  2797. IsActive,
  2798. ModifiedBy,
  2799. ModifiedDate,
  2800. PartAddition_id,
  2801. Tenant,
  2802. Type,
  2803. VariableDefinition_id,
  2804. VariableValue_id,
  2805. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2806. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2807. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2808. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2809. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2810. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2811. FROM [PartBaseAdditionDefinedValue]
  2812. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2813. INSERT INTO [CharacteristicType](CreatedBy,
  2814. CreatedDate,
  2815. Id,
  2816. IsActive,
  2817. ModifiedBy,
  2818. ModifiedDate,
  2819. Name,
  2820. OrderIndex,
  2821. Tenant,
  2822. woid)
  2823. SELECT CreatedBy,
  2824. CreatedDate,
  2825. Id,
  2826. IsActive,
  2827. ModifiedBy,
  2828. ModifiedDate,
  2829. Name,
  2830. OrderIndex,
  2831. Tenant,
  2832. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2833. FROM [CharacteristicType]
  2834. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2835. INSERT INTO [CustomMaterialCharacteristic](Characteristic_id,
  2836. CreatedBy,
  2837. CreatedDate,
  2838. CustomMaterial_id,
  2839. Id,
  2840. IsActive,
  2841. ModifiedBy,
  2842. ModifiedDate,
  2843. Tenant,
  2844. Characteristic_woid,
  2845. CustomMaterial_woid,
  2846. woid)
  2847. SELECT Characteristic_id,
  2848. CreatedBy,
  2849. CreatedDate,
  2850. CustomMaterial_id,
  2851. Id,
  2852. IsActive,
  2853. ModifiedBy,
  2854. ModifiedDate,
  2855. Tenant,
  2856. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2857. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2858. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2859. FROM [CustomMaterialCharacteristic]
  2860. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2861. INSERT INTO [Material](Category_id,
  2862. CostcurrencyCode,
  2863. CostcurrencySymbol,
  2864. CostDataSource,
  2865. CostValue,
  2866. CreatedBy,
  2867. CreatedDate,
  2868. DefaultCommonSize_id,
  2869. Description,
  2870. ExternalApproval,
  2871. GrainDirection,
  2872. Id,
  2873. Inventoried,
  2874. IsActive,
  2875. IsInnergy,
  2876. ManufacturerSku,
  2877. ManufacturerUrlLinkAddress,
  2878. ModifiedBy,
  2879. ModifiedDate,
  2880. Name,
  2881. ProfitcurrencyCode,
  2882. ProfitcurrencySymbol,
  2883. ProfitFraction,
  2884. ProfitMethod,
  2885. ProfitValue,
  2886. ProfitValueType,
  2887. PurchaseUomGroup_id,
  2888. SellcurrencyCode,
  2889. SellcurrencySymbol,
  2890. SellValue,
  2891. SequenceIdentifier,
  2892. Status,
  2893. Tenant,
  2894. WeightSymbol,
  2895. WeightUnit,
  2896. WeightValue,
  2897. Category_woid,
  2898. DefaultCommonSize_woid,
  2899. PurchaseUomGroup_woid,
  2900. woid)
  2901. SELECT Category_id,
  2902. CostcurrencyCode,
  2903. CostcurrencySymbol,
  2904. CostDataSource,
  2905. CostValue,
  2906. CreatedBy,
  2907. CreatedDate,
  2908. DefaultCommonSize_id,
  2909. Description,
  2910. ExternalApproval,
  2911. GrainDirection,
  2912. Id,
  2913. Inventoried,
  2914. IsActive,
  2915. IsInnergy,
  2916. ManufacturerSku,
  2917. ManufacturerUrlLinkAddress,
  2918. ModifiedBy,
  2919. ModifiedDate,
  2920. Name,
  2921. ProfitcurrencyCode,
  2922. ProfitcurrencySymbol,
  2923. ProfitFraction,
  2924. ProfitMethod,
  2925. ProfitValue,
  2926. ProfitValueType,
  2927. PurchaseUomGroup_id,
  2928. SellcurrencyCode,
  2929. SellcurrencySymbol,
  2930. SellValue,
  2931. SequenceIdentifier,
  2932. Status,
  2933. Tenant,
  2934. WeightSymbol,
  2935. WeightUnit,
  2936. WeightValue,
  2937. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2938. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2939. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2940. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2941. FROM [Material]
  2942. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2943. INSERT INTO [MaterialKitMaterial](CreatedBy,
  2944. CreatedDate,
  2945. Id,
  2946. IsActive,
  2947. Material_id,
  2948. MaterialAmount,
  2949. MaterialKit_id,
  2950. ModifiedBy,
  2951. ModifiedDate,
  2952. Tenant,
  2953. Material_woid,
  2954. MaterialKit_woid,
  2955. woid)
  2956. SELECT CreatedBy,
  2957. CreatedDate,
  2958. Id,
  2959. IsActive,
  2960. Material_id,
  2961. MaterialAmount,
  2962. MaterialKit_id,
  2963. ModifiedBy,
  2964. ModifiedDate,
  2965. Tenant,
  2966. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2967. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2968. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2969. FROM [MaterialKitMaterial]
  2970. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2971. INSERT INTO [MaterialCharacteristic](Characteristic_id,
  2972. CreatedBy,
  2973. CreatedDate,
  2974. Id,
  2975. IsActive,
  2976. Material_id,
  2977. ModifiedBy,
  2978. ModifiedDate,
  2979. Tenant,
  2980. Characteristic_woid,
  2981. Material_woid,
  2982. woid)
  2983. SELECT Characteristic_id,
  2984. CreatedBy,
  2985. CreatedDate,
  2986. Id,
  2987. IsActive,
  2988. Material_id,
  2989. ModifiedBy,
  2990. ModifiedDate,
  2991. Tenant,
  2992. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2993. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  2994. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  2995. FROM [MaterialCharacteristic]
  2996. WHERE woid = '00000000-0000-0000-0000-000000000000'
  2997. INSERT INTO [MaterialSubstitute](CreatedBy,
  2998. CreatedDate,
  2999. Id,
  3000. IsActive,
  3001. Material_id,
  3002. ModifiedBy,
  3003. ModifiedDate,
  3004. Substitute_id,
  3005. Tenant,
  3006. Material_woid,
  3007. Substitute_woid,
  3008. woid)
  3009. SELECT CreatedBy,
  3010. CreatedDate,
  3011. Id,
  3012. IsActive,
  3013. Material_id,
  3014. ModifiedBy,
  3015. ModifiedDate,
  3016. Substitute_id,
  3017. Tenant,
  3018. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3019. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3020. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3021. FROM [MaterialSubstitute]
  3022. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3023. INSERT INTO [BurdenCategory](CreatedBy,
  3024. CreatedDate,
  3025. Id,
  3026. IsActive,
  3027. ModifiedBy,
  3028. ModifiedDate,
  3029. Name,
  3030. Parent_id,
  3031. Tenant,
  3032. Parent_woid,
  3033. woid)
  3034. SELECT CreatedBy,
  3035. CreatedDate,
  3036. Id,
  3037. IsActive,
  3038. ModifiedBy,
  3039. ModifiedDate,
  3040. Name,
  3041. Parent_id,
  3042. Tenant,
  3043. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3044. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3045. FROM [BurdenCategory]
  3046. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3047. INSERT INTO [Burden](BurdenValueSource,
  3048. Category_id,
  3049. CreatedBy,
  3050. CreatedDate,
  3051. currencyCode,
  3052. currencySymbol,
  3053. Fraction,
  3054. Id,
  3055. IsActive,
  3056. ModifiedBy,
  3057. ModifiedDate,
  3058. Name,
  3059. Tenant,
  3060. Value,
  3061. Category_woid,
  3062. woid)
  3063. SELECT BurdenValueSource,
  3064. Category_id,
  3065. CreatedBy,
  3066. CreatedDate,
  3067. currencyCode,
  3068. currencySymbol,
  3069. Fraction,
  3070. Id,
  3071. IsActive,
  3072. ModifiedBy,
  3073. ModifiedDate,
  3074. Name,
  3075. Tenant,
  3076. Value,
  3077. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3078. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3079. FROM [Burden]
  3080. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3081. INSERT INTO [LaborItemBurden](Burden_id,
  3082. CreatedBy,
  3083. CreatedDate,
  3084. Id,
  3085. IsActive,
  3086. LaborItem_id,
  3087. ModifiedBy,
  3088. ModifiedDate,
  3089. Tenant,
  3090. Burden_woid,
  3091. LaborItem_woid,
  3092. woid)
  3093. SELECT Burden_id,
  3094. CreatedBy,
  3095. CreatedDate,
  3096. Id,
  3097. IsActive,
  3098. LaborItem_id,
  3099. ModifiedBy,
  3100. ModifiedDate,
  3101. Tenant,
  3102. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3103. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3104. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3105. FROM [LaborItemBurden]
  3106. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3107. INSERT INTO [SummaryBurden](Category_id,
  3108. CreatedBy,
  3109. CreatedDate,
  3110. currencyCode,
  3111. currencySymbol,
  3112. Id,
  3113. IsActive,
  3114. ModifiedBy,
  3115. ModifiedDate,
  3116. Name,
  3117. Tenant,
  3118. TotalLaborTime,
  3119. Value,
  3120. Category_woid,
  3121. woid)
  3122. SELECT Category_id,
  3123. CreatedBy,
  3124. CreatedDate,
  3125. currencyCode,
  3126. currencySymbol,
  3127. Id,
  3128. IsActive,
  3129. ModifiedBy,
  3130. ModifiedDate,
  3131. Name,
  3132. Tenant,
  3133. TotalLaborTime,
  3134. Value,
  3135. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3136. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3137. FROM [SummaryBurden]
  3138. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3139. INSERT INTO [FormulaCategory](CreatedBy,
  3140. CreatedDate,
  3141. Id,
  3142. IsActive,
  3143. IsInnergy,
  3144. ModifiedBy,
  3145. ModifiedDate,
  3146. Name,
  3147. Parent_id,
  3148. Tenant,
  3149. Parent_woid,
  3150. woid)
  3151. SELECT CreatedBy,
  3152. CreatedDate,
  3153. Id,
  3154. IsActive,
  3155. IsInnergy,
  3156. ModifiedBy,
  3157. ModifiedDate,
  3158. Name,
  3159. Parent_id,
  3160. Tenant,
  3161. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3162. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3163. FROM [FormulaCategory]
  3164. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3165. INSERT INTO [FormulaArgument](CreatedBy,
  3166. CreatedDate,
  3167. Formula_id,
  3168. Id,
  3169. IsActive,
  3170. ModifiedBy,
  3171. ModifiedDate,
  3172. Name,
  3173. OrderIndex,
  3174. Tenant,
  3175. TypeKind,
  3176. Formula_woid,
  3177. woid)
  3178. SELECT CreatedBy,
  3179. CreatedDate,
  3180. Formula_id,
  3181. Id,
  3182. IsActive,
  3183. ModifiedBy,
  3184. ModifiedDate,
  3185. Name,
  3186. OrderIndex,
  3187. Tenant,
  3188. TypeKind,
  3189. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3190. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3191. FROM [FormulaArgument]
  3192. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3193. INSERT INTO [ReusableFormula](Category_id,
  3194. Formula_id,
  3195. IsInnergy,
  3196. Name,
  3197. Category_woid,
  3198. Formula_woid)
  3199. SELECT Category_id,
  3200. Formula_id,
  3201. IsInnergy,
  3202. Name,
  3203. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3204. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3205. FROM [ReusableFormula]
  3206. WHERE Formula_woid = '00000000-0000-0000-0000-000000000000'
  3207. INSERT INTO [FormulaDependency](Child_id,
  3208. CreatedBy,
  3209. CreatedDate,
  3210. Id,
  3211. IsActive,
  3212. ModifiedBy,
  3213. ModifiedDate,
  3214. Parent_id,
  3215. Tenant,
  3216. Child_woid,
  3217. Parent_woid,
  3218. woid)
  3219. SELECT Child_id,
  3220. CreatedBy,
  3221. CreatedDate,
  3222. Id,
  3223. IsActive,
  3224. ModifiedBy,
  3225. ModifiedDate,
  3226. Parent_id,
  3227. Tenant,
  3228. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3229. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3230. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3231. FROM [FormulaDependency]
  3232. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3233. INSERT INTO [TaxRegulations](CreatedBy,
  3234. CreatedDate,
  3235. Id,
  3236. IsActive,
  3237. ModifiedBy,
  3238. ModifiedDate,
  3239. Tenant,
  3240. Type,
  3241. UseMarginFraction,
  3242. woid)
  3243. SELECT CreatedBy,
  3244. CreatedDate,
  3245. Id,
  3246. IsActive,
  3247. ModifiedBy,
  3248. ModifiedDate,
  3249. Tenant,
  3250. Type,
  3251. UseMarginFraction,
  3252. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3253. FROM [TaxRegulations]
  3254. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3255. INSERT INTO [TaxQuestionnaireAnswer](AnswerType,
  3256. CreatedBy,
  3257. CreatedDate,
  3258. Id,
  3259. IsActive,
  3260. ModifiedBy,
  3261. ModifiedDate,
  3262. TaxRegulations_id,
  3263. Tenant,
  3264. TaxRegulations_woid,
  3265. woid)
  3266. SELECT AnswerType,
  3267. CreatedBy,
  3268. CreatedDate,
  3269. Id,
  3270. IsActive,
  3271. ModifiedBy,
  3272. ModifiedDate,
  3273. TaxRegulations_id,
  3274. Tenant,
  3275. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3276. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3277. FROM [TaxQuestionnaireAnswer]
  3278. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3279. INSERT INTO [TaxQuestionNote](Content,
  3280. CreatedBy,
  3281. CreatedDate,
  3282. Id,
  3283. IsActive,
  3284. ModifiedBy,
  3285. ModifiedDate,
  3286. QuestionCategory,
  3287. TaxRegulations_id,
  3288. Tenant,
  3289. TaxRegulations_woid,
  3290. woid)
  3291. SELECT Content,
  3292. CreatedBy,
  3293. CreatedDate,
  3294. Id,
  3295. IsActive,
  3296. ModifiedBy,
  3297. ModifiedDate,
  3298. QuestionCategory,
  3299. TaxRegulations_id,
  3300. Tenant,
  3301. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3302. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3303. FROM [TaxQuestionNote]
  3304. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3305. INSERT INTO [TaxRate](CreatedBy,
  3306. CreatedDate,
  3307. Description,
  3308. Id,
  3309. IsActive,
  3310. ModifiedBy,
  3311. ModifiedDate,
  3312. Name,
  3313. RateFraction,
  3314. TaxRegulations_id,
  3315. Tenant,
  3316. TaxRegulations_woid,
  3317. woid)
  3318. SELECT CreatedBy,
  3319. CreatedDate,
  3320. Description,
  3321. Id,
  3322. IsActive,
  3323. ModifiedBy,
  3324. ModifiedDate,
  3325. Name,
  3326. RateFraction,
  3327. TaxRegulations_id,
  3328. Tenant,
  3329. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3330. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3331. FROM [TaxRate]
  3332. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3333. INSERT INTO [ImageAttachment](CreatedBy,
  3334. CreatedDate,
  3335. Id,
  3336. Image_id,
  3337. ImageIdentifier,
  3338. ImageName,
  3339. IsActive,
  3340. ModifiedBy,
  3341. ModifiedDate,
  3342. Name,
  3343. Tenant,
  3344. ThumbnailIdentifier,
  3345. ThumbnailName,
  3346. Image_woid,
  3347. woid)
  3348. SELECT CreatedBy,
  3349. CreatedDate,
  3350. Id,
  3351. Image_id,
  3352. ImageIdentifier,
  3353. ImageName,
  3354. IsActive,
  3355. ModifiedBy,
  3356. ModifiedDate,
  3357. Name,
  3358. Tenant,
  3359. ThumbnailIdentifier,
  3360. ThumbnailName,
  3361. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3362. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3363. FROM [ImageAttachment]
  3364. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3365. INSERT INTO [TypicalGroupMarker](blueprintId,
  3366. CreatedBy,
  3367. CreatedDate,
  3368. DisplayName,
  3369. Id,
  3370. IsActive,
  3371. layerId,
  3372. Location_id,
  3373. ModifiedBy,
  3374. ModifiedDate,
  3375. Shape,
  3376. Style,
  3377. Tenant,
  3378. Type,
  3379. TypicalGroupId,
  3380. url_Value,
  3381. Location_woid,
  3382. woid)
  3383. SELECT blueprintId,
  3384. CreatedBy,
  3385. CreatedDate,
  3386. DisplayName,
  3387. Id,
  3388. IsActive,
  3389. layerId,
  3390. Location_id,
  3391. ModifiedBy,
  3392. ModifiedDate,
  3393. Shape,
  3394. Style,
  3395. Tenant,
  3396. Type,
  3397. TypicalGroupId,
  3398. url_Value,
  3399. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  3400. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  3401. FROM [TypicalGroupMarker]
  3402. WHERE woid = '00000000-0000-0000-0000-000000000000'
  3403. UPDATE [TypicalGroupMarker]
  3404. SET Location_woid = NULL
  3405. WHERE Location_id IS NULL
  3406. AND Location_woid IS NOT NULL
  3407.  
  3408. UPDATE [TakeoffBlueprint]
  3409. SET Calibration_woid = NULL
  3410. WHERE Calibration_id IS NULL
  3411. AND Calibration_woid IS NOT NULL
  3412.  
  3413. UPDATE [ScaleDefinition]
  3414. SET ScaleCalibration_woid = NULL
  3415. WHERE ScaleCalibration_id IS NULL
  3416. AND ScaleCalibration_woid IS NOT NULL
  3417.  
  3418. UPDATE [Calibration]
  3419. SET ScaleDefinition_woid = NULL
  3420. WHERE ScaleDefinition_id IS NULL
  3421. AND ScaleDefinition_woid IS NOT NULL
  3422.  
  3423. UPDATE [ScaleCalibration]
  3424. SET ScaleDefinition_woid = NULL
  3425. WHERE ScaleDefinition_id IS NULL
  3426. AND ScaleDefinition_woid IS NOT NULL
  3427.  
  3428. UPDATE [ScaleArea]
  3429. SET Calibration_woid = NULL
  3430. WHERE Calibration_id IS NULL
  3431. AND Calibration_woid IS NOT NULL
  3432.  
  3433. UPDATE [AttachedProduct]
  3434. SET EvaluationSpecifications_woid = NULL
  3435. WHERE EvaluationSpecifications_id IS NULL
  3436. AND EvaluationSpecifications_woid IS NOT NULL
  3437.  
  3438. UPDATE [AttachedProduct]
  3439. SET ProductsPallet_woid = NULL
  3440. WHERE ProductsPallet_id IS NULL
  3441. AND ProductsPallet_woid IS NOT NULL
  3442.  
  3443. UPDATE [AttachedProductDistributedCost]
  3444. SET AttachedProduct_woid = NULL
  3445. WHERE AttachedProduct_id IS NULL
  3446. AND AttachedProduct_woid IS NOT NULL
  3447.  
  3448. UPDATE [AttachedProductDistributedCost]
  3449. SET DistributedCost_woid = NULL
  3450. WHERE DistributedCost_id IS NULL
  3451. AND DistributedCost_woid IS NOT NULL
  3452.  
  3453. UPDATE [AttachedProductTag]
  3454. SET AttachedProduct_woid = NULL
  3455. WHERE AttachedProduct_id IS NULL
  3456. AND AttachedProduct_woid IS NOT NULL
  3457.  
  3458. UPDATE [ProductEvaluationSpecification]
  3459. SET Facility_woid = NULL
  3460. WHERE Facility_id IS NULL
  3461. AND Facility_woid IS NOT NULL
  3462.  
  3463. UPDATE [ProductEvaluationSpecification]
  3464. SET ProductEvaluationSpecifications_woid = NULL
  3465. WHERE ProductEvaluationSpecifications_id IS NULL
  3466. AND ProductEvaluationSpecifications_woid IS NOT NULL
  3467.  
  3468. UPDATE [ProductEvaluationSpecification]
  3469. SET ProductTemplate_woid = NULL
  3470. WHERE ProductTemplate_id IS NULL
  3471. AND ProductTemplate_woid IS NOT NULL
  3472.  
  3473. UPDATE [CustomMaterial]
  3474. SET Category_woid = NULL
  3475. WHERE Category_id IS NULL
  3476. AND Category_woid IS NOT NULL
  3477.  
  3478. UPDATE [CustomMaterial]
  3479. SET DefaultCommonSize_woid = NULL
  3480. WHERE DefaultCommonSize_id IS NULL
  3481. AND DefaultCommonSize_woid IS NOT NULL
  3482.  
  3483. UPDATE [CustomMaterial]
  3484. SET PurchaseUomGroup_woid = NULL
  3485. WHERE PurchaseUomGroup_id IS NULL
  3486. AND PurchaseUomGroup_woid IS NOT NULL
  3487.  
  3488. UPDATE [CustomMaterialCharacteristic]
  3489. SET Characteristic_woid = NULL
  3490. WHERE Characteristic_id IS NULL
  3491. AND Characteristic_woid IS NOT NULL
  3492.  
  3493. UPDATE [CustomMaterialCharacteristic]
  3494. SET CustomMaterial_woid = NULL
  3495. WHERE CustomMaterial_id IS NULL
  3496. AND CustomMaterial_woid IS NOT NULL
  3497.  
  3498. UPDATE [CostObjectLayer]
  3499. SET Layer_woid = NULL
  3500. WHERE Layer_id IS NULL
  3501. AND Layer_woid IS NOT NULL
  3502.  
  3503. UPDATE [CostObject]
  3504. SET AttachedProduct_woid = NULL
  3505. WHERE AttachedProduct_id IS NULL
  3506. AND AttachedProduct_woid IS NOT NULL
  3507.  
  3508. UPDATE [CostObject]
  3509. SET EvaluationSpecifications_woid = NULL
  3510. WHERE EvaluationSpecifications_id IS NULL
  3511. AND EvaluationSpecifications_woid IS NOT NULL
  3512.  
  3513. UPDATE [CostObject]
  3514. SET MeasurementScaleSourceScaleArea_woid = NULL
  3515. WHERE MeasurementScaleSourceScaleArea_id IS NULL
  3516. AND MeasurementScaleSourceScaleArea_woid IS NOT NULL
  3517.  
  3518. UPDATE [CostObject]
  3519. SET MeasurementScaleSourceSheetSettings_woid = NULL
  3520. WHERE MeasurementScaleSourceSheetSettings_id IS NULL
  3521. AND MeasurementScaleSourceSheetSettings_woid IS NOT NULL
  3522.  
  3523. UPDATE [CostObject]
  3524. SET SheetLocation_woid = NULL
  3525. WHERE SheetLocation_id IS NULL
  3526. AND SheetLocation_woid IS NOT NULL
  3527.  
  3528. UPDATE [CostObjectDistributedCost]
  3529. SET CostObject_woid = NULL
  3530. WHERE CostObject_id IS NULL
  3531. AND CostObject_woid IS NOT NULL
  3532.  
  3533. UPDATE [CostObjectDistributedCost]
  3534. SET DistributedCost_woid = NULL
  3535. WHERE DistributedCost_id IS NULL
  3536. AND DistributedCost_woid IS NOT NULL
  3537.  
  3538. UPDATE [CostObjectTag]
  3539. SET CostObject_woid = NULL
  3540. WHERE CostObject_id IS NULL
  3541. AND CostObject_woid IS NOT NULL
  3542.  
  3543. UPDATE [DistributedCostSummary]
  3544. SET BudgetCostObject_woid = NULL
  3545. WHERE BudgetCostObject_id IS NULL
  3546. AND BudgetCostObject_woid IS NOT NULL
  3547.  
  3548. UPDATE [MaterialCostSummary]
  3549. SET BudgetCostObject_woid = NULL
  3550. WHERE BudgetCostObject_id IS NULL
  3551. AND BudgetCostObject_woid IS NOT NULL
  3552.  
  3553. UPDATE [MaterialKitSummary]
  3554. SET BudgetCostObject_woid = NULL
  3555. WHERE BudgetCostObject_id IS NULL
  3556. AND BudgetCostObject_woid IS NOT NULL
  3557.  
  3558. UPDATE [OperationCostSummary]
  3559. SET BudgetCostObject_woid = NULL
  3560. WHERE BudgetCostObject_id IS NULL
  3561. AND BudgetCostObject_woid IS NOT NULL
  3562.  
  3563. UPDATE [OpportunityWorkOrder]
  3564. SET TaxRegulations_woid = NULL
  3565. WHERE TaxRegulations_id IS NULL
  3566. AND TaxRegulations_woid IS NOT NULL
  3567.  
  3568. UPDATE [VariableDefinition]
  3569. SET DefaultValue_woid = NULL
  3570. WHERE DefaultValue_id IS NULL
  3571. AND DefaultValue_woid IS NOT NULL
  3572.  
  3573. UPDATE [VariableDefinition]
  3574. SET VariableCategory_woid = NULL
  3575. WHERE VariableCategory_id IS NULL
  3576. AND VariableCategory_woid IS NOT NULL
  3577.  
  3578. UPDATE [VariableDefinition]
  3579. SET VariableSetDefinition_woid = NULL
  3580. WHERE VariableSetDefinition_id IS NULL
  3581. AND VariableSetDefinition_woid IS NOT NULL
  3582.  
  3583. UPDATE [VariableDefinitionCategory]
  3584. SET Parent_woid = NULL
  3585. WHERE Parent_id IS NULL
  3586. AND Parent_woid IS NOT NULL
  3587.  
  3588. UPDATE [VariableInstance]
  3589. SET Definition_woid = NULL
  3590. WHERE Definition_id IS NULL
  3591. AND Definition_woid IS NOT NULL
  3592.  
  3593. UPDATE [VariableInstance]
  3594. SET ProductEvaluationSpecification_woid = NULL
  3595. WHERE ProductEvaluationSpecification_id IS NULL
  3596. AND ProductEvaluationSpecification_woid IS NOT NULL
  3597.  
  3598. UPDATE [VariableInstance]
  3599. SET Value_woid = NULL
  3600. WHERE Value_id IS NULL
  3601. AND Value_woid IS NOT NULL
  3602.  
  3603. UPDATE [VariableInstance]
  3604. SET VariableSetValue_woid = NULL
  3605. WHERE VariableSetValue_id IS NULL
  3606. AND VariableSetValue_woid IS NOT NULL
  3607.  
  3608. UPDATE [VariableValue]
  3609. SET Material_woid = NULL
  3610. WHERE Material_id IS NULL
  3611. AND Material_woid IS NOT NULL
  3612.  
  3613. UPDATE [VariableValue]
  3614. SET Operation_woid = NULL
  3615. WHERE Operation_id IS NULL
  3616. AND Operation_woid IS NOT NULL
  3617.  
  3618. UPDATE [VariableValue]
  3619. SET VariableDefinition_woid = NULL
  3620. WHERE VariableDefinition_id IS NULL
  3621. AND VariableDefinition_woid IS NOT NULL
  3622.  
  3623. UPDATE [VariableSetInstance]
  3624. SET Definition_woid = NULL
  3625. WHERE Definition_id IS NULL
  3626. AND Definition_woid IS NOT NULL
  3627.  
  3628. UPDATE [VariableSetInstance]
  3629. SET ProductEvaluationSpecification_woid = NULL
  3630. WHERE ProductEvaluationSpecification_id IS NULL
  3631. AND ProductEvaluationSpecification_woid IS NOT NULL
  3632.  
  3633. UPDATE [VariableSetInstance]
  3634. SET Value_woid = NULL
  3635. WHERE Value_id IS NULL
  3636. AND Value_woid IS NOT NULL
  3637.  
  3638. UPDATE [VariableSetValue]
  3639. SET VariableSetDefinition_woid = NULL
  3640. WHERE VariableSetDefinition_id IS NULL
  3641. AND VariableSetDefinition_woid IS NOT NULL
  3642.  
  3643. UPDATE [UomGroup]
  3644. SET Category_woid = NULL
  3645. WHERE Category_id IS NULL
  3646. AND Category_woid IS NOT NULL
  3647.  
  3648. UPDATE [UomGroupCategory]
  3649. SET Parent_woid = NULL
  3650. WHERE Parent_id IS NULL
  3651. AND Parent_woid IS NOT NULL
  3652.  
  3653. UPDATE [UomGroupCommonSize]
  3654. SET CommonSize_woid = NULL
  3655. WHERE CommonSize_id IS NULL
  3656. AND CommonSize_woid IS NOT NULL
  3657.  
  3658. UPDATE [UomGroupCommonSize]
  3659. SET UomGroup_woid = NULL
  3660. WHERE UomGroup_id IS NULL
  3661. AND UomGroup_woid IS NOT NULL
  3662.  
  3663. UPDATE [CommonSize]
  3664. SET Category_woid = NULL
  3665. WHERE Category_id IS NULL
  3666. AND Category_woid IS NOT NULL
  3667.  
  3668. UPDATE [CommonSizeCategory]
  3669. SET Parent_woid = NULL
  3670. WHERE Parent_id IS NULL
  3671. AND Parent_woid IS NOT NULL
  3672.  
  3673. UPDATE [Product]
  3674. SET PartBase_woid = NULL
  3675. WHERE PartBase_id IS NULL
  3676. AND PartBase_woid IS NOT NULL
  3677.  
  3678. UPDATE [Product]
  3679. SET ProductLabelDescription_woid = NULL
  3680. WHERE ProductLabelDescription_id IS NULL
  3681. AND ProductLabelDescription_woid IS NOT NULL
  3682.  
  3683. UPDATE [Product]
  3684. SET X_woid = NULL
  3685. WHERE X_id IS NULL
  3686. AND X_woid IS NOT NULL
  3687.  
  3688. UPDATE [Product]
  3689. SET Y_woid = NULL
  3690. WHERE Y_id IS NULL
  3691. AND Y_woid IS NOT NULL
  3692.  
  3693. UPDATE [Product]
  3694. SET Z_woid = NULL
  3695. WHERE Z_id IS NULL
  3696. AND Z_woid IS NOT NULL
  3697.  
  3698. UPDATE [EvaluationBundleSnapshot]
  3699. SET EvaluationSnapshot_woid = NULL
  3700. WHERE EvaluationSnapshot_id IS NULL
  3701. AND EvaluationSnapshot_woid IS NOT NULL
  3702.  
  3703. UPDATE [EvaluationSnapshot]
  3704. SET PartBase_woid = NULL
  3705. WHERE PartBase_id IS NULL
  3706. AND PartBase_woid IS NOT NULL
  3707.  
  3708. UPDATE [EvaluationVariableSnapshot]
  3709. SET EvaluationSnapshot_woid = NULL
  3710. WHERE EvaluationSnapshot_id IS NULL
  3711. AND EvaluationSnapshot_woid IS NOT NULL
  3712.  
  3713. UPDATE [AssemblyAddition]
  3714. SET Amount_woid = NULL
  3715. WHERE Amount_id IS NULL
  3716. AND Amount_woid IS NOT NULL
  3717.  
  3718. UPDATE [AssemblyAddition]
  3719. SET Item_woid = NULL
  3720. WHERE Item_id IS NULL
  3721. AND Item_woid IS NOT NULL
  3722.  
  3723. UPDATE [AssemblyAddition]
  3724. SET Part_woid = NULL
  3725. WHERE Part_id IS NULL
  3726. AND Part_woid IS NOT NULL
  3727.  
  3728. UPDATE [AssemblyAddition]
  3729. SET X_woid = NULL
  3730. WHERE X_id IS NULL
  3731. AND X_woid IS NOT NULL
  3732.  
  3733. UPDATE [AssemblyAddition]
  3734. SET Y_woid = NULL
  3735. WHERE Y_id IS NULL
  3736. AND Y_woid IS NOT NULL
  3737.  
  3738. UPDATE [AssemblyAddition]
  3739. SET Z_woid = NULL
  3740. WHERE Z_id IS NULL
  3741. AND Z_woid IS NOT NULL
  3742.  
  3743. UPDATE [CostFormulaAddition]
  3744. SET Amount_woid = NULL
  3745. WHERE Amount_id IS NULL
  3746. AND Amount_woid IS NOT NULL
  3747.  
  3748. UPDATE [CostFormulaAddition]
  3749. SET InlineFormula_woid = NULL
  3750. WHERE InlineFormula_id IS NULL
  3751. AND InlineFormula_woid IS NOT NULL
  3752.  
  3753. UPDATE [CostFormulaAddition]
  3754. SET PartBase_woid = NULL
  3755. WHERE PartBase_id IS NULL
  3756. AND PartBase_woid IS NOT NULL
  3757.  
  3758. UPDATE [MaterialAddition]
  3759. SET Amount_woid = NULL
  3760. WHERE Amount_id IS NULL
  3761. AND Amount_woid IS NOT NULL
  3762.  
  3763. UPDATE [MaterialAddition]
  3764. SET Item_woid = NULL
  3765. WHERE Item_id IS NULL
  3766. AND Item_woid IS NOT NULL
  3767.  
  3768. UPDATE [MaterialAddition]
  3769. SET Part_woid = NULL
  3770. WHERE Part_id IS NULL
  3771. AND Part_woid IS NOT NULL
  3772.  
  3773. UPDATE [MaterialAddition]
  3774. SET Variable_woid = NULL
  3775. WHERE Variable_id IS NULL
  3776. AND Variable_woid IS NOT NULL
  3777.  
  3778. UPDATE [OperationAddition]
  3779. SET Amount_woid = NULL
  3780. WHERE Amount_id IS NULL
  3781. AND Amount_woid IS NOT NULL
  3782.  
  3783. UPDATE [OperationAddition]
  3784. SET Item_woid = NULL
  3785. WHERE Item_id IS NULL
  3786. AND Item_woid IS NOT NULL
  3787.  
  3788. UPDATE [OperationAddition]
  3789. SET Part_woid = NULL
  3790. WHERE Part_id IS NULL
  3791. AND Part_woid IS NOT NULL
  3792.  
  3793. UPDATE [OperationAddition]
  3794. SET Variable_woid = NULL
  3795. WHERE Variable_id IS NULL
  3796. AND Variable_woid IS NOT NULL
  3797.  
  3798. UPDATE [PartAddition]
  3799. SET Amount_woid = NULL
  3800. WHERE Amount_id IS NULL
  3801. AND Amount_woid IS NOT NULL
  3802.  
  3803. UPDATE [PartAddition]
  3804. SET Item_woid = NULL
  3805. WHERE Item_id IS NULL
  3806. AND Item_woid IS NOT NULL
  3807.  
  3808. UPDATE [PartAddition]
  3809. SET Part_woid = NULL
  3810. WHERE Part_id IS NULL
  3811. AND Part_woid IS NOT NULL
  3812.  
  3813. UPDATE [PartAddition]
  3814. SET X_woid = NULL
  3815. WHERE X_id IS NULL
  3816. AND X_woid IS NOT NULL
  3817.  
  3818. UPDATE [PartAddition]
  3819. SET Y_woid = NULL
  3820. WHERE Y_id IS NULL
  3821. AND Y_woid IS NOT NULL
  3822.  
  3823. UPDATE [PartAddition]
  3824. SET Z_woid = NULL
  3825. WHERE Z_id IS NULL
  3826. AND Z_woid IS NOT NULL
  3827.  
  3828. UPDATE [PartBase]
  3829. SET Category_woid = NULL
  3830. WHERE Category_id IS NULL
  3831. AND Category_woid IS NOT NULL
  3832.  
  3833. UPDATE [PartBaseAdditionDefinedValue]
  3834. SET AssemblyAddition_woid = NULL
  3835. WHERE AssemblyAddition_id IS NULL
  3836. AND AssemblyAddition_woid IS NOT NULL
  3837.  
  3838. UPDATE [PartBaseAdditionDefinedValue]
  3839. SET InlineFormula_woid = NULL
  3840. WHERE InlineFormula_id IS NULL
  3841. AND InlineFormula_woid IS NOT NULL
  3842.  
  3843. UPDATE [PartBaseAdditionDefinedValue]
  3844. SET PartAddition_woid = NULL
  3845. WHERE PartAddition_id IS NULL
  3846. AND PartAddition_woid IS NOT NULL
  3847.  
  3848. UPDATE [PartBaseAdditionDefinedValue]
  3849. SET VariableDefinition_woid = NULL
  3850. WHERE VariableDefinition_id IS NULL
  3851. AND VariableDefinition_woid IS NOT NULL
  3852.  
  3853. UPDATE [PartBaseAdditionDefinedValue]
  3854. SET VariableValue_woid = NULL
  3855. WHERE VariableValue_id IS NULL
  3856. AND VariableValue_woid IS NOT NULL
  3857.  
  3858. UPDATE [VariableAddition]
  3859. SET PartBase_woid = NULL
  3860. WHERE PartBase_id IS NULL
  3861. AND PartBase_woid IS NOT NULL
  3862.  
  3863. UPDATE [VariableAddition]
  3864. SET Variable_woid = NULL
  3865. WHERE Variable_id IS NULL
  3866. AND Variable_woid IS NOT NULL
  3867.  
  3868. UPDATE [VariableSetAddition]
  3869. SET PartBase_woid = NULL
  3870. WHERE PartBase_id IS NULL
  3871. AND PartBase_woid IS NOT NULL
  3872.  
  3873. UPDATE [VariableSetAddition]
  3874. SET VariableSetDefinition_woid = NULL
  3875. WHERE VariableSetDefinition_id IS NULL
  3876. AND VariableSetDefinition_woid IS NOT NULL
  3877.  
  3878. UPDATE [ProductLibraryCategory]
  3879. SET Parent_woid = NULL
  3880. WHERE Parent_id IS NULL
  3881. AND Parent_woid IS NOT NULL
  3882.  
  3883. UPDATE [Part]
  3884. SET PartBase_woid = NULL
  3885. WHERE PartBase_id IS NULL
  3886. AND PartBase_woid IS NOT NULL
  3887.  
  3888. UPDATE [Assembly]
  3889. SET PartBase_woid = NULL
  3890. WHERE PartBase_id IS NULL
  3891. AND PartBase_woid IS NOT NULL
  3892.  
  3893. UPDATE [Operation]
  3894. SET Category_woid = NULL
  3895. WHERE Category_id IS NULL
  3896. AND Category_woid IS NOT NULL
  3897.  
  3898. UPDATE [Operation]
  3899. SET OperationType_woid = NULL
  3900. WHERE OperationType_id IS NULL
  3901. AND OperationType_woid IS NOT NULL
  3902.  
  3903. UPDATE [PrecedingOperation]
  3904. SET Operation_woid = NULL
  3905. WHERE Operation_id IS NULL
  3906. AND Operation_woid IS NOT NULL
  3907.  
  3908. UPDATE [PrecedingOperation]
  3909. SET Predecessor_woid = NULL
  3910. WHERE Predecessor_id IS NULL
  3911. AND Predecessor_woid IS NOT NULL
  3912.  
  3913. UPDATE [OperationDuration]
  3914. SET LaborItem_woid = NULL
  3915. WHERE LaborItem_id IS NULL
  3916. AND LaborItem_woid IS NOT NULL
  3917.  
  3918. UPDATE [OperationDuration]
  3919. SET Location_woid = NULL
  3920. WHERE Location_id IS NULL
  3921. AND Location_woid IS NOT NULL
  3922.  
  3923. UPDATE [OperationDuration]
  3924. SET Operation_woid = NULL
  3925. WHERE Operation_id IS NULL
  3926. AND Operation_woid IS NOT NULL
  3927.  
  3928. UPDATE [OperationDuration]
  3929. SET ProductivityRegister_woid = NULL
  3930. WHERE ProductivityRegister_id IS NULL
  3931. AND ProductivityRegister_woid IS NOT NULL
  3932.  
  3933. UPDATE [OperationCategory]
  3934. SET Parent_woid = NULL
  3935. WHERE Parent_id IS NULL
  3936. AND Parent_woid IS NOT NULL
  3937.  
  3938. UPDATE [Vendor]
  3939. SET Material_woid = NULL
  3940. WHERE Material_id IS NULL
  3941. AND Material_woid IS NOT NULL
  3942.  
  3943. UPDATE [MaterialKit]
  3944. SET Category_woid = NULL
  3945. WHERE Category_id IS NULL
  3946. AND Category_woid IS NOT NULL
  3947.  
  3948. UPDATE [MaterialKitMaterial]
  3949. SET Material_woid = NULL
  3950. WHERE Material_id IS NULL
  3951. AND Material_woid IS NOT NULL
  3952.  
  3953. UPDATE [MaterialKitMaterial]
  3954. SET MaterialKit_woid = NULL
  3955. WHERE MaterialKit_id IS NULL
  3956. AND MaterialKit_woid IS NOT NULL
  3957.  
  3958. UPDATE [MaterialAttachment]
  3959. SET Material_woid = NULL
  3960. WHERE Material_id IS NULL
  3961. AND Material_woid IS NOT NULL
  3962.  
  3963. UPDATE [MaterialImage]
  3964. SET Material_woid = NULL
  3965. WHERE Material_id IS NULL
  3966. AND Material_woid IS NOT NULL
  3967.  
  3968. UPDATE [Material]
  3969. SET Category_woid = NULL
  3970. WHERE Category_id IS NULL
  3971. AND Category_woid IS NOT NULL
  3972.  
  3973. UPDATE [Material]
  3974. SET DefaultCommonSize_woid = NULL
  3975. WHERE DefaultCommonSize_id IS NULL
  3976. AND DefaultCommonSize_woid IS NOT NULL
  3977.  
  3978. UPDATE [Material]
  3979. SET PurchaseUomGroup_woid = NULL
  3980. WHERE PurchaseUomGroup_id IS NULL
  3981. AND PurchaseUomGroup_woid IS NOT NULL
  3982.  
  3983. UPDATE [MaterialCharacteristic]
  3984. SET Characteristic_woid = NULL
  3985. WHERE Characteristic_id IS NULL
  3986. AND Characteristic_woid IS NOT NULL
  3987.  
  3988. UPDATE [MaterialCharacteristic]
  3989. SET Material_woid = NULL
  3990. WHERE Material_id IS NULL
  3991. AND Material_woid IS NOT NULL
  3992.  
  3993. UPDATE [MaterialInventoryLevels]
  3994. SET CommonSize_woid = NULL
  3995. WHERE CommonSize_id IS NULL
  3996. AND CommonSize_woid IS NOT NULL
  3997.  
  3998. UPDATE [MaterialInventoryLevels]
  3999. SET Material_woid = NULL
  4000. WHERE Material_id IS NULL
  4001. AND Material_woid IS NOT NULL
  4002.  
  4003. UPDATE [MaterialSubstitute]
  4004. SET Material_woid = NULL
  4005. WHERE Material_id IS NULL
  4006. AND Material_woid IS NOT NULL
  4007.  
  4008. UPDATE [MaterialSubstitute]
  4009. SET Substitute_woid = NULL
  4010. WHERE Substitute_id IS NULL
  4011. AND Substitute_woid IS NOT NULL
  4012.  
  4013. UPDATE [MaterialCategory]
  4014. SET Parent_woid = NULL
  4015. WHERE Parent_id IS NULL
  4016. AND Parent_woid IS NOT NULL
  4017.  
  4018. UPDATE [LaborCategory]
  4019. SET Parent_woid = NULL
  4020. WHERE Parent_id IS NULL
  4021. AND Parent_woid IS NOT NULL
  4022.  
  4023. UPDATE [LaborItem]
  4024. SET Category_woid = NULL
  4025. WHERE Category_id IS NULL
  4026. AND Category_woid IS NOT NULL
  4027.  
  4028. UPDATE [LaborItem]
  4029. SET Location_woid = NULL
  4030. WHERE Location_id IS NULL
  4031. AND Location_woid IS NOT NULL
  4032.  
  4033. UPDATE [Burden]
  4034. SET Category_woid = NULL
  4035. WHERE Category_id IS NULL
  4036. AND Category_woid IS NOT NULL
  4037.  
  4038. UPDATE [BurdenCategory]
  4039. SET Parent_woid = NULL
  4040. WHERE Parent_id IS NULL
  4041. AND Parent_woid IS NOT NULL
  4042.  
  4043. UPDATE [LaborItemBurden]
  4044. SET Burden_woid = NULL
  4045. WHERE Burden_id IS NULL
  4046. AND Burden_woid IS NOT NULL
  4047.  
  4048. UPDATE [LaborItemBurden]
  4049. SET LaborItem_woid = NULL
  4050. WHERE LaborItem_id IS NULL
  4051. AND LaborItem_woid IS NOT NULL
  4052.  
  4053. UPDATE [SummaryBurden]
  4054. SET Category_woid = NULL
  4055. WHERE Category_id IS NULL
  4056. AND Category_woid IS NOT NULL
  4057.  
  4058. UPDATE [FormulaArgument]
  4059. SET Formula_woid = NULL
  4060. WHERE Formula_id IS NULL
  4061. AND Formula_woid IS NOT NULL
  4062.  
  4063. UPDATE [FormulaDependency]
  4064. SET Child_woid = NULL
  4065. WHERE Child_id IS NULL
  4066. AND Child_woid IS NOT NULL
  4067.  
  4068. UPDATE [FormulaDependency]
  4069. SET Parent_woid = NULL
  4070. WHERE Parent_id IS NULL
  4071. AND Parent_woid IS NOT NULL
  4072.  
  4073. UPDATE [InlineFormula]
  4074. SET Formula_woid = NULL
  4075. WHERE Formula_id IS NULL
  4076. AND Formula_woid IS NOT NULL
  4077.  
  4078. UPDATE [ReusableFormula]
  4079. SET Category_woid = NULL
  4080. WHERE Category_id IS NULL
  4081. AND Category_woid IS NOT NULL
  4082.  
  4083. UPDATE [ReusableFormula]
  4084. SET Formula_woid = NULL
  4085. WHERE Formula_id IS NULL
  4086. AND Formula_woid IS NOT NULL
  4087.  
  4088. UPDATE [FormulaCategory]
  4089. SET Parent_woid = NULL
  4090. WHERE Parent_id IS NULL
  4091. AND Parent_woid IS NOT NULL
  4092.  
  4093. UPDATE [StockedMaterial]
  4094. SET CommonSize_woid = NULL
  4095. WHERE CommonSize_id IS NULL
  4096. AND CommonSize_woid IS NOT NULL
  4097.  
  4098. UPDATE [StockedMaterial]
  4099. SET Material_woid = NULL
  4100. WHERE Material_id IS NULL
  4101. AND Material_woid IS NOT NULL
  4102.  
  4103. UPDATE [TenantFacility]
  4104. SET TaxRegulations_woid = NULL
  4105. WHERE TaxRegulations_id IS NULL
  4106. AND TaxRegulations_woid IS NOT NULL
  4107.  
  4108. UPDATE [TaxQuestionnaireAnswer]
  4109. SET TaxRegulations_woid = NULL
  4110. WHERE TaxRegulations_id IS NULL
  4111. AND TaxRegulations_woid IS NOT NULL
  4112.  
  4113. UPDATE [TaxQuestionNote]
  4114. SET TaxRegulations_woid = NULL
  4115. WHERE TaxRegulations_id IS NULL
  4116. AND TaxRegulations_woid IS NOT NULL
  4117.  
  4118. UPDATE [TaxRate]
  4119. SET TaxRegulations_woid = NULL
  4120. WHERE TaxRegulations_id IS NULL
  4121. AND TaxRegulations_woid IS NOT NULL
  4122.  
  4123. UPDATE [ProjectWorkOrderCostObject]
  4124. SET CostObject_woid = NULL
  4125. WHERE CostObject_id IS NULL
  4126. AND CostObject_woid IS NOT NULL
  4127.  
  4128. UPDATE [Requisition]
  4129. SET CommonSize_woid = NULL
  4130. WHERE CommonSize_id IS NULL
  4131. AND CommonSize_woid IS NOT NULL
  4132.  
  4133. UPDATE [Requisition]
  4134. SET Material_woid = NULL
  4135. WHERE Material_id IS NULL
  4136. AND Material_woid IS NOT NULL
  4137.  
  4138. UPDATE [MaterialApprovalItem]
  4139. SET Material_woid = NULL
  4140. WHERE Material_id IS NULL
  4141. AND Material_woid IS NOT NULL
  4142.  
  4143. UPDATE [BomEntry]
  4144. SET CommonSize_woid = NULL
  4145. WHERE CommonSize_id IS NULL
  4146. AND CommonSize_woid IS NOT NULL
  4147.  
  4148. UPDATE [BomEntry]
  4149. SET Material_woid = NULL
  4150. WHERE Material_id IS NULL
  4151. AND Material_woid IS NOT NULL
  4152.  
  4153. UPDATE [SovCostObject]
  4154. SET CostObject_woid = NULL
  4155. WHERE CostObject_id IS NULL
  4156. AND CostObject_woid IS NOT NULL
  4157.  
  4158. UPDATE [ImageAttachment]
  4159. SET Image_woid = NULL
  4160. WHERE Image_id IS NULL
  4161. AND Image_woid IS NOT NULL
  4162.  
  4163.  
  4164. [SQL: INSERT INTO [ScaleCalibration](blueprintId,
  4165. CreatedBy,
  4166. CreatedDate,
  4167. DisplayName,
  4168. Id,
  4169. IsActive,
  4170. KnownLengthFormat,
  4171. KnownLengthInches,
  4172. layerId,
  4173. ModifiedBy,
  4174. ModifiedDate,
  4175. ScaleDefinition_id,
  4176. ScaleDistanceInPixels,
  4177. ScaleDistanceInRealityFormat,
  4178. ScaleDistanceInRealityInches,
  4179. Shape,
  4180. SourceBlueprintFileId,
  4181. Style,
  4182. Tenant,
  4183. Type,
  4184. url_Value,
  4185. ScaleDefinition_woid,
  4186. woid)
  4187. SELECT blueprintId,
  4188. CreatedBy,
  4189. CreatedDate,
  4190. DisplayName,
  4191. Id,
  4192. IsActive,
  4193. KnownLengthFormat,
  4194. KnownLengthInches,
  4195. layerId,
  4196. ModifiedBy,
  4197. ModifiedDate,
  4198. null,
  4199. ScaleDistanceInPixels,
  4200. ScaleDistanceInRealityFormat,
  4201. ScaleDistanceInRealityInches,
  4202. Shape,
  4203. SourceBlueprintFileId,
  4204. Style,
  4205. Tenant,
  4206. Type,
  4207. url_Value,
  4208. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4209. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4210. FROM [ScaleCalibration]
  4211. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4212. INSERT INTO [ScaleDefinition](CreatedBy,
  4213. CreatedDate,
  4214. Id,
  4215. IsActive,
  4216. KnownLengthFormat,
  4217. KnownLengthInches,
  4218. ModifiedBy,
  4219. ModifiedDate,
  4220. Name,
  4221. OrderIndex,
  4222. ScaleCalibration_id,
  4223. Tenant,
  4224. Type,
  4225. ScaleCalibration_woid,
  4226. woid)
  4227. SELECT CreatedBy,
  4228. CreatedDate,
  4229. Id,
  4230. IsActive,
  4231. KnownLengthFormat,
  4232. KnownLengthInches,
  4233. ModifiedBy,
  4234. ModifiedDate,
  4235. Name,
  4236. OrderIndex,
  4237. ScaleCalibration_id,
  4238. Tenant,
  4239. Type,
  4240. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4241. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4242. FROM [ScaleDefinition]
  4243. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4244. UPDATE calibration
  4245. SET calibration.[ScaleDefinition_id] = (
  4246. SELECT ScaleDefinition_id
  4247. FROM [ScaleCalibration]
  4248. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4249. AND Id = calibration.[Id]),
  4250. calibration.[ScaleDefinition_woid] = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4251. FROM [ScaleCalibration] calibration
  4252. WHERE calibration.woid = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4253. AND calibration.[ScaleDefinition_id] IS NULL
  4254. INSERT INTO [Calibration](calibrationId,
  4255. CreatedBy,
  4256. CreatedDate,
  4257. Id,
  4258. IsActive,
  4259. ModifiedBy,
  4260. ModifiedDate,
  4261. ScaleDefinition_id,
  4262. ScaleDistanceInPixels,
  4263. ScaleDistanceInRealityFormat,
  4264. ScaleDistanceInRealityInches,
  4265. Tenant,
  4266. ScaleDefinition_woid,
  4267. woid)
  4268. SELECT calibrationId,
  4269. CreatedBy,
  4270. CreatedDate,
  4271. Id,
  4272. IsActive,
  4273. ModifiedBy,
  4274. ModifiedDate,
  4275. ScaleDefinition_id,
  4276. ScaleDistanceInPixels,
  4277. ScaleDistanceInRealityFormat,
  4278. ScaleDistanceInRealityInches,
  4279. Tenant,
  4280. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4281. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4282. FROM [Calibration]
  4283. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4284. INSERT INTO [TakeoffBlueprint](blueprint_Id,
  4285. Calibration_id,
  4286. CreatedBy,
  4287. CreatedDate,
  4288. Grayscale,
  4289. Id,
  4290. IsActive,
  4291. ModifiedBy,
  4292. ModifiedDate,
  4293. Tenant,
  4294. workorder_Id,
  4295. Calibration_woid,
  4296. woid)
  4297. SELECT blueprint_Id,
  4298. Calibration_id,
  4299. CreatedBy,
  4300. CreatedDate,
  4301. Grayscale,
  4302. Id,
  4303. IsActive,
  4304. ModifiedBy,
  4305. ModifiedDate,
  4306. Tenant,
  4307. workorder_Id,
  4308. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4309. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4310. FROM [TakeoffBlueprint]
  4311. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4312. INSERT INTO [ScaleArea](blueprintId,
  4313. Calibration_id,
  4314. CreatedBy,
  4315. CreatedDate,
  4316. DisplayName,
  4317. Id,
  4318. IsActive,
  4319. layerId,
  4320. ModifiedBy,
  4321. ModifiedDate,
  4322. Shape,
  4323. Style,
  4324. Tenant,
  4325. Type,
  4326. url_Value,
  4327. Calibration_woid,
  4328. woid)
  4329. SELECT blueprintId,
  4330. Calibration_id,
  4331. CreatedBy,
  4332. CreatedDate,
  4333. DisplayName,
  4334. Id,
  4335. IsActive,
  4336. layerId,
  4337. ModifiedBy,
  4338. ModifiedDate,
  4339. Shape,
  4340. Style,
  4341. Tenant,
  4342. Type,
  4343. url_Value,
  4344. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4345. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4346. FROM [ScaleArea]
  4347. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4348. INSERT INTO [LaborCategory](CreatedBy,
  4349. CreatedDate,
  4350. directcostcurrencyCode,
  4351. directcostcurrencySymbol,
  4352. directcostValue,
  4353. Id,
  4354. IsActive,
  4355. Level,
  4356. ModifiedBy,
  4357. ModifiedDate,
  4358. Name,
  4359. Parent_id,
  4360. profitcurrencyCode,
  4361. profitcurrencySymbol,
  4362. profitFraction,
  4363. profitMethod,
  4364. profitValue,
  4365. profitValueType,
  4366. Tenant,
  4367. TenantFacility_id,
  4368. totalcostcurrencyCode,
  4369. totalcostcurrencySymbol,
  4370. totalcostValue,
  4371. totalsellcurrencyCode,
  4372. totalsellcurrencySymbol,
  4373. totalsellValue,
  4374. Parent_woid,
  4375. woid)
  4376. SELECT CreatedBy,
  4377. CreatedDate,
  4378. directcostcurrencyCode,
  4379. directcostcurrencySymbol,
  4380. directcostValue,
  4381. Id,
  4382. IsActive,
  4383. Level,
  4384. ModifiedBy,
  4385. ModifiedDate,
  4386. Name,
  4387. Parent_id,
  4388. profitcurrencyCode,
  4389. profitcurrencySymbol,
  4390. profitFraction,
  4391. profitMethod,
  4392. profitValue,
  4393. profitValueType,
  4394. Tenant,
  4395. TenantFacility_id,
  4396. totalcostcurrencyCode,
  4397. totalcostcurrencySymbol,
  4398. totalcostValue,
  4399. totalsellcurrencyCode,
  4400. totalsellcurrencySymbol,
  4401. totalsellValue,
  4402. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4403. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4404. FROM [LaborCategory]
  4405. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4406. INSERT INTO [ProductsPallet](CreatedBy,
  4407. CreatedDate,
  4408. Id,
  4409. IsActive,
  4410. ModifiedBy,
  4411. ModifiedDate,
  4412. Tenant,
  4413. woid)
  4414. SELECT CreatedBy,
  4415. CreatedDate,
  4416. Id,
  4417. IsActive,
  4418. ModifiedBy,
  4419. ModifiedDate,
  4420. Tenant,
  4421. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4422. FROM [ProductsPallet]
  4423. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4424. INSERT INTO [Location](blueprintId,
  4425. Building,
  4426. CreatedBy,
  4427. CreatedDate,
  4428. DisplayName,
  4429. Floor,
  4430. Id,
  4431. IsActive,
  4432. layerId,
  4433. ModifiedBy,
  4434. ModifiedDate,
  4435. Name,
  4436. Number,
  4437. ScopeNote,
  4438. Shape,
  4439. Style,
  4440. Tenant,
  4441. Type,
  4442. url_Value,
  4443. Zone,
  4444. woid)
  4445. SELECT blueprintId,
  4446. Building,
  4447. CreatedBy,
  4448. CreatedDate,
  4449. DisplayName,
  4450. Floor,
  4451. Id,
  4452. IsActive,
  4453. layerId,
  4454. ModifiedBy,
  4455. ModifiedDate,
  4456. Name,
  4457. Number,
  4458. ScopeNote,
  4459. Shape,
  4460. Style,
  4461. Tenant,
  4462. Type,
  4463. url_Value,
  4464. Zone,
  4465. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4466. FROM [Location]
  4467. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4468. INSERT INTO [Layer](CreatedBy,
  4469. CreatedDate,
  4470. Id,
  4471. IsActive,
  4472. ModifiedBy,
  4473. ModifiedDate,
  4474. Name,
  4475. OrderIndex,
  4476. Tenant,
  4477. Type,
  4478. woid)
  4479. SELECT CreatedBy,
  4480. CreatedDate,
  4481. Id,
  4482. IsActive,
  4483. ModifiedBy,
  4484. ModifiedDate,
  4485. Name,
  4486. OrderIndex,
  4487. Tenant,
  4488. Type,
  4489. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4490. FROM [Layer]
  4491. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4492. INSERT INTO [CostObjectLayer](BidOriginId,
  4493. Layer_id,
  4494. Layer_woid)
  4495. SELECT BidOriginId,
  4496. Layer_id,
  4497. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4498. FROM [CostObjectLayer]
  4499. WHERE Layer_woid = '00000000-0000-0000-0000-000000000000'
  4500. INSERT INTO [Image](blueprintId,
  4501. CreatedBy,
  4502. CreatedDate,
  4503. DisplayName,
  4504. Id,
  4505. IsActive,
  4506. layerId,
  4507. ModifiedBy,
  4508. ModifiedDate,
  4509. Shape,
  4510. Style,
  4511. Tenant,
  4512. Type,
  4513. url_Value,
  4514. woid)
  4515. SELECT blueprintId,
  4516. CreatedBy,
  4517. CreatedDate,
  4518. DisplayName,
  4519. Id,
  4520. IsActive,
  4521. layerId,
  4522. ModifiedBy,
  4523. ModifiedDate,
  4524. Shape,
  4525. Style,
  4526. Tenant,
  4527. Type,
  4528. url_Value,
  4529. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4530. FROM [Image]
  4531. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4532. INSERT INTO [DistributedCost](AmountCurrencyCode,
  4533. AmountCurrencySymbol,
  4534. AmountValue,
  4535. Category,
  4536. CreatedBy,
  4537. CreatedDate,
  4538. Id,
  4539. IsActive,
  4540. ModifiedBy,
  4541. ModifiedDate,
  4542. Name,
  4543. Tenant,
  4544. woid)
  4545. SELECT AmountCurrencyCode,
  4546. AmountCurrencySymbol,
  4547. AmountValue,
  4548. Category,
  4549. CreatedBy,
  4550. CreatedDate,
  4551. Id,
  4552. IsActive,
  4553. ModifiedBy,
  4554. ModifiedDate,
  4555. Name,
  4556. Tenant,
  4557. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4558. FROM [DistributedCost]
  4559. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4560. INSERT INTO [Budget](AlternatesSettings,
  4561. AlternatesSummaryCalculationMode,
  4562. BaseBidSettings,
  4563. CreatedBy,
  4564. CreatedDate,
  4565. Id,
  4566. IsActive,
  4567. LockedCostObjects,
  4568. ModifiedBy,
  4569. ModifiedDate,
  4570. SettingsVersionStamp,
  4571. Tenant,
  4572. woid)
  4573. SELECT AlternatesSettings,
  4574. AlternatesSummaryCalculationMode,
  4575. BaseBidSettings,
  4576. CreatedBy,
  4577. CreatedDate,
  4578. Id,
  4579. IsActive,
  4580. LockedCostObjects,
  4581. ModifiedBy,
  4582. ModifiedDate,
  4583. SettingsVersionStamp,
  4584. Tenant,
  4585. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4586. FROM [Budget]
  4587. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4588. INSERT INTO [BidOrigin](CreatedBy,
  4589. CreatedDate,
  4590. Description,
  4591. Id,
  4592. IsActive,
  4593. ModifiedBy,
  4594. ModifiedDate,
  4595. Name,
  4596. Status,
  4597. Tenant,
  4598. Type,
  4599. woid)
  4600. SELECT CreatedBy,
  4601. CreatedDate,
  4602. Description,
  4603. Id,
  4604. IsActive,
  4605. ModifiedBy,
  4606. ModifiedDate,
  4607. Name,
  4608. Status,
  4609. Tenant,
  4610. Type,
  4611. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4612. FROM [BidOrigin]
  4613. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4614. INSERT INTO [Annotation](blueprintId,
  4615. CreatedBy,
  4616. CreatedDate,
  4617. DisplayName,
  4618. Id,
  4619. IsActive,
  4620. layerId,
  4621. ModifiedBy,
  4622. ModifiedDate,
  4623. Shape,
  4624. Style,
  4625. Tenant,
  4626. Type,
  4627. url_Value,
  4628. woid)
  4629. SELECT blueprintId,
  4630. CreatedBy,
  4631. CreatedDate,
  4632. DisplayName,
  4633. Id,
  4634. IsActive,
  4635. layerId,
  4636. ModifiedBy,
  4637. ModifiedDate,
  4638. Shape,
  4639. Style,
  4640. Tenant,
  4641. Type,
  4642. url_Value,
  4643. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4644. FROM [Annotation]
  4645. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4646. INSERT INTO [VariableSetDefinition](CreatedBy,
  4647. CreatedDate,
  4648. Id,
  4649. IsActive,
  4650. IsInnergy,
  4651. ModifiedBy,
  4652. ModifiedDate,
  4653. Name,
  4654. ShortName,
  4655. Tenant,
  4656. woid)
  4657. SELECT CreatedBy,
  4658. CreatedDate,
  4659. Id,
  4660. IsActive,
  4661. IsInnergy,
  4662. ModifiedBy,
  4663. ModifiedDate,
  4664. Name,
  4665. ShortName,
  4666. Tenant,
  4667. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4668. FROM [VariableSetDefinition]
  4669. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4670. INSERT INTO [VariableSetValue](CreatedBy,
  4671. CreatedDate,
  4672. Description,
  4673. Id,
  4674. IsActive,
  4675. IsDefault,
  4676. ModifiedBy,
  4677. ModifiedDate,
  4678. Name,
  4679. Reference,
  4680. Tenant,
  4681. VariableSetDefinition_id,
  4682. VariableSetDefinition_woid,
  4683. woid)
  4684. SELECT CreatedBy,
  4685. CreatedDate,
  4686. Description,
  4687. Id,
  4688. IsActive,
  4689. IsDefault,
  4690. ModifiedBy,
  4691. ModifiedDate,
  4692. Name,
  4693. Reference,
  4694. Tenant,
  4695. VariableSetDefinition_id,
  4696. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4697. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4698. FROM [VariableSetValue]
  4699. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4700. INSERT INTO [VariableDefinitionCategory](CreatedBy,
  4701. CreatedDate,
  4702. Id,
  4703. IsActive,
  4704. IsInnergy,
  4705. ModifiedBy,
  4706. ModifiedDate,
  4707. Name,
  4708. Parent_id,
  4709. Tenant,
  4710. Parent_woid,
  4711. woid)
  4712. SELECT CreatedBy,
  4713. CreatedDate,
  4714. Id,
  4715. IsActive,
  4716. IsInnergy,
  4717. ModifiedBy,
  4718. ModifiedDate,
  4719. Name,
  4720. Parent_id,
  4721. Tenant,
  4722. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4723. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4724. FROM [VariableDefinitionCategory]
  4725. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4726. INSERT INTO [UomGroupCategory](CreatedBy,
  4727. CreatedDate,
  4728. Id,
  4729. IsActive,
  4730. IsInnergy,
  4731. ModifiedBy,
  4732. ModifiedDate,
  4733. Name,
  4734. Parent_id,
  4735. Tenant,
  4736. Parent_woid,
  4737. woid)
  4738. SELECT CreatedBy,
  4739. CreatedDate,
  4740. Id,
  4741. IsActive,
  4742. IsInnergy,
  4743. ModifiedBy,
  4744. ModifiedDate,
  4745. Name,
  4746. Parent_id,
  4747. Tenant,
  4748. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4749. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4750. FROM [UomGroupCategory]
  4751. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4752. INSERT INTO [UomGroup](BaseUom_id,
  4753. Category_id,
  4754. CreatedBy,
  4755. CreatedDate,
  4756. Description,
  4757. Id,
  4758. IsActive,
  4759. IsInnergy,
  4760. ModifiedBy,
  4761. ModifiedDate,
  4762. Name,
  4763. OrderIndex,
  4764. Tenant,
  4765. Category_woid,
  4766. woid)
  4767. SELECT BaseUom_id,
  4768. Category_id,
  4769. CreatedBy,
  4770. CreatedDate,
  4771. Description,
  4772. Id,
  4773. IsActive,
  4774. IsInnergy,
  4775. ModifiedBy,
  4776. ModifiedDate,
  4777. Name,
  4778. OrderIndex,
  4779. Tenant,
  4780. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4781. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4782. FROM [UomGroup]
  4783. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4784. INSERT INTO [CommonSizeCategory](CreatedBy,
  4785. CreatedDate,
  4786. Id,
  4787. IsActive,
  4788. IsInnergy,
  4789. ModifiedBy,
  4790. ModifiedDate,
  4791. Name,
  4792. Parent_id,
  4793. Tenant,
  4794. Parent_woid,
  4795. woid)
  4796. SELECT CreatedBy,
  4797. CreatedDate,
  4798. Id,
  4799. IsActive,
  4800. IsInnergy,
  4801. ModifiedBy,
  4802. ModifiedDate,
  4803. Name,
  4804. Parent_id,
  4805. Tenant,
  4806. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4807. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4808. FROM [CommonSizeCategory]
  4809. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4810. INSERT INTO [CommonSize](BaseUom_id,
  4811. Category_id,
  4812. ConversionFactor,
  4813. CreatedBy,
  4814. CreatedDate,
  4815. Description,
  4816. Id,
  4817. IsActive,
  4818. IsInnergy,
  4819. ModifiedBy,
  4820. ModifiedDate,
  4821. Name,
  4822. Tenant,
  4823. Category_woid,
  4824. woid)
  4825. SELECT BaseUom_id,
  4826. Category_id,
  4827. ConversionFactor,
  4828. CreatedBy,
  4829. CreatedDate,
  4830. Description,
  4831. Id,
  4832. IsActive,
  4833. IsInnergy,
  4834. ModifiedBy,
  4835. ModifiedDate,
  4836. Name,
  4837. Tenant,
  4838. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4839. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4840. FROM [CommonSize]
  4841. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4842. INSERT INTO [CustomMaterial](Category_Id,
  4843. CostCurrencyCode,
  4844. CostCurrencySymbol,
  4845. CostDataSource,
  4846. CostValue,
  4847. CreatedBy,
  4848. CreatedDate,
  4849. DefaultCommonSize_id,
  4850. Id,
  4851. IsActive,
  4852. ManufacturerSku,
  4853. ManufacturerUrlValue,
  4854. ModifiedBy,
  4855. ModifiedDate,
  4856. Name,
  4857. ProfitCurrencyCode,
  4858. ProfitCurrencySymbol,
  4859. ProfitFraction,
  4860. ProfitMethod,
  4861. ProfitValue,
  4862. ProfitValueType,
  4863. PurchaseUomGroup_id,
  4864. SellCurrencyCode,
  4865. SellCurrencySymbol,
  4866. SellValue,
  4867. SequenceIdentifier,
  4868. Status,
  4869. Tenant,
  4870. WeightSymbol,
  4871. WeightUnit,
  4872. WeightValue,
  4873. Category_woid,
  4874. DefaultCommonSize_woid,
  4875. PurchaseUomGroup_woid,
  4876. woid)
  4877. SELECT Category_Id,
  4878. CostCurrencyCode,
  4879. CostCurrencySymbol,
  4880. CostDataSource,
  4881. CostValue,
  4882. CreatedBy,
  4883. CreatedDate,
  4884. DefaultCommonSize_id,
  4885. Id,
  4886. IsActive,
  4887. ManufacturerSku,
  4888. ManufacturerUrlValue,
  4889. ModifiedBy,
  4890. ModifiedDate,
  4891. Name,
  4892. ProfitCurrencyCode,
  4893. ProfitCurrencySymbol,
  4894. ProfitFraction,
  4895. ProfitMethod,
  4896. ProfitValue,
  4897. ProfitValueType,
  4898. PurchaseUomGroup_id,
  4899. SellCurrencyCode,
  4900. SellCurrencySymbol,
  4901. SellValue,
  4902. SequenceIdentifier,
  4903. Status,
  4904. Tenant,
  4905. WeightSymbol,
  4906. WeightUnit,
  4907. WeightValue,
  4908. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4909. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4910. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4911. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4912. FROM [CustomMaterial]
  4913. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4914. INSERT INTO [UomGroupCommonSize](CommonSize_id,
  4915. CreatedBy,
  4916. CreatedDate,
  4917. Id,
  4918. IsActive,
  4919. IsDefault,
  4920. ModifiedBy,
  4921. ModifiedDate,
  4922. Tenant,
  4923. UomGroup_id,
  4924. CommonSize_woid,
  4925. UomGroup_woid,
  4926. woid)
  4927. SELECT CommonSize_id,
  4928. CreatedBy,
  4929. CreatedDate,
  4930. Id,
  4931. IsActive,
  4932. IsDefault,
  4933. ModifiedBy,
  4934. ModifiedDate,
  4935. Tenant,
  4936. UomGroup_id,
  4937. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4938. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4939. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4940. FROM [UomGroupCommonSize]
  4941. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4942. INSERT INTO [ProductLabelDescription](CreatedBy,
  4943. CreatedDate,
  4944. Id,
  4945. IsActive,
  4946. ModifiedBy,
  4947. ModifiedDate,
  4948. Tenant,
  4949. X_Description,
  4950. Y_Description,
  4951. Z_Description,
  4952. woid)
  4953. SELECT CreatedBy,
  4954. CreatedDate,
  4955. Id,
  4956. IsActive,
  4957. ModifiedBy,
  4958. ModifiedDate,
  4959. Tenant,
  4960. X_Description,
  4961. Y_Description,
  4962. Z_Description,
  4963. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4964. FROM [ProductLabelDescription]
  4965. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4966. INSERT INTO [ProductLibraryCategory](CreatedBy,
  4967. CreatedDate,
  4968. Id,
  4969. IsActive,
  4970. IsInnergy,
  4971. ModifiedBy,
  4972. ModifiedDate,
  4973. Name,
  4974. Parent_id,
  4975. Tenant,
  4976. Type,
  4977. Parent_woid,
  4978. woid)
  4979. SELECT CreatedBy,
  4980. CreatedDate,
  4981. Id,
  4982. IsActive,
  4983. IsInnergy,
  4984. ModifiedBy,
  4985. ModifiedDate,
  4986. Name,
  4987. Parent_id,
  4988. Tenant,
  4989. Type,
  4990. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  4991. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  4992. FROM [ProductLibraryCategory]
  4993. WHERE woid = '00000000-0000-0000-0000-000000000000'
  4994. INSERT INTO [Formula](Body,
  4995. CompiledBody,
  4996. CompiledBodySelf,
  4997. CreatedBy,
  4998. CreatedDate,
  4999. Description,
  5000. Id,
  5001. IsActive,
  5002. ModifiedBy,
  5003. ModifiedDate,
  5004. ReturnTypeKind,
  5005. Tenant,
  5006. woid)
  5007. SELECT Body,
  5008. CompiledBody,
  5009. CompiledBodySelf,
  5010. CreatedBy,
  5011. CreatedDate,
  5012. Description,
  5013. Id,
  5014. IsActive,
  5015. ModifiedBy,
  5016. ModifiedDate,
  5017. ReturnTypeKind,
  5018. Tenant,
  5019. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5020. FROM [Formula]
  5021. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5022. INSERT INTO [InlineFormula](Formula_id,
  5023. Formula_woid)
  5024. SELECT Formula_id,
  5025. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5026. FROM [InlineFormula]
  5027. WHERE Formula_woid = '00000000-0000-0000-0000-000000000000'
  5028. INSERT INTO [PartBase](Category_id,
  5029. CreatedBy,
  5030. CreatedDate,
  5031. Dimensions,
  5032. Id,
  5033. IsActive,
  5034. IsInnergy,
  5035. ModifiedBy,
  5036. ModifiedDate,
  5037. Name,
  5038. OriginalNameValue,
  5039. Tenant,
  5040. Category_woid,
  5041. woid)
  5042. SELECT Category_id,
  5043. CreatedBy,
  5044. CreatedDate,
  5045. Dimensions,
  5046. Id,
  5047. IsActive,
  5048. IsInnergy,
  5049. ModifiedBy,
  5050. ModifiedDate,
  5051. Name,
  5052. OriginalNameValue,
  5053. Tenant,
  5054. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5055. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5056. FROM [PartBase]
  5057. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5058. INSERT INTO [Assembly](PartBase_id,
  5059. PartBase_woid)
  5060. SELECT PartBase_id,
  5061. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5062. FROM [Assembly]
  5063. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  5064. INSERT INTO [Product](BaseUom_id,
  5065. ImageIdentifier,
  5066. ImageName,
  5067. PartBase_id,
  5068. ProductAdditions_id,
  5069. ProductLabelDescription_Id,
  5070. X_id,
  5071. Y_id,
  5072. Z_id,
  5073. PartBase_woid,
  5074. ProductLabelDescription_woid,
  5075. X_woid,
  5076. Y_woid,
  5077. Z_woid)
  5078. SELECT BaseUom_id,
  5079. ImageIdentifier,
  5080. ImageName,
  5081. PartBase_id,
  5082. ProductAdditions_id,
  5083. ProductLabelDescription_Id,
  5084. X_id,
  5085. Y_id,
  5086. Z_id,
  5087. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5088. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5089. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5090. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5091. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5092. FROM [Product]
  5093. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  5094. INSERT INTO [Part](PartBase_id,
  5095. PartBase_woid)
  5096. SELECT PartBase_id,
  5097. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5098. FROM [Part]
  5099. WHERE PartBase_woid = '00000000-0000-0000-0000-000000000000'
  5100. INSERT INTO [ProductEvaluationSpecifications](Completed,
  5101. CreatedBy,
  5102. CreatedDate,
  5103. Id,
  5104. IsActive,
  5105. ModifiedBy,
  5106. ModifiedDate,
  5107. Tenant,
  5108. Type,
  5109. VersionStamp,
  5110. woid)
  5111. SELECT Completed,
  5112. CreatedBy,
  5113. CreatedDate,
  5114. Id,
  5115. IsActive,
  5116. ModifiedBy,
  5117. ModifiedDate,
  5118. Tenant,
  5119. Type,
  5120. VersionStamp,
  5121. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5122. FROM [ProductEvaluationSpecifications]
  5123. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5124. INSERT INTO [ProductEvaluationSpecification](AdditionalCostsCashItems,
  5125. AdditionalCostsMaterials,
  5126. AdditionalCostsOperations,
  5127. Completed,
  5128. CreatedBy,
  5129. CreatedDate,
  5130. DimensionsCount,
  5131. DimensionsXFormat,
  5132. DimensionsXInches,
  5133. DimensionsYFormat,
  5134. DimensionsYInches,
  5135. DimensionsZFormat,
  5136. DimensionsZInches,
  5137. Facility_id,
  5138. Id,
  5139. IsActive,
  5140. ModifiedBy,
  5141. ModifiedDate,
  5142. ProductEvaluationSpecifications_id,
  5143. ProductTemplate_id,
  5144. Quantity,
  5145. Tenant,
  5146. Facility_woid,
  5147. ProductEvaluationSpecifications_woid,
  5148. ProductTemplate_woid,
  5149. woid)
  5150. SELECT AdditionalCostsCashItems,
  5151. AdditionalCostsMaterials,
  5152. AdditionalCostsOperations,
  5153. Completed,
  5154. CreatedBy,
  5155. CreatedDate,
  5156. DimensionsCount,
  5157. DimensionsXFormat,
  5158. DimensionsXInches,
  5159. DimensionsYFormat,
  5160. DimensionsYInches,
  5161. DimensionsZFormat,
  5162. DimensionsZInches,
  5163. Facility_id,
  5164. Id,
  5165. IsActive,
  5166. ModifiedBy,
  5167. ModifiedDate,
  5168. ProductEvaluationSpecifications_id,
  5169. ProductTemplate_id,
  5170. Quantity,
  5171. Tenant,
  5172. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5173. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5174. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5175. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5176. FROM [ProductEvaluationSpecification]
  5177. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5178. INSERT INTO [AttachedProduct](AttachingDate,
  5179. CreatedBy,
  5180. CreatedDate,
  5181. DefaultShapeRepresentation,
  5182. EachTakeOffMethodType,
  5183. EvaluationSpecifications_id,
  5184. Fill,
  5185. Id,
  5186. IsActive,
  5187. ModifiedBy,
  5188. ModifiedDate,
  5189. Name,
  5190. ProductsPallet_id,
  5191. SpriteType,
  5192. State,
  5193. TakeOffMethod,
  5194. TaxRegulationsType,
  5195. Tenant,
  5196. EvaluationSpecifications_woid,
  5197. ProductsPallet_woid,
  5198. woid)
  5199. SELECT AttachingDate,
  5200. CreatedBy,
  5201. CreatedDate,
  5202. DefaultShapeRepresentation,
  5203. EachTakeOffMethodType,
  5204. EvaluationSpecifications_id,
  5205. Fill,
  5206. Id,
  5207. IsActive,
  5208. ModifiedBy,
  5209. ModifiedDate,
  5210. Name,
  5211. ProductsPallet_id,
  5212. SpriteType,
  5213. State,
  5214. TakeOffMethod,
  5215. TaxRegulationsType,
  5216. Tenant,
  5217. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5218. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5219. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5220. FROM [AttachedProduct]
  5221. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5222. INSERT INTO [AttachedProductDistributedCost](AttachedProduct_id,
  5223. CreatedBy,
  5224. CreatedDate,
  5225. DistributedCost_id,
  5226. Id,
  5227. IsActive,
  5228. ModifiedBy,
  5229. ModifiedDate,
  5230. Tenant,
  5231. AttachedProduct_woid,
  5232. DistributedCost_woid,
  5233. woid)
  5234. SELECT AttachedProduct_id,
  5235. CreatedBy,
  5236. CreatedDate,
  5237. DistributedCost_id,
  5238. Id,
  5239. IsActive,
  5240. ModifiedBy,
  5241. ModifiedDate,
  5242. Tenant,
  5243. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5244. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5245. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5246. FROM [AttachedProductDistributedCost]
  5247. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5248. INSERT INTO [TypicalGroup](blueprintId,
  5249. CreatedBy,
  5250. CreatedDate,
  5251. DisplayName,
  5252. Id,
  5253. IsActive,
  5254. layerId,
  5255. MarkerType,
  5256. ModifiedBy,
  5257. ModifiedDate,
  5258. Shape,
  5259. Style,
  5260. Tenant,
  5261. Type,
  5262. url_Value,
  5263. woid)
  5264. SELECT blueprintId,
  5265. CreatedBy,
  5266. CreatedDate,
  5267. DisplayName,
  5268. Id,
  5269. IsActive,
  5270. layerId,
  5271. MarkerType,
  5272. ModifiedBy,
  5273. ModifiedDate,
  5274. Shape,
  5275. Style,
  5276. Tenant,
  5277. Type,
  5278. url_Value,
  5279. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5280. FROM [TypicalGroup]
  5281. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5282. INSERT INTO [CostObject](AttachedProduct_id,
  5283. BidOriginId,
  5284. BidOriginIdVersionStamp,
  5285. blueprintId,
  5286. CostObjectBaseBidVersionId,
  5287. CostObjectState,
  5288. CreatedBy,
  5289. CreatedDate,
  5290. DisplayName,
  5291. DistributedCostsVersionStamp,
  5292. EachTakeOffMethodType,
  5293. EvaluationSpecifications_id,
  5294. Id,
  5295. IsActive,
  5296. layerId,
  5297. MeasurementCalculationMessage,
  5298. MeasurementLengthFormat,
  5299. MeasurementLengthInches,
  5300. MeasurementScaleSourceScaleArea_id,
  5301. MeasurementScaleSourceScaleDistanceInPixels,
  5302. MeasurementScaleSourceScaleDistanceInRealityFormat,
  5303. MeasurementScaleSourceScaleDistanceInRealityInches,
  5304. MeasurementScaleSourceSheetSettings_id,
  5305. MeasurementScaleSourceType,
  5306. MeasurementSurfaceAreaSquareInches,
  5307. ModifiedBy,
  5308. ModifiedDate,
  5309. PriceAdjustmentVersionStamp,
  5310. RawFabricationPriceAdjustmentFixedValuecurrencyCode,
  5311. RawFabricationPriceAdjustmentFixedValuecurrencySymbol,
  5312. RawFabricationPriceAdjustmentFixedValueValue,
  5313. RawFabricationPriceAdjustmentPercentageFraction,
  5314. RawInstalationPriceAdjustmentFixedValuecurrencyCode,
  5315. RawInstalationPriceAdjustmentFixedValuecurrencySymbol,
  5316. RawInstalationPriceAdjustmentFixedValueValue,
  5317. RawInstalationPriceAdjustmentPercentageFraction,
  5318. SequenceIdentifier,
  5319. Shape,
  5320. SheetLocation_id,
  5321. SourceProductName,
  5322. Style,
  5323. TakeOffMethod,
  5324. TaxRegulationsType,
  5325. TaxRegulationsVersionStamp,
  5326. Tenant,
  5327. Type,
  5328. TypicalGroupId,
  5329. url_Value,
  5330. AttachedProduct_woid,
  5331. EvaluationSpecifications_woid,
  5332. MeasurementScaleSourceScaleArea_woid,
  5333. MeasurementScaleSourceSheetSettings_woid,
  5334. SheetLocation_woid,
  5335. woid)
  5336. SELECT AttachedProduct_id,
  5337. BidOriginId,
  5338. BidOriginIdVersionStamp,
  5339. blueprintId,
  5340. CostObjectBaseBidVersionId,
  5341. CostObjectState,
  5342. CreatedBy,
  5343. CreatedDate,
  5344. DisplayName,
  5345. DistributedCostsVersionStamp,
  5346. EachTakeOffMethodType,
  5347. EvaluationSpecifications_id,
  5348. Id,
  5349. IsActive,
  5350. layerId,
  5351. MeasurementCalculationMessage,
  5352. MeasurementLengthFormat,
  5353. MeasurementLengthInches,
  5354. MeasurementScaleSourceScaleArea_id,
  5355. MeasurementScaleSourceScaleDistanceInPixels,
  5356. MeasurementScaleSourceScaleDistanceInRealityFormat,
  5357. MeasurementScaleSourceScaleDistanceInRealityInches,
  5358. MeasurementScaleSourceSheetSettings_id,
  5359. MeasurementScaleSourceType,
  5360. MeasurementSurfaceAreaSquareInches,
  5361. ModifiedBy,
  5362. ModifiedDate,
  5363. PriceAdjustmentVersionStamp,
  5364. RawFabricationPriceAdjustmentFixedValuecurrencyCode,
  5365. RawFabricationPriceAdjustmentFixedValuecurrencySymbol,
  5366. RawFabricationPriceAdjustmentFixedValueValue,
  5367. RawFabricationPriceAdjustmentPercentageFraction,
  5368. RawInstalationPriceAdjustmentFixedValuecurrencyCode,
  5369. RawInstalationPriceAdjustmentFixedValuecurrencySymbol,
  5370. RawInstalationPriceAdjustmentFixedValueValue,
  5371. RawInstalationPriceAdjustmentPercentageFraction,
  5372. SequenceIdentifier,
  5373. Shape,
  5374. SheetLocation_id,
  5375. SourceProductName,
  5376. Style,
  5377. TakeOffMethod,
  5378. TaxRegulationsType,
  5379. TaxRegulationsVersionStamp,
  5380. Tenant,
  5381. Type,
  5382. TypicalGroupId,
  5383. url_Value,
  5384. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5385. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5386. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5387. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5388. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5389. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5390. FROM [CostObject]
  5391. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5392. INSERT INTO [EvaluatedCostObject](CostsAmounts,
  5393. CreatedBy,
  5394. CreatedDate,
  5395. Id,
  5396. IsActive,
  5397. ModifiedBy,
  5398. ModifiedDate,
  5399. ProductEvaluationSpecificationsId,
  5400. ProductEvaluationSpecificationsVersionStamp,
  5401. Tenant,
  5402. ValidityIsValid,
  5403. ValidityMessage,
  5404. VersionStamp,
  5405. woid)
  5406. SELECT CostsAmounts,
  5407. CreatedBy,
  5408. CreatedDate,
  5409. Id,
  5410. IsActive,
  5411. ModifiedBy,
  5412. ModifiedDate,
  5413. ProductEvaluationSpecificationsId,
  5414. ProductEvaluationSpecificationsVersionStamp,
  5415. Tenant,
  5416. ValidityIsValid,
  5417. ValidityMessage,
  5418. VersionStamp,
  5419. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5420. FROM [EvaluatedCostObject]
  5421. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5422. INSERT INTO [BudgetCostObject](BaseFacilityId,
  5423. BaselinePricecurrencyCode,
  5424. BaselinePricecurrencySymbol,
  5425. BaselinePriceValue,
  5426. BaselineProfitcurrencyCode,
  5427. BaselineProfitcurrencySymbol,
  5428. BaselineProfitFraction,
  5429. BaselineProfitMethod,
  5430. BaselineProfitValue,
  5431. BaselineProfitValueType,
  5432. BidOriginId,
  5433. BidOriginIdVersionStamp,
  5434. BudgetPriceAdjustmentFabricationcurrencyCode,
  5435. BudgetPriceAdjustmentFabricationcurrencySymbol,
  5436. BudgetPriceAdjustmentFabricationFraction,
  5437. BudgetPriceAdjustmentFabricationMethod,
  5438. BudgetPriceAdjustmentFabricationValue,
  5439. BudgetPriceAdjustmentFabricationValueType,
  5440. BudgetPriceAdjustmentInstallationcurrencyCode,
  5441. BudgetPriceAdjustmentInstallationcurrencySymbol,
  5442. BudgetPriceAdjustmentInstallationFraction,
  5443. BudgetPriceAdjustmentInstallationMethod,
  5444. BudgetPriceAdjustmentInstallationValue,
  5445. BudgetPriceAdjustmentInstallationValueType,
  5446. CashSummaryTotalCostcurrencyCode,
  5447. CashSummaryTotalCostcurrencySymbol,
  5448. CashSummaryTotalCostValue,
  5449. CashSummaryTotalProfitcurrencyCode,
  5450. CashSummaryTotalProfitcurrencySymbol,
  5451. CashSummaryTotalProfitFraction,
  5452. CashSummaryTotalProfitMethod,
  5453. CashSummaryTotalProfitValue,
  5454. CashSummaryTotalProfitValueType,
  5455. CostcurrencyCode,
  5456. CostcurrencySymbol,
  5457. CostValue,
  5458. CreatedBy,
  5459. CreatedDate,
  5460. DirectPriceAdjustmentFabricationcurrencyCode,
  5461. DirectPriceAdjustmentFabricationcurrencySymbol,
  5462. DirectPriceAdjustmentFabricationFraction,
  5463. DirectPriceAdjustmentFabricationMethod,
  5464. DirectPriceAdjustmentFabricationValue,
  5465. DirectPriceAdjustmentFabricationValueType,
  5466. DirectPriceAdjustmentInstallationcurrencyCode,
  5467. DirectPriceAdjustmentInstallationcurrencySymbol,
  5468. DirectPriceAdjustmentInstallationFraction,
  5469. DirectPriceAdjustmentInstallationMethod,
  5470. DirectPriceAdjustmentInstallationValue,
  5471. DirectPriceAdjustmentInstallationValueType,
  5472. DistributedCostRedistributionWeightcurrencyCode,
  5473. DistributedCostRedistributionWeightcurrencySymbol,
  5474. DistributedCostRedistributionWeightValue,
  5475. DistributedCostsVersionStamp,
  5476. EvaluatedCostObjectVersionStamp,
  5477. ExtendedFabricationCostcurrencyCode,
  5478. ExtendedFabricationCostcurrencySymbol,
  5479. ExtendedFabricationCostValue,
  5480. ExtendedInstallCostcurrencyCode,
  5481. ExtendedInstallCostcurrencySymbol,
  5482. ExtendedInstallCostValue,
  5483. ExtendedLaborCostcurrencyCode,
  5484. ExtendedLaborCostcurrencySymbol,
  5485. ExtendedLaborCostValue,
  5486. ExtendedMaterialCostcurrencyCode,
  5487. ExtendedMaterialCostcurrencySymbol,
  5488. ExtendedMaterialCostValue,
  5489. Id,
  5490. InstallBaselinePricecurrencyCode,
  5491. InstallBaselinePricecurrencySymbol,
  5492. InstallBaselinePriceValue,
  5493. InstallBaselineProfitcurrencyCode,
  5494. InstallBaselineProfitcurrencySymbol,
  5495. InstallBaselineProfitFraction,
  5496. InstallBaselineProfitMethod,
  5497. InstallBaselineProfitValue,
  5498. InstallBaselineProfitValueType,
  5499. InstallCostcurrencyCode,
  5500. InstallCostcurrencySymbol,
  5501. InstallCostValue,
  5502. InstallDurationSeconds,
  5503. InstallPreSellTaxPricecurrencyCode,
  5504. InstallPreSellTaxPricecurrencySymbol,
  5505. InstallPreSellTaxPriceValue,
  5506. InstallPriceAdjustmentcurrencyCode,
  5507. InstallPriceAdjustmentcurrencySymbol,
  5508. InstallPriceAdjustmentFraction,
  5509. InstallPriceAdjustmentMethod,
  5510. InstallPriceAdjustmentValue,
  5511. InstallPriceAdjustmentValueType,
  5512. InstallPricecurrencyCode,
  5513. InstallPricecurrencySymbol,
  5514. InstallPriceValue,
  5515. InstallProfitcurrencyCode,
  5516. InstallProfitcurrencySymbol,
  5517. InstallProfitFraction,
  5518. InstallProfitMethod,
  5519. InstallProfitPerHourcurrencyCode,
  5520. InstallProfitPerHourcurrencySymbol,
  5521. InstallProfitPerHourFraction,
  5522. InstallProfitPerHourMethod,
  5523. InstallProfitPerHourValue,
  5524. InstallProfitPerHourValueType,
  5525. InstallProfitValue,
  5526. InstallProfitValueType,
  5527. InstallSellTaxcurrencyCode,
  5528. InstallSellTaxcurrencySymbol,
  5529. InstallSellTaxValue,
  5530. InstallUseTaxcurrencyCode,
  5531. InstallUseTaxcurrencySymbol,
  5532. InstallUseTaxValue,
  5533. IsActive,
  5534. LaborDurationSeconds,
  5535. LaborProfitPerHourcurrencyCode,
  5536. LaborProfitPerHourcurrencySymbol,
  5537. LaborProfitPerHourFraction,
  5538. LaborProfitPerHourMethod,
  5539. LaborProfitPerHourValue,
  5540. LaborProfitPerHourValueType,
  5541. LibraryFabricationCostcurrencyCode,
  5542. LibraryFabricationCostcurrencySymbol,
  5543. LibraryFabricationCostValue,
  5544. LibraryInstallCostcurrencyCode,
  5545. LibraryInstallCostcurrencySymbol,
  5546. LibraryInstallCostValue,
  5547. LibraryMaterialCostcurrencyCode,
  5548. LibraryMaterialCostcurrencySymbol,
  5549. LibraryMaterialCostValue,
  5550. LibraryOverheadCostcurrencyCode,
  5551. LibraryOverheadCostcurrencySymbol,
  5552. LibraryOverheadCostValue,
  5553. ModifiedBy,
  5554. ModifiedDate,
  5555. PreSellTaxPricecurrencyCode,
  5556. PreSellTaxPricecurrencySymbol,
  5557. PreSellTaxPriceValue,
  5558. PriceAdjustmentcurrencyCode,
  5559. PriceAdjustmentcurrencySymbol,
  5560. PriceAdjustmentFraction,
  5561. PriceAdjustmentMethod,
  5562. PriceAdjustmentValue,
  5563. PriceAdjustmentValueType,
  5564. PriceAdjustmentVersionStamp,
  5565. PricecurrencyCode,
  5566. PricecurrencySymbol,
  5567. PriceValue,
  5568. ProfitcurrencyCode,
  5569. ProfitcurrencySymbol,
  5570. ProfitFraction,
  5571. ProfitMethod,
  5572. ProfitValue,
  5573. ProfitValueType,
  5574. SellTaxcurrencyCode,
  5575. SellTaxcurrencySymbol,
  5576. SellTaxValue,
  5577. TaxRegulationsType,
  5578. TaxRegulationsVersionStamp,
  5579. Tenant,
  5580. TotalCostcurrencyCode,
  5581. TotalCostcurrencySymbol,
  5582. TotalCostValue,
  5583. TotalDurationSeconds,
  5584. TotalPreSellTaxPricecurrencyCode,
  5585. TotalPreSellTaxPricecurrencySymbol,
  5586. TotalPreSellTaxPriceValue,
  5587. TotalPricecurrencyCode,
  5588. TotalPricecurrencySymbol,
  5589. TotalPriceValue,
  5590. TotalProfitcurrencyCode,
  5591. TotalProfitcurrencySymbol,
  5592. TotalProfitFraction,
  5593. TotalProfitMethod,
  5594. TotalProfitPerHourcurrencyCode,
  5595. TotalProfitPerHourcurrencySymbol,
  5596. TotalProfitPerHourFraction,
  5597. TotalProfitPerHourMethod,
  5598. TotalProfitPerHourValue,
  5599. TotalProfitPerHourValueType,
  5600. TotalProfitValue,
  5601. TotalProfitValueType,
  5602. TotalSellTaxcurrencyCode,
  5603. TotalSellTaxcurrencySymbol,
  5604. TotalSellTaxValue,
  5605. UseTaxcurrencyCode,
  5606. UseTaxcurrencySymbol,
  5607. UseTaxValue,
  5608. ValidityIsValid,
  5609. ValidityMessage,
  5610. woid)
  5611. SELECT BaseFacilityId,
  5612. BaselinePricecurrencyCode,
  5613. BaselinePricecurrencySymbol,
  5614. BaselinePriceValue,
  5615. BaselineProfitcurrencyCode,
  5616. BaselineProfitcurrencySymbol,
  5617. BaselineProfitFraction,
  5618. BaselineProfitMethod,
  5619. BaselineProfitValue,
  5620. BaselineProfitValueType,
  5621. BidOriginId,
  5622. BidOriginIdVersionStamp,
  5623. BudgetPriceAdjustmentFabricationcurrencyCode,
  5624. BudgetPriceAdjustmentFabricationcurrencySymbol,
  5625. BudgetPriceAdjustmentFabricationFraction,
  5626. BudgetPriceAdjustmentFabricationMethod,
  5627. BudgetPriceAdjustmentFabricationValue,
  5628. BudgetPriceAdjustmentFabricationValueType,
  5629. BudgetPriceAdjustmentInstallationcurrencyCode,
  5630. BudgetPriceAdjustmentInstallationcurrencySymbol,
  5631. BudgetPriceAdjustmentInstallationFraction,
  5632. BudgetPriceAdjustmentInstallationMethod,
  5633. BudgetPriceAdjustmentInstallationValue,
  5634. BudgetPriceAdjustmentInstallationValueType,
  5635. CashSummaryTotalCostcurrencyCode,
  5636. CashSummaryTotalCostcurrencySymbol,
  5637. CashSummaryTotalCostValue,
  5638. CashSummaryTotalProfitcurrencyCode,
  5639. CashSummaryTotalProfitcurrencySymbol,
  5640. CashSummaryTotalProfitFraction,
  5641. CashSummaryTotalProfitMethod,
  5642. CashSummaryTotalProfitValue,
  5643. CashSummaryTotalProfitValueType,
  5644. CostcurrencyCode,
  5645. CostcurrencySymbol,
  5646. CostValue,
  5647. CreatedBy,
  5648. CreatedDate,
  5649. DirectPriceAdjustmentFabricationcurrencyCode,
  5650. DirectPriceAdjustmentFabricationcurrencySymbol,
  5651. DirectPriceAdjustmentFabricationFraction,
  5652. DirectPriceAdjustmentFabricationMethod,
  5653. DirectPriceAdjustmentFabricationValue,
  5654. DirectPriceAdjustmentFabricationValueType,
  5655. DirectPriceAdjustmentInstallationcurrencyCode,
  5656. DirectPriceAdjustmentInstallationcurrencySymbol,
  5657. DirectPriceAdjustmentInstallationFraction,
  5658. DirectPriceAdjustmentInstallationMethod,
  5659. DirectPriceAdjustmentInstallationValue,
  5660. DirectPriceAdjustmentInstallationValueType,
  5661. DistributedCostRedistributionWeightcurrencyCode,
  5662. DistributedCostRedistributionWeightcurrencySymbol,
  5663. DistributedCostRedistributionWeightValue,
  5664. DistributedCostsVersionStamp,
  5665. EvaluatedCostObjectVersionStamp,
  5666. ExtendedFabricationCostcurrencyCode,
  5667. ExtendedFabricationCostcurrencySymbol,
  5668. ExtendedFabricationCostValue,
  5669. ExtendedInstallCostcurrencyCode,
  5670. ExtendedInstallCostcurrencySymbol,
  5671. ExtendedInstallCostValue,
  5672. ExtendedLaborCostcurrencyCode,
  5673. ExtendedLaborCostcurrencySymbol,
  5674. ExtendedLaborCostValue,
  5675. ExtendedMaterialCostcurrencyCode,
  5676. ExtendedMaterialCostcurrencySymbol,
  5677. ExtendedMaterialCostValue,
  5678. Id,
  5679. InstallBaselinePricecurrencyCode,
  5680. InstallBaselinePricecurrencySymbol,
  5681. InstallBaselinePriceValue,
  5682. InstallBaselineProfitcurrencyCode,
  5683. InstallBaselineProfitcurrencySymbol,
  5684. InstallBaselineProfitFraction,
  5685. InstallBaselineProfitMethod,
  5686. InstallBaselineProfitValue,
  5687. InstallBaselineProfitValueType,
  5688. InstallCostcurrencyCode,
  5689. InstallCostcurrencySymbol,
  5690. InstallCostValue,
  5691. InstallDurationSeconds,
  5692. InstallPreSellTaxPricecurrencyCode,
  5693. InstallPreSellTaxPricecurrencySymbol,
  5694. InstallPreSellTaxPriceValue,
  5695. InstallPriceAdjustmentcurrencyCode,
  5696. InstallPriceAdjustmentcurrencySymbol,
  5697. InstallPriceAdjustmentFraction,
  5698. InstallPriceAdjustmentMethod,
  5699. InstallPriceAdjustmentValue,
  5700. InstallPriceAdjustmentValueType,
  5701. InstallPricecurrencyCode,
  5702. InstallPricecurrencySymbol,
  5703. InstallPriceValue,
  5704. InstallProfitcurrencyCode,
  5705. InstallProfitcurrencySymbol,
  5706. InstallProfitFraction,
  5707. InstallProfitMethod,
  5708. InstallProfitPerHourcurrencyCode,
  5709. InstallProfitPerHourcurrencySymbol,
  5710. InstallProfitPerHourFraction,
  5711. InstallProfitPerHourMethod,
  5712. InstallProfitPerHourValue,
  5713. InstallProfitPerHourValueType,
  5714. InstallProfitValue,
  5715. InstallProfitValueType,
  5716. InstallSellTaxcurrencyCode,
  5717. InstallSellTaxcurrencySymbol,
  5718. InstallSellTaxValue,
  5719. InstallUseTaxcurrencyCode,
  5720. InstallUseTaxcurrencySymbol,
  5721. InstallUseTaxValue,
  5722. IsActive,
  5723. LaborDurationSeconds,
  5724. LaborProfitPerHourcurrencyCode,
  5725. LaborProfitPerHourcurrencySymbol,
  5726. LaborProfitPerHourFraction,
  5727. LaborProfitPerHourMethod,
  5728. LaborProfitPerHourValue,
  5729. LaborProfitPerHourValueType,
  5730. LibraryFabricationCostcurrencyCode,
  5731. LibraryFabricationCostcurrencySymbol,
  5732. LibraryFabricationCostValue,
  5733. LibraryInstallCostcurrencyCode,
  5734. LibraryInstallCostcurrencySymbol,
  5735. LibraryInstallCostValue,
  5736. LibraryMaterialCostcurrencyCode,
  5737. LibraryMaterialCostcurrencySymbol,
  5738. LibraryMaterialCostValue,
  5739. LibraryOverheadCostcurrencyCode,
  5740. LibraryOverheadCostcurrencySymbol,
  5741. LibraryOverheadCostValue,
  5742. ModifiedBy,
  5743. ModifiedDate,
  5744. PreSellTaxPricecurrencyCode,
  5745. PreSellTaxPricecurrencySymbol,
  5746. PreSellTaxPriceValue,
  5747. PriceAdjustmentcurrencyCode,
  5748. PriceAdjustmentcurrencySymbol,
  5749. PriceAdjustmentFraction,
  5750. PriceAdjustmentMethod,
  5751. PriceAdjustmentValue,
  5752. PriceAdjustmentValueType,
  5753. PriceAdjustmentVersionStamp,
  5754. PricecurrencyCode,
  5755. PricecurrencySymbol,
  5756. PriceValue,
  5757. ProfitcurrencyCode,
  5758. ProfitcurrencySymbol,
  5759. ProfitFraction,
  5760. ProfitMethod,
  5761. ProfitValue,
  5762. ProfitValueType,
  5763. SellTaxcurrencyCode,
  5764. SellTaxcurrencySymbol,
  5765. SellTaxValue,
  5766. TaxRegulationsType,
  5767. TaxRegulationsVersionStamp,
  5768. Tenant,
  5769. TotalCostcurrencyCode,
  5770. TotalCostcurrencySymbol,
  5771. TotalCostValue,
  5772. TotalDurationSeconds,
  5773. TotalPreSellTaxPricecurrencyCode,
  5774. TotalPreSellTaxPricecurrencySymbol,
  5775. TotalPreSellTaxPriceValue,
  5776. TotalPricecurrencyCode,
  5777. TotalPricecurrencySymbol,
  5778. TotalPriceValue,
  5779. TotalProfitcurrencyCode,
  5780. TotalProfitcurrencySymbol,
  5781. TotalProfitFraction,
  5782. TotalProfitMethod,
  5783. TotalProfitPerHourcurrencyCode,
  5784. TotalProfitPerHourcurrencySymbol,
  5785. TotalProfitPerHourFraction,
  5786. TotalProfitPerHourMethod,
  5787. TotalProfitPerHourValue,
  5788. TotalProfitPerHourValueType,
  5789. TotalProfitValue,
  5790. TotalProfitValueType,
  5791. TotalSellTaxcurrencyCode,
  5792. TotalSellTaxcurrencySymbol,
  5793. TotalSellTaxValue,
  5794. UseTaxcurrencyCode,
  5795. UseTaxcurrencySymbol,
  5796. UseTaxValue,
  5797. ValidityIsValid,
  5798. ValidityMessage,
  5799. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5800. FROM [BudgetCostObject]
  5801. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5802. INSERT INTO [DistributedCostSummary](BudgetCostObject_id,
  5803. Category,
  5804. CostCurrencyCode,
  5805. CostCurrencySymbol,
  5806. CostValue,
  5807. CreatedBy,
  5808. CreatedDate,
  5809. DistributedCostId,
  5810. Id,
  5811. IsActive,
  5812. ModifiedBy,
  5813. ModifiedDate,
  5814. Name,
  5815. Tenant,
  5816. BudgetCostObject_woid,
  5817. woid)
  5818. SELECT BudgetCostObject_id,
  5819. Category,
  5820. CostCurrencyCode,
  5821. CostCurrencySymbol,
  5822. CostValue,
  5823. CreatedBy,
  5824. CreatedDate,
  5825. DistributedCostId,
  5826. Id,
  5827. IsActive,
  5828. ModifiedBy,
  5829. ModifiedDate,
  5830. Name,
  5831. Tenant,
  5832. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5833. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5834. FROM [DistributedCostSummary]
  5835. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5836. INSERT INTO [MaterialCostSummary](BaseUoMName,
  5837. BudgetCostObject_id,
  5838. CreatedBy,
  5839. CreatedDate,
  5840. FacilityId,
  5841. Id,
  5842. IsActive,
  5843. MaterialId,
  5844. ModifiedBy,
  5845. ModifiedDate,
  5846. Name,
  5847. Quantity,
  5848. Tenant,
  5849. TotalCostcurrencyCode,
  5850. TotalCostcurrencySymbol,
  5851. TotalCostValue,
  5852. TotalProfitcurrencyCode,
  5853. TotalProfitcurrencySymbol,
  5854. TotalProfitFraction,
  5855. TotalProfitMethod,
  5856. TotalProfitValue,
  5857. TotalProfitValueType,
  5858. TotalSellcurrencyCode,
  5859. TotalSellcurrencySymbol,
  5860. TotalSellValue,
  5861. UnitCostcurrencyCode,
  5862. UnitCostcurrencySymbol,
  5863. UnitCostValue,
  5864. UnitProfitCurrencyCode,
  5865. UnitProfitCurrencySymbol,
  5866. UnitProfitFraction,
  5867. UnitProfitMethod,
  5868. UnitProfitValue,
  5869. UnitProfitValueType,
  5870. UnitSellCurrencyCode,
  5871. UnitSellCurrencySymbol,
  5872. UnitSellValue,
  5873. BudgetCostObject_woid,
  5874. woid)
  5875. SELECT BaseUoMName,
  5876. BudgetCostObject_id,
  5877. CreatedBy,
  5878. CreatedDate,
  5879. FacilityId,
  5880. Id,
  5881. IsActive,
  5882. MaterialId,
  5883. ModifiedBy,
  5884. ModifiedDate,
  5885. Name,
  5886. Quantity,
  5887. Tenant,
  5888. TotalCostcurrencyCode,
  5889. TotalCostcurrencySymbol,
  5890. TotalCostValue,
  5891. TotalProfitcurrencyCode,
  5892. TotalProfitcurrencySymbol,
  5893. TotalProfitFraction,
  5894. TotalProfitMethod,
  5895. TotalProfitValue,
  5896. TotalProfitValueType,
  5897. TotalSellcurrencyCode,
  5898. TotalSellcurrencySymbol,
  5899. TotalSellValue,
  5900. UnitCostcurrencyCode,
  5901. UnitCostcurrencySymbol,
  5902. UnitCostValue,
  5903. UnitProfitCurrencyCode,
  5904. UnitProfitCurrencySymbol,
  5905. UnitProfitFraction,
  5906. UnitProfitMethod,
  5907. UnitProfitValue,
  5908. UnitProfitValueType,
  5909. UnitSellCurrencyCode,
  5910. UnitSellCurrencySymbol,
  5911. UnitSellValue,
  5912. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5913. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5914. FROM [MaterialCostSummary]
  5915. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5916. INSERT INTO [MaterialKitSummary](BudgetCostObject_id,
  5917. CreatedBy,
  5918. CreatedDate,
  5919. FacilityId,
  5920. Id,
  5921. IsActive,
  5922. MaterialKitId,
  5923. ModifiedBy,
  5924. ModifiedDate,
  5925. Quantity,
  5926. Tenant,
  5927. BudgetCostObject_woid,
  5928. woid)
  5929. SELECT BudgetCostObject_id,
  5930. CreatedBy,
  5931. CreatedDate,
  5932. FacilityId,
  5933. Id,
  5934. IsActive,
  5935. MaterialKitId,
  5936. ModifiedBy,
  5937. ModifiedDate,
  5938. Quantity,
  5939. Tenant,
  5940. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5941. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5942. FROM [MaterialKitSummary]
  5943. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5944. INSERT INTO [CostObjectDistributedCost](CostObject_id,
  5945. CreatedBy,
  5946. CreatedDate,
  5947. DistributedCost_id,
  5948. Id,
  5949. IsActive,
  5950. ModifiedBy,
  5951. ModifiedDate,
  5952. Tenant,
  5953. CostObject_woid,
  5954. DistributedCost_woid,
  5955. woid)
  5956. SELECT CostObject_id,
  5957. CreatedBy,
  5958. CreatedDate,
  5959. DistributedCost_id,
  5960. Id,
  5961. IsActive,
  5962. ModifiedBy,
  5963. ModifiedDate,
  5964. Tenant,
  5965. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5966. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5967. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5968. FROM [CostObjectDistributedCost]
  5969. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5970. INSERT INTO [CostObjectTag](CostObject_id,
  5971. CreatedBy,
  5972. CreatedDate,
  5973. Id,
  5974. IsActive,
  5975. ModifiedBy,
  5976. ModifiedDate,
  5977. Tag_id,
  5978. Tenant,
  5979. CostObject_woid,
  5980. woid)
  5981. SELECT CostObject_id,
  5982. CreatedBy,
  5983. CreatedDate,
  5984. Id,
  5985. IsActive,
  5986. ModifiedBy,
  5987. ModifiedDate,
  5988. Tag_id,
  5989. Tenant,
  5990. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  5991. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  5992. FROM [CostObjectTag]
  5993. WHERE woid = '00000000-0000-0000-0000-000000000000'
  5994. INSERT INTO [AttachedProductTag](AttachedProduct_id,
  5995. CreatedBy,
  5996. CreatedDate,
  5997. Id,
  5998. IsActive,
  5999. ModifiedBy,
  6000. ModifiedDate,
  6001. Tag_id,
  6002. Tenant,
  6003. AttachedProduct_woid,
  6004. woid)
  6005. SELECT AttachedProduct_id,
  6006. CreatedBy,
  6007. CreatedDate,
  6008. Id,
  6009. IsActive,
  6010. ModifiedBy,
  6011. ModifiedDate,
  6012. Tag_id,
  6013. Tenant,
  6014. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6015. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6016. FROM [AttachedProductTag]
  6017. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6018. INSERT INTO [VariableSetInstance](CreatedBy,
  6019. CreatedDate,
  6020. Definition_id,
  6021. Id,
  6022. IsActive,
  6023. ModifiedBy,
  6024. ModifiedDate,
  6025. ProductEvaluationSpecification_id,
  6026. Tenant,
  6027. Value_id,
  6028. Definition_woid,
  6029. ProductEvaluationSpecification_woid,
  6030. Value_woid,
  6031. woid)
  6032. SELECT CreatedBy,
  6033. CreatedDate,
  6034. Definition_id,
  6035. Id,
  6036. IsActive,
  6037. ModifiedBy,
  6038. ModifiedDate,
  6039. ProductEvaluationSpecification_id,
  6040. Tenant,
  6041. Value_id,
  6042. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6043. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6044. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6045. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6046. FROM [VariableSetInstance]
  6047. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6048. INSERT INTO [CostFormulaAddition](Amount_id,
  6049. CreatedBy,
  6050. CreatedDate,
  6051. Description,
  6052. Id,
  6053. InlineFormula_id,
  6054. IsActive,
  6055. ModifiedBy,
  6056. ModifiedDate,
  6057. OrderIndex,
  6058. PartBase_id,
  6059. Tenant,
  6060. Amount_woid,
  6061. InlineFormula_woid,
  6062. PartBase_woid,
  6063. woid)
  6064. SELECT Amount_id,
  6065. CreatedBy,
  6066. CreatedDate,
  6067. Description,
  6068. Id,
  6069. InlineFormula_id,
  6070. IsActive,
  6071. ModifiedBy,
  6072. ModifiedDate,
  6073. OrderIndex,
  6074. PartBase_id,
  6075. Tenant,
  6076. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6077. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6078. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6079. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6080. FROM [CostFormulaAddition]
  6081. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6082. INSERT INTO [VariableDefinition](CreatedBy,
  6083. CreatedDate,
  6084. DefaultValue_id,
  6085. Description,
  6086. DisplayName,
  6087. Id,
  6088. IsActive,
  6089. IsInnergy,
  6090. Kind,
  6091. MaxValue,
  6092. MinValue,
  6093. ModifiedBy,
  6094. ModifiedDate,
  6095. Name,
  6096. Tenant,
  6097. Type_id,
  6098. ValidationType_id,
  6099. VariableCategory_id,
  6100. VariableSetDefinition_id,
  6101. DefaultValue_woid,
  6102. VariableCategory_woid,
  6103. VariableSetDefinition_woid,
  6104. woid)
  6105. SELECT CreatedBy,
  6106. CreatedDate,
  6107. null,
  6108. Description,
  6109. DisplayName,
  6110. Id,
  6111. IsActive,
  6112. IsInnergy,
  6113. Kind,
  6114. MaxValue,
  6115. MinValue,
  6116. ModifiedBy,
  6117. ModifiedDate,
  6118. Name,
  6119. Tenant,
  6120. Type_id,
  6121. ValidationType_id,
  6122. VariableCategory_id,
  6123. VariableSetDefinition_id,
  6124. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6125. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6126. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6127. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6128. FROM [VariableDefinition]
  6129. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6130. INSERT INTO [MaterialAddition](Amount_id,
  6131. CreatedBy,
  6132. CreatedDate,
  6133. Description,
  6134. Id,
  6135. IsActive,
  6136. Item_id,
  6137. ModifiedBy,
  6138. ModifiedDate,
  6139. OrderIndex,
  6140. Part_id,
  6141. Tenant,
  6142. Variable_id,
  6143. Amount_woid,
  6144. Item_woid,
  6145. Part_woid,
  6146. Variable_woid,
  6147. woid)
  6148. SELECT Amount_id,
  6149. CreatedBy,
  6150. CreatedDate,
  6151. Description,
  6152. Id,
  6153. IsActive,
  6154. Item_id,
  6155. ModifiedBy,
  6156. ModifiedDate,
  6157. OrderIndex,
  6158. Part_id,
  6159. Tenant,
  6160. Variable_id,
  6161. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6162. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6163. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6164. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6165. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6166. FROM [MaterialAddition]
  6167. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6168. INSERT INTO [VariableAddition](CreatedBy,
  6169. CreatedDate,
  6170. Id,
  6171. IsActive,
  6172. ModifiedBy,
  6173. ModifiedDate,
  6174. OrderIndex,
  6175. PartBase_id,
  6176. Tenant,
  6177. Variable_id,
  6178. PartBase_woid,
  6179. Variable_woid,
  6180. woid)
  6181. SELECT CreatedBy,
  6182. CreatedDate,
  6183. Id,
  6184. IsActive,
  6185. ModifiedBy,
  6186. ModifiedDate,
  6187. OrderIndex,
  6188. PartBase_id,
  6189. Tenant,
  6190. Variable_id,
  6191. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6192. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6193. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6194. FROM [VariableAddition]
  6195. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6196. INSERT INTO [VariableSetAddition](CreatedBy,
  6197. CreatedDate,
  6198. Id,
  6199. IsActive,
  6200. ModifiedBy,
  6201. ModifiedDate,
  6202. OrderIndex,
  6203. PartBase_id,
  6204. Tenant,
  6205. VariableSetDefinition_id,
  6206. PartBase_woid,
  6207. VariableSetDefinition_woid,
  6208. woid)
  6209. SELECT CreatedBy,
  6210. CreatedDate,
  6211. Id,
  6212. IsActive,
  6213. ModifiedBy,
  6214. ModifiedDate,
  6215. OrderIndex,
  6216. PartBase_id,
  6217. Tenant,
  6218. VariableSetDefinition_id,
  6219. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6220. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6221. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6222. FROM [VariableSetAddition]
  6223. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6224. INSERT INTO [EvaluationSnapshot](CreatedBy,
  6225. CreatedDate,
  6226. Id,
  6227. IsActive,
  6228. Location,
  6229. ModifiedBy,
  6230. ModifiedDate,
  6231. PartBase_id,
  6232. Quantity,
  6233. Tenant,
  6234. X,
  6235. Y,
  6236. Z,
  6237. PartBase_woid,
  6238. woid)
  6239. SELECT CreatedBy,
  6240. CreatedDate,
  6241. Id,
  6242. IsActive,
  6243. Location,
  6244. ModifiedBy,
  6245. ModifiedDate,
  6246. PartBase_id,
  6247. Quantity,
  6248. Tenant,
  6249. X,
  6250. Y,
  6251. Z,
  6252. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6253. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6254. FROM [EvaluationSnapshot]
  6255. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6256. INSERT INTO [EvaluationBundleSnapshot](BundleId,
  6257. CreatedBy,
  6258. CreatedDate,
  6259. EvaluationSnapshot_id,
  6260. Id,
  6261. IsActive,
  6262. ModifiedBy,
  6263. ModifiedDate,
  6264. SourcePath,
  6265. Tenant,
  6266. Value,
  6267. EvaluationSnapshot_woid,
  6268. woid)
  6269. SELECT BundleId,
  6270. CreatedBy,
  6271. CreatedDate,
  6272. EvaluationSnapshot_id,
  6273. Id,
  6274. IsActive,
  6275. ModifiedBy,
  6276. ModifiedDate,
  6277. SourcePath,
  6278. Tenant,
  6279. Value,
  6280. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6281. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6282. FROM [EvaluationBundleSnapshot]
  6283. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6284. INSERT INTO [EvaluationVariableSnapshot](CreatedBy,
  6285. CreatedDate,
  6286. EvaluationSnapshot_id,
  6287. Id,
  6288. IsActive,
  6289. ModifiedBy,
  6290. ModifiedDate,
  6291. SourcePath,
  6292. Tenant,
  6293. Value,
  6294. VariableId,
  6295. EvaluationSnapshot_woid,
  6296. woid)
  6297. SELECT CreatedBy,
  6298. CreatedDate,
  6299. EvaluationSnapshot_id,
  6300. Id,
  6301. IsActive,
  6302. ModifiedBy,
  6303. ModifiedDate,
  6304. SourcePath,
  6305. Tenant,
  6306. Value,
  6307. VariableId,
  6308. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6309. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6310. FROM [EvaluationVariableSnapshot]
  6311. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6312. INSERT INTO [PartAddition](Amount_id,
  6313. CreatedBy,
  6314. CreatedDate,
  6315. Description,
  6316. Id,
  6317. IsActive,
  6318. Item_id,
  6319. ModifiedBy,
  6320. ModifiedDate,
  6321. OrderIndex,
  6322. Part_id,
  6323. Tenant,
  6324. X_id,
  6325. Y_id,
  6326. Z_id,
  6327. Amount_woid,
  6328. Item_woid,
  6329. Part_woid,
  6330. woid,
  6331. X_woid,
  6332. Y_woid,
  6333. Z_woid)
  6334. SELECT Amount_id,
  6335. CreatedBy,
  6336. CreatedDate,
  6337. Description,
  6338. Id,
  6339. IsActive,
  6340. Item_id,
  6341. ModifiedBy,
  6342. ModifiedDate,
  6343. OrderIndex,
  6344. Part_id,
  6345. Tenant,
  6346. X_id,
  6347. Y_id,
  6348. Z_id,
  6349. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6350. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6351. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6352. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6353. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6354. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6355. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6356. FROM [PartAddition]
  6357. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6358. INSERT INTO [OperationType](CreatedBy,
  6359. CreatedDate,
  6360. Id,
  6361. IsActive,
  6362. IsRequired,
  6363. ModifiedBy,
  6364. ModifiedDate,
  6365. Name,
  6366. OrderIndex,
  6367. Tenant,
  6368. Value,
  6369. woid)
  6370. SELECT CreatedBy,
  6371. CreatedDate,
  6372. Id,
  6373. IsActive,
  6374. IsRequired,
  6375. ModifiedBy,
  6376. ModifiedDate,
  6377. Name,
  6378. OrderIndex,
  6379. Tenant,
  6380. Value,
  6381. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6382. FROM [OperationType]
  6383. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6384. INSERT INTO [OperationCategory](CreatedBy,
  6385. CreatedDate,
  6386. Id,
  6387. IsActive,
  6388. IsInnergy,
  6389. ModifiedBy,
  6390. ModifiedDate,
  6391. Name,
  6392. Parent_id,
  6393. Tenant,
  6394. Parent_woid,
  6395. woid)
  6396. SELECT CreatedBy,
  6397. CreatedDate,
  6398. Id,
  6399. IsActive,
  6400. IsInnergy,
  6401. ModifiedBy,
  6402. ModifiedDate,
  6403. Name,
  6404. Parent_id,
  6405. Tenant,
  6406. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6407. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6408. FROM [OperationCategory]
  6409. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6410. INSERT INTO [Operation](BaseUom_id,
  6411. Category_id,
  6412. CreatedBy,
  6413. CreatedDate,
  6414. Description,
  6415. Id,
  6416. Included,
  6417. IsActive,
  6418. IsInnergy,
  6419. ModifiedBy,
  6420. ModifiedDate,
  6421. Name,
  6422. NotIncluded,
  6423. OperationType_Id,
  6424. SequenceIdentifier,
  6425. Tenant,
  6426. Category_woid,
  6427. OperationType_woid,
  6428. woid)
  6429. SELECT BaseUom_id,
  6430. Category_id,
  6431. CreatedBy,
  6432. CreatedDate,
  6433. Description,
  6434. Id,
  6435. Included,
  6436. IsActive,
  6437. IsInnergy,
  6438. ModifiedBy,
  6439. ModifiedDate,
  6440. Name,
  6441. NotIncluded,
  6442. OperationType_Id,
  6443. SequenceIdentifier,
  6444. Tenant,
  6445. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6446. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6447. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6448. FROM [Operation]
  6449. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6450. INSERT INTO [VariableValue](Boolean,
  6451. CreatedBy,
  6452. CreatedDate,
  6453. Id,
  6454. IsActive,
  6455. Material_id,
  6456. ModifiedBy,
  6457. ModifiedDate,
  6458. Number,
  6459. Operation_id,
  6460. Tenant,
  6461. Text,
  6462. Type_id,
  6463. VariableDefinition_id,
  6464. Material_woid,
  6465. Operation_woid,
  6466. VariableDefinition_woid,
  6467. woid)
  6468. SELECT Boolean,
  6469. CreatedBy,
  6470. CreatedDate,
  6471. Id,
  6472. IsActive,
  6473. Material_id,
  6474. ModifiedBy,
  6475. ModifiedDate,
  6476. Number,
  6477. Operation_id,
  6478. Tenant,
  6479. Text,
  6480. Type_id,
  6481. VariableDefinition_id,
  6482. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6483. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6484. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6485. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6486. FROM [VariableValue]
  6487. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6488. UPDATE vd
  6489. SET vd.[DefaultValue_id] = (
  6490. SELECT DefaultValue_id
  6491. FROM [VariableDefinition]
  6492. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6493. AND Id = vd.[Id]),
  6494. vd.[DefaultValue_woid] = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6495. FROM [VariableDefinition] vd
  6496. WHERE vd.woid = '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6497. AND vd.[DefaultValue_id] IS NULL
  6498. INSERT INTO [VariableInstance](CreatedBy,
  6499. CreatedDate,
  6500. Definition_id,
  6501. Id,
  6502. IsActive,
  6503. ModifiedBy,
  6504. ModifiedDate,
  6505. ProductEvaluationSpecification_id,
  6506. Tenant,
  6507. Value_id,
  6508. VariableSetValue_id,
  6509. Definition_woid,
  6510. ProductEvaluationSpecification_woid,
  6511. Value_woid,
  6512. VariableSetValue_woid,
  6513. woid)
  6514. SELECT CreatedBy,
  6515. CreatedDate,
  6516. Definition_id,
  6517. Id,
  6518. IsActive,
  6519. ModifiedBy,
  6520. ModifiedDate,
  6521. ProductEvaluationSpecification_id,
  6522. Tenant,
  6523. Value_id,
  6524. VariableSetValue_id,
  6525. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6526. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6527. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6528. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6529. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6530. FROM [VariableInstance]
  6531. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6532. INSERT INTO [OperationAddition](Amount_id,
  6533. CreatedBy,
  6534. CreatedDate,
  6535. Description,
  6536. Id,
  6537. IsActive,
  6538. Item_id,
  6539. ModifiedBy,
  6540. ModifiedDate,
  6541. OrderIndex,
  6542. Part_id,
  6543. Tenant,
  6544. Variable_id,
  6545. Amount_woid,
  6546. Item_woid,
  6547. Part_woid,
  6548. Variable_woid,
  6549. woid)
  6550. SELECT Amount_id,
  6551. CreatedBy,
  6552. CreatedDate,
  6553. Description,
  6554. Id,
  6555. IsActive,
  6556. Item_id,
  6557. ModifiedBy,
  6558. ModifiedDate,
  6559. OrderIndex,
  6560. Part_id,
  6561. Tenant,
  6562. Variable_id,
  6563. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6564. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6565. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6566. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6567. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6568. FROM [OperationAddition]
  6569. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6570. INSERT INTO [ProductivityRegister](CreatedBy,
  6571. CreatedDate,
  6572. Entries,
  6573. Id,
  6574. InitialState,
  6575. IsActive,
  6576. ModifiedBy,
  6577. ModifiedDate,
  6578. Tenant,
  6579. woid)
  6580. SELECT CreatedBy,
  6581. CreatedDate,
  6582. Entries,
  6583. Id,
  6584. InitialState,
  6585. IsActive,
  6586. ModifiedBy,
  6587. ModifiedDate,
  6588. Tenant,
  6589. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6590. FROM [ProductivityRegister]
  6591. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6592. INSERT INTO [PrecedingOperation](CreatedBy,
  6593. CreatedDate,
  6594. Id,
  6595. IsActive,
  6596. ModifiedBy,
  6597. ModifiedDate,
  6598. Operation_id,
  6599. Predecessor_id,
  6600. Tenant,
  6601. Operation_woid,
  6602. Predecessor_woid,
  6603. woid)
  6604. SELECT CreatedBy,
  6605. CreatedDate,
  6606. Id,
  6607. IsActive,
  6608. ModifiedBy,
  6609. ModifiedDate,
  6610. Operation_id,
  6611. Predecessor_id,
  6612. Tenant,
  6613. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6614. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6615. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6616. FROM [PrecedingOperation]
  6617. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6618. INSERT INTO [LaborItem](Category_id,
  6619. CreatedBy,
  6620. CreatedDate,
  6621. Department_id,
  6622. directcostcurrencyCode,
  6623. directcostcurrencySymbol,
  6624. DirectCostDataSource,
  6625. directcostValue,
  6626. Id,
  6627. IsActive,
  6628. Location_id,
  6629. ModifiedBy,
  6630. ModifiedDate,
  6631. Name,
  6632. profitcurrencyCode,
  6633. profitcurrencySymbol,
  6634. profitFraction,
  6635. profitMethod,
  6636. profitValue,
  6637. profitValueType,
  6638. Tenant,
  6639. totalcostcurrencyCode,
  6640. totalcostcurrencySymbol,
  6641. totalcostValue,
  6642. TotalLaborTime,
  6643. totalsellcurrencyCode,
  6644. totalsellcurrencySymbol,
  6645. totalsellValue,
  6646. Unit,
  6647. Category_woid,
  6648. Location_woid,
  6649. woid)
  6650. SELECT Category_id,
  6651. CreatedBy,
  6652. CreatedDate,
  6653. Department_id,
  6654. directcostcurrencyCode,
  6655. directcostcurrencySymbol,
  6656. DirectCostDataSource,
  6657. directcostValue,
  6658. Id,
  6659. IsActive,
  6660. Location_id,
  6661. ModifiedBy,
  6662. ModifiedDate,
  6663. Name,
  6664. profitcurrencyCode,
  6665. profitcurrencySymbol,
  6666. profitFraction,
  6667. profitMethod,
  6668. profitValue,
  6669. profitValueType,
  6670. Tenant,
  6671. totalcostcurrencyCode,
  6672. totalcostcurrencySymbol,
  6673. totalcostValue,
  6674. TotalLaborTime,
  6675. totalsellcurrencyCode,
  6676. totalsellcurrencySymbol,
  6677. totalsellValue,
  6678. Unit,
  6679. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6680. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6681. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6682. FROM [LaborItem]
  6683. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6684. INSERT INTO [OperationCostSummary](BaseUoMName,
  6685. BudgetCostObject_id,
  6686. CreatedBy,
  6687. CreatedDate,
  6688. Duration,
  6689. FacilityId,
  6690. HourlyRatecurrencyCode,
  6691. HourlyRatecurrencySymbol,
  6692. HourlyRateValue,
  6693. Id,
  6694. IsActive,
  6695. LaborItemId,
  6696. LaborItemName,
  6697. ModifiedBy,
  6698. ModifiedDate,
  6699. OperationId,
  6700. OperationName,
  6701. OperationType,
  6702. Quantity,
  6703. Tenant,
  6704. TotalCostcurrencyCode,
  6705. TotalCostcurrencySymbol,
  6706. TotalCostValue,
  6707. TotalProfitcurrencyCode,
  6708. TotalProfitcurrencySymbol,
  6709. TotalProfitFraction,
  6710. TotalProfitMethod,
  6711. TotalProfitValue,
  6712. TotalProfitValueType,
  6713. TotalSellcurrencyCode,
  6714. TotalSellcurrencySymbol,
  6715. TotalSellValue,
  6716. UnitCostcurrencyCode,
  6717. UnitCostcurrencySymbol,
  6718. UnitCostValue,
  6719. BudgetCostObject_woid,
  6720. LaborItemwoid,
  6721. woid)
  6722. SELECT BaseUoMName,
  6723. BudgetCostObject_id,
  6724. CreatedBy,
  6725. CreatedDate,
  6726. Duration,
  6727. FacilityId,
  6728. HourlyRatecurrencyCode,
  6729. HourlyRatecurrencySymbol,
  6730. HourlyRateValue,
  6731. Id,
  6732. IsActive,
  6733. LaborItemId,
  6734. LaborItemName,
  6735. ModifiedBy,
  6736. ModifiedDate,
  6737. OperationId,
  6738. OperationName,
  6739. OperationType,
  6740. Quantity,
  6741. Tenant,
  6742. TotalCostcurrencyCode,
  6743. TotalCostcurrencySymbol,
  6744. TotalCostValue,
  6745. TotalProfitcurrencyCode,
  6746. TotalProfitcurrencySymbol,
  6747. TotalProfitFraction,
  6748. TotalProfitMethod,
  6749. TotalProfitValue,
  6750. TotalProfitValueType,
  6751. TotalSellcurrencyCode,
  6752. TotalSellcurrencySymbol,
  6753. TotalSellValue,
  6754. UnitCostcurrencyCode,
  6755. UnitCostcurrencySymbol,
  6756. UnitCostValue,
  6757. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6758. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6759. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6760. FROM [OperationCostSummary]
  6761. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6762. INSERT INTO [OperationDuration](CreatedBy,
  6763. CreatedDate,
  6764. Equation,
  6765. Id,
  6766. IsActive,
  6767. LaborItem_id,
  6768. Location_id,
  6769. ModifiedBy,
  6770. ModifiedDate,
  6771. Operation_id,
  6772. ProductivityRegister_id,
  6773. RegressionMethod,
  6774. RSquared,
  6775. Tenant,
  6776. TimeUnit,
  6777. LaborItem_woid,
  6778. Location_woid,
  6779. Operation_woid,
  6780. ProductivityRegister_woid,
  6781. woid)
  6782. SELECT CreatedBy,
  6783. CreatedDate,
  6784. Equation,
  6785. Id,
  6786. IsActive,
  6787. LaborItem_id,
  6788. Location_id,
  6789. ModifiedBy,
  6790. ModifiedDate,
  6791. Operation_id,
  6792. ProductivityRegister_id,
  6793. RegressionMethod,
  6794. RSquared,
  6795. Tenant,
  6796. TimeUnit,
  6797. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6798. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6799. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6800. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6801. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6802. FROM [OperationDuration]
  6803. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6804. INSERT INTO [MaterialCategory](CreatedBy,
  6805. CreatedDate,
  6806. Id,
  6807. IsActive,
  6808. IsInnergy,
  6809. ModifiedBy,
  6810. ModifiedDate,
  6811. Name,
  6812. Parent_id,
  6813. Tenant,
  6814. Type,
  6815. Parent_woid,
  6816. woid)
  6817. SELECT CreatedBy,
  6818. CreatedDate,
  6819. Id,
  6820. IsActive,
  6821. IsInnergy,
  6822. ModifiedBy,
  6823. ModifiedDate,
  6824. Name,
  6825. Parent_id,
  6826. Tenant,
  6827. Type,
  6828. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6829. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6830. FROM [MaterialCategory]
  6831. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6832. INSERT INTO [MaterialKit](Category_id,
  6833. CostcurrencyCode,
  6834. CostcurrencySymbol,
  6835. CostDataSource,
  6836. CostValue,
  6837. CreatedBy,
  6838. CreatedDate,
  6839. Id,
  6840. IsActive,
  6841. IsInnergy,
  6842. ModifiedBy,
  6843. ModifiedDate,
  6844. Name,
  6845. ProfitcurrencyCode,
  6846. ProfitcurrencySymbol,
  6847. ProfitFraction,
  6848. ProfitMethod,
  6849. ProfitValue,
  6850. ProfitValueType,
  6851. SellcurrencyCode,
  6852. SellcurrencySymbol,
  6853. SellValue,
  6854. SequenceIdentifier,
  6855. Status,
  6856. Tenant,
  6857. Category_woid,
  6858. woid)
  6859. SELECT Category_id,
  6860. CostcurrencyCode,
  6861. CostcurrencySymbol,
  6862. CostDataSource,
  6863. CostValue,
  6864. CreatedBy,
  6865. CreatedDate,
  6866. Id,
  6867. IsActive,
  6868. IsInnergy,
  6869. ModifiedBy,
  6870. ModifiedDate,
  6871. Name,
  6872. ProfitcurrencyCode,
  6873. ProfitcurrencySymbol,
  6874. ProfitFraction,
  6875. ProfitMethod,
  6876. ProfitValue,
  6877. ProfitValueType,
  6878. SellcurrencyCode,
  6879. SellcurrencySymbol,
  6880. SellValue,
  6881. SequenceIdentifier,
  6882. Status,
  6883. Tenant,
  6884. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6885. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6886. FROM [MaterialKit]
  6887. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6888. INSERT INTO [AssemblyAddition](Amount_id,
  6889. CreatedBy,
  6890. CreatedDate,
  6891. Description,
  6892. Id,
  6893. IsActive,
  6894. Item_id,
  6895. ModifiedBy,
  6896. ModifiedDate,
  6897. OrderIndex,
  6898. Part_id,
  6899. Tenant,
  6900. X_id,
  6901. Y_id,
  6902. Z_id,
  6903. Amount_woid,
  6904. Item_woid,
  6905. Part_woid,
  6906. woid,
  6907. X_woid,
  6908. Y_woid,
  6909. Z_woid)
  6910. SELECT Amount_id,
  6911. CreatedBy,
  6912. CreatedDate,
  6913. Description,
  6914. Id,
  6915. IsActive,
  6916. Item_id,
  6917. ModifiedBy,
  6918. ModifiedDate,
  6919. OrderIndex,
  6920. Part_id,
  6921. Tenant,
  6922. X_id,
  6923. Y_id,
  6924. Z_id,
  6925. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6926. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6927. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6928. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6929. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6930. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6931. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6932. FROM [AssemblyAddition]
  6933. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6934. INSERT INTO [PartBaseAdditionDefinedValue](AssemblyAddition_id,
  6935. CreatedBy,
  6936. CreatedDate,
  6937. Id,
  6938. InlineFormula_id,
  6939. IsActive,
  6940. ModifiedBy,
  6941. ModifiedDate,
  6942. PartAddition_id,
  6943. Tenant,
  6944. Type,
  6945. VariableDefinition_id,
  6946. VariableValue_id,
  6947. AssemblyAddition_woid,
  6948. InlineFormula_woid,
  6949. PartAddition_woid,
  6950. VariableDefinition_woid,
  6951. VariableValue_woid,
  6952. woid)
  6953. SELECT AssemblyAddition_id,
  6954. CreatedBy,
  6955. CreatedDate,
  6956. Id,
  6957. InlineFormula_id,
  6958. IsActive,
  6959. ModifiedBy,
  6960. ModifiedDate,
  6961. PartAddition_id,
  6962. Tenant,
  6963. Type,
  6964. VariableDefinition_id,
  6965. VariableValue_id,
  6966. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6967. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6968. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6969. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6970. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  6971. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6972. FROM [PartBaseAdditionDefinedValue]
  6973. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6974. INSERT INTO [CharacteristicType](CreatedBy,
  6975. CreatedDate,
  6976. Id,
  6977. IsActive,
  6978. ModifiedBy,
  6979. ModifiedDate,
  6980. Name,
  6981. OrderIndex,
  6982. Tenant,
  6983. woid)
  6984. SELECT CreatedBy,
  6985. CreatedDate,
  6986. Id,
  6987. IsActive,
  6988. ModifiedBy,
  6989. ModifiedDate,
  6990. Name,
  6991. OrderIndex,
  6992. Tenant,
  6993. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  6994. FROM [CharacteristicType]
  6995. WHERE woid = '00000000-0000-0000-0000-000000000000'
  6996. INSERT INTO [CustomMaterialCharacteristic](Characteristic_id,
  6997. CreatedBy,
  6998. CreatedDate,
  6999. CustomMaterial_id,
  7000. Id,
  7001. IsActive,
  7002. ModifiedBy,
  7003. ModifiedDate,
  7004. Tenant,
  7005. Characteristic_woid,
  7006. CustomMaterial_woid,
  7007. woid)
  7008. SELECT Characteristic_id,
  7009. CreatedBy,
  7010. CreatedDate,
  7011. CustomMaterial_id,
  7012. Id,
  7013. IsActive,
  7014. ModifiedBy,
  7015. ModifiedDate,
  7016. Tenant,
  7017. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7018. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7019. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7020. FROM [CustomMaterialCharacteristic]
  7021. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7022. INSERT INTO [Material](Category_id,
  7023. CostcurrencyCode,
  7024. CostcurrencySymbol,
  7025. CostDataSource,
  7026. CostValue,
  7027. CreatedBy,
  7028. CreatedDate,
  7029. DefaultCommonSize_id,
  7030. Description,
  7031. ExternalApproval,
  7032. GrainDirection,
  7033. Id,
  7034. Inventoried,
  7035. IsActive,
  7036. IsInnergy,
  7037. ManufacturerSku,
  7038. ManufacturerUrlLinkAddress,
  7039. ModifiedBy,
  7040. ModifiedDate,
  7041. Name,
  7042. ProfitcurrencyCode,
  7043. ProfitcurrencySymbol,
  7044. ProfitFraction,
  7045. ProfitMethod,
  7046. ProfitValue,
  7047. ProfitValueType,
  7048. PurchaseUomGroup_id,
  7049. SellcurrencyCode,
  7050. SellcurrencySymbol,
  7051. SellValue,
  7052. SequenceIdentifier,
  7053. Status,
  7054. Tenant,
  7055. WeightSymbol,
  7056. WeightUnit,
  7057. WeightValue,
  7058. Category_woid,
  7059. DefaultCommonSize_woid,
  7060. PurchaseUomGroup_woid,
  7061. woid)
  7062. SELECT Category_id,
  7063. CostcurrencyCode,
  7064. CostcurrencySymbol,
  7065. CostDataSource,
  7066. CostValue,
  7067. CreatedBy,
  7068. CreatedDate,
  7069. DefaultCommonSize_id,
  7070. Description,
  7071. ExternalApproval,
  7072. GrainDirection,
  7073. Id,
  7074. Inventoried,
  7075. IsActive,
  7076. IsInnergy,
  7077. ManufacturerSku,
  7078. ManufacturerUrlLinkAddress,
  7079. ModifiedBy,
  7080. ModifiedDate,
  7081. Name,
  7082. ProfitcurrencyCode,
  7083. ProfitcurrencySymbol,
  7084. ProfitFraction,
  7085. ProfitMethod,
  7086. ProfitValue,
  7087. ProfitValueType,
  7088. PurchaseUomGroup_id,
  7089. SellcurrencyCode,
  7090. SellcurrencySymbol,
  7091. SellValue,
  7092. SequenceIdentifier,
  7093. Status,
  7094. Tenant,
  7095. WeightSymbol,
  7096. WeightUnit,
  7097. WeightValue,
  7098. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7099. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7100. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7101. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7102. FROM [Material]
  7103. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7104. INSERT INTO [MaterialKitMaterial](CreatedBy,
  7105. CreatedDate,
  7106. Id,
  7107. IsActive,
  7108. Material_id,
  7109. MaterialAmount,
  7110. MaterialKit_id,
  7111. ModifiedBy,
  7112. ModifiedDate,
  7113. Tenant,
  7114. Material_woid,
  7115. MaterialKit_woid,
  7116. woid)
  7117. SELECT CreatedBy,
  7118. CreatedDate,
  7119. Id,
  7120. IsActive,
  7121. Material_id,
  7122. MaterialAmount,
  7123. MaterialKit_id,
  7124. ModifiedBy,
  7125. ModifiedDate,
  7126. Tenant,
  7127. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7128. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7129. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7130. FROM [MaterialKitMaterial]
  7131. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7132. INSERT INTO [MaterialCharacteristic](Characteristic_id,
  7133. CreatedBy,
  7134. CreatedDate,
  7135. Id,
  7136. IsActive,
  7137. Material_id,
  7138. ModifiedBy,
  7139. ModifiedDate,
  7140. Tenant,
  7141. Characteristic_woid,
  7142. Material_woid,
  7143. woid)
  7144. SELECT Characteristic_id,
  7145. CreatedBy,
  7146. CreatedDate,
  7147. Id,
  7148. IsActive,
  7149. Material_id,
  7150. ModifiedBy,
  7151. ModifiedDate,
  7152. Tenant,
  7153. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7154. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7155. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7156. FROM [MaterialCharacteristic]
  7157. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7158. INSERT INTO [MaterialSubstitute](CreatedBy,
  7159. CreatedDate,
  7160. Id,
  7161. IsActive,
  7162. Material_id,
  7163. ModifiedBy,
  7164. ModifiedDate,
  7165. Substitute_id,
  7166. Tenant,
  7167. Material_woid,
  7168. Substitute_woid,
  7169. woid)
  7170. SELECT CreatedBy,
  7171. CreatedDate,
  7172. Id,
  7173. IsActive,
  7174. Material_id,
  7175. ModifiedBy,
  7176. ModifiedDate,
  7177. Substitute_id,
  7178. Tenant,
  7179. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7180. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7181. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7182. FROM [MaterialSubstitute]
  7183. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7184. INSERT INTO [BurdenCategory](CreatedBy,
  7185. CreatedDate,
  7186. Id,
  7187. IsActive,
  7188. ModifiedBy,
  7189. ModifiedDate,
  7190. Name,
  7191. Parent_id,
  7192. Tenant,
  7193. Parent_woid,
  7194. woid)
  7195. SELECT CreatedBy,
  7196. CreatedDate,
  7197. Id,
  7198. IsActive,
  7199. ModifiedBy,
  7200. ModifiedDate,
  7201. Name,
  7202. Parent_id,
  7203. Tenant,
  7204. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7205. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7206. FROM [BurdenCategory]
  7207. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7208. INSERT INTO [Burden](BurdenValueSource,
  7209. Category_id,
  7210. CreatedBy,
  7211. CreatedDate,
  7212. currencyCode,
  7213. currencySymbol,
  7214. Fraction,
  7215. Id,
  7216. IsActive,
  7217. ModifiedBy,
  7218. ModifiedDate,
  7219. Name,
  7220. Tenant,
  7221. Value,
  7222. Category_woid,
  7223. woid)
  7224. SELECT BurdenValueSource,
  7225. Category_id,
  7226. CreatedBy,
  7227. CreatedDate,
  7228. currencyCode,
  7229. currencySymbol,
  7230. Fraction,
  7231. Id,
  7232. IsActive,
  7233. ModifiedBy,
  7234. ModifiedDate,
  7235. Name,
  7236. Tenant,
  7237. Value,
  7238. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7239. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7240. FROM [Burden]
  7241. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7242. INSERT INTO [LaborItemBurden](Burden_id,
  7243. CreatedBy,
  7244. CreatedDate,
  7245. Id,
  7246. IsActive,
  7247. LaborItem_id,
  7248. ModifiedBy,
  7249. ModifiedDate,
  7250. Tenant,
  7251. Burden_woid,
  7252. LaborItem_woid,
  7253. woid)
  7254. SELECT Burden_id,
  7255. CreatedBy,
  7256. CreatedDate,
  7257. Id,
  7258. IsActive,
  7259. LaborItem_id,
  7260. ModifiedBy,
  7261. ModifiedDate,
  7262. Tenant,
  7263. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7264. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7265. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7266. FROM [LaborItemBurden]
  7267. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7268. INSERT INTO [SummaryBurden](Category_id,
  7269. CreatedBy,
  7270. CreatedDate,
  7271. currencyCode,
  7272. currencySymbol,
  7273. Id,
  7274. IsActive,
  7275. ModifiedBy,
  7276. ModifiedDate,
  7277. Name,
  7278. Tenant,
  7279. TotalLaborTime,
  7280. Value,
  7281. Category_woid,
  7282. woid)
  7283. SELECT Category_id,
  7284. CreatedBy,
  7285. CreatedDate,
  7286. currencyCode,
  7287. currencySymbol,
  7288. Id,
  7289. IsActive,
  7290. ModifiedBy,
  7291. ModifiedDate,
  7292. Name,
  7293. Tenant,
  7294. TotalLaborTime,
  7295. Value,
  7296. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7297. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7298. FROM [SummaryBurden]
  7299. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7300. INSERT INTO [FormulaCategory](CreatedBy,
  7301. CreatedDate,
  7302. Id,
  7303. IsActive,
  7304. IsInnergy,
  7305. ModifiedBy,
  7306. ModifiedDate,
  7307. Name,
  7308. Parent_id,
  7309. Tenant,
  7310. Parent_woid,
  7311. woid)
  7312. SELECT CreatedBy,
  7313. CreatedDate,
  7314. Id,
  7315. IsActive,
  7316. IsInnergy,
  7317. ModifiedBy,
  7318. ModifiedDate,
  7319. Name,
  7320. Parent_id,
  7321. Tenant,
  7322. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7323. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7324. FROM [FormulaCategory]
  7325. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7326. INSERT INTO [FormulaArgument](CreatedBy,
  7327. CreatedDate,
  7328. Formula_id,
  7329. Id,
  7330. IsActive,
  7331. ModifiedBy,
  7332. ModifiedDate,
  7333. Name,
  7334. OrderIndex,
  7335. Tenant,
  7336. TypeKind,
  7337. Formula_woid,
  7338. woid)
  7339. SELECT CreatedBy,
  7340. CreatedDate,
  7341. Formula_id,
  7342. Id,
  7343. IsActive,
  7344. ModifiedBy,
  7345. ModifiedDate,
  7346. Name,
  7347. OrderIndex,
  7348. Tenant,
  7349. TypeKind,
  7350. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7351. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7352. FROM [FormulaArgument]
  7353. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7354. INSERT INTO [ReusableFormula](Category_id,
  7355. Formula_id,
  7356. IsInnergy,
  7357. Name,
  7358. Category_woid,
  7359. Formula_woid)
  7360. SELECT Category_id,
  7361. Formula_id,
  7362. IsInnergy,
  7363. Name,
  7364. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7365. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7366. FROM [ReusableFormula]
  7367. WHERE Formula_woid = '00000000-0000-0000-0000-000000000000'
  7368. INSERT INTO [FormulaDependency](Child_id,
  7369. CreatedBy,
  7370. CreatedDate,
  7371. Id,
  7372. IsActive,
  7373. ModifiedBy,
  7374. ModifiedDate,
  7375. Parent_id,
  7376. Tenant,
  7377. Child_woid,
  7378. Parent_woid,
  7379. woid)
  7380. SELECT Child_id,
  7381. CreatedBy,
  7382. CreatedDate,
  7383. Id,
  7384. IsActive,
  7385. ModifiedBy,
  7386. ModifiedDate,
  7387. Parent_id,
  7388. Tenant,
  7389. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7390. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7391. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7392. FROM [FormulaDependency]
  7393. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7394. INSERT INTO [TaxRegulations](CreatedBy,
  7395. CreatedDate,
  7396. Id,
  7397. IsActive,
  7398. ModifiedBy,
  7399. ModifiedDate,
  7400. Tenant,
  7401. Type,
  7402. UseMarginFraction,
  7403. woid)
  7404. SELECT CreatedBy,
  7405. CreatedDate,
  7406. Id,
  7407. IsActive,
  7408. ModifiedBy,
  7409. ModifiedDate,
  7410. Tenant,
  7411. Type,
  7412. UseMarginFraction,
  7413. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7414. FROM [TaxRegulations]
  7415. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7416. INSERT INTO [TaxQuestionnaireAnswer](AnswerType,
  7417. CreatedBy,
  7418. CreatedDate,
  7419. Id,
  7420. IsActive,
  7421. ModifiedBy,
  7422. ModifiedDate,
  7423. TaxRegulations_id,
  7424. Tenant,
  7425. TaxRegulations_woid,
  7426. woid)
  7427. SELECT AnswerType,
  7428. CreatedBy,
  7429. CreatedDate,
  7430. Id,
  7431. IsActive,
  7432. ModifiedBy,
  7433. ModifiedDate,
  7434. TaxRegulations_id,
  7435. Tenant,
  7436. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7437. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7438. FROM [TaxQuestionnaireAnswer]
  7439. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7440. INSERT INTO [TaxQuestionNote](Content,
  7441. CreatedBy,
  7442. CreatedDate,
  7443. Id,
  7444. IsActive,
  7445. ModifiedBy,
  7446. ModifiedDate,
  7447. QuestionCategory,
  7448. TaxRegulations_id,
  7449. Tenant,
  7450. TaxRegulations_woid,
  7451. woid)
  7452. SELECT Content,
  7453. CreatedBy,
  7454. CreatedDate,
  7455. Id,
  7456. IsActive,
  7457. ModifiedBy,
  7458. ModifiedDate,
  7459. QuestionCategory,
  7460. TaxRegulations_id,
  7461. Tenant,
  7462. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7463. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7464. FROM [TaxQuestionNote]
  7465. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7466. INSERT INTO [TaxRate](CreatedBy,
  7467. CreatedDate,
  7468. Description,
  7469. Id,
  7470. IsActive,
  7471. ModifiedBy,
  7472. ModifiedDate,
  7473. Name,
  7474. RateFraction,
  7475. TaxRegulations_id,
  7476. Tenant,
  7477. TaxRegulations_woid,
  7478. woid)
  7479. SELECT CreatedBy,
  7480. CreatedDate,
  7481. Description,
  7482. Id,
  7483. IsActive,
  7484. ModifiedBy,
  7485. ModifiedDate,
  7486. Name,
  7487. RateFraction,
  7488. TaxRegulations_id,
  7489. Tenant,
  7490. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7491. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7492. FROM [TaxRate]
  7493. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7494. INSERT INTO [ImageAttachment](CreatedBy,
  7495. CreatedDate,
  7496. Id,
  7497. Image_id,
  7498. ImageIdentifier,
  7499. ImageName,
  7500. IsActive,
  7501. ModifiedBy,
  7502. ModifiedDate,
  7503. Name,
  7504. Tenant,
  7505. ThumbnailIdentifier,
  7506. ThumbnailName,
  7507. Image_woid,
  7508. woid)
  7509. SELECT CreatedBy,
  7510. CreatedDate,
  7511. Id,
  7512. Image_id,
  7513. ImageIdentifier,
  7514. ImageName,
  7515. IsActive,
  7516. ModifiedBy,
  7517. ModifiedDate,
  7518. Name,
  7519. Tenant,
  7520. ThumbnailIdentifier,
  7521. ThumbnailName,
  7522. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7523. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7524. FROM [ImageAttachment]
  7525. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7526. INSERT INTO [TypicalGroupMarker](blueprintId,
  7527. CreatedBy,
  7528. CreatedDate,
  7529. DisplayName,
  7530. Id,
  7531. IsActive,
  7532. layerId,
  7533. Location_id,
  7534. ModifiedBy,
  7535. ModifiedDate,
  7536. Shape,
  7537. Style,
  7538. Tenant,
  7539. Type,
  7540. TypicalGroupId,
  7541. url_Value,
  7542. Location_woid,
  7543. woid)
  7544. SELECT blueprintId,
  7545. CreatedBy,
  7546. CreatedDate,
  7547. DisplayName,
  7548. Id,
  7549. IsActive,
  7550. layerId,
  7551. Location_id,
  7552. ModifiedBy,
  7553. ModifiedDate,
  7554. Shape,
  7555. Style,
  7556. Tenant,
  7557. Type,
  7558. TypicalGroupId,
  7559. url_Value,
  7560. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9',
  7561. '59f9f6cc-8cf1-4fc5-afea-4f68a8279ba9'
  7562. FROM [TypicalGroupMarker]
  7563. WHERE woid = '00000000-0000-0000-0000-000000000000'
  7564. UPDATE [TypicalGroupMarker]
  7565. SET Location_woid = NULL
  7566. WHERE Location_id IS NULL
  7567. AND Location_woid IS NOT NULL
  7568.  
  7569. UPDATE [TakeoffBlueprint]
  7570. SET Calibration_woid = NULL
  7571. WHERE Calibration_id IS NULL
  7572. AND Calibration_woid IS NOT NULL
  7573.  
  7574. UPDATE [ScaleDefinition]
  7575. SET ScaleCalibration_woid = NULL
  7576. WHERE ScaleCalibration_id IS NULL
  7577. AND ScaleCalibration_woid IS NOT NULL
  7578.  
  7579. UPDATE [Calibration]
  7580. SET ScaleDefinition_woid = NULL
  7581. WHERE ScaleDefinition_id IS NULL
  7582. AND ScaleDefinition_woid IS NOT NULL
  7583.  
  7584. UPDATE [ScaleCalibration]
  7585. SET ScaleDefinition_woid = NULL
  7586. WHERE ScaleDefinition_id IS NULL
  7587. AND ScaleDefinition_woid IS NOT NULL
  7588.  
  7589. UPDATE [ScaleArea]
  7590. SET Calibration_woid = NULL
  7591. WHERE Calibration_id IS NULL
  7592. AND Calibration_woid IS NOT NULL
  7593.  
  7594. UPDATE [AttachedProduct]
  7595. SET EvaluationSpecifications_woid = NULL
  7596. WHERE EvaluationSpecifications_id IS NULL
  7597. AND EvaluationSpecifications_woid IS NOT NULL
  7598.  
  7599. UPDATE [AttachedProduct]
  7600. SET ProductsPallet_woid = NULL
  7601. WHERE ProductsPallet_id IS NULL
  7602. AND ProductsPallet_woid IS NOT NULL
  7603.  
  7604. UPDATE [AttachedProductDistributedCost]
  7605. SET AttachedProduct_woid = NULL
  7606. WHERE AttachedProduct_id IS NULL
  7607. AND AttachedProduct_woid IS NOT NULL
  7608.  
  7609. UPDATE [AttachedProductDistributedCost]
  7610. SET DistributedCost_woid = NULL
  7611. WHERE DistributedCost_id IS NULL
  7612. AND DistributedCost_woid IS NOT NULL
  7613.  
  7614. UPDATE [AttachedProductTag]
  7615. SET AttachedProduct_woid = NULL
  7616. WHERE AttachedProduct_id IS NULL
  7617. AND AttachedProduct_woid IS NOT NULL
  7618.  
  7619. UPDATE [ProductEvaluationSpecification]
  7620. SET Facility_woid = NULL
  7621. WHERE Facility_id IS NULL
  7622. AND Facility_woid IS NOT NULL
  7623.  
  7624. UPDATE [ProductEvaluationSpecification]
  7625. SET ProductEvaluationSpecifications_woid = NULL
  7626. WHERE ProductEvaluationSpecifications_id IS NULL
  7627. AND ProductEvaluationSpecifications_woid IS NOT NULL
  7628.  
  7629. UPDATE [ProductEvaluationSpecification]
  7630. SET ProductTemplate_woid = NULL
  7631. WHERE ProductTemplate_id IS NULL
  7632. AND ProductTemplate_woid IS NOT NULL
  7633.  
  7634. UPDATE [CustomMaterial]
  7635. SET Category_woid = NULL
  7636. WHERE Category_id IS NULL
  7637. AND Category_woid IS NOT NULL
  7638.  
  7639. UPDATE [CustomMaterial]
  7640. SET DefaultCommonSize_woid = NULL
  7641. WHERE DefaultCommonSize_id IS NULL
  7642. AND DefaultCommonSize_woid IS NOT NULL
  7643.  
  7644. UPDATE [CustomMaterial]
  7645. SET PurchaseUomGroup_woid = NULL
  7646. WHERE PurchaseUomGroup_id IS NULL
  7647. AND PurchaseUomGroup_woid IS NOT NULL
  7648.  
  7649. UPDATE [CustomMaterialCharacteristic]
  7650. SET Characteristic_woid = NULL
  7651. WHERE Characteristic_id IS NULL
  7652. AND Characteristic_woid IS NOT NULL
  7653.  
  7654. UPDATE [CustomMaterialCharacteristic]
  7655. SET CustomMaterial_woid = NULL
  7656. WHERE CustomMaterial_id IS NULL
  7657. AND CustomMaterial_woid IS NOT NULL
  7658.  
  7659. UPDATE [CostObjectLayer]
  7660. SET Layer_woid = NULL
  7661. WHERE Layer_id IS NULL
  7662. AND Layer_woid IS NOT NULL
  7663.  
  7664. UPDATE [CostObject]
  7665. SET AttachedProduct_woid = NULL
  7666. WHERE AttachedProduct_id IS NULL
  7667. AND AttachedProduct_woid IS NOT NULL
  7668.  
  7669. UPDATE [CostObject]
  7670. SET EvaluationSpecifications_woid = NULL
  7671. WHERE EvaluationSpecifications_id IS NULL
  7672. AND EvaluationSpecifications_woid IS NOT NULL
  7673.  
  7674. UPDATE [CostObject]
  7675. SET MeasurementScaleSourceScaleArea_woid = NULL
  7676. WHERE MeasurementScaleSourceScaleArea_id IS NULL
  7677. AND MeasurementScaleSourceScaleArea_woid IS NOT NULL
  7678.  
  7679. UPDATE [CostObject]
  7680. SET MeasurementScaleSourceSheetSettings_woid = NULL
  7681. WHERE MeasurementScaleSourceSheetSettings_id IS NULL
  7682. AND MeasurementScaleSourceSheetSettings_woid IS NOT NULL
  7683.  
  7684. UPDATE [CostObject]
  7685. SET SheetLocation_woid = NULL
  7686. WHERE SheetLocation_id IS NULL
  7687. AND SheetLocation_woid IS NOT NULL
  7688.  
  7689. UPDATE [CostObjectDistributedCost]
  7690. SET CostObject_woid = NULL
  7691. WHERE CostObject_id IS NULL
  7692. AND CostObject_woid IS NOT NULL
  7693.  
  7694. UPDATE [CostObjectDistributedCost]
  7695. SET DistributedCost_woid = NULL
  7696. WHERE DistributedCost_id IS NULL
  7697. AND DistributedCost_woid IS NOT NULL
  7698.  
  7699. UPDATE [CostObjectTag]
  7700. SET CostObject_woid = NULL
  7701. WHERE CostObject_id IS NULL
  7702. AND CostObject_woid IS NOT NULL
  7703.  
  7704. UPDATE [DistributedCostSummary]
  7705. SET BudgetCostObject_woid = NULL
  7706. WHERE BudgetCostObject_id IS NULL
  7707. AND BudgetCostObject_woid IS NOT NULL
  7708.  
  7709. UPDATE [MaterialCostSummary]
  7710. SET BudgetCostObject_woid = NULL
  7711. WHERE BudgetCostObject_id IS NULL
  7712. AND BudgetCostObject_woid IS NOT NULL
  7713.  
  7714. UPDATE [MaterialKitSummary]
  7715. SET BudgetCostObject_woid = NULL
  7716. WHERE BudgetCostObject_id IS NULL
  7717. AND BudgetCostObject_woid IS NOT NULL
  7718.  
  7719. UPDATE [OperationCostSummary]
  7720. SET BudgetCostObject_woid = NULL
  7721. WHERE BudgetCostObject_id IS NULL
  7722. AND BudgetCostObject_woid IS NOT NULL
  7723.  
  7724. UPDATE [OpportunityWorkOrder]
  7725. SET TaxRegulations_woid = NULL
  7726. WHERE TaxRegulations_id IS NULL
  7727. AND TaxRegulations_woid IS NOT NULL
  7728.  
  7729. UPDATE [VariableDefinition]
  7730. SET DefaultValue_woid = NULL
  7731. WHERE DefaultValue_id IS NULL
  7732. AND DefaultValue_woid IS NOT NULL
  7733.  
  7734. UPDATE [VariableDefinition]
  7735. SET VariableCategory_woid = NULL
  7736. WHERE VariableCategory_id IS NULL
  7737. AND VariableCategory_woid IS NOT NULL
  7738.  
  7739. UPDATE [VariableDefinition]
  7740. SET VariableSetDefinition_woid = NULL
  7741. WHERE VariableSetDefinition_id IS NULL
  7742. AND VariableSetDefinition_woid IS NOT NULL
  7743.  
  7744. UPDATE [VariableDefinitionCategory]
  7745. SET Parent_woid = NULL
  7746. WHERE Parent_id IS NULL
  7747. AND Parent_woid IS NOT NULL
  7748.  
  7749. UPDATE [VariableInstance]
  7750. SET Definition_woid = NULL
  7751. WHERE Definition_id IS NULL
  7752. AND Definition_woid IS NOT NULL
  7753.  
  7754. UPDATE [VariableInstance]
  7755. SET ProductEvaluationSpecification_woid = NULL
  7756. WHERE ProductEvaluationSpecification_id IS NULL
  7757. AND ProductEvaluationSpecification_woid IS NOT NULL
  7758.  
  7759. UPDATE [VariableInstance]
  7760. SET Value_woid = NULL
  7761. WHERE Value_id IS NULL
  7762. AND Value_woid IS NOT NULL
  7763.  
  7764. UPDATE [VariableInstance]
  7765. SET VariableSetValue_woid = NULL
  7766. WHERE VariableSetValue_id IS NULL
  7767. AND VariableSetValue_woid IS NOT NULL
  7768.  
  7769. UPDATE [VariableValue]
  7770. SET Material_woid = NULL
  7771. WHERE Material_id IS NULL
  7772. AND Material_woid IS NOT NULL
  7773.  
  7774. UPDATE [VariableValue]
  7775. SET Operation_woid = NULL
  7776. WHERE Operation_id IS NULL
  7777. AND Operation_woid IS NOT NULL
  7778.  
  7779. UPDATE [VariableValue]
  7780. SET VariableDefinition_woid = NULL
  7781. WHERE VariableDefinition_id IS NULL
  7782. AND VariableDefinition_woid IS NOT NULL
  7783.  
  7784. UPDATE [VariableSetInstance]
  7785. SET Definition_woid = NULL
  7786. WHERE Definition_id IS NULL
  7787. AND Definition_woid IS NOT NULL
  7788.  
  7789. UPDATE [VariableSetInstance]
  7790. SET ProductEvaluationSpecification_woid = NULL
  7791. WHERE ProductEvaluationSpecification_id IS NULL
  7792. AND ProductEvaluationSpecification_woid IS NOT NULL
  7793.  
  7794. UPDATE [VariableSetInstance]
  7795. SET Value_woid = NULL
  7796. WHERE Value_id IS NULL
  7797. AND Value_woid IS NOT NULL
  7798.  
  7799. UPDATE [VariableSetValue]
  7800. SET VariableSetDefinition_woid = NULL
  7801. WHERE VariableSetDefinition_id IS NULL
  7802. AND VariableSetDefinition_woid IS NOT NULL
  7803.  
  7804. UPDATE [UomGroup]
  7805. SET Category_woid = NULL
  7806. WHERE Category_id IS NULL
  7807. AND Category_woid IS NOT NULL
  7808.  
  7809. UPDATE [UomGroupCategory]
  7810. SET Parent_woid = NULL
  7811. WHERE Parent_id IS NULL
  7812. AND Parent_woid IS NOT NULL
  7813.  
  7814. UPDATE [UomGroupCommonSize]
  7815. SET CommonSize_woid = NULL
  7816. WHERE CommonSize_id IS NULL
  7817. AND CommonSize_woid IS NOT NULL
  7818.  
  7819. UPDATE [UomGroupCommonSize]
  7820. SET UomGroup_woid = NULL
  7821. WHERE UomGroup_id IS NULL
  7822. AND UomGroup_woid IS NOT NULL
  7823.  
  7824. UPDATE [CommonSize]
  7825. SET Category_woid = NULL
  7826. WHERE Category_id IS NULL
  7827. AND Category_woid IS NOT NULL
  7828.  
  7829. UPDATE [CommonSizeCategory]
  7830. SET Parent_woid = NULL
  7831. WHERE Parent_id IS NULL
  7832. AND Parent_woid IS NOT NULL
  7833.  
  7834. UPDATE [Product]
  7835. SET PartBase_woid = NULL
  7836. WHERE PartBase_id IS NULL
  7837. AND PartBase_woid IS NOT NULL
  7838.  
  7839. UPDATE [Product]
  7840. SET ProductLabelDescription_woid = NULL
  7841. WHERE ProductLabelDescription_id IS NULL
  7842. AND ProductLabelDescription_woid IS NOT NULL
  7843.  
  7844. UPDATE [Product]
  7845. SET X_woid = NULL
  7846. WHERE X_id IS NULL
  7847. AND X_woid IS NOT NULL
  7848.  
  7849. UPDATE [Product]
  7850. SET Y_woid = NULL
  7851. WHERE Y_id IS NULL
  7852. AND Y_woid IS NOT NULL
  7853.  
  7854. UPDATE [Product]
  7855. SET Z_woid = NULL
  7856. WHERE Z_id IS NULL
  7857. AND Z_woid IS NOT NULL
  7858.  
  7859. UPDATE [EvaluationBundleSnapshot]
  7860. SET EvaluationSnapshot_woid = NULL
  7861. WHERE EvaluationSnapshot_id IS NULL
  7862. AND EvaluationSnapshot_woid IS NOT NULL
  7863.  
  7864. UPDATE [EvaluationSnapshot]
  7865. SET PartBase_woid = NULL
  7866. WHERE PartBase_id IS NULL
  7867. AND PartBase_woid IS NOT NULL
  7868.  
  7869. UPDATE [EvaluationVariableSnapshot]
  7870. SET EvaluationSnapshot_woid = NULL
  7871. WHERE EvaluationSnapshot_id IS NULL
  7872. AND EvaluationSnapshot_woid IS NOT NULL
  7873.  
  7874. UPDATE [AssemblyAddition]
  7875. SET Amount_woid = NULL
  7876. WHERE Amount_id IS NULL
  7877. AND Amount_woid IS NOT NULL
  7878.  
  7879. UPDATE [AssemblyAddition]
  7880. SET Item_woid = NULL
  7881. WHERE Item_id IS NULL
  7882. AND Item_woid IS NOT NULL
  7883.  
  7884. UPDATE [AssemblyAddition]
  7885. SET Part_woid = NULL
  7886. WHERE Part_id IS NULL
  7887. AND Part_woid IS NOT NULL
  7888.  
  7889. UPDATE [AssemblyAddition]
  7890. SET X_woid = NULL
  7891. WHERE X_id IS NULL
  7892. AND X_woid IS NOT NULL
  7893.  
  7894. UPDATE [AssemblyAddition]
  7895. SET Y_woid = NULL
  7896. WHERE Y_id IS NULL
  7897. AND Y_woid IS NOT NULL
  7898.  
  7899. UPDATE [AssemblyAddition]
  7900. SET Z_woid = NULL
  7901. WHERE Z_id IS NULL
  7902. AND Z_woid IS NOT NULL
  7903.  
  7904. UPDATE [CostFormulaAddition]
  7905. SET Amount_woid = NULL
  7906. WHERE Amount_id IS NULL
  7907. AND Amount_woid IS NOT NULL
  7908.  
  7909. UPDATE [CostFormulaAddition]
  7910. SET InlineFormula_woid = NULL
  7911. WHERE InlineFormula_id IS NULL
  7912. AND InlineFormula_woid IS NOT NULL
  7913.  
  7914. UPDATE [CostFormulaAddition]
  7915. SET PartBase_woid = NULL
  7916. WHERE PartBase_id IS NULL
  7917. AND PartBase_woid IS NOT NULL
  7918.  
  7919. UPDATE [MaterialAddition]
  7920. SET Amount_woid = NULL
  7921. WHERE Amount_id IS NULL
  7922. AND Amount_woid IS NOT NULL
  7923.  
  7924. UPDATE [MaterialAddition]
  7925. SET Item_woid = NULL
  7926. WHERE Item_id IS NULL
  7927. AND Item_woid IS NOT NULL
  7928.  
  7929. UPDATE [MaterialAddition]
  7930. SET Part_woid = NULL
  7931. WHERE Part_id IS NULL
  7932. AND Part_woid IS NOT NULL
  7933.  
  7934. UPDATE [MaterialAddition]
  7935. SET Variable_woid = NULL
  7936. WHERE Variable_id IS NULL
  7937. AND Variable_woid IS NOT NULL
  7938.  
  7939. UPDATE [OperationAddition]
  7940. SET Amount_woid = NULL
  7941. WHERE Amount_id IS NULL
  7942. AND Amount_woid IS NOT NULL
  7943.  
  7944. UPDATE [OperationAddition]
  7945. SET Item_woid = NULL
  7946. WHERE Item_id IS NULL
  7947. AND Item_woid IS NOT NULL
  7948.  
  7949. UPDATE [OperationAddition]
  7950. SET Part_woid = NULL
  7951. WHERE Part_id IS NULL
  7952. AND Part_woid IS NOT NULL
  7953.  
  7954. UPDATE [OperationAddition]
  7955. SET Variable_woid = NULL
  7956. WHERE Variable_id IS NULL
  7957. AND Variable_woid IS NOT NULL
  7958.  
  7959. UPDATE [PartAddition]
  7960. SET Amount_woid = NULL
  7961. WHERE Amount_id IS NULL
  7962. AND Amount_woid IS NOT NULL
  7963.  
  7964. UPDATE [PartAddition]
  7965. SET Item_woid = NULL
  7966. WHERE Item_id IS NULL
  7967. AND Item_woid IS NOT NULL
  7968.  
  7969. UPDATE [PartAddition]
  7970. SET Part_woid = NULL
  7971. WHERE Part_id IS NULL
  7972. AND Part_woid IS NOT NULL
  7973.  
  7974. UPDATE [PartAddition]
  7975. SET X_woid = NULL
  7976. WHERE X_id IS NULL
  7977. AND X_woid IS NOT NULL
  7978.  
  7979. UPDATE [PartAddition]
  7980. SET Y_woid = NULL
  7981. WHERE Y_id IS NULL
  7982. AND Y_woid IS NOT NULL
  7983.  
  7984. UPDATE [PartAddition]
  7985. SET Z_woid = NULL
  7986. WHERE Z_id IS NULL
  7987. AND Z_woid IS NOT NULL
  7988.  
  7989. UPDATE [PartBase]
  7990. SET Category_woid = NULL
  7991. WHERE Category_id IS NULL
  7992. AND Category_woid IS NOT NULL
  7993.  
  7994. UPDATE [PartBaseAdditionDefinedValue]
  7995. SET AssemblyAddition_woid = NULL
  7996. WHERE AssemblyAddition_id IS NULL
  7997. AND AssemblyAddition_woid IS NOT NULL
  7998.  
  7999. UPDATE [PartBaseAdditionDefinedValue]
  8000. SET InlineFormula_woid = NULL
  8001. WHERE InlineFormula_id IS NULL
  8002. AND InlineFormula_woid IS NOT NULL
  8003.  
  8004. UPDATE [PartBaseAdditionDefinedValue]
  8005. SET PartAddition_woid = NULL
  8006. WHERE PartAddition_id IS NULL
  8007. AND PartAddition_woid IS NOT NULL
  8008.  
  8009. UPDATE [PartBaseAdditionDefinedValue]
  8010. SET VariableDefinition_woid = NULL
  8011. WHERE VariableDefinition_id IS NULL
  8012. AND VariableDefinition_woid IS NOT NULL
  8013.  
  8014. UPDATE [PartBaseAdditionDefinedValue]
  8015. SET VariableValue_woid = NULL
  8016. WHERE VariableValue_id IS NULL
  8017. AND VariableValue_woid IS NOT NULL
  8018.  
  8019. UPDATE [VariableAddition]
  8020. SET PartBase_woid = NULL
  8021. WHERE PartBase_id IS NULL
  8022. AND PartBase_woid IS NOT NULL
  8023.  
  8024. UPDATE [VariableAddition]
  8025. SET Variable_woid = NULL
  8026. WHERE Variable_id IS NULL
  8027. AND Variable_woid IS NOT NULL
  8028.  
  8029. UPDATE [VariableSetAddition]
  8030. SET PartBase_woid = NULL
  8031. WHERE PartBase_id IS NULL
  8032. AND PartBase_woid IS NOT NULL
  8033.  
  8034. UPDATE [VariableSetAddition]
  8035. SET VariableSetDefinition_woid = NULL
  8036. WHERE VariableSetDefinition_id IS NULL
  8037. AND VariableSetDefinition_woid IS NOT NULL
  8038.  
  8039. UPDATE [ProductLibraryCategory]
  8040. SET Parent_woid = NULL
  8041. WHERE Parent_id IS NULL
  8042. AND Parent_woid IS NOT NULL
  8043.  
  8044. UPDATE [Part]
  8045. SET PartBase_woid = NULL
  8046. WHERE PartBase_id IS NULL
  8047. AND PartBase_woid IS NOT NULL
  8048.  
  8049. UPDATE [Assembly]
  8050. SET PartBase_woid = NULL
  8051. WHERE PartBase_id IS NULL
  8052. AND PartBase_woid IS NOT NULL
  8053.  
  8054. UPDATE [Operation]
  8055. SET Category_woid = NULL
  8056. WHERE Category_id IS NULL
  8057. AND Category_woid IS NOT NULL
  8058.  
  8059. UPDATE [Operation]
  8060. SET OperationType_woid = NULL
  8061. WHERE OperationType_id IS NULL
  8062. AND OperationType_woid IS NOT NULL
  8063.  
  8064. UPDATE [PrecedingOperation]
  8065. SET Operation_woid = NULL
  8066. WHERE Operation_id IS NULL
  8067. AND Operation_woid IS NOT NULL
  8068.  
  8069. UPDATE [PrecedingOperation]
  8070. SET Predecessor_woid = NULL
  8071. WHERE Predecessor_id IS NULL
  8072. AND Predecessor_woid IS NOT NULL
  8073.  
  8074. UPDATE [OperationDuration]
  8075. SET LaborItem_woid = NULL
  8076. WHERE LaborItem_id IS NULL
  8077. AND LaborItem_woid IS NOT NULL
  8078.  
  8079. UPDATE [OperationDuration]
  8080. SET Location_woid = NULL
  8081. WHERE Location_id IS NULL
  8082. AND Location_woid IS NOT NULL
  8083.  
  8084. UPDATE [OperationDuration]
  8085. SET Operation_woid = NULL
  8086. WHERE Operation_id IS NULL
  8087. AND Operation_woid IS NOT NULL
  8088.  
  8089. UPDATE [OperationDuration]
  8090. SET ProductivityRegister_woid = NULL
  8091. WHERE ProductivityRegister_id IS NULL
  8092. AND ProductivityRegister_woid IS NOT NULL
  8093.  
  8094. UPDATE [OperationCategory]
  8095. SET Parent_woid = NULL
  8096. WHERE Parent_id IS NULL
  8097. AND Parent_woid IS NOT NULL
  8098.  
  8099. UPDATE [Vendor]
  8100. SET Material_woid = NULL
  8101. WHERE Material_id IS NULL
  8102. AND Material_woid IS NOT NULL
  8103.  
  8104. UPDATE [MaterialKit]
  8105. SET Category_woid = NULL
  8106. WHERE Category_id IS NULL
  8107. AND Category_woid IS NOT NULL
  8108.  
  8109. UPDATE [MaterialKitMaterial]
  8110. SET Material_woid = NULL
  8111. WHERE Material_id IS NULL
  8112. AND Material_woid IS NOT NULL
  8113.  
  8114. UPDATE [MaterialKitMaterial]
  8115. SET MaterialKit_woid = NULL
  8116. WHERE MaterialKit_id IS NULL
  8117. AND MaterialKit_woid IS NOT NULL
  8118.  
  8119. UPDATE [MaterialAttachment]
  8120. SET Material_woid = NULL
  8121. WHERE Material_id IS NULL
  8122. AND Material_woid IS NOT NULL
  8123.  
  8124. UPDATE [MaterialImage]
  8125. SET Material_woid = NULL
  8126. WHERE Material_id IS NULL
  8127. AND Material_woid IS NOT NULL
  8128.  
  8129. UPDATE [Material]
  8130. SET Category_woid = NULL
  8131. WHERE Category_id IS NULL
  8132. AND Category_woid IS NOT NULL
  8133.  
  8134. UPDATE [Material]
  8135. SET DefaultCommonSize_woid = NULL
  8136. WHERE DefaultCommonSize_id IS NULL
  8137. AND DefaultCommonSize_woid IS NOT NULL
  8138.  
  8139. UPDATE [Material]
  8140. SET PurchaseUomGroup_woid = NULL
  8141. WHERE PurchaseUomGroup_id IS NULL
  8142. AND PurchaseUomGroup_woid IS NOT NULL
  8143.  
  8144. UPDATE [MaterialCharacteristic]
  8145. SET Characteristic_woid = NULL
  8146. WHERE Characteristic_id IS NULL
  8147. AND Characteristic_woid IS NOT NULL
  8148.  
  8149. UPDATE [MaterialCharacteristic]
  8150. SET Material_woid = NULL
  8151. WHERE Material_id IS NULL
  8152. AND Material_woid IS NOT NULL
  8153.  
  8154. UPDATE [MaterialInventoryLevels]
  8155. SET CommonSize_woid = NULL
  8156. WHERE CommonSize_id IS NULL
  8157. AND CommonSize_woid IS NOT NULL
  8158.  
  8159. UPDATE [MaterialInventoryLevels]
  8160. SET Material_woid = NULL
  8161. WHERE Material_id IS NULL
  8162. AND Material_woid IS NOT NULL
  8163.  
  8164. UPDATE [MaterialSubstitute]
  8165. SET Material_woid = NULL
  8166. WHERE Material_id IS NULL
  8167. AND Material_woid IS NOT NULL
  8168.  
  8169. UPDATE [MaterialSubstitute]
  8170. SET Substitute_woid = NULL
  8171. WHERE Substitute_id IS NULL
  8172. AND Substitute_woid IS NOT NULL
  8173.  
  8174. UPDATE [MaterialCategory]
  8175. SET Parent_woid = NULL
  8176. WHERE Parent_id IS NULL
  8177. AND Parent_woid IS NOT NULL
  8178.  
  8179. UPDATE [LaborCategory]
  8180. SET Parent_woid = NULL
  8181. WHERE Parent_id IS NULL
  8182. AND Parent_woid IS NOT NULL
  8183.  
  8184. UPDATE [LaborItem]
  8185. SET Category_woid = NULL
  8186. WHERE Category_id IS NULL
  8187. AND Category_woid IS NOT NULL
  8188.  
  8189. UPDATE [LaborItem]
  8190. SET Location_woid = NULL
  8191. WHERE Location_id IS NULL
  8192. AND Location_woid IS NOT NULL
  8193.  
  8194. UPDATE [Burden]
  8195. SET Category_woid = NULL
  8196. WHERE Category_id IS NULL
  8197. AND Category_woid IS NOT NULL
  8198.  
  8199. UPDATE [BurdenCategory]
  8200. SET Parent_woid = NULL
  8201. WHERE Parent_id IS NULL
  8202. AND Parent_woid IS NOT NULL
  8203.  
  8204. UPDATE [LaborItemBurden]
  8205. SET Burden_woid = NULL
  8206. WHERE Burden_id IS NULL
  8207. AND Burden_woid IS NOT NULL
  8208.  
  8209. UPDATE [LaborItemBurden]
  8210. SET LaborItem_woid = NULL
  8211. WHERE LaborItem_id IS NULL
  8212. AND LaborItem_woid IS NOT NULL
  8213.  
  8214. UPDATE [SummaryBurden]
  8215. SET Category_woid = NULL
  8216. WHERE Category_id IS NULL
  8217. AND Category_woid IS NOT NULL
  8218.  
  8219. UPDATE [FormulaArgument]
  8220. SET Formula_woid = NULL
  8221. WHERE Formula_id IS NULL
  8222. AND Formula_woid IS NOT NULL
  8223.  
  8224. UPDATE [FormulaDependency]
  8225. SET Child_woid = NULL
  8226. WHERE Child_id IS NULL
  8227. AND Child_woid IS NOT NULL
  8228.  
  8229. UPDATE [FormulaDependency]
  8230. SET Parent_woid = NULL
  8231. WHERE Parent_id IS NULL
  8232. AND Parent_woid IS NOT NULL
  8233.  
  8234. UPDATE [InlineFormula]
  8235. SET Formula_woid = NULL
  8236. WHERE Formula_id IS NULL
  8237. AND Formula_woid IS NOT NULL
  8238.  
  8239. UPDATE [ReusableFormula]
  8240. SET Category_woid = NULL
  8241. WHERE Category_id IS NULL
  8242. AND Category_woid IS NOT NULL
  8243.  
  8244. UPDATE [ReusableFormula]
  8245. SET Formula_woid = NULL
  8246. WHERE Formula_id IS NULL
  8247. AND Formula_woid IS NOT NULL
  8248.  
  8249. UPDATE [FormulaCategory]
  8250. SET Parent_woid = NULL
  8251. WHERE Parent_id IS NULL
  8252. AND Parent_woid IS NOT NULL
  8253.  
  8254. UPDATE [StockedMaterial]
  8255. SET CommonSize_woid = NULL
  8256. WHERE CommonSize_id IS NULL
  8257. AND CommonSize_woid IS NOT NULL
  8258.  
  8259. UPDATE [StockedMaterial]
  8260. SET Material_woid = NULL
  8261. WHERE Material_id IS NULL
  8262. AND Material_woid IS NOT NULL
  8263.  
  8264. UPDATE [TenantFacility]
  8265. SET TaxRegulations_woid = NULL
  8266. WHERE TaxRegulations_id IS NULL
  8267. AND TaxRegulations_woid IS NOT NULL
  8268.  
  8269. UPDATE [TaxQuestionnaireAnswer]
  8270. SET TaxRegulations_woid = NULL
  8271. WHERE TaxRegulations_id IS NULL
  8272. AND TaxRegulations_woid IS NOT NULL
  8273.  
  8274. UPDATE [TaxQuestionNote]
  8275. SET TaxRegulations_woid = NULL
  8276. WHERE TaxRegulations_id IS NULL
  8277. AND TaxRegulations_woid IS NOT NULL
  8278.  
  8279. UPDATE [TaxRate]
  8280. SET TaxRegulations_woid = NULL
  8281. WHERE TaxRegulations_id IS NULL
  8282. AND TaxRegulations_woid IS NOT NULL
  8283.  
  8284. UPDATE [ProjectWorkOrderCostObject]
  8285. SET CostObject_woid = NULL
  8286. WHERE CostObject_id IS NULL
  8287. AND CostObject_woid IS NOT NULL
  8288.  
  8289. UPDATE [Requisition]
  8290. SET CommonSize_woid = NULL
  8291. WHERE CommonSize_id IS NULL
  8292. AND CommonSize_woid IS NOT NULL
  8293.  
  8294. UPDATE [Requisition]
  8295. SET Material_woid = NULL
  8296. WHERE Material_id IS NULL
  8297. AND Material_woid IS NOT NULL
  8298.  
  8299. UPDATE [MaterialApprovalItem]
  8300. SET Material_woid = NULL
  8301. WHERE Material_id IS NULL
  8302. AND Material_woid IS NOT NULL
  8303.  
  8304. UPDATE [BomEntry]
  8305. SET CommonSize_woid = NULL
  8306. WHERE CommonSize_id IS NULL
  8307. AND CommonSize_woid IS NOT NULL
  8308.  
  8309. UPDATE [BomEntry]
  8310. SET Material_woid = NULL
  8311. WHERE Material_id IS NULL
  8312. AND Material_woid IS NOT NULL
  8313.  
  8314. UPDATE [SovCostObject]
  8315. SET CostObject_woid = NULL
  8316. WHERE CostObject_id IS NULL
  8317. AND CostObject_woid IS NOT NULL
  8318.  
  8319. UPDATE [ImageAttachment]
  8320. SET Image_woid = NULL
  8321. WHERE Image_id IS NULL
  8322. AND Image_woid IS NOT NULL
  8323.  
  8324.  
  8325. ]
  8326. Source=NHibernate
  8327. StackTrace:
  8328. at NHibernate.Engine.Query.NativeSQLQueryPlan.PerformExecuteUpdate(QueryParameters queryParameters, ISessionImplementor session)
  8329. at NHibernate.Impl.SessionImpl.ExecuteNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification, QueryParameters queryParameters)
  8330. at NHibernate.Impl.SqlQueryImpl.ExecuteUpdate()
  8331. at Sm.Aspen.Data.Repositories.Sales.WorkOrders.OpportunityWorkOrderRepository.Snapshot(EntityId workOrderId, EntityId baseWorkOrderId) in C:\Repositories\innergy-2\src\Sm.Aspen.Data\Repositories\Sales\WorkOrders\OpportunityWorkOrderRepository.cs:line 86
  8332.  
  8333. Inner Exception 1:
  8334. SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_InlineFormula_Formula_Formula_id_Formula_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.Formula".
  8335. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Product_InlineFormula_X_id_X_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8336. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_ProductEvaluationSpecification_Product_ProductTemplate_id_ProductTemplate_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.Product".
  8337. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_VariableSetInstance_ProductEvaluationSpecification_ProductEvaluationSpecification_id_ProductEvaluationSpecification_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.ProductEvaluationSpecification".
  8338. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_CostFormulaAddition_InlineFormula_Amount_id_Amount_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8339. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_MaterialAddition_InlineFormula_Amount_id_Amount_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8340. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_PartAddition_InlineFormula_Amount_id_Amount_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8341. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_VariableInstance_ProductEvaluationSpecification_ProductEvaluationSpecification_id_ProductEvaluationSpecification_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.ProductEvaluationSpecification".
  8342. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_OperationAddition_InlineFormula_Amount_id_Amount_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8343. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_AssemblyAddition_InlineFormula_Amount_id_Amount_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.InlineFormula".
  8344. The INSERT statement conflicted with the FOREIGN KEY constraint "FK_PartBaseAdditionDefinedValue_PartAddition_PartAddition_id_PartAddition_woid". The conflict occurred in database "demo.innergy.com-2017-10-19-9-49", table "dbo.PartAddition".
  8345. Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dbo.TaxRegulations' directly or indirectly in database 'demo.innergy.com-2017-10-19-9-49' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.
  8346. The statement has been terminated.
  8347. The statement has been terminated.
  8348. The statement has been terminated.
  8349. The statement has been terminated.
  8350. The statement has been terminated.
  8351. The statement has been terminated.
  8352. The statement has been terminated.
  8353. The statement has been terminated.
  8354. The statement has been terminated.
  8355. The statement has been terminated.
  8356. The statement has been terminated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement