示例#1
0
        public async Task <ActionResult> TendersWaitingTheUnitActionAsync(DashboardSearchCriteria dashboardSearchCriteriaModel)
        {
            var result = await _ApiClient.GetQueryResultAsync <TenderWaitingTheUnitActionViewModel>("Dashboard/TendersWaitingTheUnitActionAsync", dashboardSearchCriteriaModel.ToDictionary());

            return(Json(new PaginationModel(result.Items, result.TotalCount, result.PageSize, result.PageNumber, null)));
        }
示例#2
0
        public async Task <ActionResult> GetSuppliersEnquiryAsync(DashboardSearchCriteria dashboardSearchCriteriaModel)
        {
            var result = await _ApiClient.GetQueryResultAsync <SupplierEnquiryModel>("Dashboard/GetSuppliersEnquiry", dashboardSearchCriteriaModel.ToDictionary());

            return(Json(new PaginationModel(result.Items, result.TotalCount, result.PageSize, result.PageNumber, null)));
        }
示例#3
0
        public async Task <ActionResult> DirectInvitationsSummaryPagingAsync(DashboardSearchCriteria dashboardSearchCriteriaModel)
        {
            var result = await _ApiClient.GetAsync <DirectInvitationsSummaryViewModel>("Dashboard/DirectInvitationsSummaryPagingAsync", dashboardSearchCriteriaModel.ToDictionary());

            return(Json(new PaginationModel(result, result.DirectInvitations.TotalCount, result.DirectInvitations.PageSize, result.DirectInvitations.PageNumber, null)));
        }
示例#4
0
        public async Task <ActionResult> SuppliersCountPagingAsync(DashboardSearchCriteria dashboardSearchCriteriaModel)
        {
            var result = await _ApiClient.GetAsync <string>("Dashboard/SuppliersCountPagingAsync", dashboardSearchCriteriaModel.ToDictionary());

            return(Json(new PaginationModel(result, Convert.ToInt32(result), 10, 1, null)));
        }
示例#5
0
        public async Task <ActionResult> GetUnderEstablishedTendersAsync(DashboardSearchCriteria dashboardSearchCriteriaModel)
        {
            var result = await _ApiClient.GetAsync <SalesSummaryViewModel>("Dashboard/SalesSummaryPagingAsync", dashboardSearchCriteriaModel.ToDictionary());

            return(Json(new PaginationModel(result.Sales.Items, result.Sales.TotalCount, result.Sales.PageSize, result.Sales.PageNumber, result.Total.ToString() + "," + result.PriceTotal)));
        }