示例#1
0
        public static HB_PARTICIPANT[] List()
        {
            HB_PARTICIPANT hb_participant;

            HB_PARTICIPANT[] hb_participantArray;
            hb_participant      = new HB_PARTICIPANT();
            hb_participantArray = (HB_PARTICIPANT[])CommonClassDB.Instance(hb_participant).load(hb_participant, "OrderId");
Label_0020:
            return(hb_participantArray);
        }
示例#2
0
        public static HB_PARTICIPANT[] List(string __strFilter, string __strSort, int __nPageIndex, int __nPageSize)
        {
            HB_PARTICIPANT hb_participant;

            HB_PARTICIPANT[] hb_participantArray;
            HB_PARTICIPANT[] hb_participantArray2;
            hb_participant       = new HB_PARTICIPANT();
            hb_participantArray  = (HB_PARTICIPANT[])CommonClassDB.Instance(hb_participant).load(hb_participant, __nPageIndex, __nPageSize, __strFilter, __strSort);
            hb_participantArray2 = hb_participantArray;
Label_0021:
            return(hb_participantArray2);
        }
示例#3
0
        public static void DelTrue(int __nID)
        {
            HB_PARTICIPANT hb_participant;
            bool           flag;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0028;
            }
            hb_participant    = new HB_PARTICIPANT();
            hb_participant.Id = __nID;
            CommonClassDB.Instance(hb_participant).delte(hb_participant);
Label_0028:
            return;
        }
示例#4
0
        public static HB_PARTICIPANT Get(int __nID)
        {
            HB_PARTICIPANT hb_participant;
            HB_PARTICIPANT hb_participant2;
            bool           flag;

            if (((__nID < 1) == 0) != null)
            {
                goto Label_0010;
            }
            hb_participant2 = null;
            goto Label_0037;
Label_0010:
            hb_participant    = new HB_PARTICIPANT();
            hb_participant.Id = __nID;
            hb_participant2   = (HB_PARTICIPANT)CommonClassDB.Instance(hb_participant).get(hb_participant, hb_participant.Id);
Label_0037:
            return(hb_participant2);
        }
示例#5
0
        public static BasicMess[] BMPARTICIPANT_ID(bool __bNeedAll)
        {
            List <BasicMess> list;
            string           str;
            ArrayList        list2;
            Hashtable        hashtable;
            int            num;
            HB_PARTICIPANT hb_participant;
            string         str2;

            BasicMess[] messArray;
            bool        flag;
            IEnumerator enumerator;
            IDisposable disposable;

            list = new List <BasicMess>();
            list.Clear();
            if ((__bNeedAll == 0) != null)
            {
                goto Label_002E;
            }
            list.Add(new BasicMess("--全部--", ""));
Label_002E:
            str        = "select distinct Id as id from " + DBFactory.reptablename("HB_PARTICIPANT") + " where IsDelete=2";
            list2      = new PersistenceManager().GetFromSql(str);
            enumerator = list2.GetEnumerator();
Label_005D:
            try
            {
                goto Label_00E5;
Label_0062:
                hashtable = (Hashtable)enumerator.Current;
                num       = int.Parse(hashtable["id"].ToString());
                if (((num < 1) == 0) == null)
                {
                    goto Label_00E5;
                }
                hb_participant = HB_PARTICIPANT.Get(num);
                if (((hb_participant == null) == 0) == null)
                {
                    goto Label_00E5;
                }
                str2 = string.Format("{0}({1})", hb_participant.PARTICIPANT_NAME, (int)hb_participant.Id);
                list.Add(new BasicMess(str2, hb_participant.PARTICIPANT_ID));
Label_00E5:
                if (enumerator.MoveNext() != null)
                {
                    goto Label_0062;
                }
                goto Label_0114;
            }
            finally
            {
Label_00F7:
                disposable = enumerator as IDisposable;
                if ((disposable == null) != null)
                {
                    goto Label_0113;
                }
                disposable.Dispose();
                Label_0113 :;
            }
            Label_0114 :
            messArray = list.ToArray();
Label_011F:
            return(messArray);
        }