This commit is contained in:
@@ -410,18 +410,19 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
//[HttpGet("accounting-list-billable/{workOrderStatusId}")]
|
//[HttpGet("accounting-list-billable/{workOrderStatusId}")]
|
||||||
var r = await util.GetAsync($"workorder/accounting-list-billable/{util.QDat.PreWOStatus}");
|
var r = await util.GetAsync($"workorder/accounting-list-billable/{util.QDat.PreWOStatus}");
|
||||||
_WorkOrderGridListItems = r.ObjectResponse["data"]
|
var v = r.ObjectResponse["data"]
|
||||||
.ToObject<List<WorkOrderAccountingListItem>>()
|
.ToObject<List<WorkOrderAccountingListItem>>();
|
||||||
|
_WorkOrderGridListItems = v
|
||||||
.Select(z => new WorkOrderGridListItem
|
.Select(z => new WorkOrderGridListItem
|
||||||
{
|
{
|
||||||
Color = z.Color,
|
Color = z.color,
|
||||||
CustomerId = z.CustomerId,
|
CustomerId = z.customerId,
|
||||||
CustomerName = z.CustomerName,
|
CustomerName = z.customerName,
|
||||||
Id = z.Id,
|
Id = z.id,
|
||||||
ProjectName = z.ProjectName,
|
ProjectName = z.projectName,
|
||||||
Serial = z.Serial,
|
Serial = z.serial,
|
||||||
ServiceDate = z.ServiceDate,
|
ServiceDate = z.serviceDate,
|
||||||
WorkorderStatusName = z.WorkorderStatusName
|
WorkorderStatusName = z.workorderStatusName
|
||||||
})
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ namespace AyaNovaQBI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal class WorkOrderAccountingListItem
|
internal class WorkOrderAccountingListItem
|
||||||
{
|
{
|
||||||
internal long Id { get; set; }
|
internal long id { get; set; }
|
||||||
internal long CustomerId { get; set; }
|
internal long customerId { get; set; }
|
||||||
internal string CustomerName { get; set; }
|
internal string customerName { get; set; }
|
||||||
internal string WorkorderStatusName { get; set; }
|
internal string workorderStatusName { get; set; }
|
||||||
internal long Serial { get; set; }
|
internal long serial { get; set; }
|
||||||
internal DateTime? ServiceDate { get; set; }
|
internal DateTime? serviceDate { get; set; }
|
||||||
internal string Color { get; set; }
|
internal string color { get; set; }
|
||||||
internal string ProjectName { get; set; }
|
internal string projectName { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user