Skip to content

Instantly share code, notes, and snippets.

@Taifunov
Last active April 21, 2021 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Taifunov/b904a0d4d66a405e88c5be151083c1ce to your computer and use it in GitHub Desktop.
Save Taifunov/b904a0d4d66a405e88c5be151083c1ce to your computer and use it in GitHub Desktop.
Результат форича
function getSummaryReportSchema(transactionid) {
transactionService.getSummaryReportSchema(transactionid, orgName)
.then((result) => {
log(JSON.stringify(result))
result.forEach(element => {
let values = element.Values;
vm.masterDetailResults.push(values);
vm.tabs.push({
title: element.TaskName
});
});
});
};
[
{
"TaskName": "Return_To_WS",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"1\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
},
{
"TaskName": "Return_To_WS",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"Yaroslav\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
},
{
"TaskName": "Return_To_WS",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"Yaroslav\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
},
{
"TaskName": "Task 3",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"Yaroslav\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
},
{
"TaskName": "Task 3",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"Yaroslav\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
},
{
"TaskName": "Task 3",
"Values": "[\r\n {\r\n \"Key\": \"ExecuteStatus\",\r\n \"Value\": \"0\"\r\n },\r\n {\r\n \"Key\": \"ExecuteTime\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteMessege\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"ExecuteEntityID\",\r\n \"Value\": \"\"\r\n },\r\n {\r\n \"Key\": \"1\",\r\n \"Value\": \"test1\"\r\n },\r\n {\r\n \"Key\": \"2\",\r\n \"Value\": \"test2\"\r\n },\r\n {\r\n \"Key\": \"3\",\r\n \"Value\": \"test3\"\r\n },\r\n {\r\n \"Key\": \"firstName\",\r\n \"Value\": \"1\"\r\n },\r\n {\r\n \"Key\": \"ExecuteDetails\",\r\n \"Value\": \"\"\r\n }\r\n]"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment