public IList<Core.Business.VirtualLabDataSon> GetAllVirtualLabDataSon()
        {
            IList<Core.Business.VirtualLabDataSon> virtualLabDataSonlist = new List<Core.Business.VirtualLabDataSon>();
            SqlServerUtility sql = new SqlServerUtility();

            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectVirtualLabDataSonsAll");

            if(reader != null)
            {
                while(reader.Read())
                {
                    Core.Business.VirtualLabDataSon virtualLabDataSon = new Core.Business.VirtualLabDataSon();

                    if (!reader.IsDBNull(0)) virtualLabDataSon.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) virtualLabDataSon.Name = reader.GetString(1);
                    if (!reader.IsDBNull(2)) virtualLabDataSon.Content = reader.GetString(2);
                    if (!reader.IsDBNull(3)) virtualLabDataSon.AddTime = reader.GetDateTime(3);
                    if (!reader.IsDBNull(4)) virtualLabDataSon.AddPerson = reader.GetString(4);
                    if (!reader.IsDBNull(5)) virtualLabDataSon.HasAnnex = reader.GetInt32(5);
                    if (!reader.IsDBNull(6)) virtualLabDataSon.FrontID = reader.GetGuid(6);
                    virtualLabDataSon.MarkOld();
                    virtualLabDataSonlist.Add(virtualLabDataSon);
                }
                reader.Close();
            }
            return virtualLabDataSonlist;
        }
        public Core.Business.VirtualLabDataSon Select(Guid id)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@ID", SqlDbType.UniqueIdentifier, id);
            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectVirtualLabDataSon");

            if (reader != null && !reader.IsClosed && reader.Read())
            {
                Core.Business.VirtualLabDataSon virtualLabDataSon = new Core.Business.VirtualLabDataSon();

                if (!reader.IsDBNull(0)) virtualLabDataSon.Id = reader.GetGuid(0);
                if (!reader.IsDBNull(1)) virtualLabDataSon.Name = reader.GetString(1);
                if (!reader.IsDBNull(2)) virtualLabDataSon.Content = reader.GetString(2);
                if (!reader.IsDBNull(3)) virtualLabDataSon.AddTime = reader.GetDateTime(3);
                if (!reader.IsDBNull(4)) virtualLabDataSon.AddPerson = reader.GetString(4);
                if (!reader.IsDBNull(5)) virtualLabDataSon.HasAnnex = reader.GetInt32(5);
                if (!reader.IsDBNull(6)) virtualLabDataSon.FrontID = reader.GetGuid(6);
                reader.Close();
                return virtualLabDataSon;
            }
            else
            {
                if (reader != null && !reader.IsClosed)
                    reader.Close();

                return null;
            }
        }
        public IList<VirtualLabDataSon> SelectByfrontID(Guid guid)
        {
            IList<Core.Business.VirtualLabDataSon> virtualLabDataSonlist = new List<Core.Business.VirtualLabDataSon>();
            SqlServerUtility sql = new SqlServerUtility();
            string sqlstr = "SELECT * FROM [dbo].[VirtualLabDataSon] where frontID='";
            sqlstr += guid.ToString() + "' ORDER BY [AddTime] DESC";

            SqlDataReader reader = sql.ExecuteSqlReader(sqlstr);
            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.VirtualLabDataSon virtualLabDataSon = new Core.Business.VirtualLabDataSon();

                    if (!reader.IsDBNull(0)) virtualLabDataSon.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) virtualLabDataSon.Name = reader.GetString(1);
                    if (!reader.IsDBNull(2)) virtualLabDataSon.Content = reader.GetString(2);
                    if (!reader.IsDBNull(3)) virtualLabDataSon.AddTime = reader.GetDateTime(3);
                    if (!reader.IsDBNull(4)) virtualLabDataSon.AddPerson = reader.GetString(4);
                    if (!reader.IsDBNull(5)) virtualLabDataSon.HasAnnex = reader.GetInt32(5);
                    if (!reader.IsDBNull(6)) virtualLabDataSon.FrontID = reader.GetGuid(6);
                    virtualLabDataSon.MarkOld();
                    virtualLabDataSonlist.Add(virtualLabDataSon);
                }
                reader.Close();
            }
            return virtualLabDataSonlist;
        }