public static DAYAHEAD_PEK_DEVIATION_REASON[] List()
        {
            DAYAHEAD_PEK_DEVIATION_REASON dayahead_pek_deviation_reason;

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

            DAYAHEAD_PEK_DEVIATION_REASON[] dayahead_pek_deviation_reasonArray;
            DAYAHEAD_PEK_DEVIATION_REASON[] dayahead_pek_deviation_reasonArray2;
            dayahead_pek_deviation_reason       = new DAYAHEAD_PEK_DEVIATION_REASON();
            dayahead_pek_deviation_reasonArray  = (DAYAHEAD_PEK_DEVIATION_REASON[])CommonClassDB.Instance(dayahead_pek_deviation_reason).load(dayahead_pek_deviation_reason, __nPageIndex, __nPageSize, __strFilter, __strSort);
            dayahead_pek_deviation_reasonArray2 = dayahead_pek_deviation_reasonArray;
Label_0021:
            return(dayahead_pek_deviation_reasonArray2);
        }
        public static void DelTrue(int __nID)
        {
            DAYAHEAD_PEK_DEVIATION_REASON dayahead_pek_deviation_reason;
            bool flag;

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

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