Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public BSOListModel GetAvailableBSOStatus(long?statusId, bool withDefaultEmpty = false)
 {
     this.listBSOStatusesAvailable = StatusBSOProvider.GetAvailableBSOStatus(statusId, withDefaultEmpty);
     return(this);
 }