This commit is contained in:
@@ -5109,10 +5109,17 @@ namespace AyaNova.Biz
|
|||||||
*/
|
*/
|
||||||
string WoStatusName = string.Empty;
|
string WoStatusName = string.Empty;
|
||||||
string WoStatusColor = string.Empty;
|
string WoStatusColor = string.Empty;
|
||||||
|
bool WoStatusCompleted = false;
|
||||||
|
bool WoStatusLocked = false;
|
||||||
|
bool HasWoStatus = false;
|
||||||
if (w.States.Count > 0)
|
if (w.States.Count > 0)
|
||||||
{
|
{
|
||||||
WoStatusName = w.States[w.States.Count - 1].NameViz;
|
var st = w.States[w.States.Count - 1];
|
||||||
WoStatusColor = w.States[w.States.Count - 1].ColorViz;
|
HasWoStatus = true;
|
||||||
|
WoStatusName = st.NameViz;
|
||||||
|
WoStatusColor = st.ColorViz;
|
||||||
|
WoStatusCompleted = st.CompletedViz;
|
||||||
|
WoStatusLocked = st.LockedViz;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new
|
return new
|
||||||
@@ -5120,8 +5127,11 @@ namespace AyaNova.Biz
|
|||||||
serial = w.Serial,
|
serial = w.Serial,
|
||||||
w.CustomerViz,
|
w.CustomerViz,
|
||||||
wosummary = w.Notes,
|
wosummary = w.Notes,
|
||||||
|
haswostatus = HasWoStatus,
|
||||||
wostatus = WoStatusName,
|
wostatus = WoStatusName,
|
||||||
wostatuscolor = WoStatusColor,
|
wostatuscolor = WoStatusColor,
|
||||||
|
wostatuscompleted = WoStatusCompleted,
|
||||||
|
wostatuslocked = WoStatusLocked,
|
||||||
woitemnotes = w.Items[0].Notes,
|
woitemnotes = w.Items[0].Notes,
|
||||||
woitemtechnotes = w.Items[0].TechNotes,
|
woitemtechnotes = w.Items[0].TechNotes,
|
||||||
woitemstatus = w.Items[0].WorkOrderItemStatusNameViz,
|
woitemstatus = w.Items[0].WorkOrderItemStatusNameViz,
|
||||||
@@ -5129,6 +5139,8 @@ namespace AyaNova.Biz
|
|||||||
woitempriority = w.Items[0].WorkOrderItemPriorityNameViz,
|
woitempriority = w.Items[0].WorkOrderItemPriorityNameViz,
|
||||||
woitemprioritycolor = w.Items[0].WorkOrderItemPriorityColorViz,
|
woitemprioritycolor = w.Items[0].WorkOrderItemPriorityColorViz,
|
||||||
scheduser = w.Items[0].ScheduledUsers[0].UserViz,
|
scheduser = w.Items[0].ScheduledUsers[0].UserViz,
|
||||||
|
w.Items[0].ScheduledUsers[0].StartDate,
|
||||||
|
w.Items[0].ScheduledUsers[0].StopDate,
|
||||||
qty = w.Items[0].ScheduledUsers[0].EstimatedQuantity,
|
qty = w.Items[0].ScheduledUsers[0].EstimatedQuantity,
|
||||||
rate = w.Items[0].ScheduledUsers[0].ServiceRateViz,
|
rate = w.Items[0].ScheduledUsers[0].ServiceRateViz,
|
||||||
wotags = w.Tags,
|
wotags = w.Tags,
|
||||||
|
|||||||
Reference in New Issue
Block a user