Beispiel #1
0
        /// <summary>
        /// 确定两个对象是否具有相同的值
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            OrderFrequency aimObj = (OrderFrequency)obj;

            if (aimObj != null)
            {
                return((aimObj.Code == Code) &&
                       (aimObj.ExecuteTimesPerPeriod == ExecuteTimesPerPeriod) &&
                       (aimObj.Period == Period) &&
                       (aimObj.PeriodUnitFlag == PeriodUnitFlag) &&
                       (aimObj.WeekDays == WeekDays) &&
                       (aimObj.ExecuteTime == ExecuteTime));
            }
            return(false);
        }
Beispiel #2
0
 private void CheckPeriodUnitFlag(OrderExecPeriodUnitKind periodUnitFlag)
 {
     if (periodUnitFlag != OrderExecPeriodUnitKind.None)
     {
         return;
     }
     else
     {
         //检查是否与当前的pcdm一致
         if (!string.IsNullOrEmpty(this.Code))
         {
             OrderFrequency temp = new OrderFrequency(this.Code);
             temp.ReInitializeAllProperties();
             _periodUnitFlag        = temp._periodUnitFlag;
             _weekDays              = temp._weekDays;
             _period                = temp._period;
             _executeTime           = temp._executeTime;
             _executeTimes          = temp._executeTimes;
             _executeTimesPerPeriod = temp._executeTimesPerPeriod;
             _orderManagerFlag      = temp._orderManagerFlag;
         }
     }
 }