private void PopulateManuscriptEventGrid() { ProjectManagementDa projDA = new ProjectManagementDa(); DataTable dt = projDA.GetManuscriptInfo(manuscriptId); ProjectManuscriptEventGridView.DataSource = dt; ProjectManuscriptEventGridView.DataBind(); }
protected void UpdateEventsButton_Click(object sender, EventArgs e) { // // Save the Manuscript Info fields // BOL.ProjectManuscript biz = new BOL.ProjectManuscript(); if (manuscriptId != -1) { biz.Get(manuscriptId); } if (projectId != -1) { CICHelper.SetBOValues(PanelManuscriptInfo.Controls, biz, projectId); } else { CICHelper.SetBOValues(PanelManuscriptInfo.Controls, biz, 0); } if (biz.HasField(BOL.ProjectManuscript.ProjectId)) { biz[BOL.ProjectManuscript.JournalId] = Request.Form["JournalId"]; } biz.Save(); if (biz["ManuscriptId"].ToString() != "") { manuscriptId = Int32.Parse(biz["ManuscriptId"].ToString()); ManuscriptIdField.Value = biz["ManuscriptId"].ToString(); } // // Save Authors Grid // ManuscriptAuthorGridView.Save(manuscriptId); // // Save Events Grid // ProjectManuscriptEventGridView.Save(manuscriptId); // // Save Citations Grid // PublicationCitationGridView.Save(manuscriptId); GoToMainList(); }