コード例 #1
0
        // GET: /<controller>/
        public IActionResult Index(string id, string pageclick, string RecordTime, string userName, string Level)
        {
            Dictionary <string, string> paraDic = new Dictionary <string, string>();

            if (!string.IsNullOrEmpty(userName))
            {
                paraDic.Add("userName", userName);
            }
            if (!string.IsNullOrEmpty(RecordTime))
            {
                paraDic.Add("RecordTime", RecordTime);
            }
            if (!string.IsNullOrEmpty(Level))
            {
                paraDic.Add("Level", Level);
            }

            KeepAliveViewModel dataInfo = new KeepAliveViewModel();

            if (string.IsNullOrEmpty(pageclick))
            {
                pageclick = "1";
            }
            var resultModel = new KeepAliveViewModel
            {
                dataInfo = dataInfo.GetDataInfo(_appConf, Convert.ToInt32(pageclick), ref paraDic),
                paraDic  = paraDic
            };

            return(View(resultModel));
        }
コード例 #2
0
 public KeepAliveView(KeepAliveViewModel vm)
     : base(vm)
 {
     InitializeComponent();
 }