Beispiel #1
0
        public ActionResult GameOutputDetail2(Dictionary <string, string> queryvalues)
        {
            int     _Channels  = queryvalues.ContainsKey("Channels") ? Convert.ToInt32(queryvalues["Channels"]) : 0;
            string  _StartDate = queryvalues.ContainsKey("StartDate") ? queryvalues["StartDate"] : DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
            groupby _Groupby   = (groupby)(queryvalues.ContainsKey("groupby") ? Convert.ToInt32(queryvalues["groupby"]) : 1);


            int MasterID = User.Identity.GetUserId <int>();

            if (AgentUserBLL.CheckUser(_Channels, MasterID))
            {
                _Channels = MasterID;
            }
            string _UserList   = AgentUserBLL.GetUserListString(_Channels);
            string _MasterList = AgentUserBLL.GetUserListString(MasterID);



            BaseDataView vbd = new BaseDataView {
                UserList = _UserList, StartDate = _StartDate, Groupby = _Groupby, Channels = _Channels
            };


            vbd.BaseDataList = BaseDataBLL.GetGameOutputDetail2(vbd);
            if (Request.IsAjaxRequest())
            {
                return(PartialView("GameOutputDetail2", vbd));
            }
            return(View(vbd));
        }