Ejemplo n.º 1
0
        public async Task <JsonResult> FillData(string Prefix)
        {
            switch (Prefix.ToLower())
            {
            case "gen":
                var genData    = new PukalAcctMaintInfo();
                var genSelects = new PukalAcctInfo
                {
                    AreaCode = await BaseService.GetRefLib("AcctOfficeCd", null, null, null, false),
                    RefCd    = await BaseService.GetRefLib("PaymtInfoType", null, null, null, false),
                    StmDate  = (await BaseService.GetCycleStmt(null)).RefLibLst,
                    IssBank  = await BaseService.GetRefLib("Bank")
                };
                return(Json(new { Model = genData, Selects = genSelects }, JsonRequestBehavior.AllowGet));

            default:
                HttpContext.Response.StatusCode = 404;
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            PukalAcctInfo acctInfo = new PukalAcctInfo();

            return(View(acctInfo));
        }