This commit is contained in:
@@ -16,7 +16,7 @@ namespace AyaNova.DataList
|
||||
+ "left join acontract on (aworkorder.contractid=acontract.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "WorkOrderSerialNumber", "Customer", "WorkOrderServiceDate", "WorkOrderCloseByDate", "workordercity" };
|
||||
DefaultColumns = new List<string>() { "WorkOrderSerialNumber", "Customer", "WorkOrderServiceDate", "WorkOrderCloseByDate", "WorkOrderStatus" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "WorkOrderSerialNumber", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.WorkOrderStatus,
|
||||
SqlIdColumnName = "aworkorder.laststatusid",
|
||||
SqlColorColumnName = "aworkorderstatus.color",
|
||||
SqlValueColumnName = "aworkorderstatus.name"
|
||||
});
|
||||
|
||||
|
||||
@@ -764,7 +764,7 @@ namespace AyaNova.Util
|
||||
o.Name = "XYZ Accounting";
|
||||
|
||||
o.HeadOfficeId = HeadOfficeIdForCustomer;
|
||||
o.BillHeadOffice=true;
|
||||
o.BillHeadOffice = true;
|
||||
o.Active = true;
|
||||
o.Notes = Fake.Company.CatchPhrase();
|
||||
o.Tags = RandomTags();
|
||||
@@ -2521,7 +2521,7 @@ namespace AyaNova.Util
|
||||
|
||||
|
||||
o.CompleteByDate = woDate.AddDays(5);
|
||||
// o.CustomerContactName = "contact name here";
|
||||
// o.CustomerContactName = "contact name here";
|
||||
o.CustomerId = Fake.Random.Long(1, TotalSeededCustomers);
|
||||
|
||||
using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||
@@ -2888,7 +2888,20 @@ namespace AyaNova.Util
|
||||
Created = ((DateTime)o.ServiceDate).AddHours(2)
|
||||
};
|
||||
o.States.Add(WoState);
|
||||
o.LastStatusId=WoState.WorkOrderStatusId;//simulate if user added state to wo so it gets set
|
||||
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
var WoState = new WorkOrderState()
|
||||
{
|
||||
WorkOrderStatusId = (long)Fake.Random.Enum<SeedWOStatus>(SeedWOStatus.Scheduled),
|
||||
UserId = RandomServiceTechUserId(),
|
||||
Created = ((DateTime)o.ServiceDate).AddHours(2)
|
||||
};
|
||||
o.States.Add(WoState);
|
||||
o.LastStatusId = WoState.WorkOrderStatusId;//simulate if user added state to wo so it gets set
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user