예제 #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);
 }
예제 #2
0
 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>();
 }
예제 #3
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();
 }
예제 #4
0
 public BSOListModel GetAvailableBSOStatus(long?statusId, bool withDefaultEmpty = false)
 {
     this.listBSOStatusesAvailable = StatusBSOProvider.GetAvailableBSOStatus(statusId, withDefaultEmpty);
     return(this);
 }
예제 #5
0
 public void FillReferenceForView()
 {
     DeliveryCenters = ReferencesProvider.GetReferences(Constants.DeliveryCenterRef, null, true);
     BSOResponsibles = StatusBSOProvider.GetListBSOResponsibles(true);
 }