This commit is contained in:
@@ -91,7 +91,7 @@ namespace AyaNovaQBI
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private async void refreshInvoicesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -156,7 +156,7 @@ namespace AyaNovaQBI
|
||||
|
||||
#region WORKORDERS / INVOICING
|
||||
|
||||
|
||||
|
||||
|
||||
private void multipleWorkordersPerInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ namespace AyaNovaQBI
|
||||
lblStatus.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private DataTable _GridTable = null;
|
||||
private List<util.MisMatch> _MisMatches = new List<util.MisMatch>();
|
||||
private List<long> _PartPriceOverrides = new List<long>();
|
||||
@@ -262,7 +262,7 @@ namespace AyaNovaQBI
|
||||
_GridTable.Columns.Add(new DataColumn("ProjectName"));
|
||||
_GridTable.Columns.Add(new DataColumn("Color"));
|
||||
_GridTable.Columns.Add(new DataColumn("CustomerId", typeof(long)));
|
||||
_GridTable.Columns.Add(new DataColumn("Id", typeof(long)));
|
||||
_GridTable.Columns.Add(new DataColumn("Id", typeof(long)));
|
||||
_GridTable.Columns.Add(new DataColumn("Linked", typeof(bool)));
|
||||
}
|
||||
else
|
||||
@@ -276,18 +276,19 @@ namespace AyaNovaQBI
|
||||
var v = r.ObjectResponse["data"].ToObject<List<WorkOrderAccountingListItem>>();
|
||||
|
||||
foreach (WorkOrderAccountingListItem z in v)
|
||||
{
|
||||
{
|
||||
w.Step = "WO: " + z.Serial;
|
||||
DataRow row = _GridTable.NewRow();
|
||||
row["CustomerName"] = z.CustomerName;
|
||||
row["Serial"] = z.Serial;
|
||||
row["ServiceDate"] = z.ServiceDate;
|
||||
if (z.ServiceDate != null)
|
||||
row["ServiceDate"] = ((DateTime)z.ServiceDate).ToLocalTime();
|
||||
row["WorkorderStatusName"] = z.WorkorderStatusName;
|
||||
row["ProjectName"] = z.ProjectName;
|
||||
row["Color"] = z.Color;
|
||||
row["CustomerId"] = z.CustomerId;
|
||||
row["Id"] = z.Id;
|
||||
row["Linked"]= await util.ScanLinksOK(z.Id, _MisMatches, _PartPriceOverrides);
|
||||
row["Linked"] = await util.ScanLinksOK(z.Id, _MisMatches, _PartPriceOverrides);
|
||||
_GridTable.Rows.Add(row);
|
||||
}
|
||||
|
||||
@@ -307,7 +308,7 @@ namespace AyaNovaQBI
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion workorders / invoicing
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user