Пример #1
0
        public unsafe ArrayList GetChartData(out ArrayList __alFields, DateTime __dDate, string __strValueLabel)
        {
            ArrayList list;
            int       num;
            DateTime  time;
            string    str;
            object    obj2;
            Hashtable hashtable;
            ArrayList list2;
            double    num2;
            bool      flag;

            *(__alFields) = new ArrayList();
            *(__alFields).Add("时间");
            *(__alFields).Add(__strValueLabel);
            list = new ArrayList();
            num  = 1;
            goto Label_00A7;
Label_0028:
            time                       = &__dDate.AddMinutes((double)(num * 15));
            str                        = string.Format("T{0}", (int)num);
            obj2                       = CommonClassDB.GetObjectFieldValue(this, str);
            hashtable                  = new Hashtable();
            hashtable["时间"]            = string.Format("{0}({1})", str, &time.ToString("HH:mm"));
            num2                       = (double)obj2;
            hashtable[__strValueLabel] = &num2.ToString("0.####");
            list.Add(hashtable);
            num += 1;
Label_00A7:
            if ((num < 0x61) != null)
            {
                goto Label_0028;
            }
            list2 = list;
Label_00BA:
            return(list2);
        }
        public unsafe ArrayList GetChartData(out ArrayList __alFields, DateTime __dDate, string __strValueLabel, int __nUINTERVAL)
        {
            ArrayList list;
            DateTime  time;
            int       num;
            DateTime  time2;
            string    str;
            object    obj2;
            Hashtable hashtable;
            ArrayList list2;
            int       num2;
            double    num3;
            bool      flag;

            *(__alFields) = new ArrayList();
            *(__alFields).Add("时间");
            *(__alFields).Add(__strValueLabel);
            list = new ArrayList();
            time = &__dDate.Date;
            num2 = __nUINTERVAL;
            switch ((num2 - 1))
            {
            case 0:
                goto Label_004F;

            case 1:
                goto Label_0062;

            case 2:
                goto Label_0075;

            case 3:
                goto Label_0088;

            case 4:
                goto Label_009B;
            }
            goto Label_00AE;
Label_004F:
            time = &time.AddMinutes(60.0);
            goto Label_00AE;
Label_0062:
            time = &time.AddMinutes(540.0);
            goto Label_00AE;
Label_0075:
            time = &time.AddMinutes(780.0);
            goto Label_00AE;
Label_0088:
            time = &time.AddMinutes(1020.0);
            goto Label_00AE;
Label_009B:
            time = &time.AddMinutes(1260.0);
Label_00AE:
            num = 1;
            goto Label_0137;
Label_00B5:
            time2                      = &time.AddMinutes((double)(num * 15));
            str                        = string.Format("T{0}", (int)num);
            obj2                       = CommonClassDB.GetObjectFieldValue(this, str);
            hashtable                  = new Hashtable();
            hashtable["时间"]            = string.Format("{0}({1})", str, &time2.ToString("HH:mm"));
            num3                       = (double)obj2;
            hashtable[__strValueLabel] = &num3.ToString("0.####");
            list.Add(hashtable);
            num += 1;
Label_0137:
            if ((num < 0x21) != null)
            {
                goto Label_00B5;
            }
            list2 = list;
Label_014A:
            return(list2);
        }