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