Ejemplo n.º 1
0
        public static MemberCard GetMemberCardByCode(string _Code)
        {
            DataTable dt = new Data.DM.MemberCard().GetMemberCard_ByCode(_Code);

            if ((dt != null) && (dt.Rows.Count > 0))
            {
                return(Parse(dt.Rows[0]));
            }
            return(null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// lay thong tin cua gara by id
        /// </summary>
        public static MemberCard GetGaraByID(int ID)
        {
            DataTable dt = new Data.DM.MemberCard().GetMemberCardByID(ID);

            if ((dt != null) && (dt.Rows.Count > 0))
            {
                return(Parse(dt.Rows[0]));
            }
            return(null);
        }
Ejemplo n.º 3
0
        public static List <MemberCard> GetAllMemberCard_BySearch(string _Code, string _Name, string _Address)
        {
            List <MemberCard> lstMemberCard = new List <MemberCard>();
            DataTable         dt            = new Data.DM.MemberCard().GetMemberCard_BySearch(_Code, _Name, _Address);

            foreach (DataRow row in dt.Rows)
            {
                lstMemberCard.Add(Parse(row));
            }
            return(lstMemberCard);
        }
Ejemplo n.º 4
0
        public static List <MemberCard> GetAllMemberCard()
        {
            List <MemberCard> lstMemberCard = new List <MemberCard>();
            DataTable         dt            = new Data.DM.MemberCard().GetAllMemberCard();

            foreach (DataRow row in dt.Rows)
            {
                lstMemberCard.Add(Parse(row));
            }
            return(lstMemberCard);
        }