public static DAYAHEAD_RESERVE_TOTAL_CAP[] List()
        {
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap;

            DAYAHEAD_RESERVE_TOTAL_CAP[] dayahead_reserve_total_capArray;
            dayahead_reserve_total_cap      = new DAYAHEAD_RESERVE_TOTAL_CAP();
            dayahead_reserve_total_capArray = (DAYAHEAD_RESERVE_TOTAL_CAP[])CommonClassDB.Instance(dayahead_reserve_total_cap).load(dayahead_reserve_total_cap, "OrderId");
Label_0020:
            return(dayahead_reserve_total_capArray);
        }
        public static DAYAHEAD_RESERVE_TOTAL_CAP[] List(string __strFilter, string __strSort, int __nPageIndex, int __nPageSize)
        {
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap;

            DAYAHEAD_RESERVE_TOTAL_CAP[] dayahead_reserve_total_capArray;
            DAYAHEAD_RESERVE_TOTAL_CAP[] dayahead_reserve_total_capArray2;
            dayahead_reserve_total_cap       = new DAYAHEAD_RESERVE_TOTAL_CAP();
            dayahead_reserve_total_capArray  = (DAYAHEAD_RESERVE_TOTAL_CAP[])CommonClassDB.Instance(dayahead_reserve_total_cap).load(dayahead_reserve_total_cap, __nPageIndex, __nPageSize, __strFilter, __strSort);
            dayahead_reserve_total_capArray2 = dayahead_reserve_total_capArray;
Label_0021:
            return(dayahead_reserve_total_capArray2);
        }
        public static void DelTrue(int __nID)
        {
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap;
            bool flag;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0028;
            }
            dayahead_reserve_total_cap    = new DAYAHEAD_RESERVE_TOTAL_CAP();
            dayahead_reserve_total_cap.Id = __nID;
            CommonClassDB.Instance(dayahead_reserve_total_cap).delte(dayahead_reserve_total_cap);
Label_0028:
            return;
        }
        public static DAYAHEAD_RESERVE_TOTAL_CAP Get(int __nID)
        {
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap;
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap2;
            bool flag;

            if (((__nID < 1) == 0) != null)
            {
                goto Label_0010;
            }
            dayahead_reserve_total_cap2 = null;
            goto Label_0037;
Label_0010:
            dayahead_reserve_total_cap    = new DAYAHEAD_RESERVE_TOTAL_CAP();
            dayahead_reserve_total_cap.Id = __nID;
            dayahead_reserve_total_cap2   = (DAYAHEAD_RESERVE_TOTAL_CAP)CommonClassDB.Instance(dayahead_reserve_total_cap).get(dayahead_reserve_total_cap, dayahead_reserve_total_cap.Id);
Label_0037:
            return(dayahead_reserve_total_cap2);
        }