Beispiel #1
0
        public ActionResult TransactionDetail(string txnid, string txntype)
        {
            DynamicReportModel dynamicReportModel = new DynamicReportModel();
            //DynamicReportCommon dynamicReportCommons = new DynamicReportCommon();
            string txnId = txnid.DecryptParameter();
            string flag  = "";

            if (txntype.ToUpper() == "MOBILE TOPUP")
            {
                flag = "m";
            }
            else if (txntype.ToUpper() == "BALANCE TRANSFER" || txntype.ToUpper() == "BALANCE REFUND")
            {
                flag = "t";
            }
            else if (txntype.ToUpper() == "CASH BACK")
            {
                flag = "M";
            }
            else if (txntype.ToUpper() == "FUND TRANSFER")
            {
                flag = "F";
            }
            else if (txntype.ToUpper() == "MERCHANT PAYMENT")
            {
                flag = "MP";
            }

            if (!String.IsNullOrEmpty(txnId) && !string.IsNullOrEmpty(flag))
            {
                dynamicReportModel = _Report.GetActivityDetail(txnId, flag).MapObject <DynamicReportModel>();
                return(View(dynamicReportModel));
            }
            return(RedirectToAction("Index"));
        }
        public ActionResult PendingTransactionDetail(string ID = "", string TxnId = "")
        {
            DynamicReportModel  dynamicReportModel   = new DynamicReportModel();
            DynamicReportCommon dynamicReportCommons = new DynamicReportCommon();
            string id    = ID.DecryptParameter();
            string txnId = TxnId;

            if (!String.IsNullOrEmpty(id))
            {
                dynamicReportCommons = _dynamicReport.GetTransactionReportDetail(txnId, id);
            }
            dynamicReportModel = dynamicReportCommons.MapObject <DynamicReportModel>();
            return(View(dynamicReportModel));
        }
Beispiel #3
0
        public ActionResult PrintTransactionResult(string txnid)
        {
            DynamicReportModel dynamicReportModel = new DynamicReportModel();
            //DynamicReportCommon dynamicReportCommons = new DynamicReportCommon();
            string txnId = txnid.DecryptParameter();

            if (!String.IsNullOrEmpty(txnId))
            {
                IDynamicReportBusiness _dynamicReport = new DynamicReportBusiness();
                dynamicReportModel = _dynamicReport.GetTransactionReportDetail(txnId).MapObject <DynamicReportModel>();;
                return(View(dynamicReportModel));
            }
            //dynamicReportModel = dynamicReportCommons.MapObject<DynamicReportModel>();
            return(RedirectToAction("LandLinePayment"));
        }
Beispiel #4
0
        public ActionResult ResultPage(string txnid)
        {
            DynamicReportModel dynamicReportModel = new DynamicReportModel();
            //DynamicReportCommon dynamicReportCommons = new DynamicReportCommon();
            string txnId = txnid.DecryptParameter();

            ViewBag.TxnId = txnid;
            if (!String.IsNullOrEmpty(txnId))
            {
                IDynamicReportBusiness _dynamicReport = new DynamicReportBusiness();
                dynamicReportModel = _dynamicReport.GetTransactionReportDetail(txnId).MapObject <DynamicReportModel>();;
                return(View(dynamicReportModel));
            }
            //dynamicReportModel = dynamicReportCommons.MapObject<DynamicReportModel>();



            return(RedirectToAction("NwscBillInquiry"));
        }
        public ActionResult ResultPage(string txnid)
        {
            DynamicReportModel dynamicReportModel = new DynamicReportModel();
            //DynamicReportCommon dynamicReportCommons = new DynamicReportCommon();
            string txnId = txnid.DecryptParameter();

            if (!String.IsNullOrEmpty(txnId))
            {
                IDynamicReportBusiness _dynamicReport = new DynamicReportBusiness();
                dynamicReportModel = _dynamicReport.GetTransactionReportDetail(txnId).MapObject <DynamicReportModel>();;
                return(View(dynamicReportModel));
            }
            //dynamicReportModel = dynamicReportCommons.MapObject<DynamicReportModel>();

            if (Session["UserType"].ToString().ToLower() == "merchant")
            {
                return(RedirectToAction("MobileTopUp3"));
            }


            return(RedirectToAction("MobileTopup"));
        }