Exemple #1
0
        //--------------------------------------------------------//
        //      Property
        //--------------------------------------------------------//


        //--------------------------------------------------------//
        //      Method
        //--------------------------------------------------------//
        public object Clone()
        {
            MembersScData cloneData = new MembersScData();

            cloneData.MemberCode  = this.MemberCode;
            cloneData.Name        = this.Name;
            cloneData.OfficeCode  = this.OfficeCode;
            cloneData.Department  = this.Department;
            cloneData.AccessLevel = this.AccessLevel;
            return(cloneData);
        }
Exemple #2
0
        public MembersScData SelectMembersScDataS(string memberCode)
        {
            SqlHandling sh = new SqlHandling("M_Members");
            DataTable   dt = sh.SelectAllData("WHERE MemberCode = '" + memberCode + "'");

            if (dt == null || dt.Rows.Count < 1)
            {
                return(null);
            }

            MembersScData msd = new MembersScData(dt.Rows[0]);

            return(msd);
        }
Exemple #3
0
        private MembersScData[] createMembersScDataArray(string wParam)
        {
            SqlHandling sh = new SqlHandling("M_Members");
            DataTable   dt = sh.SelectAllData(wParam);

            if (dt == null || dt.Rows.Count < 1)
            {
                return(null);
            }

            MembersScData[] msd = new MembersScData[dt.Rows.Count];
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                msd[i] = new MembersScData(dt.Rows[i]);
            }
            return(msd);
        }