This commit is contained in:
@@ -182,7 +182,7 @@ namespace AyaNovaQBI
|
|||||||
/// Adjusts main form display to either show a list of billable workorders
|
/// Adjusts main form display to either show a list of billable workorders
|
||||||
/// or a status indicating there are none and why
|
/// or a status indicating there are none and why
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void SetState()
|
private async Task SetState()
|
||||||
{
|
{
|
||||||
fixProblemsToolStripMenuItem.Enabled = _MisMatches.Count > 0;
|
fixProblemsToolStripMenuItem.Enabled = _MisMatches.Count > 0;
|
||||||
|
|
||||||
@@ -190,29 +190,49 @@ namespace AyaNovaQBI
|
|||||||
{
|
{
|
||||||
|
|
||||||
grid.Visible = true;
|
grid.Visible = true;
|
||||||
this.lblStatus.Visible = false;
|
lblStatus.Visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append("No invoiceable work orders found in AyaNova\r\n\r\n");
|
sb.Append("No invoiceable work orders found in AyaNova\r\n\r\n");
|
||||||
sb.Append("A work order is invoiceable and will be listed here if it has:\r\n");
|
sb.Append("A work order is invoiceable and will be listed here if it has:\r\n");
|
||||||
|
|
||||||
sb.Append(" - \"Invoice number\" field empty\r\n");
|
sb.Append(" - \"Invoice number\" field empty\r\n");
|
||||||
if (util.QDat.PreWOStatus != Guid.Empty)
|
if (util.QDat.PreWOStatus != 0)
|
||||||
{
|
{
|
||||||
sb.Append(" - \"Status\" field set to: ");
|
sb.Append(" - \"Work order status\" field set to: ");
|
||||||
sb.Append(NameFetcher.GetItem("aWorkorderStatus", "aName", util.QDat.PreWOStatus));
|
var r = await util.GetAsync($"work-order-status/{util.QDat.PreWOStatus}");
|
||||||
|
var status = r.ObjectResponse["data"]["license"].ToObject<WorkOrderStatus>();
|
||||||
|
if (status != null)
|
||||||
|
sb.Append(status.Name);
|
||||||
|
else
|
||||||
|
sb.Append("UNKNOWN / MISSING STATUS - recently deleted?");
|
||||||
|
|
||||||
sb.Append("\r\n");
|
sb.Append("\r\n");
|
||||||
sb.Append(" (You can change this status under Tools->Preferences in the menu)");
|
sb.Append(" (You can change this status under Tools->Preferences in the menu)");
|
||||||
|
|
||||||
}
|
}
|
||||||
this.lblStatus.Text = sb.ToString();
|
else
|
||||||
|
sb.Append(" - any \"Locked\" type of Work order status set\r\n");
|
||||||
|
|
||||||
|
lblStatus.Text = sb.ToString();
|
||||||
|
|
||||||
grid.Visible = false;
|
grid.Visible = false;
|
||||||
this.lblStatus.Visible = true;
|
lblStatus.Visible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
|
||||||
|
POST /api/v8.0/data-list
|
||||||
|
{"offset":0,"limit":10,"dataListKey":"WorkOrderDataList","filterId":6,"clientTimeStamp":"2022-07-08T10:49:18.715-07:00"}
|
||||||
|
|
||||||
|
data-list-column-view:
|
||||||
|
{"userId":1,"listKey":"WorkOrderDataList","columns":"[\"WorkOrderSerialNumber\",\"Customer\",\"WorkOrderServiceDate\",\"WorkOrderCloseByDate\",\"WorkOrderStatus\",\"Project\",\"WorkOrderAge\",\"WorkOrderInvoiceNumber\"]","sort":"{\"WorkOrderSerialNumber\":\"-\"}"}
|
||||||
|
|
||||||
|
data-list-filter
|
||||||
|
filter "[{\"column\":\"WorkOrderInvoiceNumber\",\"any\":false,\"items\":[{\"op\":\"=\",\"value\":\"*NULL*\"}]}]"
|
||||||
|
|
||||||
|
*/
|
||||||
private WorkorderServiceBillableList _wolist = null;
|
private WorkorderServiceBillableList _wolist = null;
|
||||||
private List<util.MisMatch> _MisMatches = new List<util.MisMatch>();
|
private List<util.MisMatch> _MisMatches = new List<util.MisMatch>();
|
||||||
private List<long> _PartPriceOverrides = new List<long>();
|
private List<long> _PartPriceOverrides = new List<long>();
|
||||||
|
|||||||
Reference in New Issue
Block a user