MyTetra Share
Делитесь знаниями!
Проба соединения
Время создания: 31.01.2020 14:20
Раздел: INFO - JOB - rtneo - Работа над задачами - КорректировкаУПД
Запись: wwwlir/Tetra/master/base/1580451607xqvniubtlq/text.html на raw.githubusercontent.com

import com.groupstp.rtneo.entity.*

import com.haulmont.cuba.core.global.*

import com.groupstp.import1cstp.service.*


ImportControllerService importService = AppBeans.get(ImportControllerService.NAME);

SettingsService settings = AppBeans.get(SettingsService.NAME);

Sync1CService sync = AppBeans.get(Sync1CService.NAME);



String directoryListSettingsKey=ImportControllerService.directoryListSettingsKey;

String urlSettingsKey=ImportControllerService.urlSettingsKey;

String passwordSettingsKey=ImportControllerService.passwordSettingsKey;

String userNameSettingsKey=ImportControllerService.userNameSettingsKey;

String directoryKey=ImportControllerService.directoryKey;


//def url = settings.getObjectValue(urlSettingsKey)

def url = 'http://192.168.70.17:80/regoperator/hs/ro/GetActs'

def user = settings.getObjectValue(userNameSettingsKey)

def password = settings.getObjectValue(passwordSettingsKey)


_(url)

String bodyString = "{ 'inn': ['253700011917'],'date_begin':'20190101','date_end':'20191201'}";

//String bodyString = "{ \"inn\": [\"253700011917\"],\"date_begin\":\"20190101\",\"date_end\":\"20191201\"}";

try {

result = sync.getStringData1C(url, password, user, bodyString);

} catch (Exception e) {

_(e)

}

_(result)


public _(def o){

log.debug(o)

}

 
MyTetra Share v.0.65
Яндекс индекс цитирования