Exemplo n.º 1
0
        public PartialViewResult SMSBCAPartial()
        {
            Channel channel = new Channel();

            channel = GetChannel();

            ViewBag.StatusChange = String.IsNullOrEmpty(Request["statusChange"]) ? String.Empty : Request["statusChange"];
            ViewBag.RequestId    = String.IsNullOrEmpty(Request["requestId"]) ? String.Empty : Request["requestId"];
            ViewBag.TicketNumber = String.IsNullOrEmpty(Request["ticketNumber"]) ? String.Empty : Request["ticketNumber"];

            List <SMSBCAInfo> model = new List <SMSBCAInfo>();

            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            if (channel != null)
            {
                string mobileNo = null;
                if (!string.IsNullOrEmpty(channel.HpNo))
                {
                    mobileNo = channel.HpNo;

                    param.RequestTransType = "GetSMSBankingInfoByMobileNo";
                    param.Parameter.Add("mobileNo", channel.HpNo);
                }
                else if (!string.IsNullOrEmpty(channel.CardNo))
                {
                    //wiwik 20151124 param.WSDL = "ESBDBDelimiter";
                    param.RequestTransType = "GetSMSBankingInfoByATMNo";
                    param.Parameter.Add("atmNo", channel.CardNo);
                }
                model = ChannelInquiry.SMSBCA(param);
            }

            ViewBag.searchResultsCount = model.Count;

            ViewBag.DDL_Reason = new SelectList(StatusLabel.GetChangeStatusReason(entityType), "Value", "Text");
            ViewBag.Channel    = channel;

            if (model.Count > 0)
            {
                if (!string.IsNullOrEmpty(channel.HpNo))
                {
                    SMSBCAInfo smsbcafirst = model.First();
                    return(PartialView("_SMSBCAInfo", smsbcafirst));
                }
                else
                {
                    ViewBag.searchResults = model;
                    return(PartialView("_SMSBCAInfoList", model));
                }
            }
            return(PartialView("_SMSBCAInfo"));
        }
Exemplo n.º 2
0
        public PartialViewResult SMSTopUpPartial()
        {
            Channel channel = new Channel();

            channel = GetChannel();

            ViewBag.StatusChange = String.IsNullOrEmpty(Request["statusChange"]) ? String.Empty : Request["statusChange"];
            ViewBag.RequestId    = String.IsNullOrEmpty(Request["requestId"]) ? String.Empty : Request["requestId"];
            ViewBag.TicketNumber = String.IsNullOrEmpty(Request["ticketNumber"]) ? String.Empty : Request["ticketNumber"];

            List <SMSTopUpInfo> model = new List <SMSTopUpInfo>();

            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            string mobileNo = null;

            if (!string.IsNullOrEmpty(channel.HpNo))
            {
                mobileNo = channel.HpNo;
                ChannelInquiry.SMSTopUpRetrieveByMobileNumber(ref model, mobileNo);
            }
            else if (!string.IsNullOrEmpty(channel.CardNo))
            {
                param.RequestTransType = "GetTopUpInfoByATMNo";
                param.Parameter.Add("atmNo", channel.CardNo);
                model = ChannelInquiry.SMSTopUp(param);
            }

            ViewBag.searchResultsCount = model.Count;

            ViewBag.DDL_Reason = new SelectList(StatusLabel.GetChangeStatusReason(entityType), "Value", "Text");
            ViewBag.Channel    = channel;

            if (model.Count > 0)
            {
                if (!string.IsNullOrEmpty(channel.HpNo))
                {
                    SMSTopUpInfo smstopupfirst = model.First();
                    return(PartialView("_SMSTopUpInfo", smstopupfirst));
                }
                else
                {
                    ViewBag.searchResults = model;
                    return(PartialView("_SMSTopUpInfoList", model));
                }
            }
            return(PartialView("_SMSTopUpInfo"));
        }
Exemplo n.º 3
0
        public PartialViewResult CorporateCardPartial()
        {
            string getType   = string.IsNullOrEmpty(Request["_type"]) ? string.Empty : Request["_type"];
            string cardNo    = string.IsNullOrEmpty(Request["_cardNo"]) ? string.Empty : Request["_cardNo"];
            string corpId    = string.IsNullOrEmpty(Request["_corpId"]) ? string.Empty : Request["_corpId"];
            string uniquekey = string.IsNullOrEmpty(Request["_uniqueKey"]) ? string.Empty : Request["_uniqueKey"];

            ViewBag.StatusChange = String.IsNullOrEmpty(Request["statusChange"]) ? String.Empty : Request["statusChange"];
            ViewBag.RequestId    = String.IsNullOrEmpty(Request["requestId"]) ? String.Empty : Request["requestId"];
            ViewBag.TicketNumber = String.IsNullOrEmpty(Request["ticketNumber"]) ? String.Empty : Request["ticketNumber"];

            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            param.RequestTransType = "GetCorporateCardDetail";
            switch (getType)
            {
            case "card":
                param.Parameter.Add("cardNo", cardNo);
                break;

            case "unique":
                param.Parameter.Add("corpId", corpId);
                param.Parameter.Add("uniqueKey", uniquekey);
                break;
            }
            CorporateCard model = ProductInquiry.CorporateCard(param);

            ViewBag.searchResults      = model;
            ViewBag.searchResultsCount = model == null ? 0 : 1;
            ViewBag.DDL_Reason         = new SelectList(StatusLabel.GetChangeStatusReason(entityType), "Value", "Text");

            return(PartialView("_CorporateCard", model));
        }
Exemplo n.º 4
0
        public PartialViewResult MBCAPartial()
        {
            Channel channel = new Channel();

            channel = GetChannel();

            ViewBag.StatusChange = String.IsNullOrEmpty(Request["statusChange"]) ? String.Empty : Request["statusChange"];
            ViewBag.RequestId    = String.IsNullOrEmpty(Request["requestId"]) ? String.Empty : Request["requestId"];
            ViewBag.TicketNumber = String.IsNullOrEmpty(Request["ticketNumber"]) ? String.Empty : Request["ticketNumber"];

            List <MBCAInfo> model = new List <MBCAInfo>();

            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            if (!string.IsNullOrEmpty(channel.HpNo))
            {
                /* Changes MBLF 02 11 2016 */
                // param.RequestTransType = "GetMBankInfoByMobileNo";
                param.RequestTransType = "GetMBLFInfoByMobileNo";
                param.Parameter.Add("mobileNo", channel.HpNo);
            }
            else if (!string.IsNullOrEmpty(channel.CardNo))
            {
                /* Changes MBLF 02 11 2016 */
                // param.RequestTransType = "GetMBankInfoByATMNo";
                param.RequestTransType = "GetMBLFInfoByATMNo";
                param.Parameter.Add("atmNo", channel.CardNo);
            }

            /* Changes MBLF 02 11 2016 */
            // model = ChannelInquiry.MBCA(param);
            model = ChannelInquiry.MBLF(param);

            ViewBag.searchResultsCount = model.Count;

            ViewBag.DDL_Reason = new SelectList(StatusLabel.GetChangeStatusReason(entityType), "Value", "Text");
            ViewBag.Channel    = channel;

            if (model.Count > 0)
            {
                if (!string.IsNullOrEmpty(channel.HpNo))
                {
                    if (model.Count == 1)
                    {
                        MBCAInfo mbcafirst = model.First();
                        return(PartialView("_MBCAInfo", mbcafirst));
                    }
                    else
                    {
                        ViewBag.searchResults = model;
                        return(PartialView("_MBCAInfoList", model));
                    }
                }
                else if (!string.IsNullOrEmpty(channel.CardNo))
                {
                    ViewBag.searchResults = model;
                    return(PartialView("_MBCAInfoList", model));
                }
            }
            return(PartialView("_MBCAInfo"));
        }