예제 #1
0
        private void GetiQuran(int siteId, int quranId)
        {
            using (IDataReader reader = DBiQuran.iQuran_GetiQuran(siteId, quranId))
            {
                if (reader.Read())
                {
                    this.quranID          = int.Parse(reader["QuranID"].ToString());
                    this.siteID           = int.Parse(reader["SiteID"].ToString());
                    this.title            = reader["Title"].ToString().Trim();
                    this.description      = reader["Description"].ToString();
                    this.tRanslatorDetUrl = reader["TRanslatorDetUrl"].ToString();
                    this.translationSrc   = reader["TranslationSrc"].ToString();

                    this.suraCount = int.Parse(reader["SuraCount"].ToString());

                    string isdefault = reader["IsDefault"].ToString();
                    this.isDefault = (isdefault == "True" || isdefault == "1");
                    this.qLanguage = reader["QLanguage"].ToString().Trim();
                    string active = reader["IsActive"].ToString();
                    this.isActive    = (active == "True" || active == "1");
                    this.createdDate = Convert.ToDateTime(reader["CreatedDate"]);

                    this.createdByUserName = reader["UserName"].ToString().Trim();
                    this.createdByUserID   = int.Parse(reader["CreatedBy"].ToString());
                }
                else
                {
                    if (log.IsErrorEnabled)
                    {
                        log.Error("IDataReader didn't read in Quran.GetiQuran");
                    }
                }
            }
        }