예제 #1
0
        /// <summary>
        /// 判断权限
        /// </summary>
        private string GetVoidHtml()
        {
            string tempStr = string.Empty;

            JMP.BLL.jmp_limit bll_limit = new JMP.BLL.jmp_limit();
            string            u_id      = UserInfo.UserId.ToString();
            int r_id = UserInfo.UserRoleId;
            //一键解冻
            bool getUidT = bll_limit.GetLocUserLimitVoids("/merchant/thaw", u_id, r_id);

            if (getUidT)
            {
                tempStr += "<li onclick=\"doAll(0)\"><i class='fa fa-check-square-o'></i>一键解冻</li>";
            }
            //一键冻结
            bool getUidF = bll_limit.GetLocUserLimitVoids("/merchant/frozen", u_id, r_id);

            if (getUidF)
            {
                tempStr += "<li onclick=\"doAll(1)\"><i class='fa fa-check-square-o'></i>一键冻结</li>";
            }
            //添加用户
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/merchant/create", u_id, r_id);

            if (getlocuserAdd)
            {
                tempStr += "<li onclick=\"AddDlg()\"><i class='fa fa-plus'></i>添加用户</li>";
            }
            return(tempStr);
        }
예제 #2
0
        /// <summary>
        /// 显示页面方法是否有权限
        /// </summary>
        public void GetVoidHtml()
        {
            string yanzhenTop    = "<div class=\"date-tool\"><div id=\"ToolBar\" class=\" help\">";
            string yanzhenBottom = "</div></div>";

            bool getUidT = bll_limit.GetLocUserLimitVoids("/LOCUSER/AjaxUpdateLcoUserState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键启用

            if (getUidT)
            {
                ViewBag.locUrl += "<li onclick=\"getUid(1)\"><i class='fa fa-check-square-o'></i>一键启用</li>";
            }
            bool getUidF = bll_limit.GetLocUserLimitVoids("/LOCUSER/AjaxUpdateLcoUserState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键禁用

            if (getUidF)
            {
                ViewBag.locUrl += "<li onclick=\"getUid(0)\"><i class='fa fa-check-square-o'></i>一键禁用</li>";
            }
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/LOCUSER/AjaxAddUser", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加管理员

            if (getlocuserAdd)
            {
                ViewBag.locUrl += "<li onclick=\"AddLocuserDialog()\"><i class='fa fa-plus'></i>添加用户</li>";
            }

            if (getUidT || getUidF || getlocuserAdd)
            {
                ViewBag.locUrl = yanzhenTop + ViewBag.locUrl + yanzhenBottom;
            }
            else
            {
                ViewBag.locUrl = "";
            }
        }
예제 #3
0
        /// <summary>
        /// 通道列表
        /// </summary>
        /// <returns></returns>
        public ActionResult PayChannelList()
        {
            int pageCount  = 0;
            int pageIndexs = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]); //当前页
            int PageSize   = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);    //每页显示数量

            //查询所有
            PayCList           = PayChannelBll.PayChannelList(pageIndexs, PageSize, out pageCount);
            ViewBag.pageIndexs = pageIndexs;
            ViewBag.PageSize   = PageSize;
            ViewBag.pageCount  = pageCount;
            ViewBag.list       = PayCList;

            //权限
            string locUrl    = "";
            bool   getPayAdd = bll_limit.GetLocUserLimitVoids("/PayForAnother/PayChannelAdd", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加

            if (getPayAdd)
            {
                locUrl += "<li onclick=\"PayChannelsAdd(0)\"><i class='fa fa-plus'></i>添加代付通道</li>";
            }

            ViewBag.locUrl = locUrl;

            return(View());
        }
예제 #4
0
        public ActionResult noticeList()
        {
            #region 获取操作权限
            string locUrl  = "";
            bool   getUidF = bll_limit.GetLocUserLimitVoids("/MessageManagement/UpdateDelete", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//一键删除
            if (getUidF)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(1);\"><i class='fa fa-check-square-o'></i>一键删除</li>";
            }
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/MessageManagement/insertOrUpdatenotice", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//发布公告
            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"addnotice()\"><i class='fa fa-plus'></i>发布公告</li>";
            }
            ViewBag.locUrl = locUrl;
            #endregion
            JMP.BLL.jmp_notice noticebll = new JMP.BLL.jmp_notice();
            int pageCount  = 0;
            int pageIndexs = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]); //当前页
            int PageSize   = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);    //每页显示数量
            int searchType = string.IsNullOrEmpty(Request["searchType"]) ? 0 : Int32.Parse(Request["searchType"]); //查询条件
            ViewBag.searchType = searchType;
            string sea_name = string.IsNullOrEmpty(Request["sea_name"]) ? "" : Request["sea_name"];                //查询内容
            ViewBag.sea_name = sea_name;
            string strsql = "select a.n_id, a.n_title, a.n_content, a.n_time, a.n_top, a.n_state, a.n_locuserid,b.u_loginname from jmp_notice a left join jmp_locuser b on a.n_locuserid=b.u_id where 1=1 and n_state='0'";
            if (searchType > 0 && !string.IsNullOrEmpty(sea_name))
            {
                switch (searchType)
                {
                case 1:
                    strsql += " and a.n_id like '%" + sea_name + "%' ";
                    break;

                case 2:
                    strsql += " and  a.n_title like '%" + sea_name + "%' ";
                    break;
                }
            }

            string order = " order by n_top desc ,n_time desc ";//排序
            List <JMP.MDL.jmp_notice> list = noticebll.SelectList(strsql, order, pageIndexs, PageSize, out pageCount);
            ViewBag.pageCount  = pageCount;
            ViewBag.pageIndexs = pageIndexs;
            ViewBag.PageSize   = PageSize;
            ViewBag.list       = list;
            return(View());
        }
예제 #5
0
        //
        // GET: /Risk/
        /// <summary>
        /// 监控配置列表
        /// </summary>
        /// <returns></returns>
        public ActionResult MonitoringconfigList()
        {
            List <JMP.MDL.jmp_channel_filter_config> list    = new List <JMP.MDL.jmp_channel_filter_config>();
            List <JMP.MDL.jmp_channel_filter_config> listall = new List <JMP.MDL.jmp_channel_filter_config>();

            JMP.BLL.jmp_channel_filter_config bll = new JMP.BLL.jmp_channel_filter_config();
            int    pageCount  = 0;
            int    pageIndexs = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]); //当前页
            int    PageSize   = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);    //每页显示数量
            int    TypeId     = string.IsNullOrEmpty(Request["TypeId"]) ? -1 : Int32.Parse(Request["TypeId"]);
            int    TargetId   = string.IsNullOrEmpty(Request["TargetId"]) ? -1 : Int32.Parse(Request["TargetId"]);
            int    type       = string.IsNullOrEmpty(Request["searchType"]) ? 0 : Int32.Parse(Request["searchType"]); //查询条件选择
            string sea_name   = string.IsNullOrEmpty(Request["sea_name"]) ? "" : Request["sea_name"];                 //查询条件内容

            list = bll.SelectList(type, sea_name, TypeId, TargetId, pageIndexs, PageSize, out pageCount);
            JMP.BLL.jmp_channel_filter_config yybll = new JMP.BLL.jmp_channel_filter_config();
            DataTable yydt = yybll.GetList("").Tables[0];//获取应用类型在用信息
            List <JMP.MDL.jmp_channel_filter_config> yylist = JMP.TOOL.MdlList.ToList <JMP.MDL.jmp_channel_filter_config>(yydt);

            listall            = yylist;
            ViewBag.pageIndexs = pageIndexs;
            ViewBag.PageSize   = PageSize;
            ViewBag.pageCount  = pageCount;
            ViewBag.list       = list;
            ViewBag.listall    = listall;
            ViewBag.TypeId     = TypeId;
            ViewBag.TargetId   = TargetId;
            ViewBag.sea_name   = sea_name;
            ViewBag.type       = type;
            string locUrl        = "";
            bool   getlocuserAdd = bll_limit.GetLocUserLimitVoids("/Risk/AddMonitoringconfig", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加

            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"AddSdl()\"><i class='fa fa-plus'></i>添加监控配置</li>";
            }

            ViewBag.locUrl = locUrl;

            return(View());
        }
예제 #6
0
        public ActionResult ComplainType()
        {
            int    pageCount   = 0;
            int    pageIndexs  = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]);    //当前页
            int    PageSize    = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);       //每页显示数量
            int    searchDesc  = string.IsNullOrEmpty(Request["searchDesc"]) ? 0 : Int32.Parse(Request["searchDesc"]);    //排序方式
            int    SelectState = string.IsNullOrEmpty(Request["SelectState"]) ? -1 : Int32.Parse(Request["SelectState"]); //状态
            string type        = string.IsNullOrEmpty(Request["type"]) ? "" : Request["type"];                            //查询条件选择
            string sea_name    = string.IsNullOrEmpty(Request["sea_name"]) ? "" : Request["sea_name"];                    //查询条件内容

            list = bll.SelectList(sea_name, type, SelectState, searchDesc, pageIndexs, PageSize, out pageCount);
            ViewBag.searchDesc  = searchDesc;
            ViewBag.SelectState = SelectState;
            ViewBag.type        = type;
            ViewBag.sea_name    = sea_name;
            ViewBag.pageIndexs  = pageIndexs;
            ViewBag.PageSize    = PageSize;
            ViewBag.pageCount   = pageCount;
            ViewBag.list        = list;

            string locUrl  = "";
            bool   getUidT = bll_limit.GetLocUserLimitVoids("/CustomService/Updatestate", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键启用

            if (getUidT)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(0)\"><i class='fa fa-check-square-o'></i>一键启用</li>";
                locUrl += "<li onclick=\"javascript:Updatestate(1);\"><i class='fa fa-check-square-o'></i>一键禁用</li>";
            }
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/CustomService/InsertOrUpdateAddType", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加管理员

            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"AddType()\"><i class='fa fa-plus'></i>添加投诉类型</li>";
            }
            ViewBag.locUrl = locUrl;

            return(View());
        }
예제 #7
0
        /// <summary>
        /// 判断权限
        /// </summary>
        private string GetVoidHtml()
        {
            string tempStr = string.Empty;

            JMP.BLL.jmp_limit bll_limit = new JMP.BLL.jmp_limit();
            string            u_id      = UserInfo.UserId.ToString();
            int r_id = UserInfo.UserRid;
            //一键解冻
            bool getUidT = bll_limit.GetLocUserLimitVoids("/AppUserBank/doAll(1)", u_id, r_id);

            if (getUidT)
            {
                tempStr += "<li onclick=\"doAll(1)\"><i class='fa fa-check-square-o'></i>一键冻结</li>";
            }
            //一键冻结
            bool getUidF = bll_limit.GetLocUserLimitVoids("/AppUserBank/doAll(0)", u_id, r_id);

            if (getUidF)
            {
                tempStr += "<li onclick=\"doAll(0)\"><i class='fa fa-check-square-o'></i>一键解冻</li>";
            }
            return(tempStr);
        }
예제 #8
0
        /// <summary>
        /// 验证添加角色按钮
        /// </summary>
        public void GetVoidHtml(int type)
        {
            switch (type)
            {
            case 0:
                bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/ROTE/AddRole", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));    //添加角色
                if (getlocuserAdd)
                {
                    ViewBag.locUrl += "<li id=\"ToolBar\" onclick=\"AddRoleDialog()\"><i class='fa fa-plus'></i>添加角色</li>";
                }
                break;

            case 1:
                bool getlocuserAdd1 = bll_limit.GetLocUserLimitVoids("/ROTE/AddUserRote", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));    //添加角色
                if (getlocuserAdd1)
                {
                    ViewBag.locUrl += "<li id=\"ToolBar\" onclick=\"AddRoleDialog()\"><i class='fa fa-plus'></i>添加角色</li>";
                }
                break;

            case 2:
                bool getlocuserAdd2 = bll_limit.GetLocUserLimitVoids("/ROTE/AddBusinessRote", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));    //添加角色
                if (getlocuserAdd2)
                {
                    ViewBag.locUrl += "<li id=\"ToolBar\" onclick=\"AddRoleDialog()\"><i class='fa fa-plus'></i>添加角色</li>";
                }
                break;

            case 3:
                bool getlocuserAdd3 = bll_limit.GetLocUserLimitVoids("/ROTE/AddAgentRote", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));    //添加角色
                if (getlocuserAdd3)
                {
                    ViewBag.locUrl += "<li id=\"ToolBar\" onclick=\"AddRoleDialog()\"><i class='fa fa-plus'></i>添加角色</li>";
                }
                break;
            }
        }
예제 #9
0
        /// <summary>
        /// 显示页面方法是否有权限
        /// </summary>
        public string GetVoidHtml()
        {
            string locUrl = "";

            bool getUidT = bll_limit.GetLocUserLimitVoids("/BusinessPersonnel/CoAll(0)", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键启用

            if (getUidT)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(0)\"><i class='fa fa-check-square-o'></i>一键启用</li>";
            }
            bool getUidF = bll_limit.GetLocUserLimitVoids("/BusinessPersonnel/CoAll(1)", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键禁用

            if (getUidF)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(1);\"><i class='fa fa-check-square-o'></i>一键禁用</li>";
            }
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/BusinessPersonnel/InsertOrUpdateBusinessPersonnel", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加商务

            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"Addsw()\"><i class='fa fa-plus'></i>添加商务</li>";
            }
            return(locUrl);
        }
예제 #10
0
        public string GetVoidHtml()
        {
            string locUrl = "";

            bool getUidT = bll_limit.GetLocUserLimitVoids("/Agent/AgentList", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键启用

            if (getUidT)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(0)\"><i class='fa fa-check-square-o'></i>一键启用</li>";
            }
            bool getUidF = bll_limit.GetLocUserLimitVoids("/Agent/AgentList", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键禁用

            if (getUidF)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(1);\"><i class='fa fa-check-square-o'></i>一键禁用</li>";
            }
            bool getlocuserAdd = bll_limit.GetLocUserLimitVoids("/Agent/InsertAgent", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加管理员

            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"AddAgents()\"><i class='fa fa-plus'></i>添加代理商</li>";
            }
            return(locUrl);
        }
예제 #11
0
        //
        // GET: /Help/
        /// <summary>
        /// 分类列表
        /// </summary>
        /// <returns></returns>
        public ActionResult ClassificationList()
        {
            List <JMP.MDL.jmp_Help_Classification> list = new List <JMP.MDL.jmp_Help_Classification>();

            JMP.BLL.jmp_Help_Classification bll = new JMP.BLL.jmp_Help_Classification();
            int       pageCount  = 0;
            int       pageIndexs = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]); //当前页
            int       PageSize   = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);    //每页显示数量
            string    ClassName  = string.IsNullOrEmpty(Request["ClassName"]) ? "" : Request["ClassName"];
            int       Type       = string.IsNullOrEmpty(Request["Type"]) ? -1 : int.Parse(Request["Type"]);
            int       sType      = string.IsNullOrEmpty(Request["sType"]) ? -1 : int.Parse(Request["sType"]);
            int       ParentID   = string.IsNullOrEmpty(Request["ParentID"]) ?0 : int.Parse(Request["ParentID"]);
            DataTable tablelist  = bll.GetList(" 1=1 and ParentID=0 and State=0 ").Tables[0];
            List <JMP.MDL.jmp_Help_Classification> parentlist = JMP.TOOL.MdlList.ToList <JMP.MDL.jmp_Help_Classification>(tablelist);

            ViewBag.parentlist = parentlist;
            list = bll.SelectList(sType, ParentID, ClassName, Type, pageIndexs, PageSize, out pageCount);
            ViewBag.pageIndexs = pageIndexs;
            ViewBag.PageSize   = PageSize;
            ViewBag.pageCount  = pageCount;
            ViewBag.list       = list;
            ViewBag.ClassName  = ClassName;
            ViewBag.PrentID    = ParentID;
            ViewBag.Type       = Type;
            ViewBag.sType      = sType;
            string locUrl        = "";
            bool   getlocuserAdd = bll_limit.GetLocUserLimitVoids("/Help/AddClassification", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//添加

            if (getlocuserAdd)
            {
                locUrl += "<li onclick=\"AddSdl()\"><i class='fa fa-plus'></i>添加类别</li>";
            }
            bool getUidT = bll_limit.GetLocUserLimitVoids("/Help/UpdateState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键启用

            if (getUidT)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(0)\"><i class='fa fa-check-square-o'></i>一键启用</li>";
            }
            bool getUidF = bll_limit.GetLocUserLimitVoids("/Help/UpdateState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//本地管理员一键禁用

            if (getUidF)
            {
                locUrl += "<li onclick=\"javascript:Updatestate(1);\"><i class='fa fa-check-square-o'></i>一键禁用</li>";
            }
            ViewBag.locUrl = locUrl;

            return(View());
        }
예제 #12
0
        public ActionResult PaymodeList()
        {
            #region 权限查询
            string locUrl = "";

            bool getUidT = bll_limit.GetLocUserLimitVoids("/System/UpdatePaymodeState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//一键启用支付类型
            if (getUidT)
            {
                locUrl += "<li onclick=\"UpdatePaymodeState(1)\"><i class='fa fa-check-square-o'></i>一键解锁</li>";
            }
            bool getUidF = bll_limit.GetLocUserLimitVoids("/System/UpdatePaymodeState", UserInfo.UserId.ToString(), int.Parse(UserInfo.UserRoleId.ToString()));//一键禁用支付类型
            if (getUidF)
            {
                locUrl += "<li onclick=\"UpdatePaymodeState(0)\"><i class='fa fa-check-square-o'></i>一键锁定</li>";
            }
            ViewBag.locUrl = locUrl;
            #endregion
            #region 查询信息
            int    pageCount        = 0;
            int    pageIndexs       = string.IsNullOrEmpty(Request["pageIndexs"]) ? 1 : Int32.Parse(Request["pageIndexs"]); //当前页
            int    PageSize         = string.IsNullOrEmpty(Request["PageSize"]) ? 20 : Int32.Parse(Request["PageSize"]);    //每页显示数量
            string sql              = "select * from jmp_paymode where 1=1 ";
            JMP.BLL.jmp_paymode bll = new JMP.BLL.jmp_paymode();
            int searchDesc          = string.IsNullOrEmpty(Request["searchDesc"]) ? 0 : Int32.Parse(Request["searchDesc"]); //排序方式
            ViewBag.searchDesc = searchDesc;
            int SelectState = string.IsNullOrEmpty(Request["SelectState"]) ? -1 : Int32.Parse(Request["SelectState"]);      //状态
            ViewBag.SelectState = SelectState;
            int searchType = string.IsNullOrEmpty(Request["searchType"]) ? 0 : Int32.Parse(Request["searchType"]);          //查询条件选择
            ViewBag.searchType = searchType;
            string sea_name = string.IsNullOrEmpty(Request["sea_name"]) ? "" : Request["sea_name"];                         //查询条件内容
            ViewBag.sea_name = sea_name;
            if (searchType > 0 && !string.IsNullOrEmpty(sea_name))
            {
                switch (searchType)
                {
                case 1:
                    sql += " and p_id='" + sea_name + "' ";
                    break;

                case 2:
                    sql += " and p_name='" + sea_name + "' ";
                    break;
                }
            }
            if (SelectState > -1)
            {
                sql += " and p_state='" + SelectState + "' ";
            }
            string Order = " order by p_id desc ";
            if (searchDesc == 1)
            {
                Order = " order by p_id  ";
            }
            else
            {
                Order = " order by p_id desc ";
            }
            List <JMP.MDL.jmp_paymode> list = bll.SelectList(sql, Order, pageIndexs, PageSize, out pageCount);
            ViewBag.pageCount  = pageCount;
            ViewBag.pageIndexs = pageIndexs;
            ViewBag.PageSize   = PageSize;
            ViewBag.list       = list;
            #endregion
            return(View());
        }