Advertisement
Guest User

lsFusion Tests

a guest
Nov 14th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REQUIRE Utils, Time;
  2.  
  3. CLASS Supplier;
  4. name = DATA STRING[100] (Supplier);
  5. contactInfo = DATA STRING[255] (Supplier);
  6.  
  7. exportSuppliers1() {
  8.   EXPORT FROM name(Supplier s), contactInfo(s) WHERE contactInfo(s);
  9.   WRITE CLIENT exportFile() TO 'd:/0/exportSuppliers ' + toChar(currentDateTime(), 'YYYY-MM-DD HH24-MI-SS');
  10. }
  11.  
  12. exportSuppliers2() {
  13.   EXPORT FROM name(Supplier s), contactInfo(s) WHERE s IS Supplier;
  14.   WRITE CLIENT exportFile() TO 'd:/0/exportSuppliers ' + toChar(currentDateTime(), 'YYYY-MM-DD HH24-MI-SS');
  15. }
  16.  
  17. exportSuppliers3() {
  18.   EXPORT FROM name(Supplier s1), contactInfo(Supplier s2) WHERE s1 IS Supplier AND s2 IS Supplier;
  19.   WRITE CLIENT exportFile() TO 'd:/0/exportSuppliers ' + toChar(currentDateTime(), 'YYYY-MM-DD HH24-MI-SS');
  20. }
  21.  
  22. exportSuppliers4() {
  23.   EXPORT FROM name(Supplier s1), contactInfo(Supplier s2);
  24.   WRITE CLIENT exportFile() TO 'd:/0/exportSuppliers ' + toChar(currentDateTime(), 'YYYY-MM-DD HH24-MI-SS');
  25. }
  26.  
  27. FORM SuppliersForm 'Поставщики'
  28.     OBJECTS supplier=Supplier
  29.     PROPERTIES(supplier) name, contactInfo, NEW, DELETE
  30. ;
  31.  
  32. NAVIGATOR {
  33.     NEW SuppliersForm;
  34.     NEW exportSuppliers1;
  35.     NEW exportSuppliers2;
  36.     NEW exportSuppliers3;
  37.     NEW exportSuppliers4;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement