public static DAYAHEAD_RESERVE_PLANT_CAP[] List()
        {
            DAYAHEAD_RESERVE_PLANT_CAP dayahead_reserve_plant_cap;

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

            DAYAHEAD_RESERVE_PLANT_CAP[] dayahead_reserve_plant_capArray;
            DAYAHEAD_RESERVE_PLANT_CAP[] dayahead_reserve_plant_capArray2;
            dayahead_reserve_plant_cap       = new DAYAHEAD_RESERVE_PLANT_CAP();
            dayahead_reserve_plant_capArray  = (DAYAHEAD_RESERVE_PLANT_CAP[])CommonClassDB.Instance(dayahead_reserve_plant_cap).load(dayahead_reserve_plant_cap, __nPageIndex, __nPageSize, __strFilter, __strSort);
            dayahead_reserve_plant_capArray2 = dayahead_reserve_plant_capArray;
Label_0021:
            return(dayahead_reserve_plant_capArray2);
        }
        public static void DelTrue(int __nID)
        {
            DAYAHEAD_RESERVE_PLANT_CAP dayahead_reserve_plant_cap;
            bool flag;

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

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