This commit is contained in:
@@ -411,11 +411,11 @@ namespace AyaNova.PlugIn.V8
|
||||
if (hasWiki || adminCustomFields != null)
|
||||
{
|
||||
//yes, so fetch it and modify it and put it back again
|
||||
var a = await util.GetAsync("User/1");
|
||||
var a = await util.GetAsync("user/1");
|
||||
dynamic d = a.ObjectResponse["data"];
|
||||
d.wiki = AdminWikiContent;
|
||||
d.customFields = CustomFieldData(admin, DateCustomFields);
|
||||
await util.PutAsync("User/1", d.ToString());
|
||||
await util.PutAsync("user/1", d.ToString());
|
||||
}
|
||||
|
||||
|
||||
@@ -486,14 +486,14 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync("User", d.ToString());
|
||||
var rMainObject = await util.PostAsync("user", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
//USER OPTIONS
|
||||
if (c.ScheduleBackColor != 0 || !string.IsNullOrWhiteSpace(c.EmailAddress))
|
||||
{
|
||||
var rOptions = await util.GetAsync("UserOptions/" + RavenId.ToString());
|
||||
var rOptions = await util.GetAsync("user-option/" + RavenId.ToString());
|
||||
d = rOptions.ObjectResponse["data"];
|
||||
d.uiColor = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(c.ScheduleBackColor));
|
||||
d.emailAddress = string.IsNullOrWhiteSpace(c.EmailAddress) ? null : c.EmailAddress;
|
||||
@@ -502,7 +502,7 @@ namespace AyaNova.PlugIn.V8
|
||||
else
|
||||
d.translationId = 1;
|
||||
|
||||
await util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString());
|
||||
await util.PutAsync("user-option/" + RavenId.ToString(), d.ToString());
|
||||
}
|
||||
|
||||
//Attachments / FILES
|
||||
@@ -1475,7 +1475,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
|
||||
dynamic d = new JObject();
|
||||
//d.concurrencyToken = util.CTokenFromResponse(rMainObject);
|
||||
//d.concurrency = util.CTokenFromResponse(rMainObject);
|
||||
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||
|
||||
@@ -1529,7 +1529,7 @@ namespace AyaNova.PlugIn.V8
|
||||
dynamic dwi = new JObject();
|
||||
dwi.workOrderId = RavenId;
|
||||
|
||||
// d.concurrencyToken = util.CTokenFromResponse(rMainObject);
|
||||
// d.concurrency = util.CTokenFromResponse(rMainObject);
|
||||
progress.Op("WorkorderItem " + wi.ID.ToString());
|
||||
dwi.active = true;//probably can remove this at server, just stubbed in for now
|
||||
|
||||
@@ -1586,7 +1586,7 @@ namespace AyaNova.PlugIn.V8
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
dynamic d = new JObject();
|
||||
d.concurrencyToken = util.CTokenFromResponse(rMainObject);
|
||||
d.concurrency = util.CTokenFromResponse(rMainObject);
|
||||
progress.Op(ObjectTypeName + " " + c.WorkorderQuote.QuoteNumber);
|
||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||
|
||||
@@ -1670,7 +1670,7 @@ namespace AyaNova.PlugIn.V8
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
dynamic d = new JObject();
|
||||
d.concurrencyToken = util.CTokenFromResponse(rMainObject);
|
||||
d.concurrency = util.CTokenFromResponse(rMainObject);
|
||||
progress.Op(ObjectTypeName + " " + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber);
|
||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||
|
||||
@@ -2327,7 +2327,7 @@ namespace AyaNova.PlugIn.V8
|
||||
//ok, were here because there *are* custom fields available
|
||||
var a = await util.GetAsync("form-custom/" + RavenCustomTranslationKeyObjectName);
|
||||
var ctoken = util.CTokenFromResponse(a);
|
||||
d.concurrencyToken = ctoken;
|
||||
d.concurrency = ctoken;
|
||||
await util.PutAsync("form-custom/" + RavenCustomTranslationKeyObjectName, d.ToString());
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user