示例#1
0
 protected ProductOnStock() : base("m02", "spp03")
 {
     this.saleStatus = ProductSaleStatus.OnStock;
     this.LocalUrl   = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
示例#2
0
 protected ProductZero() : base("m02", "spp10")
 {
     this.saleStatus = ProductSaleStatus.All;
     this.LocalUrl   = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
示例#3
0
 protected SellerAlreadySent()
     : base("m03", "ddp05")
 {
     this.Reurl      = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
 protected ProductSendsIntegral() : base("m02", "spp02")
 {
     this.saleStatus = ProductSaleStatus.OnSale;
     this.LocalUrl   = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
示例#5
0
 protected RecycleStation()
     : base("m03", "ddp08")
 {
     this.Reurl      = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
示例#6
0
 protected ManageOrder()
     : base("m03", "ddp03")
 {
     this.Reurl      = string.Empty;
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }
示例#7
0
 protected WaitBuyerPay()
     : base("m03", "ddp14")
 {
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
     this.Reurl      = string.Empty;
 }
示例#8
0
 public ManageMembers() : base("m04", "hyp02")
 {
     this.mstatus     = Globals.RequestQueryStr("MemberStatus");
     this.ValidSmsNum = "0";
     this.addHideCss  = string.Empty;
     this.myNotifier  = new StatisticNotifier();
     this.myEvent     = new UpdateStatistics();
     this.reUrl       = string.Empty;
 }
示例#9
0
 protected BalanceDrawApplyList() : base("m05", "fxp09")
 {
     this.RequestStartTime = "";
     this.RequestEndTime   = "";
     this.StoreName        = "";
     this.DrawMinNum       = 1;
     this.DrawPayType      = "";
     this.myNotifier       = new StatisticNotifier();
     this.myEvent          = new UpdateStatistics();
 }
示例#10
0
 protected RecycleStationDetail() : base("m03", "ddp08")
 {
     this.myNotifier    = new StatisticNotifier();
     this.myEvent       = new UpdateStatistics();
     this.orderId       = Globals.RequestQueryStr("OrderId");
     this.reurl         = string.Empty;
     this.ProcessClass2 = string.Empty;
     this.ProcessClass3 = string.Empty;
     this.ProcessClass4 = string.Empty;
 }
示例#11
0
 protected MemberAmountApply() : base("m04", "hyp11")
 {
     this.RequestStartTime = "";
     this.RequestEndTime   = "";
     this.StoreName        = "";
     this.DrawMinNum       = 1;
     this.DrawPayType      = "";
     this.myNotifier       = new StatisticNotifier();
     this.myEvent          = new UpdateStatistics();
 }
示例#12
0
 protected DistributorList() : base("m05", "fxp03")
 {
     this.StoreName   = "";
     this.Grade       = "0";
     this.Status      = "0";
     this.RealName    = "";
     this.CellPhone   = "";
     this.MicroSignal = "";
     this.myNotifier  = new StatisticNotifier();
     this.myEvent     = new UpdateStatistics();
 }
示例#13
0
 protected OrderDetails() : base("m03", "00000")
 {
     this.myNotifier    = new StatisticNotifier();
     this.myEvent       = new UpdateStatistics();
     this.orderId       = Globals.RequestQueryStr("OrderId");
     this.comCode       = "";
     this.reurl         = string.Empty;
     this.ProcessClass2 = string.Empty;
     this.ProcessClass3 = string.Empty;
     this.ProcessClass4 = string.Empty;
 }
示例#14
0
 /// <summary>
 /// Suscribir un listener para recibir notificaciones cuando la estadística
 /// cambie su valor
 /// </summary>
 /// <param name="key">Identificador de la estadística</param>
 /// <param name="listener">Acción a ser llamada al recibir cambios la estadística dada</param>
 public void SubscribeToStatistic(string key, Action <string, double> listener)
 {
     if (StatisticNotifiers.ContainsKey(key))
     {
         StatisticNotifiers[key].StatisticChanged += listener;
     }
     else
     {
         StatisticNotifier notifier = new StatisticNotifier(key);
         notifier.StatisticChanged += listener;
         StatisticNotifiers.Add(key, notifier);
     }
     if (statistics.ContainsKey(key))
     {
         listener?.Invoke(key, statistics[key]);
     }
     else
     {
         listener?.Invoke(key, 0);
     }
 }
示例#15
0
        //protected string wid;

        public ManageMembers() : base("m04", "hyp02")
        {
            this.ValidSmsNum = "0";
            this.myNotifier  = new StatisticNotifier();
            this.myEvent     = new UpdateStatistics();
        }
示例#16
0
 protected NotifierDemo() : base("", "")
 {
     this.myNotifier = new StatisticNotifier();
     this.myEvent    = new UpdateStatistics();
 }