public static DAYAHEAD_PLANT_SCHEDULE[] List()
        {
            DAYAHEAD_PLANT_SCHEDULE dayahead_plant_schedule;

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

            DAYAHEAD_PLANT_SCHEDULE[] dayahead_plant_scheduleArray;
            DAYAHEAD_PLANT_SCHEDULE[] dayahead_plant_scheduleArray2;
            dayahead_plant_schedule       = new DAYAHEAD_PLANT_SCHEDULE();
            dayahead_plant_scheduleArray  = (DAYAHEAD_PLANT_SCHEDULE[])CommonClassDB.Instance(dayahead_plant_schedule).load(dayahead_plant_schedule, __nPageIndex, __nPageSize, __strFilter, __strSort);
            dayahead_plant_scheduleArray2 = dayahead_plant_scheduleArray;
Label_0021:
            return(dayahead_plant_scheduleArray2);
        }
        public static void DelTrue(int __nID)
        {
            DAYAHEAD_PLANT_SCHEDULE dayahead_plant_schedule;
            bool flag;

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

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