Manual copy for now
This commit is contained in:
parent
fb3c3ce699
commit
172f45aa67
@ -11,8 +11,6 @@ public class FIBacklogMesa
|
||||
string assignedTo,
|
||||
string secondResource,
|
||||
string subject,
|
||||
string epiLine,
|
||||
string area,
|
||||
string systemS,
|
||||
string priority,
|
||||
string status,
|
||||
@ -44,8 +42,6 @@ public class FIBacklogMesa
|
||||
AssignedTo = assignedTo;
|
||||
SecondResource = secondResource;
|
||||
Subject = subject;
|
||||
EpiLine = epiLine;
|
||||
Area = area;
|
||||
SystemS = systemS;
|
||||
Priority = priority;
|
||||
Status = status;
|
||||
@ -85,10 +81,6 @@ public class FIBacklogMesa
|
||||
[JsonPropertyName("Subject - from Requestor")]
|
||||
public string Subject { get; set; } // { init; get; }
|
||||
|
||||
[JsonPropertyName("Epi Line")]
|
||||
public string EpiLine { get; set; } // { init; get; }
|
||||
public string Area { get; set; } // { init; get; }
|
||||
|
||||
[JsonPropertyName("System(s)")]
|
||||
public string SystemS { get; set; } // { init; get; }
|
||||
|
||||
@ -111,7 +103,7 @@ public class FIBacklogMesa
|
||||
[JsonPropertyName("UAT as of")]
|
||||
public string UATAsOf { get; set; } // { init; get; }
|
||||
|
||||
[JsonPropertyName("CMP _Date")]
|
||||
[JsonPropertyName("CMP_Date")]
|
||||
public string CMPDate { get; set; } // { init; get; }
|
||||
public string F20 { get; set; } // { init; get; }
|
||||
public string F21 { get; set; } // { init; get; }
|
||||
|
@ -121,6 +121,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
}
|
||||
if (_IsEAFHosted)
|
||||
File.WriteAllText(fileName, json);
|
||||
File.WriteAllText("D:/Web-sites/Backlog/json/data.json", json);
|
||||
results = iProcessData.GetResults(this, _Logistics, results.Item4);
|
||||
}
|
||||
return results;
|
||||
|
@ -14,8 +14,8 @@ using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.SelfHost;
|
||||
//using System.Web.Http;
|
||||
//using System.Web.Http.SelfHost;
|
||||
|
||||
namespace Adaptation.FileHandlers.json;
|
||||
|
||||
@ -29,7 +29,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
private readonly string _Project;
|
||||
private readonly string _BasePage;
|
||||
private readonly HttpClient _HttpClient;
|
||||
private readonly HttpSelfHostServer _HttpSelfHostServer;
|
||||
//private readonly HttpSelfHostServer _HttpSelfHostServer;
|
||||
private readonly WorkItemTrackingHttpClient _WorkItemTrackingHttpClient;
|
||||
|
||||
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, int? connectionCount, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
||||
@ -62,11 +62,11 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
VssConnection connection = new(new(string.Concat(baseAddress, basePage)), credential);
|
||||
_WorkItemTrackingHttpClient = connection.GetClient<WorkItemTrackingHttpClient>();
|
||||
_BasePage = basePage;
|
||||
string httpSelfHostConfigurationBaseAddress = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, string.Concat("CellInstance.", cellInstanceName, ".HttpSelfHostConfiguration.BaseAddress"));
|
||||
HttpSelfHostConfiguration config = new(httpSelfHostConfigurationBaseAddress);
|
||||
_ = config.Routes.MapHttpRoute("API Default", "api/{controller}/{id}", new { id = RouteParameter.Optional });
|
||||
_HttpSelfHostServer = new(config);
|
||||
_HttpSelfHostServer.OpenAsync().Wait();
|
||||
//string httpSelfHostConfigurationBaseAddress = "http://localhost:5159"; // GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, string.Concat("CellInstance.", cellInstanceName, ".HttpSelfHostConfiguration.BaseAddress"));
|
||||
//HttpSelfHostConfiguration config = new(httpSelfHostConfigurationBaseAddress);
|
||||
//_ = config.Routes.MapHttpRoute("API Default", "api/{controller}/{id}", new { id = RouteParameter.Optional });
|
||||
//_HttpSelfHostServer = new(config);
|
||||
//_HttpSelfHostServer.OpenAsync().Wait();
|
||||
}
|
||||
|
||||
void IFileRead.Move(Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResults, Exception exception) => Move(extractResults);
|
||||
|
@ -5,14 +5,14 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>FI Backlog Mesa</title>
|
||||
<link href="/igniteui/css/themes/bootstrap3/default/infragistics.theme.css?v=2023-06-09-15-01" rel="stylesheet" />
|
||||
<link href="/igniteui/css/structure/infragistics.css?v=2023-06-09-15-01" rel="stylesheet" />
|
||||
<script src="/js/jquery-3.6.0.min.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<script src="/js/jquery-ui.min.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<script src="/js/site.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.core.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.lob.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.dv.js?v=2023-06-09-15-01" type="text/javascript"></script>
|
||||
<link href="/igniteui/css/themes/bootstrap3/default/infragistics.theme.css?v=2023-06-09-16-27" rel="stylesheet" />
|
||||
<link href="/igniteui/css/structure/infragistics.css?v=2023-06-09-16-27" rel="stylesheet" />
|
||||
<script src="/js/jquery-3.6.0.min.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
<script src="/js/jquery-ui.min.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
<script src="/js/site.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.core.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.lob.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
<script src="/igniteui/js/infragistics.dv.js?v=2023-06-09-16-27" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>FI Backlog Mesa</h2>
|
||||
|
@ -1,10 +1,12 @@
|
||||
function compareFunction(a, b) {
|
||||
return a['Priority'][0] - b['Priority'][0] || a['Req '].length - b['Req '].length || a['Req '] - b['Req '];
|
||||
return a.Priority[0] - b.Priority[0] || a.Req.length - b.Req.length || a.Req - b.Req;
|
||||
}
|
||||
|
||||
function initIndex(url) {
|
||||
$.getJSON(url, function (data) {
|
||||
for (var i = data.length - 1; i > -1; i--) {
|
||||
if (data[i]['Subject - from Requestor'].length > 255)
|
||||
data[i]['Subject - from Requestor'] = data[i]['Subject - from Requestor'].substring(0, 255) + '...';
|
||||
if (data[i].Submitted !== '')
|
||||
continue;
|
||||
data.splice(i, 1);
|
||||
@ -21,8 +23,7 @@ function initIndex(url) {
|
||||
{ key: "Requestor", dataType: "string" },
|
||||
{ key: "Assigned To", dataType: "string" },
|
||||
{ key: "Second Resource", dataType: "string" },
|
||||
{ key: "Subject - from Requestor", dataType: "string" },
|
||||
{ key: "System(s)", dataType: "string" },
|
||||
{ key: "Subject - from Requestor", dataType: "string", width: "30%" },
|
||||
{ key: "Priority", dataType: "string" },
|
||||
],
|
||||
features: [
|
||||
|
@ -182,9 +182,6 @@
|
||||
<PackageReference Include="Microsoft.TeamFoundationServer.Client">
|
||||
<Version>16.205.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.AspNet.WebApi.SelfHost">
|
||||
<Version>5.2.7</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Text.Json">
|
||||
<Version>6.0.3</Version>
|
||||
</PackageReference>
|
||||
|
Loading…
x
Reference in New Issue
Block a user