SHARE
TWEET

Untitled

a guest Sep 16th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. func Print() {
  3.     type _local struct {
  4.         Storehouses []string // Имена складов
  5.         DateAfter   string   //ДАТА ОТ (включительно)
  6.         DateBefore  string   //ДАТА ДО (включительно)
  7.     }
  8.  
  9.     var test = _local{
  10.         Storehouses: []string{"GlavSklad"},
  11.         DateAfter: "2019-09-01",
  12.         DateBefore: "2019-09-20",
  13.     }
  14.  
  15.     result, err := module_connect.RequestNewRawValues(
  16.         "192.168.0.131:50040",
  17.         structExchange.WMessage{
  18.             Query: "SelectJSON",
  19.             Tables: []structExchange.WTable{
  20.                 {
  21.                     Name:          "CompositionPrint",
  22.                     TypeParameter: "ForPrint",
  23.                     Values:        []interface{}{test},
  24.                 },
  25.             },
  26.         },
  27.     )
  28.  
  29.     if err != nil {
  30.         panic(err)
  31.     }
  32.  
  33.  
  34.  
  35.     fmt.Println(string(result.Tables[0].Values))
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top