Advertisement
MichaelFade

Untitled

Nov 27th, 2024
16
0
339 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 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 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. UNION ALL
  81. SELECT
  82. 567 as ID,
  83. 123 as LineId,
  84. 'Another Route' as ERPID,
  85. 'bye bye' as Description,
  86. 1111 as UserID,
  87. '2024-11-27' as LastUpdate
  88.  
  89. --SELECT * FROM TblRouteDetails
  90.  
  91. SELECT
  92. 321 as RouteId,
  93. 100 as MachineId,
  94. 1 as DisplayOrder,
  95. 1 as FirstMachine,
  96. 0 as LastMachine,
  97. NULL as LineSpeedID,
  98. NULL as LineSpeedName,
  99. 1 as MachineBtwFirstAndLast,
  100. 0 as IncludeInCycleTimeCalc,
  101. 0 as IncludeInAvailabilityCalc,
  102. 1 as GrossUnitsMachineID,
  103. 0 as ReportedUnitsMachineID,
  104. 0 as IncludeInWIP,
  105. NULL as ParallelUnitsSplit,
  106. 1 as ParallelMachinesGroupID
  107. UNION ALL
  108. SELECT
  109. 321 as RouteId,
  110. 200 as MachineId,
  111. 2 as DisplayOrder,
  112. 0 as FirstMachine,
  113. 0 as LastMachine,
  114. 1337 as LineSpeedID,
  115. 'CycleTime' as LineSpeedName,
  116. 1 as MachineBtwFirstAndLast,
  117. 1 as IncludeInCycleTimeCalc,
  118. 1 as IncludeInAvailabilityCalc,
  119. 0 as GrossUnitsMachineID,
  120. 0 as ReportedUnitsMachineID,
  121. 0 as IncludeInWIP,
  122. NULL as ParallelUnitsSplit,
  123. 2 as ParallelMachinesGroupID
  124. UNION ALL
  125. SELECT
  126. 321 as RouteId,
  127. 400 as MachineId,
  128. 4 as DisplayOrder,
  129. 0 as FirstMachine,
  130. 1 as LastMachine,
  131. NULL as LineSpeedID,
  132. NULL as LineSpeedName,
  133. 1 as MachineBtwFirstAndLast,
  134. 0 as IncludeInCycleTimeCalc,
  135. 1 as IncludeInAvailabilityCalc,
  136. 0 as GrossUnitsMachineID,
  137. 1 as ReportedUnitsMachineID,
  138. 0 as IncludeInWIP,
  139. NULL as ParallelUnitsSplit,
  140. 4 as ParallelMachinesGroupID
  141.  
  142. UNION ALL
  143.  
  144. SELECT
  145. 567 as RouteId,
  146. 100 as MachineId,
  147. 1 as DisplayOrder,
  148. 1 as FirstMachine,
  149. 0 as LastMachine,
  150. NULL as LineSpeedID,
  151. NULL as LineSpeedName,
  152. 1 as MachineBtwFirstAndLast,
  153. 0 as IncludeInCycleTimeCalc,
  154. 0 as IncludeInAvailabilityCalc,
  155. 1 as GrossUnitsMachineID,
  156. 0 as ReportedUnitsMachineID,
  157. 0 as IncludeInWIP,
  158. NULL as ParallelUnitsSplit,
  159. 1 as ParallelMachinesGroupID
  160. UNION ALL
  161. SELECT
  162. 567 as RouteId,
  163. 300 as MachineId,
  164. 3 as DisplayOrder,
  165. 0 as FirstMachine,
  166. 1 as LastMachine,
  167. 69420 as LineSpeedID,
  168. 'CycleTime' as LineSpeedName,
  169. 1 as MachineBtwFirstAndLast,
  170. 1 as IncludeInCycleTimeCalc,
  171. 1 as IncludeInAvailabilityCalc,
  172. 0 as GrossUnitsMachineID,
  173. 0 as ReportedUnitsMachineID,
  174. 0 as IncludeInWIP,
  175. NULL as ParallelUnitsSplit,
  176. 3 as ParallelMachinesGroupID
  177. UNION ALL
  178. SELECT
  179. 567 as RouteId,
  180. 400 as MachineId,
  181. 4 as DisplayOrder,
  182. 0 as FirstMachine,
  183. 1 as LastMachine,
  184. NULL as LineSpeedID,
  185. NULL as LineSpeedName,
  186. 1 as MachineBtwFirstAndLast,
  187. 0 as IncludeInCycleTimeCalc,
  188. 1 as IncludeInAvailabilityCalc,
  189. 0 as GrossUnitsMachineID,
  190. 1 as ReportedUnitsMachineID,
  191. 0 as IncludeInWIP,
  192. NULL as ParallelUnitsSplit,
  193. 4 as ParallelMachinesGroupID
  194.  
  195. --SELECT * FROM TblParallelMachineGroupInLine
  196.  
  197. SELECT 1 as ID, 123 as LineID, 321 as RouteID
  198. UNION ALL
  199. SELECT 2 as ID, 123 as LineID, 321 as RouteID
  200. UNION ALL
  201. SELECT 3 as ID, 123 as LineID, 321 as RouteID
  202. UNION ALL
  203. SELECT 4 as ID, 123 as LineID, 321 as RouteID
  204.  
  205.  
  206. --SELECT * FROM TblLineRoute
  207.  
  208. SELECT 123 as LineID, 100 as SourceMachineID, 200 as TargetMachineID
  209. UNION ALL
  210. SELECT 123 as LineID, 100 as SourceMachineID, 300 as TargetMachineID
  211. UNION ALL
  212. SELECT 123 as LineID, 200 as SourceMachineID, 400 as TargetMachineID
  213. UNION ALL
  214. SELECT 123 as LineID, 300 as SourceMachineID, 400 as TargetMachineID
  215. UNION ALL
  216. SELECT 123 as LineID, 400 as SourceMachineID, NULL as TargetMachineID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement