private void GrdNotesAdd()
        {
            if (ValidateNotesFooter())
            {
                Page.Validate("notesDataAdd");
                if (Page.IsValid)
                {
                    int materialId = Int32.Parse(hdfCurrentMaterialId.Value);
                    int companyId = Int32.Parse(hdfCompanyId.Value);
                    string newSubject = ((TextBox)grdNotes.FooterRow.FindControl("tbxNoteSubjectNew")).Text.Trim();
                    int loginId = Convert.ToInt32(Session["loginID"]);
                    DateTime dateTime_ = DateTime.Now;
                    string newNote = ((TextBox)grdNotes.FooterRow.FindControl("tbxNoteNoteNew")).Text.Trim();
                    bool inServiceNoteDatabase = false;

                    MaterialsInformationNoteInformation model = new MaterialsInformationNoteInformation(materialsInformationTDS);
                    model.Insert(materialId, newSubject, loginId, dateTime_, newNote, false, companyId, inServiceNoteDatabase);

                    Session.Remove("materialsNotesDummy");
                    Session["materialsInformationTDS"] = materialsInformationTDS;

                    grdNotes.DataBind();
                    grdNotes.PageIndex = grdNotes.PageCount - 1;
                }
            }
        }