Exemple #1
0
        private void CheckUserRightByRoleName()
        {
            ////根据用户在CC系统中的角色名称判断权限
            //int RecordCount = 0;
            //QueryEmployeeSuper query = new QueryEmployeeSuper();
            //query.UserID = BLL.Util.GetLoginUserID();   // int.Parse(Session["userid"].ToString());
            //DataTable dt = BLL.EmployeeSuper.Instance.GetEmployeeSuper(query, "", BLL.PageCommon.Instance.PageIndex, 10, out RecordCount);
            //if (dt != null && dt.Rows.Count > 0)
            //{
            //    string strRoleNames = dt.Rows[0]["RoleName"].ToString();
            //    string[] roleNames = strRoleNames.Split(',');
            //    foreach (string rn in roleNames)
            //    {
            //        if (rn.Trim() == "运营客服")
            //        {
            //            telVisible = "";
            //            break;
            //        }
            //    }
            //}

            //根据用户在集中权限系统中的客户分类判断权限
            BitAuto.YanFa.Crm2009.Entities.UserInfo user = BitAuto.YanFa.Crm2009.BLL.UserInfo.Get(BLL.Util.GetLoginUserID());
            if (user.UserClass == 7)
            {
                telVisible = "";
            }
        }
Exemple #2
0
        private void CheckProcessRight()
        {
            BitAuto.YanFa.Crm2009.Entities.UserInfo user = BitAuto.YanFa.Crm2009.BLL.UserInfo.Get(BLL.Util.GetLoginUserID());
            //运营客服
            switch (user.UserClass)
            {
            case 2:
            case 7: break;

            default: Response.Redirect("/WorkOrder/SalesProcess.aspx?OrderID=" + OrderID + "&r=" + new Random().Next()); break;
            }
        }
Exemple #3
0
        private void CheckProcessRight()
        {
            BitAuto.YanFa.Crm2009.Entities.UserInfo user = BitAuto.YanFa.Crm2009.BLL.UserInfo.Get(BLL.Util.GetLoginUserID());
            //运营客服
            switch (user.UserClass)
            {
            case 2:
            case 7: if (!string.IsNullOrEmpty(GetRedirectUrl(user.UserID, OrderID)))
                {
                    Response.Redirect(GetRedirectUrl(user.UserID, OrderID));
                }
                ; break;

            default: break;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string strOrderId = "";

            if (Request["OrderID"] != null)
            {
                strOrderId = Request["OrderID"].ToString();
            }
            BitAuto.YanFa.Crm2009.Entities.UserInfo user = BitAuto.YanFa.Crm2009.BLL.UserInfo.Get(BLL.Util.GetLoginUserID());
            //运营客服
            switch (user.UserClass)
            {
            case 2:
            case 7: Response.Redirect(GetRedirectUrl(user.UserID, strOrderId)); break;

            default: Response.Redirect("/WorkOrder/SalesProcess.aspx?OrderID=" + strOrderId + "&r=" + new Random().Next() + ((!string.IsNullOrEmpty(Requester) && Requester.Trim() == "intelligentplatform") ? "&requester=" + Requester : "")); break;
            }
        }
 //判断是否是运营客服
 private bool isOperater()
 {
     BitAuto.YanFa.Crm2009.Entities.UserInfo user = BitAuto.YanFa.Crm2009.BLL.UserInfo.Get(userId);
     //运营客服
     return((user.UserClass == 2 || user.UserClass == 7) ? false : true);
 }