Advertisement
MichaelFade

Untitled

Nov 27th, 2024
11
0
339 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1.  
  2. --SELECT * FROM TblLines
  3.  
  4. SELECT
  5. 123 as ID,
  6. 'Line1' as LName,
  7. 'Line1' as EName,
  8. 10 as Department,
  9. 'Line one.' as ERPID,
  10. 'Some descr' as Description,
  11. 1 as IsActive,
  12. 1 as MultiJobActivation,
  13. 0 as MultiSetupEnd,
  14. 1 as MultiUnitsInCycleChange,
  15. 5 as RootEventAttachDurationMin,
  16. 100 as FirstMachineID,
  17. 400 as LastMachineID,
  18. 1 as OperatorLoginSimultaneously,
  19. 5 as DisplayOrder,
  20. 100 as GrossUnitsMachineID,
  21. 400 as ReportedUnitsMachineID,
  22. 1337 as LineSpeedID,
  23. 'CycleTime' as LineSpeedName
  24.  
  25. --SELECT * FROM TblLineMachines
  26.  
  27. SELECT
  28. 123 as LineID,
  29. 100 as MachineID,
  30. 1 as Sequence,
  31. 1 as IsActive,
  32. 5 as RootEventAttachDurationMin,
  33. 0 as IncludeInCycleTimeCalc,
  34. 0 as IncludeInAvailabilityCalc,
  35. '200,300' as NextMachines,
  36. 0 as Root
  37. UNION ALL
  38. SELECT
  39. 123 as LineID,
  40. 200 as MachineID,
  41. 2 as Sequence,
  42. 1 as IsActive,
  43. 0 as RootEventAttachDurationMin,
  44. 1 as IncludeInCycleTimeCalc,
  45. 1 as IncludeInAvailabilityCalc,
  46. '400' as NextMachines,
  47. 0 as Root
  48. UNION ALL
  49. SELECT
  50. 123 as LineID,
  51. 300 as MachineID,
  52. 3 as Sequence,
  53. 1 as IsActive,
  54. 0 as RootEventAttachDurationMin,
  55. 1 as IncludeInCycleTimeCalc,
  56. 1 as IncludeInAvailabilityCalc,
  57. '400' as NextMachines,
  58. 0 as Root
  59. UNION ALL
  60. SELECT
  61. 123 as LineID,
  62. 400 as MachineID,
  63. 4 as Sequence,
  64. 1 as IsActive,
  65. 0 as RootEventAttachDurationMin,
  66. 0 as IncludeInCycleTimeCalc,
  67. 0 as IncludeInAvailabilityCalc,
  68. NULL as NextMachines,
  69. 0 as Root
  70.  
  71. --SELECT * FROM TblRoutes
  72.  
  73. SELECT
  74. 321 as ID,
  75. 123 as LineId,
  76. 'Some Route' as ERPID,
  77. 'Hello' as Description,
  78. 1111 as UserID,
  79. '2024-11-27' as LastUpdate
  80.  
  81.  
  82. --SELECT * FROM TblRouteDetails
  83.  
  84. SELECT
  85. 321 as RouteId,
  86. 100 as MachineId,
  87. 1 as DisplayOrder,
  88. 1 as FirstMachine,
  89. 0 as LastMachine,
  90. NULL as LineSpeedID,
  91. NULL as LineSpeedName,
  92. 1 as MachineBtwFirstAndLast,
  93. 0 as IncludeInCycleTimeCalc,
  94. 0 as IncludeInAvailabilityCalc,
  95. 1 as GrossUnitsMachineID,
  96. 0 as ReportedUnitsMachineID,
  97. 0 as IncludeInWIP,
  98. NULL as ParallelUnitsSplit,
  99. 1 as ParallelMachinesGroupID
  100. UNION ALL
  101. SELECT
  102. 321 as RouteId,
  103. 200 as MachineId,
  104. 2 as DisplayOrder,
  105. 0 as FirstMachine,
  106. 0 as LastMachine,
  107. 1337 as LineSpeedID,
  108. 'CycleTime' as LineSpeedName,
  109. 1 as MachineBtwFirstAndLast,
  110. 1 as IncludeInCycleTimeCalc,
  111. 1 as IncludeInAvailabilityCalc,
  112. 0 as GrossUnitsMachineID,
  113. 0 as ReportedUnitsMachineID,
  114. 0 as IncludeInWIP,
  115. NULL as ParallelUnitsSplit,
  116. 2 as ParallelMachinesGroupID
  117. UNION ALL
  118. SELECT
  119. 321 as RouteId,
  120. 300 as MachineId,
  121. 3 as DisplayOrder,
  122. 0 as FirstMachine,
  123. 0 as LastMachine,
  124. 69420 as LineSpeedID,
  125. 'CycleTime' as LineSpeedName,
  126. 1 as MachineBtwFirstAndLast,
  127. 1 as IncludeInCycleTimeCalc,
  128. 1 as IncludeInAvailabilityCalc,
  129. 0 as GrossUnitsMachineID,
  130. 0 as ReportedUnitsMachineID,
  131. 0 as IncludeInWIP,
  132. NULL as ParallelUnitsSplit,
  133. 2 as ParallelMachinesGroupID
  134. UNION ALL
  135. SELECT
  136. 321 as RouteId,
  137. 400 as MachineId,
  138. 4 as DisplayOrder,
  139. 0 as FirstMachine,
  140. 1 as LastMachine,
  141. NULL as LineSpeedID,
  142. NULL as LineSpeedName,
  143. 1 as MachineBtwFirstAndLast,
  144. 0 as IncludeInCycleTimeCalc,
  145. 1 as IncludeInAvailabilityCalc,
  146. 0 as GrossUnitsMachineID,
  147. 1 as ReportedUnitsMachineID,
  148. 0 as IncludeInWIP,
  149. NULL as ParallelUnitsSplit,
  150. 4 as ParallelMachinesGroupID
  151.  
  152. --SELECT * FROM TblParallelMachineGroupInLine
  153.  
  154. SELECT 1 as ID, 123 as LineID, 321 as RouteID
  155. UNION ALL
  156. SELECT 2 as ID, 123 as LineID, 321 as RouteID
  157. UNION ALL
  158. SELECT 3 as ID, 123 as LineID, 321 as RouteID
  159.  
  160.  
  161.  
  162. --SELECT * FROM TblLineRoute
  163.  
  164. SELECT 123 as LineID, 100 as SourceMachineID, 200 as TargetMachineID
  165. UNION ALL
  166. SELECT 123 as LineID, 100 as SourceMachineID, 300 as TargetMachineID
  167. UNION ALL
  168. SELECT 123 as LineID, 200 as SourceMachineID, 400 as TargetMachineID
  169. UNION ALL
  170. SELECT 123 as LineID, 300 as SourceMachineID, 400 as TargetMachineID
  171. UNION ALL
  172. SELECT 123 as LineID, 400 as SourceMachineID, NULL as TargetMachineID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement