var propert property Document Incident InvolvementDegree type Ref rela

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var propert = "";
property = {
'Document.Incident.InvolvementDegree': {
type: "Ref",
relation: "Catalog.InvolvementDegree",
value: "6b6a9525-18d5-11e5-b5c0-000c2990a7f1"
},
'Document.Incident.InfluenceDegree': {
type: "Ref",
relation: "Catalog.InfluenceDegree",
value: "6b6a9529-18d5-11e5-b5c0-000c2990a7f1"
}
}
var output = {};
output["Items"] = incidentMetadata;
output["parametr"] = property;
var dataObject = {
'Document.Incident.СсылкаНаОбъект': "Nun",
'Document.Incident.Service': "c94b5ef0-199e-11e5-b5c0-000c2990a7f1",
'Document.Incident.InvolvementDegree': "b465e55a-1b19-11e5-b5c0-000c2990a7f1",
'Document.Incident.InfluenceDegree': "b465e55d-1b19-11e5-b5c0-000c2990a7f1",
'Document.Incident.Info': "Test bla bla",
'Document.Incident.ShortDescription': "zxdfsdfg"
};
output["Properties"] = dataObject
var responsePromise = $http({
method: 'POST',
url: 'http://localhost:59186/FormAction',
data: {
FormPAram: angular.toJson(output),
Method : "InvolvementDegreeПриИзменении_Сервер",
}
});