Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. MACHINE WEEK HOURS PIECES
  2. A 2018-12 1 2
  3. B 2018-12 3 4
  4. A 2018-13 12 1
  5. B 2018-13 2 5
  6. A 2018-15 6 6
  7. B 2018-15 2 2
  8. C 2018-16 2 1
  9. D 2018-17 4 22
  10. B 2018-17 3 9
  11. A 2018-18 1 8
  12. E 2018-18 4 4
  13. D 2018-13 2 4
  14.  
  15. MACHINE 2018-12 2018-13 2018-14 2018-15 2018-16 2018-17 2018-18
  16. A 1H 2P 12H 1P 6H 6P 1H 8P
  17. B 3H 4P 2H 5P 2H 2P 3H 9P
  18. C 2H 1P
  19. D 2H 4P 4H 22P
  20. E 4H 4P
  21.  
  22. this.edType = 1
  23. this.ehCols = 20
  24. this.ehStartval = date()+ 7
  25.  
  26. this.ehKeyFld = "iif(usage.hours > 0 and usage.pieces > 0,STR(usage.hours,4) + 'H ' + STR(usage.pieces,3)+'P','')"
  27.  
  28. select machine, iif(week='2018-12',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-12', IIF(week='2018-13',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-13', IIF(week='2018-14',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-14', IIF(week='2018-15',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-15', IIF(week='2018-16',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-16', IIF(week='2018-17',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-17', IIF(week='2018-18',str(hours,4) + 'H' + str(pieces,3) + 'P','') as '2018-18' from GCCTEST.dbo.usage
  29.  
  30. machine 2018-12 2018-13 2018-14 2018-15 2018-16 2018-17 2018-18
  31. A 1H 2P
  32. B 3H 4P
  33. A 12H 1P
  34. B 2H 5P
  35. A 6H 6P
  36. B 2H 2P
  37. C 2H 1P
  38. D 4H 22P
  39. B 3H 9P
  40. A 1H 8P
  41. E 4H 4P
  42. D 2H 4P
Add Comment
Please, Sign In to add comment