private void BindData() { if (string.IsNullOrEmpty(TaskID)) { return; } else { task = BLL.OrderCRMStopCustTask.Instance.GetOrderCRMStopCustTask(TaskID); if (task == null) { return; } } QueryCallRecordInfo query = new QueryCallRecordInfo(); //按照任务查询话务 query.TaskTypeID = (int)Entities.ProjectSource.S2_客户核实; query.TaskID = this.TaskID; query.LoginID = -1; int totalCount = 0; string tableEndName = ""; //查询现在表数据 DataTable dt = BLL.CallRecordInfo.Instance.GetCallRecordInfo(query, "c.CreateTime desc", 1, -1, tableEndName, out totalCount); //设置数据源 if (dt != null && dt.Rows.Count > 0) { repeater_Contact.DataSource = dt; } //绑定列表数据 repeater_Contact.DataBind(); }
public string Insert(OrderCRMStopCustTaskInfo model) { //3+12+4 string taskid = CreatTaskID(); model.TaskID = taskid; CommonBll.Instance.InsertComAdoInfo(model); return(taskid); }
/// 创建任务 /// <summary> /// 创建任务 /// </summary> /// <param name="relationID"></param> /// <param name="userID"></param> /// <param name="custID"></param> /// <returns></returns> private static string InsertTask(int relationID, int userID, string custID) { DateTime dtime = DateTime.Now; //生成任务 OrderCRMStopCustTaskInfo model_task = new OrderCRMStopCustTaskInfo(); model_task.RelationID = relationID; model_task.TaskStatus = 1; model_task.BGID = 2; //写死分组 数据清洗部(西安) model_task.Status = 0; model_task.CreateTime = dtime; model_task.CreateUserID = userID; string taskID = BLL.OrderCRMStopCustTask.Instance.Insert(model_task); return(taskID); }
private void GetInfoByTaskID() { OrderCRMStopCustTaskInfo model_task = BLL.OrderCRMStopCustTask.Instance.GetOrderCRMStopCustTask(TaskID); if (model_task != null) { Entities.StopCustApply model_cust = BLL.StopCustApply.Instance.GetStopCustApply((int)model_task.RelationID); if (model_cust != null) { DeleteMemberID = model_cust.DeleteMemberID; CustID = model_cust.CustID; CRMStopCustApplyID = model_cust.CRMStopCustApplyID.ToString(); stopStatus = model_cust.StopStatus == (int)Entities.StopCustStopStatus.Pending ? true : false; } } string[] arrayBGID = new string[1]; arrayBGID[0] = "2"; //验证权限 int typeLimit = AjaxServers.CommonFun.judgeLimit((int)model_task.AssignUserID, arrayBGID); switch (typeLimit) { case 3: operType = op; break; case 2: stopStatus = false; break; case 1: Response.Write(@"<script language='javascript'>alert('您没有该任务的访问权限,无法访问该页面。');try { window.external.MethodScript('/browsercontrol/closepagereloadppage'); } catch (e) { window.opener = null; window.open('', '_self'); window.close(); }</script>"); return; } }
public int UpdateCRMCustStatusByIDAndRemark(string Verifycode, int CRMStopCustApplyID, int StopStatus, string Remark, int operID, ref string msg) { BLL.Loger.Log4Net.Info("调用了【CRM停用/启用核实更改状态】接口,传入参数为:" + string.Format("CRMStopCustApplyID:{0},StopStatus:{1},Remark:{2},operID:{3}", CRMStopCustApplyID, StopStatus, Remark, operID)); int flag = 0; try { if (BLL.CallRecord_ORIG_Authorizer.Instance.Verify(Verifycode, 0, ref msg, "CRM申请停用调用,授权失败。")) { flag = 1; Entities.StopCustApply oldModel = BLL.StopCustApply.Instance.GetStopCustApplyByCrmStopCustApplyID(CRMStopCustApplyID); Entities.StopCustApply model = BLL.StopCustApply.Instance.GetStopCustApplyByCrmStopCustApplyID(CRMStopCustApplyID); if (model != null) { DateTime dtime = DateTime.Now; model.StopStatus = StopStatus; model.StopTime = dtime; if (StopStatus == (int)StopCustStopStatus.Disabled) { model.Remark = Remark; } else if (StopStatus == (int)StopCustStopStatus.Reject) { model.RejectReason = Remark; } //更新主表 BLL.StopCustApply.Instance.Update(model); //插入日志 Log.InsertLogStopCustApply(oldModel, model, operID); //获取任务 OrderCRMStopCustTaskInfo model_task = BLL.OrderCRMStopCustTask.Instance.GetEntityByRelationID(model.RecID); if (model_task != null) { BLL.Loger.Log4Net.Info("调用了【CRM停用/启用核实更改状态】接口当前任务状态=" + model_task.TaskStatus_Value + " 任务ID=" + model_task.TaskID_Value); StopCustTaskOperStatus operstatus = StopCustTaskOperStatus.Disabled; //停用申请,3是已停用 if (StopStatus == (int)StopCustStopStatus.Disabled && model.ApplyType == 1) { //操作状态是停用 operstatus = StopCustTaskOperStatus.Disabled; } //启用申请,3是已启用 else if (StopStatus == (int)StopCustStopStatus.Disabled && model.ApplyType == 2) { //操作状态是启用 operstatus = StopCustTaskOperStatus.Enable; } //剩余为驳回 else { operstatus = StopCustTaskOperStatus.Reject; } //记录操作日志 CRMStopCustWebService.InsertOperationLog(model_task.TaskID_Value, operID, Remark, (StopCustTaskStatus)model_task.TaskStatus_Value, operstatus); } } return(flag); } else { BLL.Loger.Log4Net.Info("调用了【CRM停用/启用核实更改状态】接口,验证失败。Verifycode:【" + Verifycode + "】,IP:【" + System.Web.HttpContext.Current.Request.UserHostAddress + "】"); } return(flag); } catch (Exception ex) { BLL.Loger.Log4Net.Error("调用了【CRM停用/启用核实更改状态】接口出现异常:" + ex); return(flag); } }
public bool Update(OrderCRMStopCustTaskInfo model) { return(CommonBll.Instance.UpdateComAdoInfo(model)); }