static void Job18(Args _args)
{
Form form;
FormRun formRun;
Args args;
FormBuildDesign formBuildDesign;
FormBuildTabControl formBuildTabControl;
FormBuildTabPageControl formBuildTabPageControl;
FormBuildGridControl formBuildGridControl;
FormBuildDatasource formBuildDatasource;
FormBuildStringControl formString;
;
form = new Form();
formBuildDatasource = form.addDataSource(tableStr(PurchTable));
formBuildDesign = form.addDesign('design');
formBuildTabControl = formBuildDesign.addControl(FormControlType::Tab, 'Tab');
formBuildTabPageControl = formBuildTabControl.addControl(FormControlType::TabPage, 'TabPage');
formBuildTabPageControl.caption("@SYS35894");
formBuildGridControl = formBuildTabPageControl.addControl(FormControlType::Grid, 'Grid');
formString = formBuildGridControl.addDataField(formBuildDatasource.id(), fieldNum(PurchTable, PurchId));
formString.label("PurchId");
formString = formBuildGridControl.addDataField(formBuildDatasource.id(), fieldNum(PurchTable , OrderAccount));
formString.label("@SYS36303");
args = new Args();
args.object(form);
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
}