public ActionResult AddSchemeFundTab(string containerId = "MainArea")
        {
            //var log = new LoggerConfiguration().WriteTo.Seq("http://localhost:5341").CreateLogger();

            try
            {
                var pvr = new Ext.Net.MVC.PartialViewResult
                {
                    ViewName    = "pfm_SchemeFundPartial",
                    Model       = schemefundrepo.GetSchemeFundList(),
                    ContainerId = containerId,
                    RenderMode  = RenderMode.AddTo,
                };
                X.Mask.Hide();

                this.GetCmp <TabPanel>(containerId).SetLastTabAsActive();

                return(pvr);
            }
            catch (Exception ex)
            {
                X.Mask.Hide();
                //log.Write(level: Serilog.Events.LogEventLevel.Information, messageTemplate: ex.Message + " " + DateTime.Now);
                return(this.Direct());
            }
            finally
            {
            }
        }
Example #2
0
 public ActionResult ReadSF()
 {
     try {
         return(this.Store(SFRepo.GetSchemeFundList()));
     }
     catch (System.Exception)
     {
         throw;
     }
 }
Example #3
0
 public ActionResult ReadSchemeFund()
 {
     try
     {
         return(this.Store(SFRepo.GetSchemeFundList()));
     }
     catch (Exception ex)
     {
         return(this.Direct());
     }
 }
Example #4
0
 public ActionResult ReadSF()
 {
     try
     {
         X.Mask.Hide();
         Store store = X.GetCmp <Store>("TBAccountSFStore");
         store.RemoveAll();
         return(this.Store(SFRepo.GetSchemeFundList()));
     }
     catch (System.Exception)
     {
         X.Mask.Hide();
         throw;
     }
 }