public PartialViewResult ViewInvoiceDetails(long deliveryId)
        {
            var delivery        = _iDeliveryManager.GetOrderByDeliveryId(deliveryId);
            var deliveryDetails = _iDeliveryManager.GetDeliveryDetailsInfoByDeliveryId(deliveryId);
            var orderInfo       = _iOrderManager.GetOrderInfoByTransactionRef(delivery.TransactionRef);
            var client          = _iClientManager.GetClientDeailsById(delivery.ClientId);
            var model           = new ViewInvoiceModel
            {
                Client          = client,
                Order           = orderInfo,
                Delivery        = delivery,
                DeliveryDetails = deliveryDetails
            };

            return(PartialView("_InvoiceDetailPartialPage", model));
        }
Пример #2
0
        public ActionResult Invoice(int deliveryId)
        {
            var delivery        = _iDeliveryManager.GetOrderByDeliveryId(deliveryId);
            var deliveryDetails = _iDeliveryManager.GetDeliveryDetailsInfoByDeliveryId(deliveryId);
            var orderInfo       = _iOrderManager.GetOrderInfoByTransactionRef(delivery.TransactionRef);
            var client          = _iClientManager.GetClientDeailsById(delivery.ClientId);

            var model = new ViewInvoiceModel
            {
                Client          = client,
                Order           = orderInfo,
                Delivery        = delivery,
                DeliveryDetails = deliveryDetails
            };

            return(View(model));
        }
 public PartialViewResult DeliveryDetailsByDeliveryId(long deliveryId)
 {
     try
     {
         var models = _iDeliveryManager.GetDeliveryDetailsInfoByDeliveryId(deliveryId);
         return(PartialView("_ViewDeliveryDetailsByIdPartialPage", models));
     }
     catch (Exception exception)
     {
         Log.WriteErrorLog(exception);
         return(PartialView("_ErrorPartial", exception));
     }
 }
Пример #4
0
        public ActionResult Invoice(int deliveryId)
        {
            var delivery = _iDeliveryManager.GetOrderByDeliveryId(deliveryId);
            //var chalan = _iDeliveryManager.GetChalanByDeliveryId(deliveryId);
            var deliveryDetails = _iDeliveryManager.GetDeliveryDetailsInfoByDeliveryId(deliveryId);

            // var invocedOrder = _iInvoiceManager.GetInvoicedOrderByInvoiceId(deliveryId);
            var orderInfo = _iOrderManager.GetOrderInfoByTransactionRef(delivery.TransactionRef);
            //IEnumerable<InvoiceDetails> details = _iInvoiceManager.GetInvoicedOrderDetailsByInvoiceId(deliveryId);
            var client = _iClientManager.GetClientDeailsById(orderInfo.ClientId);

            ViewInvoiceModel model = new ViewInvoiceModel
            {
                Client          = client,
                Order           = orderInfo,
                Delivery        = delivery,
                DeliveryDetails = deliveryDetails
            };

            return(View(model));
        }