示例#1
0
 public static DataTable GetComplainByDaysPrint(string Days, string CompanyCD, string ord)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByDaysPrint(Days, CompanyCD, ord));
     }
     catch
     {
         return(null);
     }
 }
示例#2
0
 public static DataTable GetComplainByTimeBehaviourPrint(string CustName, string ComplainedMan, string GroupBy, string CompanyCD, string LinkDateBegin, string LinkDateEnd, string ord)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByTimeBehaviourPrint(CustName, ComplainedMan, GroupBy, CompanyCD, LinkDateBegin, LinkDateEnd, ord));
     }
     catch
     {
         return(null);
     }
 }
示例#3
0
 /// <summary>
 /// 零投诉客户统计_报表
 /// </summary>
 /// <param name="Days">天数</param>
 /// <param name="CompanyCD">公司ID</param>
 /// <returns>记录集</returns>
 public static DataTable GetComplainByDays(string Days, string CompanyCD, int pageIndex, int pageCount, string ord, ref int TotalCount)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByDays(Days, CompanyCD, pageIndex, pageCount, ord, ref TotalCount));
     }
     catch
     {
         return(null);
     }
 }
示例#4
0
 public static DataTable GetComplainByManPrint(string ComplainedMan, string CompanyCD, string LinkDateBegin, string LinkDateEnd, string ord)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByManPrint(ComplainedMan, CompanyCD, LinkDateBegin, LinkDateEnd, ord));
     }
     catch
     {
         return(null);
     }
 }
示例#5
0
 public static DataTable GetComplainByTimeBehaviour(string CustName, string ComplainedMan, string GroupBy, string CompanyCD, string LinkDateBegin, string LinkDateEnd, int pageIndex, int pageCount, string ord, ref int TotalCount)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByTimeBehaviour(CustName, ComplainedMan, GroupBy, CompanyCD, LinkDateBegin, LinkDateEnd, pageIndex, pageCount, ord, ref TotalCount));
     }
     catch
     {
         return(null);
     }
 }
示例#6
0
 /// <summary>
 /// 被投诉人统计_报表
 /// </summary>
 /// <param name="TypeId">投诉人ID</param>
 /// <param name="CompanyCD">公司ID</param>
 /// <param name="LinkDateBegin">开始时间</param>
 /// <param name="LinkDateEnd">结束时间</param>
 /// <returns>记录集</returns>
 public static DataTable GetComplainByMan(string ComplainedMan, string CompanyCD, string LinkDateBegin, string LinkDateEnd, int pageIndex, int pageCount, string ord, ref int TotalCount)
 {
     try
     {
         return(ComplainDBHelper.GetComplainByMan(ComplainedMan, CompanyCD, LinkDateBegin, LinkDateEnd, pageIndex, pageCount, ord, ref TotalCount));
     }
     catch
     {
         return(null);
     }
 }
示例#7
0
 public static DataTable GetComplainCountPrint(string CustName, string TypeId, string CompanyCD, string LinkDateBegin, string LinkDateEnd, string ord)
 {
     try
     {
         return(ComplainDBHelper.GetComplainCountPrint(CustName, TypeId, CompanyCD, LinkDateBegin, LinkDateEnd, ord));
     }
     catch
     {
         return(null);
     }
 }
示例#8
0
 /// <summary>
 /// 投诉次数统计_报表
 /// </summary>
 /// <param name="CustName">客户名称</param>
 /// <param name="TypeId">投诉分类</param>
 /// <param name="CompanyCD">公司ID</param>
 /// <param name="LinkDateBegin">开始时间</param>
 /// <param name="LinkDateEnd">结束时间</param>
 /// <returns>记录集</returns>
 public static DataTable GetComplainCount(string CustName, string TypeId, string CompanyCD, string LinkDateBegin, string LinkDateEnd, int pageIndex, int pageCount, string ord, ref int TotalCount)
 {
     try
     {
         return(ComplainDBHelper.GetComplainCount(CustName, TypeId, CompanyCD, LinkDateBegin, LinkDateEnd, pageIndex, pageCount, ord, ref TotalCount));
     }
     catch
     {
         return(null);
     }
 }
示例#9
0
        /// <summary>
        /// 修改客户投诉信息的方法
        /// </summary>
        /// <param name="CustComplainM">客户投诉信息</param>
        /// <returns>操作结果</returns>
        public static bool UpdateComplain(CustComplainModel CustComplainM)
        {
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];
            LogInfoModel logModel = new LogInfoModel(); //操作日志
            bool         isSucc   = false;              //定义返回变量

            #region 设置操作日志内容
            //设置公司代码
            logModel.CompanyCD = userInfo.CompanyCD;
            //设置登陆用户ID
            logModel.UserID = userInfo.UserID;
            //设置模块ID 模块ID在ConstUtil中定义,以便维护
            logModel.ModuleID = ConstUtil.MODULE_ID_CUST_COMPLAIN_LIST;
            //操作单据编号  投诉单编号
            logModel.ObjectID = CustComplainM.ComplainNo;
            //操作对象 操作的表信息
            logModel.ObjectName = ConstUtil.TABLE_NAME_COMPLAIN;
            //涉及关键元素 涉及其他业务、表关系
            logModel.Element = string.Empty;
            //备注 操作类型
            logModel.Remark = ConstUtil.LOG_PROCESS_UPDATE;
            #endregion

            try
            {
                isSucc = ComplainDBHelper.UpdateComplain(CustComplainM);
            }
            catch (System.Exception ex)
            {
                #region  操作失败时记录日志到文件
                //定义变量
                LogInfo logSys = new LogInfo();
                //设置日志类型 需要指定为系统日志
                logSys.Type = LogInfo.LogType.SYSTEM;
                //指定系统日志类型 出错信息
                logSys.SystemKind = LogInfo.SystemLogKind.SYSTEM_ERROR;
                //指定登陆用户信息
                logSys.UserInfo = userInfo;
                //设定模块ID
                logSys.ModuleID = ConstUtil.MODULE_ID_CUST_COMPLAIN_LIST;
                //描述
                logSys.Description = ex.ToString();
                //输出日志
                LogUtil.WriteLog(logSys);
                #endregion
            }

            if (isSucc)//操作成功
            {
                logModel.Remark += "成功";
            }
            else//操作失败
            {
                logModel.Remark += "失败";
            }

            //记录日志
            LogDBHelper.InsertLog(logModel);

            return(isSucc);
        }
示例#10
0
 /// <summary>
 /// 导出客户投诉信息
 /// </summary>
 /// <param name="CustID"></param>
 /// <param name="CustComplainM"></param>
 /// <param name="ComplainBegin"></param>
 /// <param name="ComplainEnd"></param>
 /// <param name="CustLinkMan"></param>
 /// <param name="DestClerk"></param>
 /// <param name="ord"></param>
 /// <returns></returns>
 public static DataTable ExportComplainInfo(string CanUserID, string CustID, CustComplainModel CustComplainM, string ComplainBegin, string ComplainEnd, string CustLinkMan, string DestClerk, string ord)
 {
     return(ComplainDBHelper.ExportComplainInfo(CanUserID, CustID, CustComplainM, ComplainBegin, ComplainEnd, CustLinkMan, DestClerk, ord));
 }
示例#11
0
 /// <summary>
 /// 客户投诉信息打印
 /// </summary>
 /// <param name="CompanyCD"></param>
 /// <param name="ComplainID"></param>
 /// <returns></returns>
 public static DataTable PrintComplain(string CompanyCD, string ComplainID)
 {
     return(ComplainDBHelper.PrintComplain(CompanyCD, ComplainID));
 }
示例#12
0
 /// <summary>
 /// 根据投诉ID获取此条投诉信息
 /// </summary>
 /// <param name="CompanyCD">公司代码</param>
 /// <param name="ComplainID">投诉ID</param>
 /// <returns>返回记录</returns>
 public static DataTable GetComplainInfoByID(string CompanyCD, int ComplainID)
 {
     return(ComplainDBHelper.GetComplainInfoByID(CompanyCD, ComplainID));
 }
示例#13
0
 public static DataTable GetComplainInfoByComplainPerson(string ComplainPerson, string CustName, CustComplainModel CustComplainM, string ComplainBegin, string ComplainEnd, string CustLinkMan, string DestClerk, int pageIndex, int pageCount, string ord, ref int totalCount)
 {
     return(ComplainDBHelper.GetComplainInfoByComplainPerson(ComplainPerson, CustName, CustComplainM, ComplainBegin, ComplainEnd, CustLinkMan, DestClerk, pageIndex, pageCount, ord, ref totalCount));
 }