Example #1
0
        public static DAYAHEAD_PEAK_PLANT_CAP[] List()
        {
            DAYAHEAD_PEAK_PLANT_CAP dayahead_peak_plant_cap;

            DAYAHEAD_PEAK_PLANT_CAP[] dayahead_peak_plant_capArray;
            dayahead_peak_plant_cap      = new DAYAHEAD_PEAK_PLANT_CAP();
            dayahead_peak_plant_capArray = (DAYAHEAD_PEAK_PLANT_CAP[])CommonClassDB.Instance(dayahead_peak_plant_cap).load(dayahead_peak_plant_cap, "OrderId");
Label_0020:
            return(dayahead_peak_plant_capArray);
        }
Example #2
0
        public static DAYAHEAD_PEAK_PLANT_CAP[] List(string __strFilter, string __strSort, int __nPageIndex, int __nPageSize)
        {
            DAYAHEAD_PEAK_PLANT_CAP dayahead_peak_plant_cap;

            DAYAHEAD_PEAK_PLANT_CAP[] dayahead_peak_plant_capArray;
            DAYAHEAD_PEAK_PLANT_CAP[] dayahead_peak_plant_capArray2;
            dayahead_peak_plant_cap       = new DAYAHEAD_PEAK_PLANT_CAP();
            dayahead_peak_plant_capArray  = (DAYAHEAD_PEAK_PLANT_CAP[])CommonClassDB.Instance(dayahead_peak_plant_cap).load(dayahead_peak_plant_cap, __nPageIndex, __nPageSize, __strFilter, __strSort);
            dayahead_peak_plant_capArray2 = dayahead_peak_plant_capArray;
Label_0021:
            return(dayahead_peak_plant_capArray2);
        }
Example #3
0
        public static void DelTrue(int __nID)
        {
            DAYAHEAD_PEAK_PLANT_CAP dayahead_peak_plant_cap;
            bool flag;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0028;
            }
            dayahead_peak_plant_cap    = new DAYAHEAD_PEAK_PLANT_CAP();
            dayahead_peak_plant_cap.Id = __nID;
            CommonClassDB.Instance(dayahead_peak_plant_cap).delte(dayahead_peak_plant_cap);
Label_0028:
            return;
        }
Example #4
0
        public static DAYAHEAD_PEAK_PLANT_CAP Get(int __nID)
        {
            DAYAHEAD_PEAK_PLANT_CAP dayahead_peak_plant_cap;
            DAYAHEAD_PEAK_PLANT_CAP dayahead_peak_plant_cap2;
            bool flag;

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