This commit is contained in:
@@ -20,7 +20,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
btnOk.Enabled = false;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
|
||||
|
||||
@@ -1379,13 +1379,13 @@ namespace AyaNova.PlugIn.V8
|
||||
Tagit(c.RegionID, tags);
|
||||
SetTags(d, tags);
|
||||
|
||||
d.serial = c.WorkorderService.ServiceNumber;
|
||||
|
||||
|
||||
var rMainObject = await util.PostAsync(RavenRouteName);
|
||||
var rMainObject = await util.PostAsync(RavenRouteName, d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
d = rMainObject.ObjectResponse["data"];
|
||||
|
||||
d.serial = c.WorkorderService.ServiceNumber;
|
||||
|
||||
//Attachments / FILES
|
||||
await ExportAttachments(ObjectTID, progress, util.AyaType.WorkOrder);
|
||||
@@ -1413,7 +1413,7 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
|
||||
//put the final object
|
||||
await util.PutAsync(RavenRouteName + "/" + RavenId.ToString(), d.ToString());
|
||||
await util.PutAsync(RavenRouteName, d.ToString());
|
||||
//-----
|
||||
|
||||
//Event log fixup
|
||||
@@ -1439,7 +1439,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
dwi.notes = "Summary:\n" + wi.Summary + "TechNotes: \n" + wi.TechNotes;
|
||||
|
||||
await util.PostAsync("workorders/items", d.ToString());
|
||||
await util.PostAsync("workorders/items", dwi.ToString());
|
||||
|
||||
//and rest of tree below here...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user