Example #1
0
        public async Task <ViewResult> Select(string Acctno)//, int SrcFrom
        {
            var viewModel = new MerchantAcctSignUpViewModel()
            {
                _AccountDetails = (await MechSignUpService.GetMAGeneralInfoDetail(Acctno)).merchGeneralInfo//, SrcFrom
            };

            ViewBag.AcctNo = Acctno;
            return(View(viewModel));
        }
Example #2
0
        public async Task <ActionResult> ftMechAggreementDetail(string AcctNo)
        {
            var data = (await MechSignUpService.GetMAGeneralInfoDetail(AcctNo)).merchGeneralInfo;

            return(Json(new { CardHolder = data }, JsonRequestBehavior.AllowGet));
        }
Example #3
0
        public async Task <ActionResult> ftMechGeneralInfoDetail(string Acctno)//SelectMerchantGeneralInfo , Int16 SrcFrom
        {
            var data = (await MechSignUpService.GetMAGeneralInfoDetail(Acctno)).merchGeneralInfo;

            return(Json(new { CardHolder = data }, JsonRequestBehavior.AllowGet));
        }
Example #4
0
        public async Task <ActionResult> FillData(string prefix, string AcctNo)
        {
            switch (prefix)
            {
            case "gen":
                var MerchGenInfo   = (await MechSignUpService.GetMAGeneralInfoDetail(AcctNo)).merchGeneralInfo;
                var _MAGeneralInfo = new MA_GeneralInfo
                {
                    AffiliatedWithCorpCode = await BaseService.WebGetCorpCd(true),
                    BankAcctType           = await BaseService.GetRefLib("BankAcctType"),
                    BankBranchCd           = await BaseService.GetRefLib("BranchCd"),
                    CurrentStatus          = await BaseService.GetRefLib("MerchAcctSts"),
                    CycleNo   = await BaseService.GetCycle("A"),
                    ReasonCd  = await BaseService.GetRefLib("MerchReasonCd"),
                    BusnModel = await BaseService.GetRefLib("BusnModel"),
                    BusnSize  = await BaseService.GetRefLib("BusnSize"),
                    Ownership = await BaseService.GetRefLib("MerchOwnership"),
                    BankName  = await BaseService.GetRefLib("Bank"),
                };
                return(Json(new { Selects = _MAGeneralInfo, Model = MerchGenInfo }, JsonRequestBehavior.AllowGet));

            case "mai":

            case "bus":
                var _MerchantDetails = new MerchantDetails
                {
                    DBACity       = await BaseService.GetRefLib("city"),
                    DBARegion     = await BaseService.GetRefLib("RegionCd"),
                    DBAState      = await BaseService.WebGetState(null),
                    BankAcctType  = await BaseService.GetRefLib("BankAcctType"),
                    CurrentStatus = await BaseService.GetRefLib("MerchAcctSts"),
                    Ownership     = await BaseService.GetRefLib("MerchOwnership"),
                    SIC           = await BaseService.GetMerchType("S"),
                };
                return(Json(new { Selects = _MerchantDetails, Model = new MerchantDetails() }, JsonRequestBehavior.AllowGet));

            case "car":
                return(PartialView(this.getPartialPath("MerchGeneralInfo", "CAMaint_CardRange_Partial")));


            case "agr":
                var _MA_GeneralInfo = new MA_GeneralInfo
                {
                    AffiliatedWithCorpCode = await BaseService.WebGetCorpCd(true),
                    BankAcctType           = await BaseService.GetRefLib("BankAcctType"),
                    BankBranchCd           = await BaseService.GetRefLib("BranchCd"),
                    BusnEst       = await BaseService.GetRefLib("BusnEst"),
                    CurrentStatus = await BaseService.GetRefLib("MerchAcctSts"),
                    ReasonCd      = await BaseService.GetRefLib("MerchReasonCd"),
                    BusnModel     = await BaseService.GetRefLib("BusnModel")
                };
                return(Json(new { Selects = _MA_GeneralInfo, Model = new MA_GeneralInfo() }, JsonRequestBehavior.AllowGet));

            case "BusnTerm":
                var _BusnLocTerminal = new BusnLocTerminal
                {
                    Status       = await BaseService.GetRefLib("MerchAcctSts"),
                    ProdType     = await BaseService.GetRefLib("ProdType"),
                    ReasonCd     = await BaseService.GetRefLib("TermReasonCd"),
                    UserId       = this.GetUserId,
                    CreationDate = NumberExtensions.DateConverter(System.DateTime.Now.ToString())
                };
                return(Json(new { Selects = _BusnLocTerminal, Model = new BusnLocTerminal() }, JsonRequestBehavior.AllowGet));

            case "mps":
                var _merchPstTxnSearch = new MerchPostedTxnSearch
                {
                    Dealer = await BaseService.WebGetDealerByMerch(AcctNo),
                    TxnCd  = await BaseService.WebGetTxnCode("A"),
                };
                return(Json(new { Selects = _merchPstTxnSearch, Model = new MerchPostedTxnSearch() }, JsonRequestBehavior.AllowGet));

            case "evt":
                var logger = new EventLogger
                {
                    EventType = await BaseService.GetRefLib("EventType"),
                    ReasonCd  = await BaseService.GetRefLib("MerchReasonCd")
                };
                return(Json(new { Selects = logger, Model = new EventLogger() }, JsonRequestBehavior.AllowGet));

            case "sts":
                var stsDetails = await CardHolderService.GetChangedAcctStsDetail(AcctNo.ToString(), "MERCH");

                var sts = new ChangeStatus
                {
                    CurrentStatus  = await BaseService.GetRefLib("MerchAcctSts"),
                    RefType        = await BaseService.GetRefLib("EventType"),
                    ReasonCode     = await BaseService.GetRefLib("MerchReasonCd", ""),
                    ChangeStatusTo = await BaseService.GetRefLib("MerchAcctSts")
                };
                return(Json(new { Selects = sts, Model = stsDetails.changeStatus }, JsonRequestBehavior.AllowGet));

            case "mpp":
                var model = new MerchProductPrize
                {
                    ProdCd = await BaseService.WebGetProduct(null, false)
                };
                return(Json(new { Selects = model, Model = new MerchProductPrize() }, JsonRequestBehavior.AllowGet));

            default:
                return(PartialView());
            }
        }