48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using Ninject;
|
|
using System;
|
|
using WX.CRM.IBLL.Quality;
|
|
|
|
namespace WX.CRM.WebHelper.DoItems
|
|
{
|
|
public sealed class ComplainMessage : IPopupMessage
|
|
{
|
|
private readonly IQC_COMPLAIN_NOTICE _complainNotice;
|
|
private static volatile ComplainMessage instance = null;
|
|
public ComplainMessage()
|
|
{
|
|
_complainNotice = Infrastructure.NinjectControllerFactory.ninjectKernel.Get<IQC_COMPLAIN_NOTICE>();
|
|
}
|
|
|
|
private static object locked = new Object();
|
|
public static ComplainMessage Instance
|
|
{
|
|
get
|
|
{
|
|
if (instance == null)
|
|
{
|
|
lock (locked)
|
|
{
|
|
if (instance == null)
|
|
instance = new ComplainMessage();
|
|
}
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
|
|
public string GetMessage(decimal UserId)
|
|
{
|
|
//LogHelper.Info("UserId:" + UserId);
|
|
var notice = _complainNotice.GetNotice(UserId);
|
|
//LogHelper.Info(notice.ToJson());
|
|
return notice.CONTENT;
|
|
|
|
}
|
|
|
|
public string GetUrl()
|
|
{
|
|
return @"../Quality/ComplainCustomer/Index";
|
|
}
|
|
}
|
|
}
|