예제 #1
0
        private bool Create()
        {
            int newID = -1;

            if (this.qLanguage == "ar")
            {
                newID = DBiQuran.iVerse_CreateVerse_Text(this.siteID, this.quranID, this.suraID, this.verseOrder, this.suraOrder,
                                                         halfNo, this.partNo, this.hizbNo, this.quraterNo, this.place,
                                                         this.startTime, this.endTime, this.endTimeText, this.isActive, this.createdByUserID,
                                                         this.quranVerseTxt.VerseText, this.quranVerseTxt.VerseTextNM, this.quranVerseTxt.VerseTextNMAlif);
            }
            else
            {
                newID = DBiQuran.iVerse_CreateVerse_Transl(this.siteID, this.quranID, this.suraID, this.verseID,
                                                           this.suraOrder, this.verseOrder, this.VerseText);
            }

            DBiQuran.iQuran_iSura_Increment_VerseCount(this.siteID, this.quranID, this.suraID);
            this.verseID = newID;

            return(newID > -1);
        }