Cp1251
DOC 
foreground = lightgray
document_width = 450
document_height = 300
document_title = "ZetaSE.Autocomplect/ Анализ потребности - выбор столбцов"
preloadscript=""

postloadscript="($X
                   #  ($debug 'show_perem: [' + ($ARGUMENTS.0@get 'show_perem') + ']')
                   ($if (($ARGUMENTS.0@get 'show_perem') == 1) ($g.check1@setValue '1') )
                   ($if (($ARGUMENTS.0@get 'show_spis') == 1) ($g.check2@setValue '1') )
                   ($if (($ARGUMENTS.0@get 'show_zak') == 1) ($g.check3@setValue '1') )
                   ($if (($ARGUMENTS.0@get 'show_supplier') == 1) ($g.check5@setValue '1') )
                   ($ret '')
                )"

{toolbar   BACKGROUND = "LIGHTGRAY"
{form width=780 height=150       bg_color="#c0c0c0"   alias = fm
  { checkgroup left = 150 top = 20  bg_color="#c0c0c0" font_size = 14
    { checkbox label = "Перемещено" alias = check1 onvalue="1" offvalue = "0" bg_color="#c0c0c0" font_size = 14 }
    { checkbox label = "Списано" alias = check2 onvalue="1" offvalue = "0" bg_color="#c0c0c0" font_size = 14 }
    { checkbox label = "В заказах" alias = check3 onvalue="1" offvalue = "0" bg_color="#c0c0c0" font_size = 14 }
    { checkbox label = "Поставщик" alias = check5 onvalue="1" offvalue = "0" bg_color="#c0c0c0" font_size = 14 }
  }
} // form
{button
  left = 11  width = 50    height = 20
  BACKGROUND = "LIGHTGRAY"    foreground="#000000"
  label = "OK"
  action = "($X
              ($if (($g.check1@getValue) == '1') ($ARGUMENTS.0@put 'show_perem' 1) $else ($ARGUMENTS.0@put 'show_perem' 0))
              ($if (($g.check2@getValue) == '1') ($ARGUMENTS.0@put 'show_spis' 1) $else ($ARGUMENTS.0@put 'show_spis' 0))
              ($if (($g.check3@getValue) == '1') ($ARGUMENTS.0@put 'show_zak' 1) $else ($ARGUMENTS.0@put 'show_zak' 0))
              ($if (($g.check5@getValue) == '1') ($ARGUMENTS.0@put 'show_supplier' 1) $else ($ARGUMENTS.0@put 'show_supplier' 0))
              ($g.self@actCancel)
              ($ret '')
             )"
}
} // toolbar

