コード例 #1
0
        public ActionResult ActivityLog(string username, ActivityLogModel model)
        {
            List <ActivityLogModel> log = _log.ActivityLog(username, model.FromDate, model.ToDate, model.Email, model.MobileNumber).MapObjects <ActivityLogModel>();


            //List<LogModel> logModels = log.MapObjects<LogModel>();

            //foreach (var item in log)
            //{
            //    item.Action = StaticData.GetActions("PendingTransaction", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            //}
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("page_name", "Page Name");
            param.Add("page_url", "Page Url");
            param.Add("ipaddress", "IP Address");
            param.Add("browser_detail", "Browser Detail");
            param.Add("Email", "Email");
            param.Add("MobileNumber", "Mobile Number");
            param.Add("CreatedBy", "Created By");
            param.Add("CreatedLocalDate", "Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(log, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "");

            ViewData["grid"] = grid;

            return(View(model));
        }
コード例 #2
0
        public ActionResult ActivityLog(string username)
        {
            //Start Search UserId from Mobile Number
            //IWalletUserBusiness _walletUserBusiness = new WalletUserBusiness();
            //string UserName = _walletUserBusiness.UserInfo(username).UserId.ToString();
            //Ends
            List <ActivityLogModel> log = _log.ActivityLog(username).MapObjects <ActivityLogModel>();
            //List<LogModel> logModels = log.MapObjects<LogModel>();

            //foreach (var item in log)
            //{
            //    item.Action = StaticData.GetActions("PendingTransaction", item.AgentId.EncryptParameter(), this, "", "", item.TxnId);
            //}
            //Column Creator
            IDictionary <string, string> param = new Dictionary <string, string>();

            param.Add("page_name", "Page Name");
            param.Add("page_url", "Page Url");
            param.Add("ipaddress", "IP Address");
            param.Add("browser_detail", "Browser Detail");
            param.Add("CreatedBy", "Created By");
            param.Add("CreatedLocalDate", "Date");
            ProjectGrid.column = param;
            //Ends
            var grid = ProjectGrid.MakeGrid(log, "hidebreadcrumb", "", 10, false, "", "", "", "", "", "");

            ViewData["grid"] = grid;

            return(View());
        }