/// <summary>
        /// 加载数据。
        /// </summary>
        public override void LoadData()
        {
            List<DSIStaffFamilyMember> listMembers = this.FamilyMemberDataSource;
            if (listMembers == null ||  listMembers.Count == 0)
            {
                listMembers = new List<DSIStaffFamilyMember>();

                DSIStaffFamilyMember member0 = new DSIStaffFamilyMember();
                member0.MemberID = GUIDEx.New;
                member0.Gender = 1;
                listMembers.Add(member0);

                DSIStaffFamilyMember member1 = new DSIStaffFamilyMember();
                member1.MemberID = GUIDEx.New;
                member1.Gender = 1;
                listMembers.Add(member1);

                DSIStaffFamilyMember member2 = new DSIStaffFamilyMember();
                member2.MemberID = GUIDEx.New;
                member2.Gender = 1;
                listMembers.Add(member2);

                //DSIStaffFamilyMember member3 = new DSIStaffFamilyMember();
                //member3.MemberID = GUIDEx.New;
                //member3.Gender = 1;
                //listMembers.Add(member3);

                this.FamilyMemberDataSource = listMembers;
            }
            this.dgStaffFamilyMember.InvokeBuildDataSource();
        }
 protected void btnAddMember_OnClick(object sender, EventArgs e)
 {
     try
     {
         if (this.FamilyMemberDataSource == null) this.FamilyMemberDataSource = new List<DSIStaffFamilyMember>();
         DSIStaffFamilyMember data = new DSIStaffFamilyMember();
         data.MemberID = GUIDEx.New;
         data.Gender = 1;
         this.FamilyMemberDataSource.Add(data);
     }
     finally
     {
         this.LoadData();
     }
 }