Пример #1
0
        private void InitModelSubOrders(CompanyOrderCreateViewModel model)
        {
            var companyId           = WorkContext.CurrentMembershipUser.Company.Id;
            var searchSubOrderModel = new CompanySubOrderSearchModel
            {
                CompanyId          = companyId,
                SelectedBookStatus = 18,
                PageIndex          = 1,
                PageSize           = int.MaxValue
            };
            var subOrders = _companySubOrderService.Search(searchSubOrderModel);

            LoadSubOrders(model, subOrders);
        }
Пример #2
0
 private void SearchSubOrders(CompanyBookSearchViewModel model)
 {
     using (UnitOfWorkManager.NewUnitOfWork())
     {
         LoadBookStatusList(model);
         model.CompanySubOrders = _companySubOrderService.Search(new CompanySubOrderSearchModel
         {
             CompanyId          = WorkContext.CurrentMembershipUser.Company.Id,
             MaxSearchTime      = model.MaxSearchTime,
             MinSearchTime      = model.MinSearchTime,
             SelectedBookStatus = model.SelectedBookStatus,
             PageIndex          = model.PageIndex,
         });
     }
 }
Пример #3
0
 private void SearchSubOrders(HospitalBookSearchViewModel model)
 {
     using (UnitOfWorkManager.NewUnitOfWork())
     {
         LoadBookStatusList(model);
         LoadCompanies(model);
         model.CompanySubOrders = _companySubOrderService.Search(new CompanySubOrderSearchModel
         {
             CompanyId          = model.SelectedComany,
             MaxSearchTime      = model.MaxSearchTime,
             MinSearchTime      = model.MinSearchTime,
             SelectedBookStatus = model.SelectedBookStatus,
             PageIndex          = model.PageIndex,
         });
     }
 }