Ejemplo n.º 1
0
        public ActionResult LoadHybridPathedPartial(string pipelineDuns)
        {
            PathedDTO model = new PathedDTO();

            model.PathedNomsList = new List <PathedNomDetailsDTO>()
            {
                new PathedNomDetailsDTO()
                {
                    StartDate = DateTime.Now, EndDate = DateTime.Now, CycleID = 1
                }
            };
            model.PipelineDuns = pipelineDuns;
            DateTime todayDate = DateTime.Now.Date;
            ShipperReturnByIdentity currentIdentityValues = GetValueFromIdentity();
            int status = -1;
            int pathedListTotalCount = _pathedNominationService.GetPathedListTotalCount(model.PipelineDuns, status, DateTime.MinValue, DateTime.Now.AddYears(1), currentIdentityValues.ShipperDuns, new Guid(currentIdentityValues.UserId));

            List <PathedNomDetailsDTO> nomlist = _pathedNominationService.GetPathedListWithPaging(model.PipelineDuns, status, DateTime.MinValue, DateTime.Now.AddYears(1), currentIdentityValues.ShipperDuns, new Guid(currentIdentityValues.UserId), new SortingPagingInfo()
            {
                CurrentPageIndex = 0, PageSize = pathedListTotalCount == 0 ? 1: pathedListTotalCount
            });

            model.PathedNomsList = UpdatePathedCounterPartyAndLoactionName(nomlist);

            var CycleIndicator = _cycleIndicator.GetCycles();
            var QuantityType   = _metadataQuantityTypeIndicatorService.GetQuantityTypes();
            var CapacityType   = _metadataCapacityTypeIndicatorService.GetCapacityTypes();
            var BidUp          = _metaDataBidUpIndicatorService.GetBidUpIndicator();
            var Export         = _metadataExportDeclarationService.GetExportDeclarations();
            var Status         = metadataFileStatusService.GetNomStatus();

            ViewBag.Cycles       = CycleIndicator;
            ViewBag.QuantityType = QuantityType;
            ViewBag.CapacityType = CapacityType;
            ViewBag.BidUp        = BidUp;
            ViewBag.Export       = Export;
            ViewBag.StatusID     = Status;
            return(PartialView("_Pathedhybrid", model));
        }