public ActionResult DepositCardNoPartial() { Deposit model = new Deposit(); model = GetDeposit(); 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 = "GetDepositDetailByATMNo"; param.Parameter.Add("atmNo", model.CardNo); DepositInfo ATMCard = ProductInquiry.ATMCard(param); ViewBag.searchResults = ATMCard; if (string.IsNullOrEmpty(ATMCard.CardNumber)) { ViewBag.searchResultsCount = 0; } else { ViewBag.searchResultsCount = 1; } ViewBag.Deposit = model; return(PartialView("_DepositCardNo", ATMCard)); }
public ActionResult DepositInfoPartial() { Deposit model = new Deposit(); model = GetDeposit(); Params param = new Params() { Parameter = new Dictionary <string, string>() }; param.RequestTransType = "GetDepositDetailByAcctNo"; param.Parameter.Add("acctNo", model.AccountNo); DepositInfo account = ProductInquiry.Account(param); ViewBag.searchResults = account; if (string.IsNullOrEmpty(account.AccountNumber)) { ViewBag.searchResultsCount = 0; } else { ViewBag.searchResultsCount = 1; } return(PartialView("_DepositAccountNo", account)); }
protected GenericApplication ConstructObject(UploadAppSampleDataDictionary d) { // Common blocks var geninfo = ConstructGenericInfo(d); var regdoc = ConstructRegistrationDocument(d); var addresses = ConstructAddresses(d); var comms = ConstructCommunications(); CreditInfo credinfo = null; DepositInfo depoinfo = null; Employer empl = null; EarlierAppointedCredit[] eapcr = null; if (geninfo.ApplicationType == ApplicationTypes.credit) { // Credit blocks credinfo = ConstructCredInfo(d); empl = ConstructEmployer(d); var prevcrednum = Convert.ToInt32(credinfo.PreviousCreditsQuantity); if (prevcrednum > 0) { var prevcreds = new List <EarlierAppointedCredit>(prevcrednum); for (var i = 0; i < prevcrednum; ++i) { prevcreds.Add(ConstructEarlierAppointedCredit(d)); } eapcr = prevcreds.ToArray(); } else { eapcr = new EarlierAppointedCredit[0]; } } else { // Depo blocks depoinfo = ConstructDepositInfo(d); } var genapp = new GenericApplication { GenericInfo = geninfo, DepositInfo = depoinfo, CreditInfo = credinfo, RegistrationDocument = regdoc, Addresses = addresses, Communications = comms, Employer = empl, EarlierAppointedCredits = eapcr, }; return(genapp); }
public DepositInfo CalculateDeposit(double deposit, double monthDeposit, double persentageYear, int periodMonth) { double totalAmount = Calculate(deposit, monthDeposit, persentageYear, periodMonth); double clearAmount = Calculate(deposit, monthDeposit, periodMonth); double income = totalAmount - clearAmount; var info = new DepositInfo() { TotalAmount = Math.Round(totalAmount, 2), ClearAmount = Math.Round(clearAmount, 2), Income = Math.Round(income, 2), PeriodMonth = periodMonth }; return(info); }
private void CheckAndUpdateDepositInfo(DepositInfo depositInfo) { if (string.IsNullOrEmpty(depositInfo.Symbol)) { depositInfo.Symbol = Context.Variables.NativeSymbol; } else { var tokenInfo = State.TokenContract.GetTokenInfo.Call(new GetTokenInfoInput { Symbol = depositInfo.Symbol }); if (tokenInfo == null) { throw new AssertionException("Invalid deposit symbol."); } } Assert(depositInfo.Amount > 0, "Invalid deposit amount."); State.DepositInfo.Value = depositInfo; }
public override Empty ChangeDepositInfo(DepositInfo input) { AssertReleasedByParliament(); CheckAndUpdateDepositInfo(input); return(new Empty()); }
public ExternalReqInHospitalDepositConfirm() { RefundList = new DepositInfo(); }