Ejemplo n.º 1
0
        public PartialViewResult KBIKlikBCAIndividuPartial()
        {
            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 <KlikBCAIndividuInfo> model = new List <KlikBCAIndividuInfo>();
            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            if (!string.IsNullOrEmpty(channel.UserId))
            {
                param.Parameter.Add("userId", channel.UserId);
                model = ChannelInquiry.KlikBCAIndividual(param, channel);
            }
            else if (!string.IsNullOrEmpty(channel.CardNo))
            {
                model = ChannelInquiry.KlikBCAIndividual(param, channel);
            }
            else if (!string.IsNullOrEmpty(channel.EmailAddress))
            {
                Params paramEmail = new Params()
                {
                    Parameter = new Dictionary <string, string>()
                };
                paramEmail.RequestTransType = "GetIBankInfoByEmail";
                paramEmail.Parameter.Add("EmailAddress", channel.EmailAddress);

                model = ChannelInquiry.KlikBCAIndividual(paramEmail, channel);
            }

            ViewBag.searchResults = model;
            ViewBag.Channel       = channel;

            ViewBag.searchResultsCount = model.Count == 0 ? 0 : model.Count == 1 ? 1 : model.Count;

            if (!string.IsNullOrEmpty(channel.EmailAddress))
            {
                return(PartialView("_KBIList", model));
            }

            if (model.Count == 1)
            {
                return(PartialView("_KBIInfo", model.First()));
            }
            else if (model.Count == 0)
            {
                return(PartialView("_KBIInfo", new KlikBCAIndividuInfo()));
            }
            else
            {
                return(PartialView("_KBIList", model));
            }
        }
Ejemplo n.º 2
0
        public PartialViewResult BCAbyPhonePartial()
        {
            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"];

            BCAByPhoneInfo bcabyphone = new BCAByPhoneInfo();

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

            string atmNo = null;

            if (channel != null)
            {
                if (!string.IsNullOrEmpty(channel.CardNo))
                {
                    atmNo = channel.CardNo;
                }
                else if (!string.IsNullOrEmpty(channel.AccountNo))
                {
                    param.WSDL             = "UserPhoneBankingInquiry";
                    param.RequestTransType = "GetPBInfoByAcctNo";
                    param.Parameter.Add("acctNo", channel.AccountNo);
                    atmNo = ChannelInquiry.AtmNoBCAByPhone(param);
                }

                if (!string.IsNullOrEmpty(atmNo))
                {
                    param.WSDL             = "UserPhoneBankingManagement";
                    param.RequestTransType = "GetPBInfoByCardNo";
                    param.Parameter.Add("atmNo", atmNo);
                    bcabyphone = ChannelInquiry.BCAByPhone(param);
                    if (string.IsNullOrEmpty(channel.CardNo))
                    {
                        channel.CardNo = bcabyphone.CustomerId;
                    }
                }
            }

            if (string.IsNullOrEmpty(bcabyphone.CustomerId))
            {
                ViewBag.searchResultsCount = 0;
            }
            else
            {
                ViewBag.searchResultsCount = 1;
            }

            ViewBag.searchResults = bcabyphone;
            ViewBag.Channel       = channel;
            return(PartialView("_BCAbyPhone", bcabyphone));
        }
Ejemplo n.º 3
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"));
        }
Ejemplo n.º 4
0
        public PartialViewResult KBIKeyBCAApplicationPartial()
        {
            Channel channel = new Channel();

            channel = GetChannel();

            List <ApplicationKeyBCAIBInfo> model = ChannelInquiry.KBIApplicationKeyBCAIB(channel);

            ViewBag.searchResultsCount = model.Count;
            ViewBag.searchResults      = model;
            return(PartialView("_KBIKeyBCAApplication", model));
        }
Ejemplo n.º 5
0
        public PartialViewResult KBICCApplicationPartial()
        {
            Channel channel = new Channel();

            channel = GetChannel();

            List <CreditCardApplicationInfo> model = ChannelInquiry.KBICreditCardApplication(channel);

            ViewBag.searchResultsCount = model.Count;
            ViewBag.searchResults      = model;
            return(PartialView("_KBICCApplication", model));
        }
Ejemplo n.º 6
0
        public PartialViewResult KBBKeyBCAApplicationPartial(string requestToken = null)
        {
            Channel channel = new Channel();

            channel = GetChannel();

            List <KlikBCABisnisInfo> model = ChannelInquiry.KBBKeyBCAApplication(channel, requestToken);

            ViewBag.searchResults      = model;
            ViewBag.searchResultsCount = model.Count;
            ViewBag.Channel            = channel;
            return(PartialView("_KBBKeyBCAApplication", model));
        }
Ejemplo n.º 7
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"));
        }
Ejemplo n.º 8
0
        public PartialViewResult KBBKeyBCAConnectionPartial(string requestToken = null, string userIdInput = null)
        {
            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 <KlikBCABisnisInfo> model = ChannelInquiry.KBBKeyBCAConnection(channel, requestToken, userIdInput);

            ViewBag.searchResults      = model;
            ViewBag.searchResultsCount = model.Count;
            ViewBag.Channel            = channel;
            return(PartialView("_KBBKeyBCAConnection", model));
        }
Ejemplo n.º 9
0
        public PartialViewResult KBIKeyBCAConnectionPartial()
        {
            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 <KeyBCAConnectionInfo> model = ChannelInquiry.KBIKeyBCAConnection(channel);

            ViewBag.searchResultsCount = model.Count;
            ViewBag.searchResults      = model;
            ViewBag.Channel            = channel;
            return(PartialView("_KBIKeyBCAConnection", model));
        }
Ejemplo n.º 10
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"));
        }
Ejemplo n.º 11
0
        public PartialViewResult KBBKlikBCABisnisPartial(string userIdInput = null)
        {
            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 <KlikBCABisnisInfo> model = new List <KlikBCABisnisInfo>();

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

            if (!string.IsNullOrEmpty(channel.CorpId) && !string.IsNullOrEmpty(userIdInput))
            {
                param.RequestTransType = "GetUserKBBInfo";
                param.Parameter.Add("corpId", channel.CorpId.ToUpperInvariant());
                param.Parameter.Add("userId", userIdInput.ToUpperInvariant());
                channel.UserId = userIdInput;
            }
            else if (!string.IsNullOrEmpty(channel.CorpId) && !string.IsNullOrEmpty(channel.UserId))
            {
                param.RequestTransType = "GetUserKBBInfo";
                param.Parameter.Add("corpId", channel.CorpId.ToUpperInvariant());
                param.Parameter.Add("userId", channel.UserId.ToUpperInvariant());
            }
            else if (!string.IsNullOrEmpty(channel.EmailAddress))
            {
                //// Converting the Email Address to Uppercase, as the ESB expects the Email in Uppercase.
                param.RequestTransType = "GetKBBEmailInfo";
                param.Parameter.Add("Email1", channel.EmailAddress.ToUpperInvariant());
                param.Parameter.Add("Email2", channel.EmailAddress.ToUpperInvariant());
            }
            else if (!string.IsNullOrEmpty(channel.AccountNo))
            {
                param.RequestTransType = "GetKBBInfoByAcctNo";
                param.Parameter.Add("AccountNo", channel.AccountNo);
            }

            model = ChannelInquiry.KBB(param, channel, userIdInput);

            ViewBag.searchResults      = model;
            ViewBag.searchResultsCount = model.Count;
            ViewBag.Channel            = channel;

            if (model.Count > 0)
            {
                KlikBCABisnisInfo kbbfirst = model.First();
                kbbfirst.CorpID = String.IsNullOrEmpty(kbbfirst.CorpID) ? channel.CorpId : kbbfirst.CorpID;
                kbbfirst.UserID = String.IsNullOrEmpty(kbbfirst.UserID) ? channel.UserId : kbbfirst.UserID;

                if (!string.IsNullOrEmpty(channel.CorpId) && !string.IsNullOrEmpty(channel.UserId))
                {
                    ViewBag.Mode = "KBB";
                    return(PartialView("_KBBLogin", kbbfirst));
                }
                else if (!string.IsNullOrEmpty(channel.EmailAddress))
                {
                    return(PartialView("_KBBList", model));
                }
                else if (!string.IsNullOrEmpty(channel.AccountNo))
                {
                    ViewBag.Mode = "AccountNo";
                    return(PartialView("_KBBLogin", kbbfirst));
                }
                else
                {
                    ViewBag.Mode = "KBB";
                    return(PartialView("_KBBLogin", kbbfirst));
                }
            }
            else
            {
                ViewBag.Mode = "KBB";
                return(PartialView("_KBBLogin"));
            }
        }