Beispiel #1
0
        public async Task <ActionResult> Insert()
        {
            IFormCollection form = await HttpContext.Request.ReadFormAsync();

            var data = InvestmentTrustBL.getInstance().InsertInvestmentTrust(form["NO"].ToString(), form["NAME"], form["IDNO"]);

            return(RedirectToAction("ReIndex", "InvestmentTrust", new { MsgCode = data.MsgCode, MsgName = data.MsgName }));
        }
Beispiel #2
0
        public async Task <JsonResult> Update()
        {
            dynamic         model = new ExpandoObject();
            IFormCollection form  = await HttpContext.Request.ReadFormAsync();

            (model.MsgCode, model.MsgName) = InvestmentTrustBL.getInstance().UpdateInvestmentTrust(form["NO"].ToString(), form["NAME"], form["IDNO"]);

            return(Json(model));
        }
Beispiel #3
0
        public async Task <PartialViewResult> PartialIndex()
        {
            IFormCollection form = await HttpContext.Request.ReadFormAsync();

            int pageIndex = 1;
            int pageSize  = 10;

            pageIndex = Int32.Parse(form["page"]);

            var data = InvestmentTrustBL.getInstance().Query(form["vNO"].ToString(), form["vNAME"], form["vIDNO"], pageIndex, pageSize);

            return(PartialView("~/Views/InvestmentTrust/_PartialIndex.cshtml", data));
        }