예제 #1
0
        public ActionResult MemberForSearchGameExp(Dictionary <string, string> queryvalues)
        {
            int    _id             = queryvalues.ContainsKey("UserID") ? string.IsNullOrWhiteSpace(queryvalues["UserID"]) ? 0 : Convert.ToInt32(queryvalues["UserID"]) : 0;
            int    _page           = queryvalues.ContainsKey("page") ? Convert.ToInt32(queryvalues["page"]) : 1;
            string _StartDate      = queryvalues.ContainsKey("StartDate") ? queryvalues["StartDate"] : DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
            string _ExpirationDate = queryvalues.ContainsKey("ExpirationDate") ? queryvalues["ExpirationDate"] : DateTime.Now.AddDays(1).ToString("yyyy-MM-dd 00:00:00");
            string _SearchExt      = queryvalues.ContainsKey("SearchExt") ? queryvalues["SearchExt"] : "";

            int    MasterID    = User.Identity.GetUserId <int>();
            string _MasterList = AgentUserBLL.GetUserListString(MasterID);

            GameRecordView model = new GameRecordView {
                SearchExt = _SearchExt, StartDate = _StartDate, ExpirationDate = _ExpirationDate, Page = _page, UserList = _MasterList
            };

            if (Request.IsAjaxRequest())
            {
                return(PartialView("MemberForSearchGameExp_PageList", ExpRecordBLL.GetListByPageForAgent(model)));
            }
            model.DataList = ExpRecordBLL.GetListByPageForAgent(model);
            return(View(model));
        }