示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            string msg = string.Empty;

            switch (RequestAction.ToLower())
            {
            case "bindknowledgecategory": BindKnowledgeCategory(out msg);
                break;

            case "bindchildrencategoryinfo": BindChildrenCategoryInfo(out msg);
                break;

            case "knowledgecategoryupdate": KnowledgeCategoryUpdate(out msg);
                break;

            case "knowledgecategoryinsert": KnowledgeCategoryInsert(out msg);
                break;

            case "knowledgecategorydelete": KnowledgeCategoryDelete(out msg);
                break;

            case "knowledgecategorystatuschange": KnowledgeCategoryStatusChange(out msg);
                break;

            case "deleteknowledgecategoryandchildren": DeleteKnowledgeCategoryAndChildren(out msg);
                break;

            case "sortnumupordown": SortNumUpOrDown(out msg);
                break;
            }
            context.Response.Write(msg);
        }
示例#2
0
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            userID = BLL.Util.GetLoginUserID();

            switch (RequestAction.ToLower())
            {
            case "judgeiscorrect": judgeIsCorrect(out msg);
                break;

            case "surveyanswersubmit":
                try
                {
                    surveyAnswerSubmit(out msg);
                }
                catch (Exception ex)
                {
                    BitAuto.ISDC.CC2012.BLL.Loger.Log4Net.Error("[TakingAnSurveyHandler.ashx]surveyAnswerSubmit...任务ID:" + RequestPTID, ex);
                }

                break;
            }

            context.Response.Write("{msg:'" + msg + "'}");
        }
 public void ProcessRequest(HttpContext context)
 {
     BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
     context.Response.ContentType = "text/plain";
     if (RequestAction.ToLower() == "sendemailforrecorderror")
     {
         SendEmailForRecordError();
     }
 }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            switch (RequestAction.ToLower())
            {
            case "custhistorylogexternalsubmit": CustHistoryLogExternalSubmit(out msg);    //外部提交
                break;
            }
            context.Response.Write(msg);
        }
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            loginerID = BLL.Util.GetLoginUserID();

            switch (RequestAction.ToLower())
            {
            case "examonlinesubmit": examOnlineSubmit(out msg);
                break;

            case "examonlinesave": examOnlineSave(out msg);
                break;
            }

            context.Response.Write(msg);
        }
示例#6
0
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            userID = BLL.Util.GetLoginUserID();

            switch (RequestAction.ToLower())
            {
            case "judgeiscorrect": judgeIsCorrect(out msg);
                break;

            case "surveyanswersubmit": surveyAnswerSubmit(out msg);
                break;
            }

            context.Response.Write("{msg:'" + msg + "'}");
        }
        //


        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            switch (RequestAction.ToLower())
            {
            case "agreeturnout": AgreeTurnOut(out msg);     //同意转出
                break;

            case "taskend": TaskEnd(out msg);               //结束任务
                break;

            case "custhistorylogsubmit": CustHistoryLogSubmit(out msg);     //提交
                break;
            }
            context.Response.Write(msg);
        }
示例#8
0
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            switch (RequestAction.ToLower())
            {
            case "appeal":
                //申诉
                Dispose(QSResultStatus.TobeFirstInstance, QSApprovalType.ScoreAppeal, false, out msg);
                break;

            case "firstaudit":
                if (RequestIsReject == "yes")
                {
                    //初审拒绝
                    Dispose(QSResultStatus.Claimed, QSApprovalType.AppealFirstAduit, true, out msg);
                }
                else
                {
                    //初审通过
                    Dispose(QSResultStatus.TobeReviewInstance, QSApprovalType.AppealFirstAduit, false, out msg);
                }
                break;

            case "auditagain":
                if (RequestIsReject == "yes")
                {
                    //复审拒绝
                    Dispose(QSResultStatus.Claimed, QSApprovalType.AppealAgainAduit, true, out msg);
                }
                else
                {
                    //复审通过
                    Dispose(QSResultStatus.Claimed, QSApprovalType.AppealAgainAduit, false, out msg);
                }
                break;
            }
            context.Response.Write(msg);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         int userID = BLL.Util.GetLoginUserID();
         if (!BLL.Util.CheckRight(userID, "SYS024MOD5004"))
         {
             Response.Write(BLL.Util.GetNotAccessMsgPage("您没有访问该页面的权限"));
             Response.End();
         }
         else
         {
             if (RequestAction.ToLower() == "exprotdataby4sandnot4s" &&
                 RequestYear > 0 && RequestMonth > 0)
             {
                 DataSet ds = GetData4sAndNot4s(RequestYear, RequestMonth);
                 BLL.Util.ExportToCSV("导出结果", ds.Tables[0]);
             }
         }
     }
 }
        private void BindData(string custID)
        {
            DataTable dt    = null;
            int       count = 0;

            if (RequestAction.ToLower().Equals("viewcrmreturnvisit"))//查看CRM系统中所有回访记录
            {
                BitAuto.YanFa.Crm2009.Entities.QueryReturnVisit QueryReturnVisit = new BitAuto.YanFa.Crm2009.Entities.QueryReturnVisit();
                QueryReturnVisit.CustID = custID;
                dt = BitAuto.YanFa.Crm2009.BLL.ReturnVisit.Instance.GetReturnVisit(QueryReturnVisit, PageCommon.Instance.PageIndex, PageSize, out count);
            }
            else
            {
                Entities.QueryCallRecordInfo query = new Entities.QueryCallRecordInfo();
                query.CustID = custID;
                dt           = BLL.CallRecordInfo.Instance.GetCC_CallRecordsByRV(query, PageCommon.Instance.PageIndex, PageSize, out count);
            }

            repeaterList.DataSource = dt;
            repeaterList.DataBind();
            AjaxPager_Custs.InitPager(count, "divReturnVisitRecordListPopup", PageSize);
        }
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            BLL.Loger.Log4Net.Info("[CTIHandler.ashx]Inbound ProcessRequest begin...PhoneNum:" + RequestPhoneNum + ",ANI:" + RequestANI + ",RequestAction:" + RequestAction);
            string msg = string.Empty;

            context.Response.ContentType = "text/plain";
            //获取客户ID
            if (RequestAction.ToLower() == "GetCustID".ToLower())
            {
                try
                {
                    msg = CTIHandlerHelper.GetCustIDByTel(RequestTel);
                }
                catch (Exception ex)
                {
                    msg = ex.Message;
                }
            }
            else if (RequestAction.ToLower() == "GetAreaID".ToLower())
            {
                try
                {
                    GetAreaID(out msg);
                }
                catch (Exception ex)
                {
                    msg = ex.Message;
                }
            }
            else if (RequestAction.ToLower() == "uccalloutlog")
            {
                int loginID = BLL.Util.GetLoginUserID();
                BLL.Loger.Log4Net.Info("[CTIHandler.ashx]UCCallOut...Start...UserID:" + loginID + ",phoneNum:" + RequestPhoneNum);
            }
            BLL.Loger.Log4Net.Info("[CTIHandler.ashx]Inbound ProcessRequest bye...PhoneNum:" + RequestPhoneNum + ",ANI:" + RequestANI);
            context.Response.Write(msg);
        }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            string msg    = string.Empty;
            int    userID = BLL.Util.GetLoginUserID();

            switch (RequestAction.ToLower())
            {
            case "allmarkread": allMarkRead(out msg);
                break;

            case "bindknowledgecategory": bindKnowledgeCategory(out msg);
                break;

            case "bindknowledgecategoryexceptdel": bindKnowledgeCategoryExceptDel(out msg);
                break;

            case "updateknowledgecategory":
                if (!BLL.Util.CheckRight(userID, "SYS024BUT3103"))
                {
                    msg = "fail";
                }
                else
                {
                    updateknowledgecategory(out msg);
                }
                break;

            case "approvalknowledgelib": approvalKnowledgeLib(out msg);
                break;

            case "rejectknowledgelib": rejectKnowledgeLib(out msg);
                break;

            case "disableknowledgelib":
                if (!BLL.Util.CheckRight(userID, "SYS024BUT3104"))
                {
                    msg = "{'msg':'您没有权限进行此操作!'}";
                }
                else
                {
                    disableKnowledgeLib(out msg);
                }
                break;

            case "deleteknowledgelib":
                if (!BLL.Util.CheckRight(userID, "SYS024BUT3105"))
                {
                    msg = "{'msg':'您没有权限进行此操作!'}";
                }
                else
                {
                    deleteKnowledgeLib(out msg);
                }
                break;

            case "insertsearchlog": insertSearchLog();
                break;

            case "questiondisableknowledgelib":
                if (!BLL.Util.CheckRight(userID, "SYS024BUT3107"))
                {
                    msg = "{'msg':'您没有权限进行此操作!'}";
                }
                else
                {
                    questionDisableKnowledgeLib(out msg);       //停用试题
                }
                break;

            case "addklclickanddownloadcount":
                AddKLClickAndDownloadCount(out msg);
                break;

            default:
                break;
            }
            if (!string.IsNullOrEmpty(msg))
            {
                context.Response.Write(msg);
            }
        }
示例#13
0
        public void ProcessRequest(HttpContext context)
        {
            BitAuto.YanFa.SysRightManager.Common.UserInfo.Check();
            context.Response.ContentType = "text/plain";
            string msg = string.Empty;

            userID = BLL.Util.GetLoginUserID();

            switch (RequestAction.ToLower())
            {
            case "surveycategoryupdate":
                if (BLL.Util.CheckRight(userID, "SYS024MOD5008") || BLL.Util.CheckRight(userID, "SYS024MOD5102") || BLL.Util.CheckRight(userID, "SYS024MOD500601"))      // 由于此方法被分类管理、数据模板、项目管理使用,所以需要这样判断
                {
                    surveyCategoryUpdate(out msg);
                }
                else
                {
                    msg = "{msg:'您没有执行此操作的权限!'}";
                }
                break;

            case "surveycategoryinsert":
                if (BLL.Util.CheckRight(userID, "SYS024MOD5102") || BLL.Util.CheckRight(userID, "SYS024BUT5009") || BLL.Util.CheckRight(userID, "SYS024MOD500802") || BLL.Util.CheckRight(userID, "SYS024MOD500601"))     //分类管理、数据模板、项目管理、调查问卷管理
                {
                    surveyCategoryInsert(out msg);
                }
                else
                {
                    msg = "{msg:'您没有执行此操作的权限!'}";
                }
                break;

            case "surveyinfoupdate":
                if (BLL.Util.CheckRight(userID, "SYS024BUT5004") || BLL.Util.CheckRight(userID, "SYS024BUT5006") || BLL.Util.CheckRight(userID, "SYS024BUT5007"))     //调查问卷——删除、停用、启用
                {
                    surveyInfoUpdate(out msg);
                }
                else
                {
                    msg = "{msg:'您没有执行此操作的权限!'}";
                }
                break;

            case "surveycreatenewquestionpaper":
                if (!BLL.Util.CheckRight(userID, "SYS024BUT5005"))
                {
                    msg = "{msg:'您没有执行此操作的权限!'}";
                }
                else
                {
                    surveyCreateNewQuestionPaper(out msg);
                }
                break;

            case "updatesurveycategorystatus":
                UpdateSurveyCategoryStatus(out msg);
                break;

            case "isexistscategoryname":      //是否存在分类名称相同
                IsExistsCategoryName(out msg);
                break;
            }

            context.Response.Write(msg);
        }