TG.WXCRM.V4/WEB/Controllers/LivePlayback/LivePlaybackController.cs

74 lines
2.7 KiB
C#

using Ninject;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WX.CRM.BLL.Util;
using WX.CRM.Common;
using WX.CRM.IBLL.Res;
using WX.CRM.Model.Enum;
using WX.CRM.WebHelper;
using Newtonsoft.Json;
namespace WX.CRM.WEB.Controllers.LivePlayback
{
public class LivePlaybackController: BaseController
{
[Inject]
public IRES_SCENE _resScene { get; set; }
private CACHE_BL cache_BL = new CACHE_BL();
[AuthorizeRedirect(Roles = InitRights.CONST_回放客户列表)]
public ActionResult Index(string test1)
{
return View();
}
[AuthorizeRedirect(Roles = InitRights.CONST_回放客户列表)]
public ActionResult LivePlaybackSummay()
{
ToolBar tool = new ToolBar();
string[] toolbtn = new ToolButtonView().ToolButtonRight(InitRights., userRightId);
tool.AddOtherButton("Other1", "导出", "icon-export", "Export", true);
tool.AllowButton(toolbtn);
ViewBag.ToolBar = tool;
var scenetype = _resScene.GetSceneType();
ViewBag.SceneType = scenetype;
var webapi = cache_BL.GetValue_Parameter(Parameter.CRM_CORE_WEBAPI);
ViewBag.webapi = webapi;
var appid = System.Configuration.ConfigurationManager.AppSettings["appid"];
ViewBag.appid = appid;
ViewBag.eid = Eid;
ViewBag.userGroupId = userGroupId;
ViewBag.saleDeptId = saleDeptId;
ViewBag.roleCodes = DataCacheHelper.GetCache().Get_RoleCodes(userRoleId);
return View();
}
[AuthorizeRedirect(Roles = InitRights.CONST_回放客户列表)]
public ActionResult LivePlaybackRealTime()
{
ToolBar tool = new ToolBar();
string[] toolbtn = new ToolButtonView().ToolButtonRight(InitRights., userRightId);
tool.AddOtherButton("Other1", "导出", "icon-export", "Export", true);
tool.AllowButton(toolbtn);
ViewBag.ToolBar = tool;
var scenetype = _resScene.GetSceneType();
ViewBag.SceneType = scenetype;
var webapi = cache_BL.GetValue_Parameter(Parameter.CRM_CORE_WEBAPI);
ViewBag.webapi = webapi;
var appid = System.Configuration.ConfigurationManager.AppSettings["appid"];
ViewBag.appid = appid;
ViewBag.eid = Eid;
ViewBag.userGroupId = userGroupId;
ViewBag.saleDeptId = saleDeptId;
ViewBag.roleCodes = DataCacheHelper.GetCache().Get_RoleCodes(userRoleId);
return View();
}
}
}