LogikalGasket.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using InABox.Integration.Logikal;
  2. namespace PRSDesktop.Integrations.Logikal;
  3. public class LogikalGasket : LogikalBOMItem, ILogikalGasket
  4. {
  5. public double Length { get; set; }
  6. public static string BillOfMaterialsSQL =
  7. "select \n" +
  8. $" a.[ArticleCode_BaseNumber] as {nameof(Code)}, \n" +
  9. $" a.[description] as {nameof(Description)}, \n" +
  10. $" 1.0 as {nameof(Length)}, \n" +
  11. $" a.[units] as {nameof(Quantity)}, \n" +
  12. $" a.[Price] as {nameof(Cost)} \n" +
  13. "from \n" +
  14. " allarticles a \n" +
  15. "where \n" +
  16. " a.[ArticleType] = 5 \n";
  17. public static string DesignSQL =
  18. "select \n" +
  19. $" a.[ArticleCode_BaseNumber] as {nameof(Code)}, \n" +
  20. $" a.[description] as {nameof(Description)}, \n" +
  21. $" 1.0 as {nameof(Length)}, \n" +
  22. $" a.[units] as {nameof(Quantity)}, \n" +
  23. $" a.[Price] as {nameof(Cost)} \n" +
  24. "from \n" +
  25. " articles a \n" +
  26. "where \n" +
  27. " a.[ArticleType] = 5 \n";
  28. }