示例#1
0
 public ProviderLiteViewModel(CompanySurveyIndexModel oElasticSurveySearchModel)
 {
     ElasticRealtedProvider = new CompanyIndexModel()
     {
         City   = oElasticSurveySearchModel.City,
         CityId = oElasticSurveySearchModel.CityId,
         CommercialCompanyName = oElasticSurveySearchModel.CommercialCompanyName,
         CompanyEnable         = oElasticSurveySearchModel.CompanyEnable,
         CompanyName           = oElasticSurveySearchModel.CompanyName,
         CompanyPublicId       = oElasticSurveySearchModel.CompanyPublicId,
         Country          = oElasticSurveySearchModel.Country,
         CountryId        = oElasticSurveySearchModel.CountryId,
         CustomerPublicId = oElasticSurveySearchModel.CustomerPublicId,
         ICA   = oElasticSurveySearchModel.ICA,
         ICAId = oElasticSurveySearchModel.ICAId,
         IdentificationNumber = oElasticSurveySearchModel.IdentificationNumber,
         IdentificationType   = oElasticSurveySearchModel.IdentificationType,
         IdentificationTypeId = oElasticSurveySearchModel.IdentificationTypeId,
         InBlackList          = oElasticSurveySearchModel.InBlackList,
         LogoUrl = oElasticSurveySearchModel.LogoUrl,
         oCustomerProviderIndexModel = oElasticSurveySearchModel.oCustomerProviderIndexModel,
         PrincipalActivity           = oElasticSurveySearchModel.PrincipalActivity,
         PrincipalActivityId         = oElasticSurveySearchModel.PrincipalActivityId,
         ProviderStatus   = oElasticSurveySearchModel.ProviderStatus,
         ProviderStatusId = oElasticSurveySearchModel.ProviderStatusId,
     };
 }
示例#2
0
        public ActionResult Index(string u, int cate = 0)
        {
            var user  = GetSnsUser(u);
            var model = new CompanyIndexModel(user, CurrentUser, cate);

            return(View(model));
        }
示例#3
0
 public CustomerSearchViewModel(CompanyIndexModel oDocumentCompany, int TotalRowsParam)
 {
     this.ImageUrl             = oDocumentCompany.LogoUrl;
     this.IdentificationNumber = oDocumentCompany.IdentificationNumber;
     this.IdentificationType   = oDocumentCompany.IdentificationType;
     this.CustomerName         = oDocumentCompany.CompanyName;
     this.CustomerPublicId     = oDocumentCompany.CompanyPublicId;
     this.Enable    = oDocumentCompany.CompanyEnable;
     this.TotalRows = TotalRowsParam;
 }
示例#4
0
 public ProviderSearchViewModel(CompanyIndexModel oDocumentCompany, int TotalRowsParam)
 {
     this.ImageUrl             = oDocumentCompany.LogoUrl;
     this.IdentificationNumber = oDocumentCompany.IdentificationNumber;
     this.IdentificationType   = oDocumentCompany.IdentificationType;
     this.IsOnRestrictiveList  = oDocumentCompany.InBlackList;
     this.ProviderName         = oDocumentCompany.CompanyName;
     this.ProviderPublicId     = oDocumentCompany.CompanyPublicId;
     this.Enable    = oDocumentCompany.CompanyEnable;
     this.TotalRows = TotalRowsParam;
 }
示例#5
0
        public async Task <IActionResult> UserCompany()
        {
            await GetLoggedInUser();

            var model = new CompanyIndexModel
            {
                Companies         = (await _companyService.GetUserCompaniesAsync(user.Id)).ToList(),
                HasPendingRequest = await _companyRequestService.HastPendingReques(user.Id)
            };

            model.Companies.ForEach(c => c.CompanyImageUrl = $"{_pathService.PictureFolder}{c.CompanyImageUrl}");

            return(View(model));
        }
 public ActionResult Company()
 {
     if (Session["Login"] != null && Session["Company"] != null)
     {
         gelen        = (AppUsers)Session["Login"];
         companybilgi = (Company)Session["Company"];
         CompanyIndexModel companyındexveri = new CompanyIndexModel();
         companyındexveri.toplamgoruntulenme = companyIndexManagemet.CompanyProductView(gelen.Company.First().CompanyID);
         companyındexveri.gunluksatıs        = companyIndexManagemet.getDailySales(gelen.Company.First().CompanyID);
         companyındexveri.aylıksatıs         = companyIndexManagemet.getMonthlySales(gelen.Company.First().CompanyID);
         companyındexveri.yıllıksatıs        = companyIndexManagemet.getYearlySales(gelen.Company.First().CompanyID);
         companyındexveri.totalsatıs         = companyIndexManagemet.getTotalSales(gelen.Company.First().CompanyID);
         companyındexveri.depolar            = companyIndexManagemet.getStorage(gelen.Company.First().CompanyID);
         return(View(companyındexveri));
     }
     else
     {
         return(RedirectToAction("Index", "Home", new { @area = "" }));
     }
 }
示例#7
0
 public ProviderLiteViewModel(CompanyIndexModel oElasticSearchModel)
 {
     ElasticRealtedProvider = oElasticSearchModel;
 }