//--------------------------------------------------------// // 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); }
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); }
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); }