public BSOListModel() { this.SearchCriteriaModel = new BSOSearchCriteriaModel(); DeliveryCenters = ReferencesProvider.GetReferences(Constants.DeliveryCenterForOperatorRef, null, false); DeliveryPoints = ReferencesProvider.GetReferences(Constants.DeliveryPointRef, null, true); listBSOStatuses = StatusBSOProvider.GetBSOListStatus(true); listBSOStatusesAvailable = StatusBSOProvider.GetAvailableBSOStatus(null, true); listBSOResponsibles = StatusBSOProvider.GetListBSOResponsibles(true); }
public BSOCreateModel() { this.StatusDate = DateTime.Now; this.ChangeDate = DateTime.Now; this.DeliveryCenters = ReferencesProvider.GetReferences(Constants.DeliveryCenterForOperatorRef, null, true); this.DeliveryPoints = ReferencesProvider.GetReferences(Constants.DeliveryPointRef, null, true); this.listBSOStatuses = StatusBSOProvider.GetBSOListStatus(false); this.GoodMessages = new List <string>(); this.FailMessages = new List <string>(); }
public BSOSaveDataModel(BSO bso) { this.Id = bso.Id; this.TemporaryPolicyNumber = bso.TemporaryPolicyNumber; this.PolicyPartyNumber = bso.PolicyPartyNumber; this.StatusId = bso.Status.Id; this.StatusName = bso.Status.Name; this.StatusDate = bso.StatusDate; this.DeliveryCenterId = bso.DeliveryCenterId; this.DeliveryPointId = bso.DeliveryPointId; this.VisitGroupId = bso.VisitGroupId; this.Comment = bso.Comment; this.UserId = bso.UserId; this.ResponsibleID = bso.ResponsibleID; this.ChangeDate = bso.ChangeDate; this.DeliveryCenters = ReferencesProvider.GetReferences(Constants.DeliveryCenterForOperatorRef, null, true); this.DeliveryPoints = ReferencesProvider.GetReferences(Constants.DeliveryPointRef, null, true); this.listBSOStatuses = StatusBSOProvider.GetBSOListStatus(false); this.listBSOStatusesAvailable = StatusBSOProvider.GetAvailableBSOStatus(bso.Status.Id, true); this.listBSOResponsibles = StatusBSOProvider.GetListBSOResponsibles(true); validator = new BSOSaveDataModelValidator(); }
public BSOListModel GetAvailableBSOStatus(long?statusId, bool withDefaultEmpty = false) { this.listBSOStatusesAvailable = StatusBSOProvider.GetAvailableBSOStatus(statusId, withDefaultEmpty); return(this); }
public void FillReferenceForView() { DeliveryCenters = ReferencesProvider.GetReferences(Constants.DeliveryCenterRef, null, true); BSOResponsibles = StatusBSOProvider.GetListBSOResponsibles(true); }