Example #1
0
        public ActionResult Cheques(int transporterID)
        {
            ViewBag.TargetController = "Cheque";
            ViewBag.TransporterID    = transporterID;
            ViewBag.TransporterName  = _transporterService.FindById(transporterID).Name;
            //var transporterCheques = _transporterChequeService.Get(t=>t.TransporterChequeDetails.FirstOrDefault().TransporterPaymentRequest.TransportOrder.TransporterID == transporterID).OrderByDescending(t => t.IssueDate);
            var transporterCheques =
                _transporterChequeDetailService.Get(
                    t => t.TransporterPaymentRequest.TransportOrder.TransporterID == transporterID).Select(
                    c => c.TransporterCheque).Distinct();

            return(View(transporterCheques));
        }
Example #2
0
        public ActionResult TransporterDetail(int transporterID)
        {
            var transporter = _transporterService.FindById(transporterID);

            if (transporter == null)
            {
                return(HttpNotFound());
            }
            return(View(transporter));
        }
Example #3
0
        //
        // GET: /Procurement/ContractAdministration/

        public ActionResult Index(int transporterID)
        {
            var transporterObj = _transporterService.FindById(transporterID);

            ViewBag.TransporterID   = transporterID;
            ViewBag.PaymentRequests = (IEnumerable <Cats.Models.PaymentRequest>)_paymentRequestService
                                      .Get(t => t.TransportOrder.TransporterID == transporterID, null, "TransportOrder").ToList();
            ViewBag.TransporterName    = transporterObj.Name;
            ViewBag.TransporterAddress = "Region: " + transporterObj.Region
                                         + "  |  Sub-City: " + transporterObj.SubCity
                                         + "  |  Telephone: " + transporterObj.TelephoneNo;


            //var target = new TransportOrderDispatchViewModel { DispatchViewModels = dispatchView.Where(t => !t.GRNReceived).ToList(), DispatchViewModelsWithGRN = dispatchView.Where(t => t.GRNReceived).ToList(), TransportOrderViewModel = transportOrderViewModel };
            return(View());
        }
Example #4
0
        //
        // GET: /Procurement/ContractAdministration/

        public ActionResult Index(int transporterID)
        {
            var transporterObj = _transporterService.FindById(transporterID);

            ViewBag.TransporterID   = transporterID;
            ViewBag.PaymentRequests = (IEnumerable <Cats.Models.PaymentRequest>)_paymentRequestService
                                      .Get(t => t.TransportOrder.TransporterID == transporterID, null, "TransportOrder").ToList();
            ViewBag.TransporterName    = transporterObj.Name;
            ViewBag.TransporterAddress = "Region: " + transporterObj.Region
                                         + "  |  Sub-City: " + transporterObj.SubCity
                                         + "  |  Telephone: " + transporterObj.TelephoneNo;
            ViewBag.RegionID = new SelectList(_adminUnitService.GetRegions(), "AdminUnitID", "Name");
            //ViewBag.TransporterOrderID = new SelectList(_transportOrderService.GetTransporter(), "TransporterID", "Name", 0);
            //ViewBag.Round = new SelectList(new int[] {1,2,3,4,5,6,7,8,9,10,11,12}, 0);
            //var target = new TransportOrderDispatchViewModel { DispatchViewModels = dispatchView.Where(t => !t.GRNReceived).ToList(), DispatchViewModelsWithGRN = dispatchView.Where(t => t.GRNReceived).ToList(), TransportOrderViewModel = transportOrderViewModel };
            return(View());
        }